@fluid-topics/ft-search-bar 1.2.26 → 1.2.28
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.
- package/build/ft-search-bar.light.js +264 -249
- package/build/ft-search-bar.min.js +561 -546
- package/package.json +16 -16
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ie=Y.split(":"),Z=ie.shift().trim();if(Z){var ft=ie.join(":").trim();try{O.append(Z,ft)}catch(lo){console.warn("Response "+lo.message)}}}),O}I.call(R.prototype);function oe(y,O){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new u(O.headers),this.url=O.url||"",this._initBody(y)}I.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},oe.error=function(){var y=new oe(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var re=[301,302,303,307,308];oe.redirect=function(y,O){if(re.indexOf(O)===-1)throw new RangeError("Invalid status code");return new oe(null,{status:O,headers:{location:y}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(O,F){this.message=O,this.name=F;var Y=Error(O);this.stack=Y.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function U(y,O){return new Promise(function(F,Y){var ie=new R(y,O);if(ie.signal&&ie.signal.aborted)return Y(new t.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function ft(){Z.abort()}Z.onload=function(){var _e={statusText:Z.statusText,headers:j(Z.getAllResponseHeaders()||"")};ie.url.indexOf("file://")===0&&(Z.status<200||Z.status>599)?_e.status=200:_e.status=Z.status,_e.url="responseURL"in Z?Z.responseURL:_e.headers.get("X-Request-URL");var ar="response"in Z?Z.response:Z.responseText;setTimeout(function(){F(new oe(ar,_e))},0)},Z.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},Z.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},Z.onabort=function(){setTimeout(function(){Y(new t.DOMException("Aborted","AbortError"))},0)};function lo(_e){try{return _e===""&&i.location.href?i.location.href:_e}catch{return _e}}if(Z.open(ie.method,lo(ie.url),!0),ie.credentials==="include"?Z.withCredentials=!0:ie.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&(n.blob?Z.responseType="blob":n.arrayBuffer&&(Z.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof u||i.Headers&&O.headers instanceof i.Headers)){var Fs=[];Object.getOwnPropertyNames(O.headers).forEach(function(_e){Fs.push(d(_e)),Z.setRequestHeader(_e,p(O.headers[_e]))}),ie.headers.forEach(function(_e,ar){Fs.indexOf(ar)===-1&&Z.setRequestHeader(ar,_e)})}else ie.headers.forEach(function(_e,ar){Z.setRequestHeader(ar,_e)});ie.signal&&(ie.signal.addEventListener("abort",ft),Z.onreadystatechange=function(){Z.readyState===4&&ie.signal.removeEventListener("abort",ft)}),Z.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=u,i.Request=R,i.Response=oe),t.Headers=u,t.Request=R,t.Response=oe,t.fetch=U,t}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var Xr=Mi.fetch?Mi:Ui;er=Xr.fetch;er.default=Xr.fetch;er.fetch=Xr.fetch;er.Headers=Xr.Headers;er.Request=Xr.Request;er.Response=Xr.Response;Dc.exports=er});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=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(A,C){if(A=A.toLowerCase(),this._getDefinition(A)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${A}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let R=C.prototype.attributeChangedCallback,B=new Set(C.observedAttributes||[]);g(C,B,R);let j={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:R,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:B};this._definitionsByTag.set(A,j),this._definitionsByClass.set(C,j);let oe=t.call(i,A);oe||(oe=u(A),e.call(i,A,oe)),this===window.customElements&&(s.set(C,j),j.standInClass=oe);let re=this._awaitingUpgrade.get(A);if(re){this._awaitingUpgrade.delete(A);for(let y of re)a.delete(y),S(y,j,!0)}let U=this._whenDefinedPromises.get(A);return U!==void 0&&(U.resolve(C),this._whenDefinedPromises.delete(A)),C}upgrade(){k.push(this),i.upgrade.apply(i,arguments),k.pop()}get(A){return this._definitionsByTag.get(A)?.elementClass}_getDefinition(A){return this._definitionsByTag.get(A)}whenDefined(A){let C=this._getDefinition(A);if(C!==void 0)return Promise.resolve(C.elementClass);let R=this._whenDefinedPromises.get(A);return R===void 0&&(R={},R.promise=new Promise(B=>R.resolve=B),this._whenDefinedPromises.set(A,R)),R.promise}_upgradeWhenDefined(A,C,R){let B=this._awaitingUpgrade.get(C);B||this._awaitingUpgrade.set(C,B=new Set),R?B.add(A):B.delete(A)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let R=s.get(this.constructor);if(!R)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],R.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,R),C},window.HTMLElement.prototype=r.prototype;let p=A=>A===document||A instanceof ShadowRoot,h=A=>{let C=A.getRootNode();if(!p(C)){let R=k[k.length-1];if(R instanceof CustomElementRegistry)return R;C=R.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},u=A=>class{static get formAssociated(){return!0}constructor(){let R=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(R,HTMLElement.prototype);let B=h(R)||window.customElements,j=B._getDefinition(A);return j?S(R,j):a.set(R,B),R}connectedCallback(){let R=n.get(this);R?R.connectedCallback&&R.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,A,!0)}disconnectedCallback(){let R=n.get(this);R?R.disconnectedCallback&&R.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,A,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let R=n.get(this);R&&R.formAssociated&&R?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let R=n.get(this);R?.formAssociated&&R?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let R=n.get(this);R?.formAssociated&&R?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let R=n.get(this);R?.formAssociated&&R?.formStateRestoreCallback?.apply(this,arguments)}},g=(A,C,R)=>{if(C.size===0||R===void 0)return;let B=A.prototype.setAttribute;B&&(A.prototype.setAttribute=function(re,U){let y=re.toLowerCase();if(C.has(y)){let O=this.getAttribute(y);B.call(this,y,U),R.call(this,y,O,U)}else B.call(this,y,U)});let j=A.prototype.removeAttribute;j&&(A.prototype.removeAttribute=function(re){let U=re.toLowerCase();if(C.has(U)){let y=this.getAttribute(U);j.call(this,U),R.call(this,U,y,null)}else j.call(this,U)});let oe=A.prototype.toggleAttribute;oe&&(A.prototype.toggleAttribute=function(re,U){let y=re.toLowerCase();if(C.has(y)){let O=this.getAttribute(y);oe.call(this,y,U);let F=this.getAttribute(y);R.call(this,y,O,F)}else oe.call(this,y,U)})},x=A=>{let C=Object.getPrototypeOf(A);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(A,window.HTMLElement):x(C)},S=(A,C,R=!1)=>{Object.setPrototypeOf(A,C.elementClass.prototype),n.set(A,C),d=A;try{new C.elementClass}catch{x(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(B=>{A.hasAttribute(B)&&C.attributeChangedCallback.call(A,B,null,A.getAttribute(B))}),R&&C.connectedCallback&&A.isConnected&&C.connectedCallback.call(A)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(A){let C=E.apply(this,arguments);return A.customElements&&(C.customElements=A.customElements),C};let k=[document],P=(A,C,R=void 0)=>{let B=(R?Object.getPrototypeOf(R):A.prototype)[C];A.prototype[C]=function(){k.push(this);let j=B.apply(R||this,arguments);return j!==void 0&&l.set(j,this),k.pop(),j}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let I=(A,C)=>{let R=Object.getOwnPropertyDescriptor(A.prototype,C);Object.defineProperty(A.prototype,C,{...R,set(B){k.push(this),R.set.call(this,B),k.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let A=new WeakMap,C=HTMLElement.prototype.attachInternals,R=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...re){let U=C.call(this,...re);return A.set(U,this),U},R.forEach(re=>{let U=window.ElementInternals.prototype,y=U[re];U[re]=function(...O){let F=A.get(this);if(n.get(F).formAssociated===!0)return y?.call(this,...O);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class B extends Array{constructor(U){super(...U),this._elements=U}get value(){return this._elements.find(U=>U.checked===!0)?.value||""}}class j{constructor(U){let y=new Map;U.forEach((O,F)=>{let Y=O.getAttribute("name"),ie=y.get(Y)||[];this[+F]=O,ie.push(O),y.set(Y,ie)}),this.length=U.length,y.forEach((O,F)=>{O&&(O.length===1?this[F]=O[0]:this[F]=new B(O))})}namedItem(U){return this[U]}}let oe=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let re=oe.get.call(this,[]),U=[];for(let y of re){let O=n.get(y);(!O||O.formAssociated===!0)&&U.push(y)}return new j(U)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,i,n)=>{if(i!==null)try{e.bind(window.customElements)(t,i,n)}catch(a){console.info(t,i,n,a)}}}var un={};se(un,{CSSResult:()=>Ir,LitElement:()=>_t,ReactiveElement:()=>ut,_$LE:()=>jp,_$LH:()=>Wp,adoptStyles:()=>fi,css:()=>L,defaultConverter:()=>ui,getCompatibleStyle:()=>go,html:()=>w,isServer:()=>wh,noChange:()=>Wt,notEqual:()=>sn,nothing:()=>z,render:()=>fn,supportsAdoptingStyleSheets:()=>yo,svg:()=>zp,unsafeCSS:()=>Lt});var Jo=globalThis,ei=Jo.ShadowRoot&&(Jo.ShadyCSS===void 0||Jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ms=Symbol(),Ds=new WeakMap,Qo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ms)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ei&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Ds.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ds.set(t,e))}return e}toString(){return this.cssText}},Us=r=>new Qo(typeof r=="string"?r:r+"",void 0,Ms);var en=(r,e)=>{if(ei)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Jo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},ti=ei?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return Us(t)})(r):r;var{is:Op,defineProperty:Cp,getOwnPropertyDescriptor:Ep,getOwnPropertyNames:wp,getOwnPropertySymbols:Ap,getPrototypeOf:Rp}=Object,ri=globalThis,zs=ri.trustedTypes,$p=zs?zs.emptyScript:"",Lp=ri.reactiveElementPolyfillSupport,co=(r,e)=>r,po={toAttribute(r,e){switch(e){case Boolean:r=r?$p:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},oi=(r,e)=>!Op(r,e),Ws={attribute:!0,type:String,converter:po,reflect:!1,hasChanged:oi};Symbol.metadata??=Symbol("metadata"),ri.litPropertyMetadata??=new WeakMap;var sr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ws){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Cp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=Ep(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ws}static _$Ei(){if(this.hasOwnProperty(co("elementProperties")))return;let e=Rp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(co("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(co("properties"))){let t=this.properties,i=[...wp(t),...Ap(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(ti(n))}else e!==void 0&&t.push(ti(e));return t}static _$Eu(e,t){let i=t.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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.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 en(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t){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:po).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){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:po;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??oi)(n?a:this[e],t))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let 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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};sr.elementStyles=[],sr.shadowRootOptions={mode:"open"},sr[co("elementProperties")]=new Map,sr[co("finalized")]=new Map,Lp?.({ReactiveElement:sr}),(ri.reactiveElementVersions??=[]).push("2.0.2");var rn=globalThis,ii=rn.trustedTypes,Hs=ii?ii.createPolicy("lit-html",{createHTML:r=>r}):void 0,on="$lit$",$t=`lit$${(Math.random()+"").slice(9)}$`,nn="?"+$t,Np=`<${nn}>`,dr=document,ni=()=>dr.createComment(""),uo=r=>r===null||typeof r!="object"&&typeof r!="function",qs=Array.isArray,Ys=r=>qs(r)||typeof r?.[Symbol.iterator]=="function",tn=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gs=/'/g,Ks=/"/g,Xs=/^(?:script|style|textarea|title)$/i,Js=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Qs=Js(1),el=Js(2),Ze=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Zs=new WeakMap,cr=dr.createTreeWalker(dr,129);function tl(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hs!==void 0?Hs.createHTML(e):e}var rl=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":"",s=fo;for(let l=0;l<t;l++){let d=r[l],p,h,u=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===fo?h[1]==="!--"?s=Vs:h[1]!==void 0?s=js:h[2]!==void 0?(Xs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??fo,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?Ks:Gs):s===Ks||s===Gs?s=lr:s===Vs||s===js?s=fo:(s=lr,n=void 0);let x=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===fo?d+Np:u>=0?(i.push(p),d.slice(0,u)+on+d.slice(u)+$t+x):d+$t+(u===-2?l:x)}return[tl(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),i]},ho=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,h]=rl(e,t);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,t===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(on)){let g=h[s++],x=n.getAttribute(u).split($t),S=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?si:S[1]==="?"?li:S[1]==="@"?ci:fr}),n.removeAttribute(u)}else u.startsWith($t)&&(d.push({type:6,index:a}),n.removeAttribute(u));if(Xs.test(n.tagName)){let u=n.textContent.split($t),g=u.length-1;if(g>0){n.textContent=ii?ii.emptyScript:"";for(let x=0;x<g;x++)n.append(u[x],ni()),cr.nextNode(),d.push({type:2,index:++a});n.append(u[g],ni())}}}else if(n.nodeType===8)if(n.data===nn)d.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf($t,u+1))!==-1;)d.push({type:7,index:a}),u+=$t.length-1}a++}}static createElement(e,t){let i=dr.createElement("template");return i.innerHTML=e,i}};function pr(r,e,t=r,i){if(e===Ze)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=uo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=pr(r,n._$AS(r,e.values),n,i)),e}var ai=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??dr).importNode(t,!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 mo(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new di(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},mo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=pr(this,e,t),uo(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==Ze&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ys(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Se&&uo(this._$AH)?this._$AA.nextSibling.data=e:this.$(dr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ho.createElement(tl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ai(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Zs.get(e.strings);return t===void 0&&Zs.set(e.strings,t=new ho(e)),t}T(e){qs(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.k(ni()),this.k(ni()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},fr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=t,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=Se}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=pr(this,e,t,0),s=!uo(e)||e!==this._$AH&&e!==Ze,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],t,d),p===Ze&&(p=this._$AH[d]),s||=!uo(p)||p!==this._$AH[d],p===Se?e=Se:e!==Se&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},si=class extends fr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===Se?void 0:e}},li=class extends fr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}},ci=class extends fr{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=pr(this,e,t,0)??Se)===Ze)return;let i=this._$AH,n=e===Se&&i!==Se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Se&&(i===Se||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)}},di=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pr(this,e)}},ol={j:on,P:$t,A:nn,C:1,M:rl,L:ai,R:Ys,V:pr,D:mo,I:fr,H:li,N:ci,U:si,B:di},_p=rn.litHtmlPolyfillSupport;_p?.(ho,mo),(rn.litHtmlVersions??=[]).push("3.1.0");var pi=globalThis,yo=pi.ShadowRoot&&(pi.ShadyCSS===void 0||pi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,an=Symbol(),il=new WeakMap,Ir=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==an)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(yo&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=il.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&il.set(t,e))}return e}toString(){return this.cssText}},Lt=r=>new Ir(typeof r=="string"?r:r+"",void 0,an),L=(r,...e)=>{let t=r.length===1?r[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)+r[a+1],r[0]);return new Ir(t,r,an)},fi=(r,e)=>{if(yo)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=pi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},go=yo?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return Lt(t)})(r):r;var{is:kp,defineProperty:Pp,getOwnPropertyDescriptor:Ip,getOwnPropertyNames:Tp,getOwnPropertySymbols:Bp,getPrototypeOf:Fp}=Object,hi=globalThis,nl=hi.trustedTypes,Dp=nl?nl.emptyScript:"",Mp=hi.reactiveElementPolyfillSupport,bo=(r,e)=>r,ui={toAttribute(r,e){switch(e){case Boolean:r=r?Dp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},sn=(r,e)=>!kp(r,e),al={attribute:!0,type:String,converter:ui,reflect:!1,hasChanged:sn};Symbol.metadata??=Symbol("metadata"),hi.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,t=al){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Pp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=Ip(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??al}static _$Ei(){if(this.hasOwnProperty(bo("elementProperties")))return;let e=Fp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(bo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bo("properties"))){let t=this.properties,i=[...Tp(t),...Bp(t)];for(let n of i)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[i,n]of t)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let n=this._$Eu(t,i);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)t.unshift(go(n))}else e!==void 0&&t.push(go(e));return t}static _$Eu(e,t){let i=t.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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let i of t.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 fi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t){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:ui).toAttribute(t,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){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:ui;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??sn)(n?a:this[e],t))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let 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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};ut.elementStyles=[],ut.shadowRootOptions={mode:"open"},ut[bo("elementProperties")]=new Map,ut[bo("finalized")]=new Map,Mp?.({ReactiveElement:ut}),(hi.reactiveElementVersions??=[]).push("2.0.2");var cn=globalThis,mi=cn.trustedTypes,sl=mi?mi.createPolicy("lit-html",{createHTML:r=>r}):void 0,dn="$lit$",Nt=`lit$${(Math.random()+"").slice(9)}$`,pn="?"+Nt,Up=`<${pn}>`,mr=document,xo=()=>mr.createComment(""),So=r=>r===null||typeof r!="object"&&typeof r!="function",ul=Array.isArray,hl=r=>ul(r)||typeof r?.[Symbol.iterator]=="function",ln=`[
|
|
5
|
-
\f\r]`,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dl=/'/g,pl=/"/g,ml=/^(?:script|style|textarea|title)$/i,yl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),w=yl(1),zp=yl(2),Wt=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),fl=new WeakMap,hr=mr.createTreeWalker(mr,129);function gl(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return sl!==void 0?sl.createHTML(e):e}var bl=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":"",s=vo;for(let l=0;l<t;l++){let d=r[l],p,h,u=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===vo?h[1]==="!--"?s=ll:h[1]!==void 0?s=cl:h[2]!==void 0?(ml.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=ur):h[3]!==void 0&&(s=ur):s===ur?h[0]===">"?(s=n??vo,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ur:h[3]==='"'?pl:dl):s===pl||s===dl?s=ur:s===ll||s===cl?s=vo:(s=ur,n=void 0);let x=s===ur&&r[l+1].startsWith("/>")?" ":"";a+=s===vo?d+Up:u>=0?(i.push(p),d.slice(0,u)+dn+d.slice(u)+Nt+x):d+Nt+(u===-2?l:x)}return[gl(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),i]},Oo=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,h]=bl(e,t);if(this.el=r.createElement(p,i),hr.currentNode=this.el.content,t===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=hr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(dn)){let g=h[s++],x=n.getAttribute(u).split(Nt),S=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?gi:S[1]==="?"?bi:S[1]==="@"?vi:gr}),n.removeAttribute(u)}else u.startsWith(Nt)&&(d.push({type:6,index:a}),n.removeAttribute(u));if(ml.test(n.tagName)){let u=n.textContent.split(Nt),g=u.length-1;if(g>0){n.textContent=mi?mi.emptyScript:"";for(let x=0;x<g;x++)n.append(u[x],xo()),hr.nextNode(),d.push({type:2,index:++a});n.append(u[g],xo())}}}else if(n.nodeType===8)if(n.data===pn)d.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(Nt,u+1))!==-1;)d.push({type:7,index:a}),u+=Nt.length-1}a++}}static createElement(e,t){let i=mr.createElement("template");return i.innerHTML=e,i}};function yr(r,e,t=r,i){if(e===Wt)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=So(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,i)),i!==void 0?(t._$Co??=[])[i]=n:t._$Cl=n),n!==void 0&&(e=yr(r,n._$AS(r,e.values),n,i)),e}var yi=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,n=(e?.creationScope??mr).importNode(t,!0);hr.currentNode=n;let a=hr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Tr(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new xi(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=hr.nextNode(),s++)}return hr.currentNode=mr,n}p(e){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},Tr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=yr(this,e,t),So(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Wt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):hl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&So(this._$AH)?this._$AA.nextSibling.data=e:this.$(mr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Oo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new yi(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=fl.get(e.strings);return t===void 0&&fl.set(e.strings,t=new Oo(e)),t}T(e){ul(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,n=0;for(let a of e)n===t.length?t.push(i=new r(this.k(xo()),this.k(xo()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,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=z}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=yr(this,e,t,0),s=!So(e)||e!==this._$AH&&e!==Wt,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=yr(this,l[i+d],t,d),p===Wt&&(p=this._$AH[d]),s||=!So(p)||p!==this._$AH[d],p===z?e=z:e!==z&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gi=class extends gr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},bi=class extends gr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},vi=class extends gr{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=yr(this,e,t,0)??z)===Wt)return;let i=this._$AH,n=e===z&&i!==z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==z&&(i===z||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)}},xi=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){yr(this,e)}},Wp={j:dn,P:Nt,A:pn,C:1,M:bl,L:yi,R:hl,V:yr,D:Tr,I:gr,H:bi,N:vi,U:gi,B:xi},Hp=cn.litHtmlPolyfillSupport;Hp?.(Oo,Tr),(cn.litHtmlVersions??=[]).push("3.1.0");var fn=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new Tr(e.insertBefore(xo(),a),a,void 0,t??{})}return n._$AI(r),n};var _t=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 t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=fn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Wt}};_t._$litElement$=!0,_t.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:_t});var Vp=globalThis.litElementPolyfillSupport;Vp?.({LitElement:_t});var jp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var wh=!1;var gn={};se(gn,{customElement:()=>Gp,eventOptions:()=>Br,property:()=>m,query:()=>D,queryAll:()=>hn,queryAssignedElements:()=>mn,queryAssignedNodes:()=>yn,queryAsync:()=>qp,standardProperty:()=>vl,state:()=>W});var Gp=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Kp={attribute:!0,type:String,converter:po,reflect:!1,hasChanged:oi},vl=(r=Kp,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(t.name,r),i==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function m(r){return(e,t)=>typeof t=="object"?vl(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}function W(r){return m({...r,state:!0,attribute:!1})}function Br(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var at=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function D(r,e){return(t,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof i=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return at(t,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return at(t,i,{get(){return a(this)}})}}var Zp;function hn(r){return(e,t)=>at(e,t,{get(){return(this.renderRoot??(Zp??=document.createDocumentFragment())).querySelectorAll(r)}})}function qp(r){return(e,t)=>at(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function mn(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return at(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function yn(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return at(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var bn={};se(bn,{repeat:()=>Le});var Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vt=r=>(...e)=>({_$litDirective$:r,values:e}),ht=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Yp}=ol;var xl=()=>document.createComment(""),Fr=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(xl(),n),s=i.insertBefore(xl(),n);t=new Yp(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return t},jt=(r,e,t=r)=>(r._$AI(e,t),r),Xp={},Sl=(r,e=Xp)=>r._$AH=e,Ol=r=>r._$AH,Si=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let i=e.nextSibling;e.remove(),e=i}};var Cl=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Le=Vt(class extends ht{constructor(r){if(super(r),r.type!==Ht.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,i]){let n=Ol(r),{values:a,keys:s}=this.ht(e,t,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,h,u=0,g=n.length-1,x=0,S=a.length-1;for(;u<=g&&x<=S;)if(n[u]===null)u++;else if(n[g]===null)g--;else if(l[u]===s[x])d[x]=jt(n[u],a[x]),u++,x++;else if(l[g]===s[S])d[S]=jt(n[g],a[S]),g--,S--;else if(l[u]===s[S])d[S]=jt(n[u],a[S]),Fr(r,d[S+1],n[u]),u++,S--;else if(l[g]===s[x])d[x]=jt(n[g],a[x]),Fr(r,n[u],n[g]),g--,x++;else if(p===void 0&&(p=Cl(s,x,S),h=Cl(l,u,g)),p.has(l[u]))if(p.has(l[g])){let E=h.get(s[x]),k=E!==void 0?n[E]:null;if(k===null){let P=Fr(r,n[u]);jt(P,a[x]),d[x]=P}else d[x]=jt(k,a[x]),Fr(r,n[u],k),n[E]=null;x++}else Si(n[g]),g--;else Si(n[u]),u++;for(;x<=S;){let E=Fr(r,d[S+1]);jt(E,a[x]),d[x++]=E}for(;u<=g;){let E=n[u++];E!==null&&Si(E)}return this.dt=s,Sl(r,d),Ze}});var vn={};se(vn,{classMap:()=>pe});var pe=Vt(class extends ht{constructor(r){if(super(r),r.type!==Ht.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.it)i in e||(t.remove(i),this.it.delete(i));for(let i in e){let n=!!e[i];n===this.it.has(i)||this.st?.has(i)||(n?(t.add(i),this.it.add(i)):(t.remove(i),this.it.delete(i)))}return Ze}});var xn={};se(xn,{styleMap:()=>Qp});var El="important",Jp=" !"+El,Qp=Vt(class extends ht{constructor(r){if(super(r),r.type!==Ht.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let i=r[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let i of this.ut)e[i]==null&&(this.ut.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(Jp);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?El:""):t[i]=n}}return Ze}});var On={};se(On,{UnsafeHTMLDirective:()=>Dr,unsafeHTML:()=>Sn});var Dr=class extends ht{constructor(e){if(super(e),this.et=Se,e.type!==Ht.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Se||e==null)return this.vt=void 0,this.et=e;if(e===Ze)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Dr.directiveName="unsafeHTML",Dr.resultType=1;var Sn=Vt(Dr);var Ln={};se(Ln,{CacheRegistry:()=>mt,ClearCacheEvent:()=>Eo});var En={};se(En,{CancelablePromise:()=>Mr,CanceledPromiseError:()=>Co,cancelable:()=>Cn});var Co=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Mr=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new Co("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new Co("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Cn=r=>new Mr((e,t)=>r.then(e).catch(t));var $n={};se($n,{FtNotificationEvent:()=>wn,PostResizeEvent:()=>Rn,PreResizeEvent:()=>An,WithEventBus:()=>br,withEventBus:()=>wl});var wn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},An=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Rn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function wl(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,i,n){this.eventBus.addEventListener(t,i,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,i,n){this.eventBus.removeEventListener(t,i,n)}}}var br=class extends wl(Object){};var Eo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},mt=class extends br{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(e=!0){let t=[];for(let i in this.content)this.clear(i,!1)!=null&&t.push(i);e&&t.length>0&&this.dispatchEvent(new Eo(t))}clear(e,t=!0){if(!this.finalContent.has(e))return this.forceClear(e),t&&this.dispatchEvent(new Eo([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Mr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,i){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let n=Cn(t());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 _n={};se(_n,{ClusteringHelper:()=>Nn});var Nn=class r{constructor(e,t,i,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var t,i,n,a,s;let l=((a=(i=(t=e.result)===null||t===void 0?void 0:t.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?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,i){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,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(" > ")),t&&t>1&&l.length>=t?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,t,i="No value",n,a){var s,l;let d=r.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(u=>r.extractResultMetadata({result:u,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(u=>u??{key:e,label:p,value:void 0,displayValue:i}).filter(u=>u.value!=d?.value).filter((u,g,x)=>x.findIndex(S=>S.value===u.value)===g).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,g)=>this.compareMetadata(u.metadata.value,g.metadata.value,e,t))}compareMetadata(e,t,i,n){if(e==null)return-1;if(t==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(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),a=[...r.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,t){return r.extractResultMetadata({result:e}).filter(i=>t.some(n=>n.key===i.key&&n.value===i.value)).length}};var kn={};se(kn,{Debouncer:()=>ce});var ce=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,i)=>{this.resolvePromise=t,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of 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 Tn={};se(Tn,{customElement:()=>H,isNumber:()=>Rl,jsonProperty:()=>ke,optionalNumberProperty:()=>af});var In={};se(In,{dateReviver:()=>tf,deepEqual:()=>De,delay:()=>Oi,eventPathContainsMatchingElement:()=>of,flatDeep:()=>qe,getComposedPathTo:()=>Pn,hasChanged:()=>vr,last:()=>nf,minmax:()=>wo,parseDate:()=>Al,unslotText:()=>Ur,waitFor:()=>Ci,waitUntil:()=>ef});var Oi=r=>new Promise(e=>setTimeout(e,r));async function ef(r,e=10,t=2e4){await Ci(async()=>await r()||void 0,e,t)}async function Ci(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await Oi(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function qe(r,e){return r.flatMap(t=>[t,...qe(e(t),e)])}function tf(...r){return function(e,t){return r.includes(e)?Al(t):t}}function Al(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,i,n)=>t+i+":"+n),new Date(r)}function rf(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!De(r[i],e[i]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;for(i of r.entries())if(!De(i[1],e.get(i[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(i of r.entries())if(!e.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(r),t=n.length,t!==a(e).length)return!1;for(i=t;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=t;i--!==0;){let s=n[i];if(!De(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function De(r,e){try{return rf(r,e)}catch{return!1}}function vr(r,e){return!De(r,e)}function of(r,e,t=window.document.body){if(e.length>0){let i=r.composedPath();for(let n of i){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function wo(r,e,t){return Math.min(Math.max(r,e),t)}function nf(r){return r[r.length-1]}function Ur(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Ur(e)).join(""):r?.textContent||""}function Pn(r){let e=[],t=i=>{i.stopPropagation(),e=i.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}var H=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function ke(r,e){let t=()=>JSON.parse(JSON.stringify(r));return m({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:vr,...e??{}})}function af(r){return m({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Rl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function Rl(r){return!isNaN(parseFloat(r))}var da={};se(da,{designSystemVariables:()=>$});var ca={};se(ca,{DesignSystemFamily:()=>Pt,DesignSystemSize:()=>Ne,FtCssVariableFactory:()=>o,badge:()=>pf,banner:()=>df,button:()=>b,chart:()=>Rf,checkbox:()=>Nf,chip:()=>X,chipChoice:()=>lf,collapsible:()=>wf,comboboxMultiSelect:()=>Cf,comboboxSingleSelect:()=>Of,drawer:()=>gf,floatingMenu:()=>Sf,foundation:()=>c,link:()=>cf,modal:()=>yf,notice:()=>Lf,notification:()=>Pf,pageDesigner:()=>$f,pageFooter:()=>hf,pageHeader:()=>uf,pageLayout:()=>mf,popover:()=>Ef,radio:()=>kf,reorderableList:()=>Tf,resolveFamilyClass:()=>sa,resolveSizeClass:()=>la,semantic:()=>f,setVariable:()=>v,switch_:()=>Af,tabs:()=>bf,textArea:()=>xf,textInput:()=>vf,titleBreadcrumb:()=>ff,toggle:()=>_f,tooltip:()=>If,typographies:()=>Ao,typographyBody1Medium:()=>zn,typographyBody1Regular:()=>Un,typographyBody1Semibold:()=>Wn,typographyBody2Medium:()=>Vn,typographyBody2MediumUnderline:()=>$l,typographyBody2Regular:()=>Hn,typographyBody2Semibold:()=>jn,typographyCaption1Bold:()=>ea,typographyCaption1Medium:()=>Jn,typographyCaption1Semibold:()=>Qn,typographyCaption2Bold:()=>oa,typographyCaption2Medium:()=>ta,typographyCaption2Semibold:()=>ra,typographyCaption3Bold:()=>aa,typographyCaption3Medium:()=>ia,typographyCaption3Semibold:()=>na,typographyDisplay:()=>Bn,typographyLabel1Bold:()=>Zn,typographyLabel1Medium:()=>Gn,typographyLabel1Semibold:()=>Kn,typographyLabel2Bold:()=>Xn,typographyLabel2Medium:()=>qn,typographyLabel2Semibold:()=>Yn,typographyTitle1:()=>Fn,typographyTitle2:()=>Dn,typographyTitle3:()=>Mn,typographyVariants:()=>sf});var kt=r=>typeof r=="string"?Lt(r):r,o=class{static create(e,t,i,n){let a=l=>kt(l??n),s=L`var(${kt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${kt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=L`var(${kt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${kt(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):kt(a??e.lastResortDefaultValue()),n=L`var(${kt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=i,n.get=a=>L`var(${kt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function v(r,e){return kt(`${r.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"),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)")},Bn={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")},Fn={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")},Dn={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")},Mn={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")},Un={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")},zn={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")},Wn={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")},Hn={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")},Vn={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")},$l={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")},jn={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")},Gn={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")},Kn={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")},Zn={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")},qn={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")},Yn={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")},Xn={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")},Jn={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")},Qn={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")},ea={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")},ta={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},Ao={display:Bn,"title-1":Fn,"title-2":Dn,"title-3":Mn,"body-1-regular":Un,"body-1-medium":zn,"body-1-semibold":Wn,"body-2-regular":Hn,"body-2-medium":Vn,"body-2-medium-underline":$l,"body-2-semibold":jn,"label-1-medium":Gn,"label-1-semibold":Kn,"label-1-bold":Zn,"label-2-medium":qn,"label-2-semibold":Yn,"label-2-bold":Xn,"caption-1-medium":Jn,"caption-1-semibold":Qn,"caption-1-bold":ea,"caption-2-medium":ta,"caption-2-semibold":ra,"caption-2-bold":oa,"caption-3-medium":ia,"caption-3-semibold":na,"caption-3-bold":aa},sf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary: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","",f.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",f.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",f.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",f.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","",f.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",f.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",f.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",f.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","",f.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",f.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",f.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","",f.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",f.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",f.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","",f.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",f.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",f.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",f.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","",f.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",f.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",f.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","",f.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",f.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",f.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","",f.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","",f.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",f.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",f.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",f.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","",f.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",f.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",f.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",f.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","",f.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",f.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",f.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",f.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","",f.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",f.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",f.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",f.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",f.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",f.contentErrorPrimary)};var lf={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","",f.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","",f.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.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","",f.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","",f.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.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 X={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","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var cf={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",f.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var df={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var pf={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var ff={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",f.contentGlobalSubtle)};var uf={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","",f.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",f.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","",f.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var hf={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","",f.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var mf={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var yf={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",f.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 gf={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.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 bf={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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.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","",f.borderActionFocusRing)};var vf={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","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var xf={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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 Sf={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","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.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","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Of={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","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.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 Cf={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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 Ef={backgroundColor:o.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.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 wf={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Af={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","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Rf={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 $f={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 Lf={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","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.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 Nf={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.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","",f.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 _f={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","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var kf={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.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","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.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","",f.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 Pf={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.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 If={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.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 Tf={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","",f.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","",f.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","",f.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","",f.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",f.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",f.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","",f.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",f.backgroundGlobalOnSurfaceDark)};var Pt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Pt||(Pt={}));var Ne;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ne||(Ne={}));function sa(r){return`ftds--family-${r}`}function la(r){return`ftds--size-${r}`}var $={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Aa={};se(Aa,{computeFlipOffsetPosition:()=>wa,computeOffsetPosition:()=>Ea});var Nl=["top","right","bottom","left"],Ll=["start","end"],pa=Nl.reduce((r,e)=>r.concat(e,e+"-"+Ll[0],e+"-"+Ll[1]),[]),Lo=Math.min,Gt=Math.max,No=Math.round;var It=r=>({x:r,y:r}),Bf={left:"right",right:"left",bottom:"top",top:"bottom"},Ff={start:"end",end:"start"};function fa(r,e,t){return Gt(r,Lo(e,t))}function zr(r,e){return typeof r=="function"?r(e):r}function yt(r){return r.split("-")[0]}function gt(r){return r.split("-")[1]}function ua(r){return r==="x"?"y":"x"}function ha(r){return r==="y"?"height":"width"}function _o(r){return["top","bottom"].includes(yt(r))?"y":"x"}function ma(r){return ua(_o(r))}function ya(r,e,t){t===void 0&&(t=!1);let i=gt(r),n=ma(r),a=ha(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=$o(s)),[s,$o(s)]}function _l(r){let e=$o(r);return[Ro(r),e,Ro(e)]}function Ro(r){return r.replace(/start|end/g,e=>Ff[e])}function Df(r,e,t){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return t?e?n:i:e?i:n;case"left":case"right":return e?a:s;default:return[]}}function kl(r,e,t,i){let n=gt(r),a=Df(yt(r),t==="start",i);return n&&(a=a.map(s=>s+"-"+n),e&&(a=a.concat(a.map(Ro)))),a}function $o(r){return r.replace(/left|right|bottom|top/g,e=>Bf[e])}function Mf(r){return{top:0,right:0,bottom:0,left:0,...r}}function Pl(r){return typeof r!="number"?Mf(r):{top:r,right:r,bottom:r,left:r}}function xr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Il(r,e,t){let{reference:i,floating:n}=r,a=_o(e),s=ma(e),l=ha(s),d=yt(e),p=a==="y",h=i.x+i.width/2-n.width/2,u=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,x;switch(d){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:u};break;case"left":x={x:i.x-n.width,y:u};break;default:x={x:i.x,y:i.y}}switch(gt(e)){case"start":x[s]-=g*(t&&p?-1:1);break;case"end":x[s]+=g*(t&&p?-1:1);break}return x}var Tl=async(r,e,t)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:h,y:u}=Il(p,i,d),g=i,x={},S=0;for(let E=0;E<l.length;E++){let{name:k,fn:P}=l[E],{x:I,y:A,data:C,reset:R}=await P({x:h,y:u,initialPlacement:i,placement:g,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:r,floating:e}});if(h=I??h,u=A??u,x={...x,[k]:{...x[k],...C}},R&&S<=50){S++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(p=R.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):R.rects),{x:h,y:u}=Il(p,g,d)),E=-1;continue}}return{x:h,y:u,placement:g,strategy:n,middlewareData:x}};async function Ei(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:g=!1,padding:x=0}=zr(e,r),S=Pl(x),k=l[g?u==="floating"?"reference":"floating":u],P=xr(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(k)))==null||t?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),I=u==="floating"?{...s.floating,x:i,y:n}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},R=xr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:A,strategy:d}):I);return{top:(P.top-R.top+S.top)/C.y,bottom:(R.bottom-P.bottom+S.bottom)/C.y,left:(P.left-R.left+S.left)/C.x,right:(R.right-P.right+S.right)/C.x}}function Uf(r,e,t){return(r?[...t.filter(n=>gt(n)===r),...t.filter(n=>gt(n)!==r)]:t.filter(n=>yt(n)===n)).filter(n=>r?gt(n)===r||(e?Ro(n)!==n:!1):!0)}var ga=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:h=!1,alignment:u,allowedPlacements:g=pa,autoAlignment:x=!0,...S}=zr(r,e),E=u!==void 0||g===pa?Uf(u||null,x,g):g,k=await Ei(e,S),P=((t=s.autoPlacement)==null?void 0:t.index)||0,I=E[P];if(I==null)return{};let A=ya(I,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==I)return{reset:{placement:E[0]}};let C=[k[yt(I)],k[A[0]],k[A[1]]],R=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:C}],B=E[P+1];if(B)return{data:{index:P+1,overflows:R},reset:{placement:B}};let j=R.map(U=>{let y=gt(U.placement);return[U.placement,y&&h?U.overflows.slice(0,2).reduce((O,F)=>O+F,0):U.overflows[0],U.overflows]}).sort((U,y)=>U[1]-y[1]),re=((n=j.filter(U=>U[2].slice(0,gt(U[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||j[0][0];return re!==l?{data:{index:P+1,overflows:R},reset:{placement:re}}:{}}}},ba=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=e,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...k}=zr(r,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let P=yt(n),I=yt(l)===l,A=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=g||(I||!E?[$o(l)]:_l(l));!g&&S!=="none"&&C.push(...kl(l,E,S,A));let R=[l,...C],B=await Ei(e,k),j=[],oe=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&j.push(B[P]),u){let O=ya(n,s,A);j.push(B[O[0]],B[O[1]])}if(oe=[...oe,{placement:n,overflows:j}],!j.every(O=>O<=0)){var re,U;let O=(((re=a.flip)==null?void 0:re.index)||0)+1,F=R[O];if(F)return{data:{index:O,overflows:oe},reset:{placement:F}};let Y=(U=oe.filter(ie=>ie.overflows[0]<=0).sort((ie,Z)=>ie.overflows[1]-Z.overflows[1])[0])==null?void 0:U.placement;if(!Y)switch(x){case"bestFit":{var y;let ie=(y=oe.map(Z=>[Z.placement,Z.overflows.filter(ft=>ft>0).reduce((ft,lo)=>ft+lo,0)]).sort((Z,ft)=>Z[1]-ft[1])[0])==null?void 0:y[0];ie&&(Y=ie);break}case"initialPlacement":Y=l;break}if(n!==Y)return{reset:{placement:Y}}}return{}}}};async function zf(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=yt(t),l=gt(t),d=_o(t)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=zr(e,r),{mainAxis:g,crossAxis:x,alignmentAxis:S}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof S=="number"&&(x=l==="end"?S*-1:S),d?{x:x*h,y:g*p}:{x:g*p,y:x*h}}var va=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await zf(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},xa=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:k=>{let{x:P,y:I}=k;return{x:P,y:I}}},...d}=zr(r,e),p={x:t,y:i},h=await Ei(e,d),u=_o(yt(n)),g=ua(u),x=p[g],S=p[u];if(a){let k=g==="y"?"top":"left",P=g==="y"?"bottom":"right",I=x+h[k],A=x-h[P];x=fa(I,x,A)}if(s){let k=u==="y"?"top":"left",P=u==="y"?"bottom":"right",I=S+h[k],A=S-h[P];S=fa(I,S,A)}let E=l.fn({...e,[g]:x,[u]:S});return{...E,data:{x:E.x-t,y:E.y-i}}}}};function Tt(r){return Fl(r)?(r.nodeName||"").toLowerCase():"#document"}function He(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Bt(r){var e;return(e=(Fl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Fl(r){return r instanceof Node||r instanceof He(r).Node}function bt(r){return r instanceof Element||r instanceof He(r).Element}function st(r){return r instanceof HTMLElement||r instanceof He(r).HTMLElement}function Bl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof He(r).ShadowRoot}function Wr(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=Ye(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function Dl(r){return["table","td","th"].includes(Tt(r))}function Ai(r){let e=Ri(),t=Ye(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function Ml(r){let e=Sr(r);for(;st(e)&&!ko(e);){if(Ai(e))return e;e=Sr(e)}return null}function Ri(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(r){return["html","body","#document"].includes(Tt(r))}function Ye(r){return He(r).getComputedStyle(r)}function Po(r){return bt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Sr(r){if(Tt(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Bl(r)&&r.host||Bt(r);return Bl(e)?e.host:e}function Ul(r){let e=Sr(r);return ko(e)?r.ownerDocument?r.ownerDocument.body:r.body:st(e)&&Wr(e)?e:Ul(e)}function wi(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=Ul(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=He(n);return a?e.concat(s,s.visualViewport||[],Wr(n)?n:[],s.frameElement&&t?wi(s.frameElement):[]):e.concat(n,wi(n,[],t))}function Hl(r){let e=Ye(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=st(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=No(t)!==a||No(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function Vl(r){return bt(r)?r:r.contextElement}function Hr(r){let e=Vl(r);if(!st(e))return It(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=Hl(e),s=(a?No(t.width):t.width)/i,l=(a?No(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Wf=It(0);function jl(r){let e=He(r);return!Ri()||!e.visualViewport?Wf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hf(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==He(r)?!1:e}function Io(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Vl(r),s=It(1);e&&(i?bt(i)&&(s=Hr(i)):s=Hr(r));let l=Hf(a,t,i)?jl(a):It(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,u=n.height/s.y;if(a){let g=He(a),x=i&&bt(i)?He(i):i,S=g.frameElement;for(;S&&i&&x!==g;){let E=Hr(S),k=S.getBoundingClientRect(),P=Ye(S),I=k.left+(S.clientLeft+parseFloat(P.paddingLeft))*E.x,A=k.top+(S.clientTop+parseFloat(P.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,u*=E.y,d+=I,p+=A,S=He(S).frameElement}}return xr({width:h,height:u,x:d,y:p})}function Vf(r){let{rect:e,offsetParent:t,strategy:i}=r,n=st(t),a=Bt(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=It(1),d=It(0);if((n||!n&&i!=="fixed")&&((Tt(t)!=="body"||Wr(a))&&(s=Po(t)),st(t))){let p=Io(t);l=Hr(t),d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function jf(r){return Array.from(r.getClientRects())}function Gl(r){return Io(Bt(r)).left+Po(r).scrollLeft}function Gf(r){let e=Bt(r),t=Po(r),i=r.ownerDocument.body,n=Gt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Gt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+Gl(r),l=-t.scrollTop;return Ye(i).direction==="rtl"&&(s+=Gt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Kf(r,e){let t=He(r),i=Bt(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ri();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Zf(r,e){let t=Io(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=st(r)?Hr(r):It(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function zl(r,e,t){let i;if(e==="viewport")i=Kf(r,t);else if(e==="document")i=Gf(Bt(r));else if(bt(e))i=Zf(e,t);else{let n=jl(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return xr(i)}function Kl(r,e){let t=Sr(r);return t===e||!bt(t)||ko(t)?!1:Ye(t).position==="fixed"||Kl(t,e)}function qf(r,e){let t=e.get(r);if(t)return t;let i=wi(r,[],!1).filter(l=>bt(l)&&Tt(l)!=="body"),n=null,a=Ye(r).position==="fixed",s=a?Sr(r):r;for(;bt(s)&&!ko(s);){let l=Ye(s),d=Ai(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wr(s)&&!d&&Kl(r,s))?i=i.filter(h=>h!==s):n=l,s=Sr(s)}return e.set(r,i),i}function Yf(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?qf(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((p,h)=>{let u=zl(e,h,n);return p.top=Gt(u.top,p.top),p.right=Lo(u.right,p.right),p.bottom=Lo(u.bottom,p.bottom),p.left=Gt(u.left,p.left),p},zl(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Xf(r){return Hl(r)}function Jf(r,e,t){let i=st(e),n=Bt(e),a=t==="fixed",s=Io(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=It(0);if(i||!i&&!a)if((Tt(e)!=="body"||Wr(n))&&(l=Po(e)),i){let p=Io(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else n&&(d.x=Gl(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Wl(r,e){return!st(r)||Ye(r).position==="fixed"?null:e?e(r):r.offsetParent}function Zl(r,e){let t=He(r);if(!st(r))return t;let i=Wl(r,e);for(;i&&Dl(i)&&Ye(i).position==="static";)i=Wl(i,e);return i&&(Tt(i)==="html"||Tt(i)==="body"&&Ye(i).position==="static"&&!Ai(i))?t:i||Ml(r)||t}var Qf=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||Zl,a=this.getDimensions;return{reference:Jf(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};function eu(r){return Ye(r).direction==="rtl"}var Vr={convertOffsetParentRelativeRectToViewportRelativeRect:Vf,getDocumentElement:Bt,getClippingRect:Yf,getOffsetParent:Zl,getElementRects:Qf,getClientRects:jf,getDimensions:Xf,getScale:Hr,isElement:bt,isRTL:eu};var Sa=(r,e,t)=>{let i=new Map,n={platform:Vr,...t},a={...n.platform,_c:i};return Tl(r,e,{...n,platform:a})};function Ca(r){return tu(r)}function Oa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function tu(r){for(let e=r;e;e=Oa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oa(r);e;e=Oa(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Ea(r,e,t){return Sa(r,e,{platform:{...Vr,getOffsetParent:i=>Vr.getOffsetParent(i,Ca)},middleware:[xa({crossAxis:!0}),ga({allowedPlacements:[t]})]})}async function wa(r,e,t,i,n,a=4){return Sa(r,e,{placement:t,strategy:n,platform:{...Vr,getOffsetParent:s=>Vr.getOffsetParent(s,Ca)},middleware:[va(a),ba({fallbackPlacements:i})]})}var La={};se(La,{FtdsBase:()=>Bo,toFtdsBase:()=>Ni});var $a={};se($a,{FtLitElement:()=>M});var Ra={};se(Ra,{ScopedRegistryLitElement:()=>To});var $i=window,ru=$i.ShadowRoot&&($i.ShadyCSS===void 0||$i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jb=Symbol();var ql=(r,e)=>{ru?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let i=document.createElement("style"),n=$i.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)})};var To=class extends _t{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(t);return ql(i,e.elementStyles),i}};var Li=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ql,Yl=Symbol("constructorPrototype"),Xl=Symbol("constructorName"),ec=Symbol("exportpartsDebouncer"),Jl=Symbol("dynamicDependenciesLoaded"),M=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ql]=new ce(5),this[Xl]=this.constructor.name,this[Yl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xl]&&Object.setPrototypeOf(this,this[Yl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[Jl]||(e[Jl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,i,n;if(((i=(t=this.shadowRoot)===null||t===void 0?void 0:t.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,t,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&i!==void 0&&i)&&this[ec].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...S).filter(d).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let u=[...h.values()].flatMap(g=>p.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...u].join(", "))}};Ql=ec;Li([m()],M.prototype,"exportpartsPrefix",void 0);Li([ke([])],M.prototype,"exportpartsPrefixes",void 0);Li([m()],M.prototype,"customStylesheet",void 0);Li([W()],M.prototype,"useAdoptedStyleSheets",void 0);var tc=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};function Ni(r){class e extends r{constructor(){super(...arguments),this.size=Ne.medium,this.family=Pt.neutral}getDesignSystemBaseClasses(){return{[sa(this.family)]:!0,[la(this.size)]:!0}}}return tc([m()],e.prototype,"size",void 0),tc([m()],e.prototype,"family",void 0),e}var Bo=class extends Ni(M){};var rc={};var ka={};se(ka,{highlightHtml:()=>_a,highlightHtmlColorCssVariable:()=>oc,highlightHtmlStyles:()=>iu});var Or=class r{constructor(e,t=!0,i=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=i,this.iframesTimeout=n}static matches(e,t){let i=typeof t=="string"?[t]:t,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,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=t.filter(a=>a.contains(i)).length>0;t.indexOf(i)===-1&&!n&&t.push(i)}),t}getIframeContents(e,t,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&t(n)}isIframeBlank(e){let t="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&i!==t&&i}observeIframeLoad(e,t,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,i):this.getIframeContents(e,t,i):this.observeIframeLoad(e,t,i)}catch{i()}}waitForIframes(e,t){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||t()})},n=>{n||t()})}forEachIframe(e,t,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=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{t(p)&&(l++,i(h)),d()},d)})}createIterator(e,t,i){return document.createNodeIterator(e,t,i,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),i;return t===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:t,node:i}}checkIframeFilter(e,t,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,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,t,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,i,n)})})}iterateThroughNodes(e,t,i,n,a){let s=this.createIterator(t,e,n),l=[],d=[],p,h,u=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;u();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,x=>d.push(x),n)}),d.push(p);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,t,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Fo=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Or(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[t]=="function"&&i[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),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,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&t.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):i.trim()&&t.indexOf(i)===-1&&t.push(i)}),{keywords:t.sort((i,n)=>n.length-i.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],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,t.push(n),i=s)}),t}callNoMatchOnInvalidRanges(e,t){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-t>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,t,i){let n,a=!0,s=i.length,l=t-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 t="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:i})})}matchesExclude(e){return Or.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(i-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let p=t-s.start,h=(i>s.end?s.end:i)-s.start,u=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=u+g,e.nodes.forEach((x,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)t=s.end;else return!1}return!0})}wrapMatches(e,t,i,n,a){let s=t===0?0:t+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 u=1;u<s;u++)h+=p[u].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,i,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let u=1;u<s;u++)p+=d[u].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,u=>i(d[s],u),(u,g)=>{e.lastIndex=g,n(u)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:h,valid:u}=this.checkWhitespaceRanges(l,s,a.value);u&&this.wrapRangeInMappedTextNode(a,p,h,g=>t(g,l,a.value.substring(p,h),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));t.replaceChild(i,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let 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,t){this.opt=t;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}`),u=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(g,x)=>this.opt.filter(x,p,i,u),g=>{u++,i++,this.opt.each(g)},()=>{u===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,t){this.opt=t;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 t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Or.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Na(r){let e=new Fo(r);return this.mark=(t,i)=>(e.mark(t,i),this),this.markRegExp=(t,i)=>(e.markRegExp(t,i),this),this.markRanges=(t,i)=>(e.markRanges(t,i),this),this.unmark=t=>(e.unmark(t),this),this}var ou=Na,oc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),iu=L`
|
|
1
|
+
"use strict";(()=>{var xp=Object.create;var Qi=Object.defineProperty;var vp=Object.getOwnPropertyDescriptor;var Sp=Object.getOwnPropertyNames;var Op=Object.getPrototypeOf,Cp=Object.prototype.hasOwnProperty;var Ep=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),se=(t,e)=>{for(var r in e)Qi(t,r,{get:e[r],enumerable:!0})},wp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sp(e))!Cp.call(t,n)&&n!==r&&Qi(t,n,{get:()=>e[n],enumerable:!(i=vp(e,n))||i.enumerable});return t};var Ap=(t,e,r)=>(r=t!=null?xp(Op(t)):{},wp(e||!t||!t.__esModule?Qi(r,"default",{value:t,enumerable:!0}):r,t));var zc=Ep((er,Uc)=>{var Mi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ui=function(){function t(){this.fetch=!1,this.DOMException=Mi.DOMException}return t.prototype=Mi,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 B=m.shift();return{done:B===void 0,value:B}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function u(m){this.map={},m instanceof u?m.forEach(function(C,B){this.append(B,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)}u.prototype.append=function(m,C){m=d(m),C=p(C);var B=this.map[m];this.map[m]=B?B+", "+C:C},u.prototype.delete=function(m){delete this.map[d(m)]},u.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},u.prototype.set=function(m,C){this.map[d(m)]=p(C)},u.prototype.forEach=function(m,C){for(var B in this.map)this.map.hasOwnProperty(B)&&m.call(C,this.map[B],B,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(C,B){m.push(B)}),h(m)},u.prototype.values=function(){var m=[];return this.forEach(function(C){m.push(C)}),h(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(C,B){m.push([B,C])}),h(m)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function g(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,B){m.onload=function(){C(m.result)},m.onerror=function(){B(m.error)}})}function S(m){var C=new FileReader,B=v(C);return C.readAsArrayBuffer(m),B}function E(m){var C=new FileReader,B=v(C),Q=/charset=([A-Za-z0-9_-]+)/.exec(m.type),ie=Q?Q[1]:"utf-8";return C.readAsText(m,ie),B}function N(m){for(var C=new Uint8Array(m),B=new Array(C.length),Q=0;Q<C.length;Q++)B[Q]=String.fromCharCode(C[Q]);return B.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 P(){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=g(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=g(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=g(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(m){var C=m.toUpperCase();return A.indexOf(C)>-1?C:m}function R(m,C){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var B=C.body;if(m instanceof R){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,C.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!B&&m._bodyInit!=null&&(B=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 u(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 Z=new AbortController;return Z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&B)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(B),(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 ie=/\?/;this.url+=(ie.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function I(m){var C=new FormData;return m.trim().split("&").forEach(function(B){if(B){var Q=B.split("="),ie=Q.shift().replace(/\+/g," "),Z=Q.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ie),decodeURIComponent(Z))}}),C}function H(m){var C=new u,B=m.replace(/\r?\n[\t ]+/g," ");return B.split("\r").map(function(Q){return Q.indexOf(`
|
|
2
|
+
`)===0?Q.substr(1,Q.length):Q}).forEach(function(Q){var ie=Q.split(":"),Z=ie.shift().trim();if(Z){var mt=ie.join(":").trim();try{C.append(Z,mt)}catch(fo){console.warn("Response "+fo.message)}}}),C}P.call(R.prototype);function J(m,C){if(!(this instanceof J))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 u(C.headers),this.url=C.url||"",this._initBody(m)}P.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},J.error=function(){var m=new J(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var q=[301,302,303,307,308];J.redirect=function(m,C){if(q.indexOf(C)===-1)throw new RangeError("Invalid status code");return new J(null,{status:C,headers:{location:m}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,B){this.message=C,this.name=B;var Q=Error(C);this.stack=Q.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function U(m,C){return new Promise(function(B,Q){var ie=new R(m,C);if(ie.signal&&ie.signal.aborted)return Q(new r.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function mt(){Z.abort()}Z.onload=function(){var Ne={statusText:Z.statusText,headers:H(Z.getAllResponseHeaders()||"")};ie.url.indexOf("file://")===0&&(Z.status<200||Z.status>599)?Ne.status=200:Ne.status=Z.status,Ne.url="responseURL"in Z?Z.responseURL:Ne.headers.get("X-Request-URL");var sr="response"in Z?Z.response:Z.responseText;setTimeout(function(){B(new J(sr,Ne))},0)},Z.onerror=function(){setTimeout(function(){Q(new TypeError("Network request failed"))},0)},Z.ontimeout=function(){setTimeout(function(){Q(new TypeError("Network request timed out"))},0)},Z.onabort=function(){setTimeout(function(){Q(new r.DOMException("Aborted","AbortError"))},0)};function fo(Ne){try{return Ne===""&&i.location.href?i.location.href:Ne}catch{return Ne}}if(Z.open(ie.method,fo(ie.url),!0),ie.credentials==="include"?Z.withCredentials=!0:ie.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&(n.blob?Z.responseType="blob":n.arrayBuffer&&(Z.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof u||i.Headers&&C.headers instanceof i.Headers)){var Ms=[];Object.getOwnPropertyNames(C.headers).forEach(function(Ne){Ms.push(d(Ne)),Z.setRequestHeader(Ne,p(C.headers[Ne]))}),ie.headers.forEach(function(Ne,sr){Ms.indexOf(sr)===-1&&Z.setRequestHeader(sr,Ne)})}else ie.headers.forEach(function(Ne,sr){Z.setRequestHeader(sr,Ne)});ie.signal&&(ie.signal.addEventListener("abort",mt),Z.onreadystatechange=function(){Z.readyState===4&&ie.signal.removeEventListener("abort",mt)}),Z.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=u,i.Request=R,i.Response=J),r.Headers=u,r.Request=R,r.Response=J,r.fetch=U,r}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var Qr=Mi.fetch?Mi:Ui;er=Qr.fetch;er.default=Qr.fetch;er.fetch=Qr.fetch;er.Headers=Qr.Headers;er.Request=Qr.Request;er.Response=Qr.Response;Uc.exports=er});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(A,O){if(A=A.toLowerCase(),this._getDefinition(A)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${A}" 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 R=O.prototype.attributeChangedCallback,I=new Set(O.observedAttributes||[]);g(O,I,R);let H={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:R,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(A,H),this._definitionsByClass.set(O,H);let J=r.call(i,A);J||(J=u(A),e.call(i,A,J)),this===window.customElements&&(s.set(O,H),H.standInClass=J);let q=this._awaitingUpgrade.get(A);if(q){this._awaitingUpgrade.delete(A);for(let m of q)a.delete(m),S(m,H,!0)}let U=this._whenDefinedPromises.get(A);return U!==void 0&&(U.resolve(O),this._whenDefinedPromises.delete(A)),O}upgrade(){N.push(this),i.upgrade.apply(i,arguments),N.pop()}get(A){return this._definitionsByTag.get(A)?.elementClass}_getDefinition(A){return this._definitionsByTag.get(A)}whenDefined(A){let O=this._getDefinition(A);if(O!==void 0)return Promise.resolve(O.elementClass);let R=this._whenDefinedPromises.get(A);return R===void 0&&(R={},R.promise=new Promise(I=>R.resolve=I),this._whenDefinedPromises.set(A,R)),R.promise}_upgradeWhenDefined(A,O,R){let I=this._awaitingUpgrade.get(O);I||this._awaitingUpgrade.set(O,I=new Set),R?I.add(A):I.delete(A)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;let R=s.get(this.constructor);if(!R)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(t,[],R.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,R),O},window.HTMLElement.prototype=t.prototype;let p=A=>A===document||A instanceof ShadowRoot,h=A=>{let O=A.getRootNode();if(!p(O)){let R=N[N.length-1];if(R instanceof CustomElementRegistry)return R;O=R.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},u=A=>class{static get formAssociated(){return!0}constructor(){let R=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(R,HTMLElement.prototype);let I=h(R)||window.customElements,H=I._getDefinition(A);return H?S(R,H):a.set(R,I),R}connectedCallback(){let R=n.get(this);R?R.connectedCallback&&R.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,A,!0)}disconnectedCallback(){let R=n.get(this);R?R.disconnectedCallback&&R.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,A,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let R=n.get(this);R&&R.formAssociated&&R?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let R=n.get(this);R?.formAssociated&&R?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let R=n.get(this);R?.formAssociated&&R?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let R=n.get(this);R?.formAssociated&&R?.formStateRestoreCallback?.apply(this,arguments)}},g=(A,O,R)=>{if(O.size===0||R===void 0)return;let I=A.prototype.setAttribute;I&&(A.prototype.setAttribute=function(q,U){let m=q.toLowerCase();if(O.has(m)){let C=this.getAttribute(m);I.call(this,m,U),R.call(this,m,C,U)}else I.call(this,m,U)});let H=A.prototype.removeAttribute;H&&(A.prototype.removeAttribute=function(q){let U=q.toLowerCase();if(O.has(U)){let m=this.getAttribute(U);H.call(this,U),R.call(this,U,m,null)}else H.call(this,U)});let J=A.prototype.toggleAttribute;J&&(A.prototype.toggleAttribute=function(q,U){let m=q.toLowerCase();if(O.has(m)){let C=this.getAttribute(m);J.call(this,m,U);let B=this.getAttribute(m);R.call(this,m,C,B)}else J.call(this,m,U)})},v=A=>{let O=Object.getPrototypeOf(A);if(O!==window.HTMLElement)return O===t?Object.setPrototypeOf(A,window.HTMLElement):v(O)},S=(A,O,R=!1)=>{Object.setPrototypeOf(A,O.elementClass.prototype),n.set(A,O),d=A;try{new O.elementClass}catch{v(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(I=>{A.hasAttribute(I)&&O.attributeChangedCallback.call(A,I,null,A.getAttribute(I))}),R&&O.connectedCallback&&A.isConnected&&O.connectedCallback.call(A)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(A){let O=E.apply(this,arguments);return A.customElements&&(O.customElements=A.customElements),O};let N=[document],T=(A,O,R=void 0)=>{let I=(R?Object.getPrototypeOf(R):A.prototype)[O];A.prototype[O]=function(){N.push(this);let H=I.apply(R||this,arguments);return H!==void 0&&l.set(H,this),N.pop(),H}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let P=(A,O)=>{let R=Object.getOwnPropertyDescriptor(A.prototype,O);Object.defineProperty(A.prototype,O,{...R,set(I){N.push(this),R.set.call(this,I),N.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let A=new WeakMap,O=HTMLElement.prototype.attachInternals,R=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...q){let U=O.call(this,...q);return A.set(U,this),U},R.forEach(q=>{let U=window.ElementInternals.prototype,m=U[q];U[q]=function(...C){let B=A.get(this);if(n.get(B).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 I extends Array{constructor(U){super(...U),this._elements=U}get value(){return this._elements.find(U=>U.checked===!0)?.value||""}}class H{constructor(U){let m=new Map;U.forEach((C,B)=>{let Q=C.getAttribute("name"),ie=m.get(Q)||[];this[+B]=C,ie.push(C),m.set(Q,ie)}),this.length=U.length,m.forEach((C,B)=>{C&&(C.length===1?this[B]=C[0]:this[B]=new I(C))})}namedItem(U){return this[U]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let q=J.get.call(this,[]),U=[];for(let m of q){let C=n.get(m);(!C||C.formAssociated===!0)&&U.push(m)}return new H(U)}})}}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 un={};se(un,{CSSResult:()=>Dr,LitElement:()=>Tt,ReactiveElement:()=>gt,_$LE:()=>Yp,_$LH:()=>Kp,adoptStyles:()=>ui,css:()=>L,defaultConverter:()=>hi,getCompatibleStyle:()=>vo,html:()=>w,isServer:()=>Lh,noChange:()=>Ht,notEqual:()=>sn,nothing:()=>z,render:()=>fn,supportsAdoptingStyleSheets:()=>xo,svg:()=>Gp,unsafeCSS:()=>Nt});var Qo=globalThis,ti=Qo.ShadowRoot&&(Qo.ShadyCSS===void 0||Qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zs=Symbol(),Us=new WeakMap,ei=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==zs)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(ti&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Us.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Us.set(r,e))}return e}toString(){return this.cssText}},Ws=t=>new ei(typeof t=="string"?t:t+"",void 0,zs);var en=(t,e)=>{if(ti)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Qo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},ri=ti?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Ws(r)})(t):t;var{is:Rp,defineProperty:_p,getOwnPropertyDescriptor:$p,getOwnPropertyNames:Lp,getOwnPropertySymbols:Np,getPrototypeOf:kp}=Object,oi=globalThis,Hs=oi.trustedTypes,Tp=Hs?Hs.emptyScript:"",Pp=oi.reactiveElementPolyfillSupport,uo=(t,e)=>t,ho={toAttribute(t,e){switch(e){case Boolean:t=t?Tp: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}},ii=(t,e)=>!Rp(t,e),Vs={attribute:!0,type:String,converter:ho,reflect:!1,hasChanged:ii};Symbol.metadata??=Symbol("metadata"),oi.litPropertyMetadata??=new WeakMap;var lr=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=Vs){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&_p(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=$p(this.prototype,e)??{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(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vs}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let e=kp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let r=this.properties,i=[...Lp(r),...Np(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(ri(n))}else e!==void 0&&r.push(ri(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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,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 en(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(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:ho).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:ho;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??ii)(n?a:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};lr.elementStyles=[],lr.shadowRootOptions={mode:"open"},lr[uo("elementProperties")]=new Map,lr[uo("finalized")]=new Map,Pp?.({ReactiveElement:lr}),(oi.reactiveElementVersions??=[]).push("2.0.2");var rn=globalThis,ni=rn.trustedTypes,js=ni?ni.createPolicy("lit-html",{createHTML:t=>t}):void 0,on="$lit$",Lt=`lit$${(Math.random()+"").slice(9)}$`,nn="?"+Lt,Ip=`<${nn}>`,pr=document,ai=()=>pr.createComment(""),mo=t=>t===null||typeof t!="object"&&typeof t!="function",Xs=Array.isArray,Js=t=>Xs(t)||typeof t?.[Symbol.iterator]=="function",tn=`[
|
|
3
|
+
\f\r]`,yo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gs=/-->/g,Ks=/>/g,cr=RegExp(`>|${tn}(?:([^\\s"'>=/]+)(${tn}*=${tn}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zs=/'/g,qs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,el=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),tl=el(1),rl=el(2),qe=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),Ys=new WeakMap,dr=pr.createTreeWalker(pr,129);function ol(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}var il=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=yo;for(let l=0;l<r;l++){let d=t[l],p,h,u=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===yo?h[1]==="!--"?s=Gs:h[1]!==void 0?s=Ks:h[2]!==void 0?(Qs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=cr):h[3]!==void 0&&(s=cr):s===cr?h[0]===">"?(s=n??yo,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?cr:h[3]==='"'?qs:Zs):s===qs||s===Zs?s=cr:s===Gs||s===Ks?s=yo:(s=cr,n=void 0);let v=s===cr&&t[l+1].startsWith("/>")?" ":"";a+=s===yo?d+Ip:u>=0?(i.push(p),d.slice(0,u)+on+d.slice(u)+Lt+v):d+Lt+(u===-2?l:v)}return[ol(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},go=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]=il(e,r);if(this.el=t.createElement(p,i),dr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=dr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(on)){let g=h[s++],v=n.getAttribute(u).split(Lt),S=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?li:S[1]==="?"?ci:S[1]==="@"?di:ur}),n.removeAttribute(u)}else u.startsWith(Lt)&&(d.push({type:6,index:a}),n.removeAttribute(u));if(Qs.test(n.tagName)){let u=n.textContent.split(Lt),g=u.length-1;if(g>0){n.textContent=ni?ni.emptyScript:"";for(let v=0;v<g;v++)n.append(u[v],ai()),dr.nextNode(),d.push({type:2,index:++a});n.append(u[g],ai())}}}else if(n.nodeType===8)if(n.data===nn)d.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(Lt,u+1))!==-1;)d.push({type:7,index:a}),u+=Lt.length-1}a++}}static createElement(e,r){let i=pr.createElement("template");return i.innerHTML=e,i}};function fr(t,e,r=t,i){if(e===qe)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=mo(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=fr(t,n._$AS(t,e.values),n,i)),e}var si=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??pr).importNode(r,!0);dr.currentNode=n;let a=dr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new bo(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new pi(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=dr.nextNode(),s++)}return dr.currentNode=pr,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++}},bo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Se,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=fr(this,e,r),mo(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==qe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Js(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Se&&mo(this._$AH)?this._$AA.nextSibling.data=e:this.$(pr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=go.createElement(ol(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new si(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Ys.get(e.strings);return r===void 0&&Ys.set(e.strings,r=new go(e)),r}T(e){Xs(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.k(ai()),this.k(ai()),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))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Se,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=Se}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=fr(this,e,r,0),s=!mo(e)||e!==this._$AH&&e!==qe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=fr(this,l[i+d],r,d),p===qe&&(p=this._$AH[d]),s||=!mo(p)||p!==this._$AH[d],p===Se?e=Se:e!==Se&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},li=class extends ur{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===Se?void 0:e}},ci=class extends ur{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}},di=class extends ur{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=fr(this,e,r,0)??Se)===qe)return;let i=this._$AH,n=e===Se&&i!==Se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Se&&(i===Se||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)}},pi=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){fr(this,e)}},nl={j:on,P:Lt,A:nn,C:1,M:il,L:si,R:Js,V:fr,D:bo,I:ur,H:ci,N:di,U:li,B:pi},Dp=rn.litHtmlPolyfillSupport;Dp?.(go,bo),(rn.litHtmlVersions??=[]).push("3.1.0");var fi=globalThis,xo=fi.ShadowRoot&&(fi.ShadyCSS===void 0||fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,an=Symbol(),al=new WeakMap,Dr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==an)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(xo&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=al.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&al.set(r,e))}return e}toString(){return this.cssText}},Nt=t=>new Dr(typeof t=="string"?t:t+"",void 0,an),L=(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 Dr(r,t,an)},ui=(t,e)=>{if(xo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=fi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},vo=xo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Nt(r)})(t):t;var{is:Bp,defineProperty:Fp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Up,getOwnPropertySymbols:zp,getPrototypeOf:Wp}=Object,yi=globalThis,sl=yi.trustedTypes,Hp=sl?sl.emptyScript:"",Vp=yi.reactiveElementPolyfillSupport,So=(t,e)=>t,hi={toAttribute(t,e){switch(e){case Boolean:t=t?Hp: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}},sn=(t,e)=>!Bp(t,e),ll={attribute:!0,type:String,converter:hi,reflect:!1,hasChanged:sn};Symbol.metadata??=Symbol("metadata"),yi.litPropertyMetadata??=new WeakMap;var gt=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=ll){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Fp(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Mp(this.prototype,e)??{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(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ll}static _$Ei(){if(this.hasOwnProperty(So("elementProperties")))return;let e=Wp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(So("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(So("properties"))){let r=this.properties,i=[...Up(r),...zp(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(vo(n))}else e!==void 0&&r.push(vo(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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,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 ui(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(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:hi).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:hi;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??sn)(n?a:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};gt.elementStyles=[],gt.shadowRootOptions={mode:"open"},gt[So("elementProperties")]=new Map,gt[So("finalized")]=new Map,Vp?.({ReactiveElement:gt}),(yi.reactiveElementVersions??=[]).push("2.0.2");var cn=globalThis,mi=cn.trustedTypes,cl=mi?mi.createPolicy("lit-html",{createHTML:t=>t}):void 0,dn="$lit$",kt=`lit$${(Math.random()+"").slice(9)}$`,pn="?"+kt,jp=`<${pn}>`,mr=document,Co=()=>mr.createComment(""),Eo=t=>t===null||typeof t!="object"&&typeof t!="function",yl=Array.isArray,ml=t=>yl(t)||typeof t?.[Symbol.iterator]=="function",ln=`[
|
|
5
|
+
\f\r]`,Oo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dl=/-->/g,pl=/>/g,hr=RegExp(`>|${ln}(?:([^\\s"'>=/]+)(${ln}*=${ln}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),fl=/'/g,ul=/"/g,gl=/^(?:script|style|textarea|title)$/i,bl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),w=bl(1),Gp=bl(2),Ht=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),hl=new WeakMap,yr=mr.createTreeWalker(mr,129);function xl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(e):e}var vl=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=Oo;for(let l=0;l<r;l++){let d=t[l],p,h,u=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===Oo?h[1]==="!--"?s=dl:h[1]!==void 0?s=pl:h[2]!==void 0?(gl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=hr):h[3]!==void 0&&(s=hr):s===hr?h[0]===">"?(s=n??Oo,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?hr:h[3]==='"'?ul:fl):s===ul||s===fl?s=hr:s===dl||s===pl?s=Oo:(s=hr,n=void 0);let v=s===hr&&t[l+1].startsWith("/>")?" ":"";a+=s===Oo?d+jp:u>=0?(i.push(p),d.slice(0,u)+dn+d.slice(u)+kt+v):d+kt+(u===-2?l:v)}return[xl(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},wo=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]=vl(e,r);if(this.el=t.createElement(p,i),yr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=yr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(dn)){let g=h[s++],v=n.getAttribute(u).split(kt),S=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?bi:S[1]==="?"?xi:S[1]==="@"?vi:br}),n.removeAttribute(u)}else u.startsWith(kt)&&(d.push({type:6,index:a}),n.removeAttribute(u));if(gl.test(n.tagName)){let u=n.textContent.split(kt),g=u.length-1;if(g>0){n.textContent=mi?mi.emptyScript:"";for(let v=0;v<g;v++)n.append(u[v],Co()),yr.nextNode(),d.push({type:2,index:++a});n.append(u[g],Co())}}}else if(n.nodeType===8)if(n.data===pn)d.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(kt,u+1))!==-1;)d.push({type:7,index:a}),u+=kt.length-1}a++}}static createElement(e,r){let i=mr.createElement("template");return i.innerHTML=e,i}};function gr(t,e,r=t,i){if(e===Ht)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Eo(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=gr(t,n._$AS(t,e.values),n,i)),e}var gi=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??mr).importNode(r,!0);yr.currentNode=n;let a=yr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Br(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Si(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=yr.nextNode(),s++)}return yr.currentNode=mr,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++}},Br=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=z,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=gr(this,e,r),Eo(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Ht&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ml(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&Eo(this._$AH)?this._$AA.nextSibling.data=e:this.$(mr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=wo.createElement(xl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new gi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=hl.get(e.strings);return r===void 0&&hl.set(e.strings,r=new wo(e)),r}T(e){yl(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.k(Co()),this.k(Co()),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))}},br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=z,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=z}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=gr(this,e,r,0),s=!Eo(e)||e!==this._$AH&&e!==Ht,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=gr(this,l[i+d],r,d),p===Ht&&(p=this._$AH[d]),s||=!Eo(p)||p!==this._$AH[d],p===z?e=z:e!==z&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},bi=class extends br{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},xi=class extends br{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},vi=class extends br{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=gr(this,e,r,0)??z)===Ht)return;let i=this._$AH,n=e===z&&i!==z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==z&&(i===z||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)}},Si=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){gr(this,e)}},Kp={j:dn,P:kt,A:pn,C:1,M:vl,L:gi,R:ml,V:gr,D:Br,I:br,H:xi,N:vi,U:bi,B:Si},Zp=cn.litHtmlPolyfillSupport;Zp?.(wo,Br),(cn.litHtmlVersions??=[]).push("3.1.0");var fn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Br(e.insertBefore(Co(),a),a,void 0,r??{})}return n._$AI(t),n};var Tt=class extends gt{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=fn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ht}};Tt._$litElement$=!0,Tt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Tt});var qp=globalThis.litElementPolyfillSupport;qp?.({LitElement:Tt});var Yp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Lh=!1;var gn={};se(gn,{customElement:()=>Xp,eventOptions:()=>Fr,property:()=>y,query:()=>F,queryAll:()=>hn,queryAssignedElements:()=>yn,queryAssignedNodes:()=>mn,queryAsync:()=>ef,standardProperty:()=>Sl,state:()=>W});var Xp=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Jp={attribute:!0,type:String,converter:ho,reflect:!1,hasChanged:ii},Sl=(t=Jp,e,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,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}}}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 y(t){return(e,r)=>typeof r=="object"?Sl(t,e,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})(t,e,r)}function W(t){return y({...t,state:!0,attribute:!1})}function Fr(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var lt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function F(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 lt(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 lt(r,i,{get(){return a(this)}})}}var Qp;function hn(t){return(e,r)=>lt(e,r,{get(){return(this.renderRoot??(Qp??=document.createDocumentFragment())).querySelectorAll(t)}})}function ef(t){return(e,r)=>lt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function yn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return lt(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 mn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return lt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var bn={};se(bn,{repeat:()=>$e});var Vt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},jt=t=>(...e)=>({_$litDirective$:t,values:e}),bt=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{D:tf}=nl;var Ol=()=>document.createComment(""),Mr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Ol(),n),s=i.insertBefore(Ol(),n);r=new tf(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},Gt=(t,e,r=t)=>(t._$AI(e,r),t),rf={},Cl=(t,e=rf)=>t._$AH=e,El=t=>t._$AH,Oi=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 wl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},$e=jt(class extends bt{constructor(t){if(super(t),t.type!==Vt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(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.ht(t,e,r).values}update(t,[e,r,i]){let n=El(t),{values:a,keys:s}=this.ht(e,r,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,h,u=0,g=n.length-1,v=0,S=a.length-1;for(;u<=g&&v<=S;)if(n[u]===null)u++;else if(n[g]===null)g--;else if(l[u]===s[v])d[v]=Gt(n[u],a[v]),u++,v++;else if(l[g]===s[S])d[S]=Gt(n[g],a[S]),g--,S--;else if(l[u]===s[S])d[S]=Gt(n[u],a[S]),Mr(t,d[S+1],n[u]),u++,S--;else if(l[g]===s[v])d[v]=Gt(n[g],a[v]),Mr(t,n[u],n[g]),g--,v++;else if(p===void 0&&(p=wl(s,v,S),h=wl(l,u,g)),p.has(l[u]))if(p.has(l[g])){let E=h.get(s[v]),N=E!==void 0?n[E]:null;if(N===null){let T=Mr(t,n[u]);Gt(T,a[v]),d[v]=T}else d[v]=Gt(N,a[v]),Mr(t,n[u],N),n[E]=null;v++}else Oi(n[g]),g--;else Oi(n[u]),u++;for(;v<=S;){let E=Mr(t,d[S+1]);Gt(E,a[v]),d[v++]=E}for(;u<=g;){let E=n[u++];E!==null&&Oi(E)}return this.dt=s,Cl(t,d),qe}});var xn={};se(xn,{classMap:()=>pe});var pe=jt(class extends bt{constructor(t){if(super(t),t.type!==Vt.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.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.it)i in e||(r.remove(i),this.it.delete(i));for(let i in e){let n=!!e[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 qe}});var vn={};se(vn,{styleMap:()=>nf});var Al="important",of=" !"+Al,nf=jt(class extends bt{constructor(t){if(super(t),t.type!==Vt.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.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let i of this.ut)e[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(of);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Al:""):r[i]=n}}return qe}});var On={};se(On,{UnsafeHTMLDirective:()=>Ur,unsafeHTML:()=>Sn});var Ur=class extends bt{constructor(e){if(super(e),this.et=Se,e.type!==Vt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Se||e==null)return this.vt=void 0,this.et=e;if(e===qe)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Sn=jt(Ur);var $n={};se($n,{CacheRegistry:()=>xt,ClearCacheEvent:()=>Ro});var En={};se(En,{CancelablePromise:()=>zr,CanceledPromiseError:()=>Ao,cancelable:()=>Cn});var Ao=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},zr=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new Ao("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new Ao("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Cn=t=>new zr((e,r)=>t.then(e).catch(r));var _n={};se(_n,{FtNotificationEvent:()=>wn,PostResizeEvent:()=>Rn,PreResizeEvent:()=>An,WithEventBus:()=>xr,withEventBus:()=>Rl});var wn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},An=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Rn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Rl(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 xr=class extends Rl(Object){};var Ro=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},xt=class extends xr{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 Ro(r))}clear(e,r=!0){if(!this.finalContent.has(e))return this.forceClear(e),r&&this.dispatchEvent(new Ro([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof zr&&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=Cn(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 Nn={};se(Nn,{ClusteringHelper:()=>Ln});var Ln=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(u=>t.extractResultMetadata({result:u,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(u=>u??{key:e,label:p,value:void 0,displayValue:i}).filter(u=>u.value!=d?.value).filter((u,g,v)=>v.findIndex(S=>S.value===u.value)===g).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,g)=>this.compareMetadata(u.metadata.value,g.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 kn={};se(kn,{Debouncer:()=>ce});var ce=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 In={};se(In,{customElement:()=>V,isNumber:()=>$l,jsonProperty:()=>ke,optionalNumberProperty:()=>pf});var Pn={};se(Pn,{dateReviver:()=>sf,deepEqual:()=>Me,delay:()=>Ci,eventPathContainsMatchingElement:()=>cf,flatDeep:()=>Ye,getComposedPathTo:()=>Tn,hasChanged:()=>vr,last:()=>df,minmax:()=>_o,parseDate:()=>_l,unslotText:()=>Wr,waitFor:()=>Ei,waitUntil:()=>af});var Ci=t=>new Promise(e=>setTimeout(e,t));async function af(t,e=10,r=2e4){await Ei(async()=>await t()||void 0,e,r)}async function Ei(t,e=10,r=2e4){let i=await t(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await Ci(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ye(t,e){return t.flatMap(r=>[r,...Ye(e(r),e)])}function sf(...t){return function(e,r){return t.includes(e)?_l(r):r}}function _l(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 lf(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(!Me(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(!Me(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(!Me(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Me(t,e){try{return lf(t,e)}catch{return!1}}function vr(t,e){return!Me(t,e)}function cf(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 _o(t,e,r){return Math.min(Math.max(t,e),r)}function df(t){return t[t.length-1]}function Wr(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Wr(e)).join(""):t?.textContent||""}function Tn(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 V=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ke(t,e){let r=()=>JSON.parse(JSON.stringify(t));return y({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:vr,...e??{}})}function pf(t){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return $l(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function $l(t){return!isNaN(parseFloat(t))}var da={};se(da,{designSystemVariables:()=>_});var ca={};se(ca,{DesignSystemFamily:()=>It,DesignSystemSize:()=>Le,FtCssVariableFactory:()=>o,badge:()=>mf,banner:()=>yf,button:()=>b,chart:()=>kf,checkbox:()=>If,chip:()=>ee,chipChoice:()=>uf,collapsible:()=>Lf,comboboxMultiSelect:()=>_f,comboboxSingleSelect:()=>Rf,drawer:()=>Of,floatingMenu:()=>Af,foundation:()=>c,link:()=>hf,modal:()=>Sf,notice:()=>Pf,notification:()=>Ff,pageDesigner:()=>Tf,pageFooter:()=>xf,pageHeader:()=>bf,pageLayout:()=>vf,popover:()=>$f,radio:()=>Bf,reorderableList:()=>Uf,resolveFamilyClass:()=>sa,resolveSizeClass:()=>la,semantic:()=>f,setVariable:()=>x,switch_:()=>Nf,tabs:()=>Cf,textArea:()=>wf,textInput:()=>Ef,titleBreadcrumb:()=>gf,toggle:()=>Df,tooltip:()=>Mf,typographies:()=>$o,typographyBody1Medium:()=>zn,typographyBody1Regular:()=>Un,typographyBody1Semibold:()=>Wn,typographyBody2Medium:()=>Vn,typographyBody2MediumUnderline:()=>Ll,typographyBody2Regular:()=>Hn,typographyBody2Semibold:()=>jn,typographyCaption1Bold:()=>ea,typographyCaption1Medium:()=>Jn,typographyCaption1Semibold:()=>Qn,typographyCaption2Bold:()=>oa,typographyCaption2Medium:()=>ta,typographyCaption2Semibold:()=>ra,typographyCaption3Bold:()=>aa,typographyCaption3Medium:()=>ia,typographyCaption3Semibold:()=>na,typographyDisplay:()=>Dn,typographyLabel1Bold:()=>Zn,typographyLabel1Medium:()=>Gn,typographyLabel1Semibold:()=>Kn,typographyLabel2Bold:()=>Xn,typographyLabel2Medium:()=>qn,typographyLabel2Semibold:()=>Yn,typographyTitle1:()=>Bn,typographyTitle2:()=>Fn,typographyTitle3:()=>Mn,typographyVariants:()=>ff});var Pt=t=>typeof t=="string"?Nt(t):t,o=class{static create(e,r,i,n){let a=l=>Pt(l??n),s=L`var(${Pt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Pt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=L`var(${Pt(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=>L`var(${Pt(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):Pt(a??e.lastResortDefaultValue()),n=L`var(${Pt(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=>L`var(${Pt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function x(t,e){return Pt(`${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"),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)")},Dn={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")},Bn={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")},Fn={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")},Mn={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")},Un={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")},zn={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")},Wn={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")},Hn={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")},Vn={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")},Ll={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")},jn={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")},Gn={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")},Kn={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")},Zn={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")},qn={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")},Yn={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")},Xn={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")},Jn={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")},Qn={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")},ea={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")},ta={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},$o={display:Dn,"title-1":Bn,"title-2":Fn,"title-3":Mn,"body-1-regular":Un,"body-1-medium":zn,"body-1-semibold":Wn,"body-2-regular":Hn,"body-2-medium":Vn,"body-2-medium-underline":Ll,"body-2-semibold":jn,"label-1-medium":Gn,"label-1-semibold":Kn,"label-1-bold":Zn,"label-2-medium":qn,"label-2-semibold":Yn,"label-2-bold":Xn,"caption-1-medium":Jn,"caption-1-semibold":Qn,"caption-1-bold":ea,"caption-2-medium":ta,"caption-2-semibold":ra,"caption-2-bold":oa,"caption-3-medium":ia,"caption-3-semibold":na,"caption-3-bold":aa},ff=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary: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","",f.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",f.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",f.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",f.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","",f.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",f.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",f.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",f.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","",f.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",f.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",f.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","",f.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",f.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",f.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","",f.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",f.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",f.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",f.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","",f.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",f.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",f.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","",f.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",f.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",f.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","",f.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","",f.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",f.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",f.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",f.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","",f.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",f.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",f.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",f.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","",f.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",f.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",f.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",f.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","",f.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",f.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",f.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",f.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",f.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",f.contentErrorPrimary)};var uf={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","",f.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","",f.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.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","",f.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","",f.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.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 ee={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","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var hf={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",f.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var yf={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var mf={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var gf={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",f.contentGlobalSubtle)};var bf={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","",f.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",f.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","",f.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var xf={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","",f.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var vf={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Sf={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",f.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 Of={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.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 Cf={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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.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","",f.borderActionFocusRing)};var Ef={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","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var wf={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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 Af={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","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.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","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Rf={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","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.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 _f={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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 $f={backgroundColor:o.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.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 Lf={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Nf={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","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var kf={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 Tf={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 Pf={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","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.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 If={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.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","",f.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 Df={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","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Bf={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.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","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.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","",f.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 Ff={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.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 Mf={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.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 Uf={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","",f.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","",f.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","",f.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","",f.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",f.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",f.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","",f.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",f.backgroundGlobalOnSurfaceDark)};var It;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(It||(It={}));var Le;(function(t){t.large="large",t.medium="medium",t.small="small"})(Le||(Le={}));function sa(t){return`ftds--family-${t}`}function la(t){return`ftds--size-${t}`}var _={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ra={};se(Ra,{computeFlipOffsetPosition:()=>Aa,computeOffsetPosition:()=>wa});var kl=["top","right","bottom","left"],Nl=["start","end"],pa=kl.reduce((t,e)=>t.concat(e,e+"-"+Nl[0],e+"-"+Nl[1]),[]),Sr=Math.min,He=Math.max,ko=Math.round;var Dt=t=>({x:t,y:t}),zf={left:"right",right:"left",bottom:"top",top:"bottom"},Wf={start:"end",end:"start"};function fa(t,e,r){return He(t,Sr(e,r))}function Or(t,e){return typeof t=="function"?t(e):t}function ct(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function ua(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function Hr(t){return["top","bottom"].includes(ct(t))?"y":"x"}function ya(t){return ua(Hr(t))}function ma(t,e,r){r===void 0&&(r=!1);let i=dt(t),n=ya(t),a=ha(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=No(s)),[s,No(s)]}function Tl(t){let e=No(t);return[Lo(t),e,Lo(e)]}function Lo(t){return t.replace(/start|end/g,e=>Wf[e])}function Hf(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 Pl(t,e,r,i){let n=dt(t),a=Hf(ct(t),r==="start",i);return n&&(a=a.map(s=>s+"-"+n),e&&(a=a.concat(a.map(Lo)))),a}function No(t){return t.replace(/left|right|bottom|top/g,e=>zf[e])}function Vf(t){return{top:0,right:0,bottom:0,left:0,...t}}function Il(t){return typeof t!="number"?Vf(t):{top:t,right:t,bottom:t,left:t}}function Cr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Dl(t,e,r){let{reference:i,floating:n}=t,a=Hr(e),s=ya(e),l=ha(s),d=ct(e),p=a==="y",h=i.x+i.width/2-n.width/2,u=i.y+i.height/2-n.height/2,g=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:u};break;case"left":v={x:i.x-n.width,y:u};break;default:v={x:i.x,y:i.y}}switch(dt(e)){case"start":v[s]-=g*(r&&p?-1:1);break;case"end":v[s]+=g*(r&&p?-1:1);break}return v}var Bl=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:u}=Dl(p,i,d),g=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:N,fn:T}=l[E],{x:P,y:A,data:O,reset:R}=await T({x:h,y:u,initialPlacement:i,placement:g,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:t,floating:e}});if(h=P??h,u=A??u,v={...v,[N]:{...v[N],...O}},R&&S<=50){S++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(p=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):R.rects),{x:h,y:u}=Dl(p,g,d)),E=-1;continue}}return{x:h,y:u,placement:g,strategy:n,middlewareData:v}};async function To(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:u="floating",altBoundary:g=!1,padding:v=0}=Or(e,t),S=Il(v),N=l[g?u==="floating"?"reference":"floating":u],T=Cr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),P=u==="floating"?{...s.floating,x:i,y:n}:s.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},R=Cr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:A,strategy:d}):P);return{top:(T.top-R.top+S.top)/O.y,bottom:(R.bottom-T.bottom+S.bottom)/O.y,left:(T.left-R.left+S.left)/O.x,right:(R.right-T.right+S.right)/O.x}}function jf(t,e,r){return(t?[...r.filter(n=>dt(n)===t),...r.filter(n=>dt(n)!==t)]:r.filter(n=>ct(n)===n)).filter(n=>t?dt(n)===t||(e?Lo(n)!==n:!1):!0)}var ga=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:u,allowedPlacements:g=pa,autoAlignment:v=!0,...S}=Or(t,e),E=u!==void 0||g===pa?jf(u||null,v,g):g,N=await To(e,S),T=((r=s.autoPlacement)==null?void 0:r.index)||0,P=E[T];if(P==null)return{};let A=ma(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:E[0]}};let O=[N[ct(P)],N[A[0]],N[A[1]]],R=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:O}],I=E[T+1];if(I)return{data:{index:T+1,overflows:R},reset:{placement:I}};let H=R.map(U=>{let m=dt(U.placement);return[U.placement,m&&h?U.overflows.slice(0,2).reduce((C,B)=>C+B,0):U.overflows[0],U.overflows]}).sort((U,m)=>U[1]-m[1]),q=((n=H.filter(U=>U[2].slice(0,dt(U[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||H[0][0];return q!==l?{data:{index:T+1,overflows:R},reset:{placement:q}}:{}}}},ba=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:u=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...N}=Or(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let T=ct(n),P=ct(l)===l,A=await(d.isRTL==null?void 0:d.isRTL(p.floating)),O=g||(P||!E?[No(l)]:Tl(l));!g&&S!=="none"&&O.push(...Pl(l,E,S,A));let R=[l,...O],I=await To(e,N),H=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&H.push(I[T]),u){let C=ma(n,s,A);H.push(I[C[0]],I[C[1]])}if(J=[...J,{placement:n,overflows:H}],!H.every(C=>C<=0)){var q,U;let C=(((q=a.flip)==null?void 0:q.index)||0)+1,B=R[C];if(B)return{data:{index:C,overflows:J},reset:{placement:B}};let Q=(U=J.filter(ie=>ie.overflows[0]<=0).sort((ie,Z)=>ie.overflows[1]-Z.overflows[1])[0])==null?void 0:U.placement;if(!Q)switch(v){case"bestFit":{var m;let ie=(m=J.map(Z=>[Z.placement,Z.overflows.filter(mt=>mt>0).reduce((mt,fo)=>mt+fo,0)]).sort((Z,mt)=>Z[1]-mt[1])[0])==null?void 0:m[0];ie&&(Q=ie);break}case"initialPlacement":Q=l;break}if(n!==Q)return{reset:{placement:Q}}}return{}}}};async function Gf(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ct(r),l=dt(r),d=Hr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=Or(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:S}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*h,y:g*p}:{x:g*p,y:v*h}}var xa=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 Gf(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}}}}},va=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:N=>{let{x:T,y:P}=N;return{x:T,y:P}}},...d}=Or(t,e),p={x:r,y:i},h=await To(e,d),u=Hr(ct(n)),g=ua(u),v=p[g],S=p[u];if(a){let N=g==="y"?"top":"left",T=g==="y"?"bottom":"right",P=v+h[N],A=v-h[T];v=fa(P,v,A)}if(s){let N=u==="y"?"top":"left",T=u==="y"?"bottom":"right",P=S+h[N],A=S-h[T];S=fa(P,S,A)}let E=l.fn({...e,[g]:v,[u]:S});return{...E,data:{x:E.x-r,y:E.y-i}}}}};var Sa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Or(t,e),d=await To(e,l),p=ct(r),h=dt(r),u=Hr(r)==="y",{width:g,height:v}=i.floating,S,E;p==="top"||p==="bottom"?(S=p,E=h===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(E=p,S=h==="end"?"top":"bottom");let N=v-d[S],T=g-d[E],P=!e.middlewareData.shift,A=N,O=T;if(u){let I=g-d.left-d.right;O=h||P?Sr(T,I):I}else{let I=v-d.top-d.bottom;A=h||P?Sr(N,I):I}if(P&&!h){let I=He(d.left,0),H=He(d.right,0),J=He(d.top,0),q=He(d.bottom,0);u?O=g-2*(I!==0||H!==0?I+H:He(d.left,d.right)):A=v-2*(J!==0||q!==0?J+q:He(d.top,d.bottom))}await s({...e,availableWidth:O,availableHeight:A});let R=await n.getDimensions(a.floating);return g!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}};function Bt(t){return Ml(t)?(t.nodeName||"").toLowerCase():"#document"}function Ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ft(t){var e;return(e=(Ml(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ml(t){return t instanceof Node||t instanceof Ve(t).Node}function vt(t){return t instanceof Element||t instanceof Ve(t).Element}function pt(t){return t instanceof HTMLElement||t instanceof Ve(t).HTMLElement}function Fl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ve(t).ShadowRoot}function Vr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Ul(t){return["table","td","th"].includes(Bt(t))}function Ai(t){let e=Ri(),r=Xe(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 zl(t){let e=Er(t);for(;pt(e)&&!Po(e);){if(Ai(e))return e;e=Er(e)}return null}function Ri(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Po(t){return["html","body","#document"].includes(Bt(t))}function Xe(t){return Ve(t).getComputedStyle(t)}function Io(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){if(Bt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Fl(t)&&t.host||Ft(t);return Fl(e)?e.host:e}function Wl(t){let e=Er(t);return Po(e)?t.ownerDocument?t.ownerDocument.body:t.body:pt(e)&&Vr(e)?e:Wl(e)}function wi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Wl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ve(n);return a?e.concat(s,s.visualViewport||[],Vr(n)?n:[],s.frameElement&&r?wi(s.frameElement):[]):e.concat(n,wi(n,[],r))}function jl(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=pt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=ko(r)!==a||ko(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Gl(t){return vt(t)?t:t.contextElement}function jr(t){let e=Gl(t);if(!pt(e))return Dt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=jl(e),s=(a?ko(r.width):r.width)/i,l=(a?ko(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Kf=Dt(0);function Kl(t){let e=Ve(t);return!Ri()||!e.visualViewport?Kf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ve(t)?!1:e}function Do(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Gl(t),s=Dt(1);e&&(i?vt(i)&&(s=jr(i)):s=jr(t));let l=Zf(a,r,i)?Kl(a):Dt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,u=n.height/s.y;if(a){let g=Ve(a),v=i&&vt(i)?Ve(i):i,S=g.frameElement;for(;S&&i&&v!==g;){let E=jr(S),N=S.getBoundingClientRect(),T=Xe(S),P=N.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,A=N.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,u*=E.y,d+=P,p+=A,S=Ve(S).frameElement}}return Cr({width:h,height:u,x:d,y:p})}function qf(t){let{rect:e,offsetParent:r,strategy:i}=t,n=pt(r),a=Ft(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Dt(1),d=Dt(0);if((n||!n&&i!=="fixed")&&((Bt(r)!=="body"||Vr(a))&&(s=Io(r)),pt(r))){let p=Do(r);l=jr(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 Yf(t){return Array.from(t.getClientRects())}function Zl(t){return Do(Ft(t)).left+Io(t).scrollLeft}function Xf(t){let e=Ft(t),r=Io(t),i=t.ownerDocument.body,n=He(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=He(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Zl(t),l=-r.scrollTop;return Xe(i).direction==="rtl"&&(s+=He(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Jf(t,e){let r=Ve(t),i=Ft(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ri();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Qf(t,e){let r=Do(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=pt(t)?jr(t):Dt(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 Hl(t,e,r){let i;if(e==="viewport")i=Jf(t,r);else if(e==="document")i=Xf(Ft(t));else if(vt(e))i=Qf(e,r);else{let n=Kl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Cr(i)}function ql(t,e){let r=Er(t);return r===e||!vt(r)||Po(r)?!1:Xe(r).position==="fixed"||ql(r,e)}function eu(t,e){let r=e.get(t);if(r)return r;let i=wi(t,[],!1).filter(l=>vt(l)&&Bt(l)!=="body"),n=null,a=Xe(t).position==="fixed",s=a?Er(t):t;for(;vt(s)&&!Po(s);){let l=Xe(s),d=Ai(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Vr(s)&&!d&&ql(t,s))?i=i.filter(h=>h!==s):n=l,s=Er(s)}return e.set(t,i),i}function tu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?eu(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let u=Hl(e,h,n);return p.top=He(u.top,p.top),p.right=Sr(u.right,p.right),p.bottom=Sr(u.bottom,p.bottom),p.left=He(u.left,p.left),p},Hl(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ru(t){return jl(t)}function ou(t,e,r){let i=pt(e),n=Ft(e),a=r==="fixed",s=Do(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Dt(0);if(i||!i&&!a)if((Bt(e)!=="body"||Vr(n))&&(l=Io(e)),i){let p=Do(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else n&&(d.x=Zl(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Vl(t,e){return!pt(t)||Xe(t).position==="fixed"?null:e?e(t):t.offsetParent}function Yl(t,e){let r=Ve(t);if(!pt(t))return r;let i=Vl(t,e);for(;i&&Ul(i)&&Xe(i).position==="static";)i=Vl(i,e);return i&&(Bt(i)==="html"||Bt(i)==="body"&&Xe(i).position==="static"&&!Ai(i))?r:i||zl(t)||r}var iu=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Yl,a=this.getDimensions;return{reference:ou(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function nu(t){return Xe(t).direction==="rtl"}var Gr={convertOffsetParentRelativeRectToViewportRelativeRect:qf,getDocumentElement:Ft,getClippingRect:tu,getOffsetParent:Yl,getElementRects:iu,getClientRects:Yf,getDimensions:ru,getScale:jr,isElement:vt,isRTL:nu};var Oa=(t,e,r)=>{let i=new Map,n={platform:Gr,...r},a={...n.platform,_c:i};return Bl(t,e,{...n,platform:a})};function Ea(t){return au(t)}function Ca(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function au(t){for(let e=t;e;e=Ca(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ca(t);e;e=Ca(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 wa(t,e,r){return Oa(t,e,{platform:{...Gr,getOffsetParent:i=>Gr.getOffsetParent(i,Ea)},middleware:[va({crossAxis:!0}),ga({allowedPlacements:[r]})]})}async function Aa(t,e,r,i,n,a,s=4){return Oa(t,e,{placement:r,strategy:n,platform:{...Gr,getOffsetParent:l=>Gr.getOffsetParent(l,Ea)},middleware:[xa(s),ba({fallbackPlacements:i}),Sa({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 La={};se(La,{FtdsBase:()=>Fo,toFtdsBase:()=>Li});var $a={};se($a,{FtLitElement:()=>M});var _a={};se(_a,{ScopedRegistryLitElement:()=>Bo});var _i=window,su=_i.ShadowRoot&&(_i.ShadyCSS===void 0||_i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rx=Symbol();var Xl=(t,e)=>{su?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=_i.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var Bo=class extends Tt{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 Xl(i,e.elementStyles),i}};var $i=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},tc,Jl=Symbol("constructorPrototype"),Ql=Symbol("constructorName"),rc=Symbol("exportpartsDebouncer"),ec=Symbol("dynamicDependenciesLoaded"),M=class extends Bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[tc]=new ce(5),this[Ql]=this.constructor.name,this[Jl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ql]&&Object.setPrototypeOf(this,this[Jl])}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[ec]||(e[ec]=!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[rc].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=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=g.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 u=[...h.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...u].join(", "))}};tc=rc;$i([y()],M.prototype,"exportpartsPrefix",void 0);$i([ke([])],M.prototype,"exportpartsPrefixes",void 0);$i([y()],M.prototype,"customStylesheet",void 0);$i([W()],M.prototype,"useAdoptedStyleSheets",void 0);var oc=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 Li(t){class e extends t{constructor(){super(...arguments),this.size=Le.medium,this.family=It.neutral}getDesignSystemBaseClasses(){return{[sa(this.family)]:!0,[la(this.size)]:!0}}}return oc([y()],e.prototype,"size",void 0),oc([y()],e.prototype,"family",void 0),e}var Fo=class extends Li(M){};var ic={};var Ta={};se(Ta,{highlightHtml:()=>ka,highlightHtmlColorCssVariable:()=>nc,highlightHtmlStyles:()=>cu});var wr=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,u=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;u();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(g=>{i(g)}),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 Mo=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 wr(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 wr.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,u=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=u+g,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 u=1;u<s;u++)h+=p[u].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 u=1;u<s;u++)p+=d[u].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,u=>i(d[s],u),(u,g)=>{e.lastIndex=g,n(u)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:h,valid:u}=this.checkWhitespaceRanges(l,s,a.value);u&&this.wrapRangeInMappedTextNode(a,p,h,g=>r(g,l,a.value.substring(p,h),d),g=>{i(g,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}`),u=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(g,v)=>this.opt.filter(v,p,i,u),g=>{u++,i++,this.opt.each(g)},()=>{u===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=wr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Na(t){let e=new Mo(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 lu=Na,nc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),cu=L`
|
|
8
8
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
9
|
+
background: ${nc};
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
11
|
+
`;function ka(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new lu(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 Ia={};se(Ia,{noTextInputDefaultClearButton:()=>zo,noTextSelect:()=>Ar,safariEllipsisFix:()=>Uo,wordWrap:()=>Pa});var Ar=L`
|
|
12
12
|
.ft-no-text-select {
|
|
13
13
|
-webkit-touch-callout: none;
|
|
14
14
|
-webkit-user-select: none;
|
|
@@ -29,7 +29,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
29
29
|
-webkit-hyphens: auto;
|
|
30
30
|
hyphens: auto
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,Uo=L`
|
|
33
33
|
.ft-safari-ellipsis-fix {
|
|
34
34
|
margin-right: 0;
|
|
35
35
|
|
|
@@ -40,14 +40,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
40
40
|
display: inline-block;
|
|
41
41
|
width: 0;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,zo=L`
|
|
44
44
|
input::-webkit-search-cancel-button,
|
|
45
45
|
input::-webkit-search-decoration,
|
|
46
46
|
input::-webkit-search-results-button,
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var ic={};var Ta={};se(Ta,{ParametrizedLabelResolver:()=>Kt});var Kt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)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,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var ss={};se(ss,{FtCommandQueue:()=>Uo,FtLitElementRedux:()=>jr,FtReduxStore:()=>Rr,ReduxWatcher:()=>Fi,clearAllStores:()=>Hu,isFtReduxStore:()=>Er,redux:()=>nc,reduxEventListener:()=>au,reduxReactive:()=>nu,watch:()=>Vu});var nu=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},nc=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:vr,attribute:!1,...e};m(a)(t,i);let s=t.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})}},au=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)};var Uo=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}};function Er(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ac,sc,lc,zo=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),wr=Symbol("internalStores"),jr=class extends M{constructor(){super(...arguments),this[ac]=new Map,this[sc]=new Map,this[lc]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&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(e){return e==null?this.getUnnamedStore():this[wr].get(e)}addStore(e,t){var i;t=(i=t??(Er(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(t),this[wr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[wr].delete(t)}setupStores(){this.unsubscribeFromStores(),this[wr].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let i=this.constructor.getPropertyOptions(t);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Zt].has(e.store):this[Zt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var i;this[Zt].set(e,t.subscribe(()=>this.updateFromStores())),this[zo].set(e,[]),Er(t)&&t.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.addEventListener(n.eventName,s),this[zo].get(e).push(()=>t.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Zt].forEach((e,t)=>this.unsubscribeFromStore(t))}unsubscribeFromStore(e){var t;this[Zt].has(e)&&this[Zt].get(e)(),this[Zt].delete(e),(t=this[zo].get(e))===null||t===void 0||t.forEach(i=>i()),this[zo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ac=Zt,sc=wr,lc=zo;jr.reduxProperties=new Map;jr.reduxReactiveProperties=new Set;jr.reduxEventListeners=new Map;function rt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(r){return!!r&&!!r[fe]}function lt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hu}(r)||Array.isArray(r)||!!r[mc]||!!(!((e=r.constructor)===null||e===void 0)&&e[mc])||Va(r)||ja(r))}function Ar(r,e,t){t===void 0&&(t=!1),Zr(r)===0?(t?Object.keys:Kr)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function Zr(r){var e=r[fe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Va(r)?2:ja(r)?3:0}function Gr(r,e){return Zr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function su(r,e){return Zr(r)===2?r.get(e):r[e]}function yc(r,e,t){var i=Zr(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function gc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Va(r){return fu&&r instanceof Map}function ja(r){return uu&&r instanceof Set}function qt(r){return r.o||r.t}function Ga(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=xc(r);delete e[fe];for(var t=Kr(e),i=0;i<t.length;i++){var n=t[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:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Ka(r,e){return e===void 0&&(e=!1),Za(r)||Ft(r)||!lt(r)||(Zr(r)>1&&(r.set=r.add=r.clear=r.delete=lu),Object.freeze(r),e&&Ar(r,function(t,i){return Ka(i,!0)},!0)),r}function lu(){rt(2)}function Za(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function vt(r){var e=Ha[r];return e||rt(18,r),e}function cu(r,e){Ha[r]||(Ha[r]=e)}function Ua(){return Ho}function Ba(r,e){e&&(vt("Patches"),r.u=[],r.s=[],r.v=e)}function _i(r){za(r),r.p.forEach(du),r.p=null}function za(r){r===Ho&&(Ho=r.l)}function cc(r){return Ho={p:[],l:Ho,h:r,m:!0,_:0}}function du(r){var e=r[fe];e.i===0||e.i===1?e.j():e.g=!0}function Fa(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||vt("ES5").S(e,r,i),i?(t[fe].P&&(_i(e),rt(4)),lt(r)&&(r=ki(e,r),e.l||Pi(e,r)),e.u&&vt("Patches").M(t[fe].t,r,e.u,e.s)):r=ki(e,t,[]),_i(e),e.u&&e.v(e.u,e.s),r!==vc?r:void 0}function ki(r,e,t){if(Za(e))return e;var i=e[fe];if(!i)return Ar(e,function(l,d){return dc(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return Pi(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ga(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 dc(r,i,n,l,d,t,s)}),Pi(r,n,!1),t&&r.u&&vt("Patches").N(i,t,r.u,r.s)}return i.o}function dc(r,e,t,i,n,a,s){if(Ft(n)){var l=ki(r,n,a&&e&&e.i!==3&&!Gr(e.R,i)?a.concat(i):void 0);if(yc(t,i,l),!Ft(l))return;r.m=!1}else s&&t.add(n);if(lt(n)&&!Za(n)){if(!r.h.D&&r._<1)return;ki(r,n),e&&e.A.l||Pi(r,n)}}function Pi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Ka(e,t)}function Da(r,e){var t=r[fe];return(t?qt(t):r)[e]}function pc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Yt(r){r.P||(r.P=!0,r.l&&Yt(r.l))}function Ma(r){r.o||(r.o=Ga(r.t))}function Wa(r,e,t){var i=Va(e)?vt("MapSet").F(e,t):ja(e)?vt("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ua(),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=Wo);var h=Proxy.revocable(d,p),u=h.revoke,g=h.proxy;return l.k=g,l.j=u,g}(e,t):vt("ES5").J(e,t);return(t?t.A:Ua()).p.push(i),i}function pu(r){return Ft(r)||rt(22,r),function e(t){if(!lt(t))return t;var i,n=t[fe],a=Zr(t);if(n){if(!n.P&&(n.i<4||!vt("ES5").K(n)))return n.t;n.I=!0,i=fc(t,a),n.I=!1}else i=fc(t,a);return Ar(i,function(s,l){n&&su(n.t,s)===l||yc(i,s,e(l))}),a===3?new Set(i):i}(r)}function fc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Ga(r)}function bc(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[fe];return Vo.get(p,s)},set:function(p){var h=this[fe];Vo.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][fe];if(!d.P)switch(d.i){case 5:i(d)&&Yt(d);break;case 4:t(d)&&Yt(d)}}}function t(s){for(var l=s.t,d=s.k,p=Kr(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==fe){var g=l[u];if(g===void 0&&!Gr(l,u))return!0;var x=d[u],S=x&&x[fe];if(S?S.t!==g:!gc(x,g))return!0}}var E=!!l[fe];return p.length!==Kr(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&&rt(3,JSON.stringify(qt(s)))}var a={};cu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,g){if(u){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,r(S,!0));return x}var E=xc(g);delete E[fe];for(var k=Kr(E),P=0;P<k.length;P++){var I=k[P];E[I]=r(I,u||!!E[I].enumerable)}return Object.create(Object.getPrototypeOf(g),E)}(d,s),h={i:d?5:4,A:l?l.A:Ua(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,fe,{value:h,writable:!0}),p},S:function(s,l,d){d?Ft(l)&&l[fe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[fe];if(u){var g=u.t,x=u.k,S=u.R,E=u.i;if(E===4)Ar(x,function(C){C!==fe&&(g[C]!==void 0||Gr(g,C)?S[C]||p(x[C]):(S[C]=!0,Yt(u)))}),Ar(g,function(C){x[C]!==void 0||Gr(x,C)||(S[C]=!1,Yt(u))});else if(E===5){if(i(u)&&(Yt(u),S.length=!0),x.length<g.length)for(var k=x.length;k<g.length;k++)S[k]=!1;else for(var P=g.length;P<x.length;P++)S[P]=!0;for(var I=Math.min(x.length,g.length),A=0;A<I;A++)x.hasOwnProperty(A)||(S[A]=!0),S[A]===void 0&&p(x[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var uc,Ho,qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fu=typeof Map<"u",uu=typeof Set<"u",hc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",vc=qa?Symbol.for("immer-nothing"):((uc={})["immer-nothing"]=!0,uc),mc=qa?Symbol.for("immer-draftable"):"__$immer_draftable",fe=qa?Symbol.for("immer-state"):"__$immer_state";var hu=""+Object.prototype.constructor,Kr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,xc=Object.getOwnPropertyDescriptors||function(r){var e={};return Kr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Ha={},Vo={get:function(r,e){if(e===fe)return r;var t=qt(r);if(!Gr(t,e))return function(n,a,s){var l,d=pc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!lt(i)?i:i===Da(r.t,e)?(Ma(r),r.o[e]=Wa(r.A.h,i,r)):i},has:function(r,e){return e in qt(r)},ownKeys:function(r){return Reflect.ownKeys(qt(r))},set:function(r,e,t){var i=pc(qt(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Da(qt(r),e),a=n?.[fe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(gc(t,n)&&(t!==void 0||Gr(r.t,e)))return!0;Ma(r),Yt(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Da(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ma(r),Yt(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=qt(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){rt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){rt(12)}},Wo={};Ar(Vo,function(r,e){Wo[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wo.deleteProperty=function(r,e){return Wo.set.call(this,r,e,void 0)},Wo.set=function(r,e,t){return Vo.set.call(this,r[0],e,t,r[0])};var mu=function(){function r(t){var i=this;this.O=hc,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 k=this;E===void 0&&(E=l);for(var P=arguments.length,I=Array(P>1?P-1:0),A=1;A<P;A++)I[A-1]=arguments[A];return d.produce(E,function(C){var R;return(R=a).call.apply(R,[k,C].concat(I))})}}var p;if(typeof a!="function"&&rt(6),s!==void 0&&typeof s!="function"&&rt(7),lt(n)){var h=cc(i),u=Wa(i,n,void 0),g=!0;try{p=a(u),g=!1}finally{g?_i(h):za(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Ba(h,s),Fa(E,h)},function(E){throw _i(h),E}):(Ba(h,s),Fa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===vc&&(p=void 0),i.D&&Ka(p,!0),s){var x=[],S=[];vt("Patches").M(n,p,x,S),s(x,S)}return p}rt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),g=1;g<h;g++)u[g-1]=arguments[g];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(u))})};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 t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){lt(t)||rt(8),Ft(t)&&(t=pu(t));var i=cc(this),n=Wa(this,t,void 0);return n[fe].C=!0,za(i),n},e.finishDraft=function(t,i){var n=t&&t[fe],a=n.A;return Ba(a,i),Fa(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!hc&&rt(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=vt("Patches").$;return Ft(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Xe=new mu,yu=Xe.produce,Av=Xe.produceWithPatches.bind(Xe),Rv=Xe.setAutoFreeze.bind(Xe),$v=Xe.setUseProxies.bind(Xe),Lv=Xe.applyPatches.bind(Xe),Nv=Xe.createDraft.bind(Xe),_v=Xe.finishDraft.bind(Xe),Ii=yu;function Xt(r){"@babel/helpers - typeof";return Xt=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},Xt(r)}function Ya(r,e){if(Xt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Xt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Xa(r){var e=Ya(r,"string");return Xt(e)==="symbol"?e:String(e)}function Ja(r,e,t){return e=Xa(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Sc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Ti(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(t),!0).forEach(function(i){Ja(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Sc(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function Te(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qa=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bi={INIT:"@@redux/INIT"+Qa(),REPLACE:"@@redux/REPLACE"+Qa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qa()}};function gu(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function es(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Te(1));return t(es)(r,e)}if(typeof r!="function")throw new Error(Te(2));var n=r,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Te(3));return a}function u(E){if(typeof E!="function")throw new Error(Te(4));if(d)throw new Error(Te(5));var k=!0;return p(),l.push(E),function(){if(k){if(d)throw new Error(Te(6));k=!1,p();var I=l.indexOf(E);l.splice(I,1),s=null}}}function g(E){if(!gu(E))throw new Error(Te(7));if(typeof E.type>"u")throw new Error(Te(8));if(d)throw new Error(Te(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var k=s=l,P=0;P<k.length;P++){var I=k[P];I()}return E}function x(E){if(typeof E!="function")throw new Error(Te(10));n=E,g({type:Bi.REPLACE})}function S(){var E,k=u;return E={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Te(11));function A(){I.next&&I.next(h())}A();var C=k(A);return{unsubscribe:C}}},E[Oc]=function(){return this},E}return g({type:Bi.INIT}),i={dispatch:g,subscribe:u,getState:h,replaceReducer:x},i[Oc]=S,i}function bu(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Bi.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof t(void 0,{type:Bi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Cc(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{bu(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var g=!1,x={},S=0;S<a.length;S++){var E=a[S],k=t[E],P=p[E],I=k(P,h);if(typeof I>"u"){var A=h&&h.type;throw new Error(Te(14))}x[E]=I,g=g||I!==P}return g=g||a.length!==Object.keys(p).length,g?x:p}}function qr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];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 Ec(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=qr.apply(void 0,l)(n.dispatch),Ti(Ti({},n),{},{dispatch:a})}}}function wc(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Ac=wc();Ac.withExtraArgument=wc;var ts=Ac;var _c=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),vu=function(r,e){var t={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(;t;)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 t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Yr=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},xu=Object.defineProperty,Su=Object.defineProperties,Ou=Object.getOwnPropertyDescriptors,Rc=Object.getOwnPropertySymbols,Cu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,$c=function(r,e,t){return e in r?xu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Jt=function(r,e){for(var t in e||(e={}))Cu.call(e,t)&&$c(r,t,e[t]);if(Rc)for(var i=0,n=Rc(e);i<n.length;i++){var t=n[i];Eu.call(e,t)&&$c(r,t,e[t])}return r},rs=function(r,e){return Su(r,Ou(e))},wu=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(p){n(p)}},s=function(d){try{l(t.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})};var Au=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qr:qr.apply(null,arguments)},qv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ru(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var $u=function(r){_c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Yr([void 0],t.concat(this))))},e}(Array),Lu=function(r){_c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Yr([void 0],t.concat(this))))},e}(Array);function ns(r){return lt(r)?Ii(r,function(){}):r}function Nu(r){return typeof r=="boolean"}function _u(){return function(e){return ku(e)}}function ku(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new $u;if(t&&(Nu(t)?l.push(ts):l.push(ts.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var p}return l}var os=!0;function kc(r){var e=_u(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,u=t.enhancers,g=u===void 0?void 0:u,x;if(typeof n=="function")x=n;else if(Ru(n))x=Cc(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),!os&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!os&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Ec.apply(void 0,S),k=qr;d&&(k=Au(Jt({trace:!os},typeof d=="object"&&d)));var P=new Lu(E),I=P;Array.isArray(g)?I=Yr([E],g):typeof g=="function"&&(I=g(P));var A=k.apply(void 0,I);return es(x,h,A)}function Qt(r,e){function t(){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 Jt(Jt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function Pc(r){var e={},t=[],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 t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function Pu(r){return typeof r=="function"}function Iu(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?Pc(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(Pu(r))d=function(){return ns(r())};else{var p=ns(r);d=function(){return p}}function h(u,g){u===void 0&&(u=d());var x=Yr([a[g.type]],s.filter(function(S){var E=S.matcher;return E(g)}).map(function(S){var E=S.reducer;return E}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,E){if(E)if(Ft(S)){var k=S,P=E(k,g);return P===void 0?S:P}else{if(lt(S))return Ii(S,function(I){return E(I,g)});var P=E(S,g);if(P===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return S},u)}return h.getInitialState=d,h}function Tu(r,e){return r+"/"+e}function Ic(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:ns(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var u=i[h],g=Tu(e,h),x,S;"reducer"in u?(x=u.reducer,S=u.prepare):x=u,a[h]=x,s[g]=x,l[h]=S?Qt(g,S):Qt(g)});function d(){var h=typeof r.extraReducers=="function"?Pc(r.extraReducers):[r.extraReducers],u=h[0],g=u===void 0?{}:u,x=h[1],S=x===void 0?[]:x,E=h[2],k=E===void 0?void 0:E,P=Jt(Jt({},g),s);return Iu(t,function(I){for(var A in P)I.addCase(A,P[A]);for(var C=0,R=S;C<R.length;C++){var B=R[C];I.addMatcher(B.matcher,B.reducer)}k&&I.addDefaultCase(k)})}var p;return{name:e,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Bu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Fu=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Bu[Math.random()*64|0];return e},Du=["name","message","stack","code"],is=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Lc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Mu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=Du;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Qv=function(){function r(e,t,i){var n=Qt(e+"/fulfilled",function(h,u,g,x){return{payload:h,meta:rs(Jt({},x||{}),{arg:g,requestId:u,requestStatus:"fulfilled"})}}),a=Qt(e+"/pending",function(h,u,g){return{payload:void 0,meta:rs(Jt({},g||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Qt(e+"/rejected",function(h,u,g,x,S){return{payload:x,error:(i&&i.serializeError||Mu)(h||"Rejected"),meta:rs(Jt({},S||{}),{arg:g,requestId:u,rejectedWithValue:!!x,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(u,g,x){var S=i?.idGenerator?i.idGenerator(h):Fu(),E=new d,k,P=!1;function I(C){k=C,E.abort()}var A=function(){return wu(this,null,function(){var C,R,B,j,oe,re,U;return vu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),j=(C=i?.condition)==null?void 0:C.call(i,h,{getState:g,extra:x}),zu(j)?[4,j]:[3,2];case 1:j=y.sent(),y.label=2;case 2:if(j===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,oe=new Promise(function(O,F){return E.signal.addEventListener("abort",function(){return F({name:"AbortError",message:k||"Aborted"})})}),u(a(S,h,(R=i?.getPendingMeta)==null?void 0:R.call(i,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:u,getState:g,extra:x,requestId:S,signal:E.signal,abort:I,rejectWithValue:function(O,F){return new is(O,F)},fulfillWithValue:function(O,F){return new Lc(O,F)}})).then(function(O){if(O instanceof is)throw O;return O instanceof Lc?n(O.payload,S,h,O.meta):n(O,S,h)})])];case 3:return B=y.sent(),[3,5];case 4:return re=y.sent(),B=re instanceof is?s(null,S,h,re.payload,re.meta):s(re,S,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(B)&&B.meta.condition,U||u(B),[2,B]}})})}();return Object.assign(A,{abort:I,requestId:S,arg:h,unwrap:function(){return A.then(Uu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function Uu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function zu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Tc="listener",Bc="completed",Fc="cancelled",ex="task-"+Fc,tx="task-"+Bc,rx=Tc+"-"+Fc,ox=Tc+"-"+Bc;var as="listenerMiddleware";var ix=Qt(as+"/add"),nx=Qt(as+"/removeAll"),ax=Qt(as+"/remove");var Nc,sx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Nc||(Nc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Wu=function(r){return function(e){setTimeout(e,r)}},lx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wu(10);bc();window.ftReduxStores||(window.ftReduxStores={});var Rr=class r extends br{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Er(a))return a;if(n==null)return;let s=Ic({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Uo;let i=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,s)=>{let l=a,d=n[l];return d?(...p)=>{let h=d(...p.map(i));return this.reduxStore.dispatch(h),h}:p=>{this.setState({[l]:i(p)})}}})}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 Hu(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Er(e)&&e.clear()}var Fi=class{constructor(e,t,i){this.store=e,this.valueSelector=t,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);vr(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Vu(r,e,t){return new Fi(r,e,t).watch()}var ds={};se(ds,{scrollHelper:()=>ju});var ls,Di=new Map,cs=class{lock(e,t){if(t){let i=Di.get(t);if(i==null||i===e)return Di.set(t,e),t}}release(e,t){t&&Di.get(t)===e&&Di.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of Pn(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(t=i??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var i,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(i=t.offsetTop)!==null&&i!==void 0?i:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let 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=wo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.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=(ls=window.FluidTopicsScrollHelper)!==null&&ls!==void 0?ls:new cs;var ju=window.FluidTopicsScrollHelper;var ps={};se(ps,{shadowQuerySelector:()=>Gu,shadowQuerySelectorAll:()=>Ku});function Gu(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Ku(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)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 fs={};se(fs,{SearchPlaceConverter:()=>$r,SearchPlaceQueryParams:()=>le,isSearchPlaceQueryParams:()=>ld,serializeRequest:()=>Yu});var Zu=Sp(Mc(),1);var Uc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Uc||(Uc={}));var zc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(zc||(zc={}));var Wc;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Wc||(Wc={}));var Hc;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Hc||(Hc={}));var Vc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Vc||(Vc={}));var jc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(jc||(jc={}));var Gc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Gc||(Gc={}));var Kc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Kc||(Kc={}));var Zc;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Zc||(Zc={}));var qc;(function(r){r.ASC="ASC",r.DESC="DESC"})(qc||(qc={}));var Yc;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Yc||(Yc={}));var Xc;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Xc||(Xc={}));var od=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var Jc;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Jc||(Jc={}));var Qc;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Qc||(Qc={}));var ed;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ed||(ed={}));var jo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(jo||(jo={}));var id=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var td;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(td||(td={}));var rd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(rd||(rd={}));var Ee;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(Ee||(Ee={}));var nd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(nd||(nd={}));var ad;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ad||(ad={}));var Lx={[Ee.PERSONAL_BOOK_SHARE_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.HTML_EXPORT_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.PDF_EXPORT_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.KHUB_ADMIN]:[Ee.CONTENT_PUBLISHER],[Ee.ADMIN]:[Ee.KHUB_ADMIN,Ee.USERS_ADMIN,Ee.PORTAL_ADMIN],[Ee.DEVELOPER]:[Ee.BETA_USER,Ee.DEBUG_USER],[Ee.GENERATIVE_AI_EXPORT_USER]:[Ee.GENERATIVE_AI_USER]};function qu(r){return`"${r}"`}function sd(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yu(r,e){return new $r(r).serialize(e)}var le;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(le||(le={}));var Xu=new Set(Object.values(le));function ld(r){return Xu.has(r)}var $r=class{constructor(e,t={},i=20,n=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=t,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,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=this.toURLSearchParams(e).toString(),n=t==null||t.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return a.search=i,a.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,p,h,u,g,x,S;let E=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&E.append(le.LOCALE,e.contentLocale):E.append(le.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(le.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&E.append(le.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(le.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(le.SORT,"last_update");let k=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(k.length>0){let C=k.map(R=>{var B,j;let oe=((j=(B=R.valueFilter)===null||B===void 0?void 0:B.values)!==null&&j!==void 0?j:[]).map(re=>this.escapeFilters(re)).map(re=>encodeURIComponent(qu(sd(re)))).join("_");return`${R.key}~${oe}`}).join("*");E.append(le.VALUE_FILTERS,C)}let P=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let C=P.map(R=>{var B;return`${R.key}~${(B=R.dateFilter)===null||B===void 0?void 0:B.type.toLowerCase()}`}).join("*");E.append(le.DATE_FILTERS,C)}let I=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&h!==void 0?h:[];if(I.length>0){let C=I.map(R=>{var B,j;return`${R.key}~${(B=R.rangeFilter)===null||B===void 0?void 0:B.from}_${(j=R.rangeFilter)===null||j===void 0?void 0:j.to}`}).join("*");E.append(le.RANGE_FILTERS,C)}let A=(u=e.otherQueryParams)!==null&&u!==void 0?u:{};for(let C in A)E.append(C,A[C]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(le.PER_PAGE,String(e.paging.perPage)),E}parse(e){var t;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:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l,d,p;let h=e.get(le.LOCALE)==="all"?void 0:e.get(le.LOCALE),u=((t=e.get(le.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=((i=e.get(le.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),x=(n=e.get(le.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=e.get(le.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let k of e.keys())ld(k)||(E[k]=e.get(k));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(le.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:od(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:wo(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:E}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(le.FILTERS)&&(d=this.parseValueFilters((t=e.get(le.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(le.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(le.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(le.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(le.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(le.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(sd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:jo[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(id(e))return[{key:"ft:lastEdition",dateFilter:{type:jo[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var hs={};se(hs,{toFtFormComponent:()=>us});var zi=Symbol("elementInternals");function us(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[zi].form}constructor(...n){super(n),this[zi]=this.attachInternals(),this[zi].role=e}setFormValue(n){this[zi].setFormValue(n)}}return t}var ms={};se(ms,{DateFormatter:()=>Jr});var Jr=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(i,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var ys,gs,bs,vs,Lr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((bs=(gs=(ys=window.safari)===null||ys===void 0?void 0:ys.pushNotification)===null||gs===void 0?void 0:gs.toString())!==null&&bs!==void 0?bs:"")==="[object SafariRemoteNotification]",xs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(vs=window.ftGlobals)!==null&&vs!==void 0?vs:{lit:un,litDecorators:gn,litRepeat:bn,litClassMap:vn,litStyleMap:xn,litUnsafeHTML:On,wcUtils:{...Ln,...En,..._n,...ms,...kn,...Tn,...da,...$n,...Aa,...ca,...La,...$a,...rc,...In,...ka,...Ia,...ic,...Ta,...ss,...Ra,...ds,...ps,...fs,...hs,isSafari:Lr,isTouchScreen:xs,setVariable:v}};var ot;(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(ot||(ot={}));var cd=L`
|
|
50
|
+
`;var ac={};var Da={};se(Da,{ParametrizedLabelResolver:()=>Kt});var Kt=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 ls={};se(ls,{FtCommandQueue:()=>Wo,FtLitElementRedux:()=>Kr,FtReduxStore:()=>Lr,ReduxWatcher:()=>Bi,clearAllStores:()=>Zu,isFtReduxStore:()=>Rr,redux:()=>sc,reduxEventListener:()=>pu,reduxReactive:()=>du,watch:()=>qu});var du=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},sc=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:vr,attribute:!1,...e};y(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})}},pu=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Wo=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 Rr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var lc,cc,dc,Ho=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),_r=Symbol("internalStores"),Kr=class extends M{constructor(){super(...arguments),this[lc]=new Map,this[cc]=new Map,this[dc]=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[_r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_r].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[_r].get(e)}addStore(e,r){var i;r=(i=r??(Rr(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[_r].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[_r].delete(r)}setupStores(){this.unsubscribeFromStores(),this[_r].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[Zt].has(e.store):this[Zt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Zt].set(e,r.subscribe(()=>this.updateFromStores())),this[Ho].set(e,[]),Rr(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[Ho].get(e).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Zt].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[Zt].has(e)&&this[Zt].get(e)(),this[Zt].delete(e),(r=this[Ho].get(e))===null||r===void 0||r.forEach(i=>i()),this[Ho].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};lc=Zt,cc=_r,dc=Ho;Kr.reduxProperties=new Map;Kr.reduxReactiveProperties=new Set;Kr.reduxEventListeners=new Map;function it(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 Mt(t){return!!t&&!!t[fe]}function ft(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)===xu}(t)||Array.isArray(t)||!!t[gc]||!!(!((e=t.constructor)===null||e===void 0)&&e[gc])||ja(t)||Ga(t))}function $r(t,e,r){r===void 0&&(r=!1),Yr(t)===0?(r?Object.keys:qr)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Yr(t){var e=t[fe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ja(t)?2:Ga(t)?3:0}function Zr(t,e){return Yr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fu(t,e){return Yr(t)===2?t.get(e):t[e]}function bc(t,e,r){var i=Yr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function xc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ja(t){return gu&&t instanceof Map}function Ga(t){return bu&&t instanceof Set}function qt(t){return t.o||t.t}function Ka(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Oc(t);delete e[fe];for(var r=qr(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),qa(t)||Mt(t)||!ft(t)||(Yr(t)>1&&(t.set=t.add=t.clear=t.delete=uu),Object.freeze(t),e&&$r(t,function(r,i){return Za(i,!0)},!0)),t}function uu(){it(2)}function qa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function St(t){var e=Va[t];return e||it(18,t),e}function hu(t,e){Va[t]||(Va[t]=e)}function za(){return jo}function Ba(t,e){e&&(St("Patches"),t.u=[],t.s=[],t.v=e)}function Ni(t){Wa(t),t.p.forEach(yu),t.p=null}function Wa(t){t===jo&&(jo=t.l)}function pc(t){return jo={p:[],l:jo,h:t,m:!0,_:0}}function yu(t){var e=t[fe];e.i===0||e.i===1?e.j():e.g=!0}function Fa(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||St("ES5").S(e,t,i),i?(r[fe].P&&(Ni(e),it(4)),ft(t)&&(t=ki(e,t),e.l||Ti(e,t)),e.u&&St("Patches").M(r[fe].t,t,e.u,e.s)):t=ki(e,r,[]),Ni(e),e.u&&e.v(e.u,e.s),t!==Sc?t:void 0}function ki(t,e,r){if(qa(e))return e;var i=e[fe];if(!i)return $r(e,function(l,d){return fc(t,i,e,l,d,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ti(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ka(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),$r(a,function(l,d){return fc(t,i,n,l,d,r,s)}),Ti(t,n,!1),r&&t.u&&St("Patches").N(i,r,t.u,t.s)}return i.o}function fc(t,e,r,i,n,a,s){if(Mt(n)){var l=ki(t,n,a&&e&&e.i!==3&&!Zr(e.R,i)?a.concat(i):void 0);if(bc(r,i,l),!Mt(l))return;t.m=!1}else s&&r.add(n);if(ft(n)&&!qa(n)){if(!t.h.D&&t._<1)return;ki(t,n),e&&e.A.l||Ti(t,n)}}function Ti(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Za(e,r)}function Ma(t,e){var r=t[fe];return(r?qt(r):t)[e]}function uc(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 Yt(t){t.P||(t.P=!0,t.l&&Yt(t.l))}function Ua(t){t.o||(t.o=Ka(t.t))}function Ha(t,e,r){var i=ja(e)?St("MapSet").F(e,r):Ga(e)?St("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:za(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Go;s&&(d=[l],p=Vo);var h=Proxy.revocable(d,p),u=h.revoke,g=h.proxy;return l.k=g,l.j=u,g}(e,r):St("ES5").J(e,r);return(r?r.A:za()).p.push(i),i}function mu(t){return Mt(t)||it(22,t),function e(r){if(!ft(r))return r;var i,n=r[fe],a=Yr(r);if(n){if(!n.P&&(n.i<4||!St("ES5").K(n)))return n.t;n.I=!0,i=hc(r,a),n.I=!1}else i=hc(r,a);return $r(i,function(s,l){n&&fu(n.t,s)===l||bc(i,s,e(l))}),a===3?new Set(i):i}(t)}function hc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ka(t)}function vc(){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[fe];return Go.get(p,s)},set:function(p){var h=this[fe];Go.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][fe];if(!d.P)switch(d.i){case 5:i(d)&&Yt(d);break;case 4:r(d)&&Yt(d)}}}function r(s){for(var l=s.t,d=s.k,p=qr(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==fe){var g=l[u];if(g===void 0&&!Zr(l,u))return!0;var v=d[u],S=v&&v[fe];if(S?S.t!==g:!xc(v,g))return!0}}var E=!!l[fe];return p.length!==qr(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&&it(3,JSON.stringify(qt(s)))}var a={};hu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,g){if(u){for(var v=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(v,""+S,t(S,!0));return v}var E=Oc(g);delete E[fe];for(var N=qr(E),T=0;T<N.length;T++){var P=N[T];E[P]=t(P,u||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(g),E)}(d,s),h={i:d?5:4,A:l?l.A:za(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,fe,{value:h,writable:!0}),p},S:function(s,l,d){d?Mt(l)&&l[fe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[fe];if(u){var g=u.t,v=u.k,S=u.R,E=u.i;if(E===4)$r(v,function(O){O!==fe&&(g[O]!==void 0||Zr(g,O)?S[O]||p(v[O]):(S[O]=!0,Yt(u)))}),$r(g,function(O){v[O]!==void 0||Zr(v,O)||(S[O]=!1,Yt(u))});else if(E===5){if(i(u)&&(Yt(u),S.length=!0),v.length<g.length)for(var N=v.length;N<g.length;N++)S[N]=!1;else for(var T=g.length;T<v.length;T++)S[T]=!0;for(var P=Math.min(v.length,g.length),A=0;A<P;A++)v.hasOwnProperty(A)||(S[A]=!0),S[A]===void 0&&p(v[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var yc,jo,Ya=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gu=typeof Map<"u",bu=typeof Set<"u",mc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Ya?Symbol.for("immer-nothing"):((yc={})["immer-nothing"]=!0,yc),gc=Ya?Symbol.for("immer-draftable"):"__$immer_draftable",fe=Ya?Symbol.for("immer-state"):"__$immer_state";var xu=""+Object.prototype.constructor,qr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(t){var e={};return qr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Va={},Go={get:function(t,e){if(e===fe)return t;var r=qt(t);if(!Zr(r,e))return function(n,a,s){var l,d=uc(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||!ft(i)?i:i===Ma(t.t,e)?(Ua(t),t.o[e]=Ha(t.A.h,i,t)):i},has:function(t,e){return e in qt(t)},ownKeys:function(t){return Reflect.ownKeys(qt(t))},set:function(t,e,r){var i=uc(qt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Ma(qt(t),e),a=n?.[fe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(xc(r,n)&&(r!==void 0||Zr(t.t,e)))return!0;Ua(t),Yt(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 Ma(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ua(t),Yt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){it(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){it(12)}},Vo={};$r(Go,function(t,e){Vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Vo.deleteProperty=function(t,e){return Vo.set.call(this,t,e,void 0)},Vo.set=function(t,e,r){return Go.set.call(this,t[0],e,r,t[0])};var vu=function(){function t(r){var i=this;this.O=mc,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 N=this;E===void 0&&(E=l);for(var T=arguments.length,P=Array(T>1?T-1:0),A=1;A<T;A++)P[A-1]=arguments[A];return d.produce(E,function(O){var R;return(R=a).call.apply(R,[N,O].concat(P))})}}var p;if(typeof a!="function"&&it(6),s!==void 0&&typeof s!="function"&&it(7),ft(n)){var h=pc(i),u=Ha(i,n,void 0),g=!0;try{p=a(u),g=!1}finally{g?Ni(h):Wa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Ba(h,s),Fa(E,h)},function(E){throw Ni(h),E}):(Ba(h,s),Fa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Sc&&(p=void 0),i.D&&Za(p,!0),s){var v=[],S=[];St("Patches").M(n,p,v,S),s(v,S)}return p}it(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),g=1;g<h;g++)u[g-1]=arguments[g];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(u))})};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){ft(r)||it(8),Mt(r)&&(r=mu(r));var i=pc(this),n=Ha(this,r,void 0);return n[fe].C=!0,Wa(i),n},e.finishDraft=function(r,i){var n=r&&r[fe],a=n.A;return Ba(a,i),Fa(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!mc&&it(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=St("Patches").$;return Mt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Je=new vu,Su=Je.produce,Lx=Je.produceWithPatches.bind(Je),Nx=Je.setAutoFreeze.bind(Je),kx=Je.setUseProxies.bind(Je),Tx=Je.applyPatches.bind(Je),Px=Je.createDraft.bind(Je),Ix=Je.finishDraft.bind(Je),Pi=Su;function Xt(t){"@babel/helpers - typeof";return Xt=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},Xt(t)}function Xa(t,e){if(Xt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Xt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ja(t){var e=Xa(t,"string");return Xt(e)==="symbol"?e:String(e)}function Qa(t,e,r){return e=Ja(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cc(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 Ii(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cc(Object(r),!0).forEach(function(i){Qa(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Ie(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 Ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),es=function(){return Math.random().toString(36).substring(7).split("").join(".")},Di={INIT:"@@redux/INIT"+es(),REPLACE:"@@redux/REPLACE"+es(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+es()}};function Ou(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 ts(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ie(1));return r(ts)(t,e)}if(typeof t!="function")throw new Error(Ie(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(Ie(3));return a}function u(E){if(typeof E!="function")throw new Error(Ie(4));if(d)throw new Error(Ie(5));var N=!0;return p(),l.push(E),function(){if(N){if(d)throw new Error(Ie(6));N=!1,p();var P=l.indexOf(E);l.splice(P,1),s=null}}}function g(E){if(!Ou(E))throw new Error(Ie(7));if(typeof E.type>"u")throw new Error(Ie(8));if(d)throw new Error(Ie(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var N=s=l,T=0;T<N.length;T++){var P=N[T];P()}return E}function v(E){if(typeof E!="function")throw new Error(Ie(10));n=E,g({type:Di.REPLACE})}function S(){var E,N=u;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Ie(11));function A(){P.next&&P.next(h())}A();var O=N(A);return{unsubscribe:O}}},E[Ec]=function(){return this},E}return g({type:Di.INIT}),i={dispatch:g,subscribe:u,getState:h,replaceReducer:v},i[Ec]=S,i}function Cu(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Di.INIT});if(typeof i>"u")throw new Error(Ie(12));if(typeof r(void 0,{type:Di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function wc(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{Cu(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var g=!1,v={},S=0;S<a.length;S++){var E=a[S],N=r[E],T=p[E],P=N(T,h);if(typeof P>"u"){var A=h&&h.type;throw new Error(Ie(14))}v[E]=P,g=g||P!==T}return g=g||a.length!==Object.keys(p).length,g?v:p}}function Xr(){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 Ac(){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(Ie(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Xr.apply(void 0,l)(n.dispatch),Ii(Ii({},n),{},{dispatch:a})}}}function Rc(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 _c=Rc();_c.withExtraArgument=Rc;var rs=_c;var Tc=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)}}(),Eu=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}}},Jr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},wu=Object.defineProperty,Au=Object.defineProperties,Ru=Object.getOwnPropertyDescriptors,$c=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable,Lc=function(t,e,r){return e in t?wu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Jt=function(t,e){for(var r in e||(e={}))_u.call(e,r)&&Lc(t,r,e[r]);if($c)for(var i=0,n=$c(e);i<n.length;i++){var r=n[i];$u.call(e,r)&&Lc(t,r,e[r])}return t},os=function(t,e){return Au(t,Ru(e))},Lu=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 Nu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xr:Xr.apply(null,arguments)},Qx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ku(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 Tu=function(t){Tc(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,Jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Jr([void 0],r.concat(this))))},e}(Array),Pu=function(t){Tc(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,Jr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Jr([void 0],r.concat(this))))},e}(Array);function as(t){return ft(t)?Pi(t,function(){}):t}function Iu(t){return typeof t=="boolean"}function Du(){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 Tu;if(r&&(Iu(r)?l.push(rs):l.push(rs.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var is=!0;function Pc(t){var e=Du(),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,u=r.enhancers,g=u===void 0?void 0:u,v;if(typeof n=="function")v=n;else if(ku(n))v=wc(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),!is&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!is&&S.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Ac.apply(void 0,S),N=Xr;d&&(N=Nu(Jt({trace:!is},typeof d=="object"&&d)));var T=new Pu(E),P=T;Array.isArray(g)?P=Jr([E],g):typeof g=="function"&&(P=g(T));var A=N.apply(void 0,P);return ts(v,h,A)}function Qt(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 Jt(Jt({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 Ic(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 Mu(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ic(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Fu(t))d=function(){return as(t())};else{var p=as(t);d=function(){return p}}function h(u,g){u===void 0&&(u=d());var v=Jr([a[g.type]],s.filter(function(S){var E=S.matcher;return E(g)}).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(Mt(S)){var N=S,T=E(N,g);return T===void 0?S:T}else{if(ft(S))return Pi(S,function(P){return E(P,g)});var T=E(S,g);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},u)}return h.getInitialState=d,h}function Uu(t,e){return t+"/"+e}function Dc(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:as(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var u=i[h],g=Uu(e,h),v,S;"reducer"in u?(v=u.reducer,S=u.prepare):v=u,a[h]=v,s[g]=v,l[h]=S?Qt(g,S):Qt(g)});function d(){var h=typeof t.extraReducers=="function"?Ic(t.extraReducers):[t.extraReducers],u=h[0],g=u===void 0?{}:u,v=h[1],S=v===void 0?[]:v,E=h[2],N=E===void 0?void 0:E,T=Jt(Jt({},g),s);return Mu(r,function(P){for(var A in T)P.addCase(A,T[A]);for(var O=0,R=S;O<R.length;O++){var I=R[O];P.addMatcher(I.matcher,I.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=zu[Math.random()*64|0];return e},Hu=["name","message","stack","code"],ns=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Nc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Vu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Hu;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},ov=function(){function t(e,r,i){var n=Qt(e+"/fulfilled",function(h,u,g,v){return{payload:h,meta:os(Jt({},v||{}),{arg:g,requestId:u,requestStatus:"fulfilled"})}}),a=Qt(e+"/pending",function(h,u,g){return{payload:void 0,meta:os(Jt({},g||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Qt(e+"/rejected",function(h,u,g,v,S){return{payload:v,error:(i&&i.serializeError||Vu)(h||"Rejected"),meta:os(Jt({},S||{}),{arg:g,requestId:u,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(u,g,v){var S=i?.idGenerator?i.idGenerator(h):Wu(),E=new d,N,T=!1;function P(O){N=O,E.abort()}var A=function(){return Lu(this,null,function(){var O,R,I,H,J,q,U;return Eu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),H=(O=i?.condition)==null?void 0:O.call(i,h,{getState:g,extra:v}),Gu(H)?[4,H]:[3,2];case 1:H=m.sent(),m.label=2;case 2:if(H===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,J=new Promise(function(C,B){return E.signal.addEventListener("abort",function(){return B({name:"AbortError",message:N||"Aborted"})})}),u(a(S,h,(R=i?.getPendingMeta)==null?void 0:R.call(i,{requestId:S,arg:h},{getState:g,extra:v}))),[4,Promise.race([J,Promise.resolve(r(h,{dispatch:u,getState:g,extra:v,requestId:S,signal:E.signal,abort:P,rejectWithValue:function(C,B){return new ns(C,B)},fulfillWithValue:function(C,B){return new Nc(C,B)}})).then(function(C){if(C instanceof ns)throw C;return C instanceof Nc?n(C.payload,S,h,C.meta):n(C,S,h)})])];case 3:return I=m.sent(),[3,5];case 4:return q=m.sent(),I=q instanceof ns?s(null,S,h,q.payload,q.meta):s(q,S,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(I)&&I.meta.condition,U||u(I),[2,I]}})})}();return Object.assign(A,{abort:P,requestId:S,arg:h,unwrap:function(){return A.then(ju)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function ju(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Gu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Bc="listener",Fc="completed",Mc="cancelled",iv="task-"+Mc,nv="task-"+Fc,av=Bc+"-"+Mc,sv=Bc+"-"+Fc;var ss="listenerMiddleware";var lv=Qt(ss+"/add"),cv=Qt(ss+"/removeAll"),dv=Qt(ss+"/remove");var kc,pv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(kc||(kc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ku=function(t){return function(e){setTimeout(e,t)}},fv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);vc();window.ftReduxStores||(window.ftReduxStores={});var Lr=class t extends xr{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(Rr(a))return a;if(n==null)return;let s=Dc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Pc({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 Wo;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 u=p(...h.map(n));return this.reduxStore.dispatch(u),u}: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 Zu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Rr(e)&&e.clear()}var Bi=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);vr(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 qu(t,e,r){return new Bi(t,e,r).watch()}var ps={};se(ps,{scrollHelper:()=>Yu});var cs,Fi=new Map,ds=class{lock(e,r){if(r){let i=Fi.get(r);if(i==null||i===e)return Fi.set(r,e),r}}release(e,r){r&&Fi.get(r)===e&&Fi.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Tn(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=_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",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(cs=window.FluidTopicsScrollHelper)!==null&&cs!==void 0?cs:new ds;var Yu=window.FluidTopicsScrollHelper;var fs={};se(fs,{shadowQuerySelector:()=>Xu,shadowQuerySelectorAll:()=>Ju});function Xu(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 hs={};se(hs,{SearchPlaceConverter:()=>Nr,SearchPlaceQueryParams:()=>le,isSearchPlaceQueryParams:()=>ud,serializeRequest:()=>th});var Qu=Ap(zc(),1);var Wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Wc||(Wc={}));var Hc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Hc||(Hc={}));var Vc;(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"})(Vc||(Vc={}));var jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jc||(jc={}));var Gc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Gc||(Gc={}));var Kc;(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"})(Kc||(Kc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(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"})(qc||(qc={}));var Yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Yc||(Yc={}));var Xc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Xc||(Xc={}));var Jc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Jc||(Jc={}));var Qc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Qc||(Qc={}));var ed;(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"})(ed||(ed={}));var td;(function(t){t.ASC="ASC",t.DESC="DESC"})(td||(td={}));var rd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(rd||(rd={}));var us;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(us||(us={}));var ld=t=>Object.keys(us).includes(t);var od;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(od||(od={}));var id;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(id||(id={}));var nd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(nd||(nd={}));var eo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(eo||(eo={}));var cd=t=>Object.keys(eo).includes(t);var ad;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ad||(ad={}));var sd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sd||(sd={}));var Ee;(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"})(Ee||(Ee={}));var dd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(dd||(dd={}));var pd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(pd||(pd={}));var Tv={[Ee.PERSONAL_BOOK_SHARE_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.HTML_EXPORT_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.PDF_EXPORT_USER]:[Ee.PERSONAL_BOOK_USER],[Ee.KHUB_ADMIN]:[Ee.CONTENT_PUBLISHER],[Ee.ADMIN]:[Ee.KHUB_ADMIN,Ee.USERS_ADMIN,Ee.PORTAL_ADMIN],[Ee.DEVELOPER]:[Ee.BETA_USER,Ee.DEBUG_USER],[Ee.GENERATIVE_AI_EXPORT_USER]:[Ee.GENERATIVE_AI_USER]};function eh(t){return`"${t}"`}function fd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function th(t,e){return new Nr(t).serialize(e)}var le;(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"})(le||(le={}));var rh=new Set(Object.values(le));function ud(t){return rh.has(t)}var Nr=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,u,g,v,S;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(le.LOCALE,e.contentLocale):E.append(le.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(le.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&E.append(le.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(le.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(le.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(R=>{var I,H;let J=((H=(I=R.valueFilter)===null||I===void 0?void 0:I.values)!==null&&H!==void 0?H:[]).map(q=>this.escapeFilters(q)).map(q=>encodeURIComponent(eh(fd(q)))).join("_");return`${R.key}~${J}`}).join("*");E.append(le.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(R=>{var I;return`${R.key}~${(I=R.dateFilter)===null||I===void 0?void 0:I.type.toLowerCase()}`}).join("*");E.append(le.DATE_FILTERS,O)}let P=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&h!==void 0?h:[];if(P.length>0){let O=P.map(R=>{var I,H;return`${R.key}~${(I=R.rangeFilter)===null||I===void 0?void 0:I.from}_${(H=R.rangeFilter)===null||H===void 0?void 0:H.to}`}).join("*");E.append(le.RANGE_FILTERS,O)}let A=(u=e.otherQueryParams)!==null&&u!==void 0?u:{};for(let O in A)E.append(O,A[O]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(le.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(le.LOCALE)==="all"?void 0:e.get(le.LOCALE),u=((r=e.get(le.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),g=((i=e.get(le.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=e.get(le.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=e.get(le.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let N of e.keys())ud(N)||(E[N]=e.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(le.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:ld(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:_o(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l;let d=[];return e.has(le.FILTERS)&&(d=this.parseValueFilters((r=e.get(le.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(le.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(le.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(le.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(le.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(le.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(fd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:eo[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(cd(e))return[{key:"ft:lastEdition",dateFilter:{type:eo[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ms={};se(ms,{toFtFormComponent:()=>ys});var zi=Symbol("elementInternals");function ys(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[zi].form}constructor(...n){super(n),this[zi]=this.attachInternals(),this[zi].role=e}setFormValue(n){this[zi].setFormValue(n)}}return r}var gs={};se(gs,{DateFormatter:()=>to});var to=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 bs,xs,vs,Ss,kr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((vs=(xs=(bs=window.safari)===null||bs===void 0?void 0:bs.pushNotification)===null||xs===void 0?void 0:xs.toString())!==null&&vs!==void 0?vs:"")==="[object SafariRemoteNotification]",Os="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ss=window.ftGlobals)!==null&&Ss!==void 0?Ss:{lit:un,litDecorators:gn,litRepeat:bn,litClassMap:xn,litStyleMap:vn,litUnsafeHTML:On,wcUtils:{...$n,...En,...Nn,...gs,...kn,...In,...da,..._n,...Ra,...ca,...La,...$a,...ic,...Pn,...Ta,...Ia,...ac,...Da,...ls,..._a,...ps,...fs,...hs,...ms,isSafari:kr,isTouchScreen:Os,setVariable:x}};var nt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(nt||(nt={}));var hd=L`
|
|
51
51
|
.ft-size-watcher--pixel {
|
|
52
52
|
width: 0;
|
|
53
53
|
height: 0;
|
|
@@ -66,12 +66,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
66
66
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
|
-
`;var
|
|
69
|
+
`;var Ko=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},Cs=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Qe=class extends M{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=nt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ce}render(){return w`
|
|
70
70
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
71
71
|
<div class="ft-size-watcher--watcher"></div>
|
|
72
72
|
</div>
|
|
73
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
74
|
-
.ft-typography--${
|
|
73
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=nt.S:this.size<976?this.category=nt.M:this.size<1024?this.category=nt.L:this.size<1440?this.category=nt.XL:this.category=nt.XXL,this.dispatchEvent(new Cs(this.size,this.category)))},this.debounceTimeout)}};Qe.elementDefinitions={};Qe.styles=hd;Ko([y({type:Number})],Qe.prototype,"debounceTimeout",void 0);Ko([y({type:Boolean})],Qe.prototype,"local",void 0);Ko([y({type:Number,reflect:!0})],Qe.prototype,"size",void 0);Ko([y({type:String,reflect:!0})],Qe.prototype,"category",void 0);Ko([F(".ft-size-watcher--watcher")],Qe.prototype,"watcher",void 0);V("ft-size-watcher")(Qe);var md=Symbol.for(""),oh=t=>{if(t?.r===md)return t?._$litStatic$},Es=t=>({_$litStatic$:t,r:md});var yd=new Map,gd=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=oh(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 u=s.join("$$lit$$");(e=yd.get(u))===void 0&&(s.raw=s,yd.set(u,e=s)),r=l}return t(e,...r)},ws=gd(tl),I0=gd(rl);var at;(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"})(at||(at={}));function bd(t){let e=$o[t];return L`
|
|
74
|
+
.ft-typography--${Nt(t)} {
|
|
75
75
|
font-family: ${e.fontFamily};
|
|
76
76
|
font-size: ${e.fontSize};
|
|
77
77
|
font-weight: ${e.fontWeight};
|
|
@@ -79,35 +79,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
79
79
|
line-height: ${e.lineHeight};
|
|
80
80
|
text-transform: ${e.textCase};
|
|
81
81
|
}
|
|
82
|
-
`}var
|
|
82
|
+
`}var xd=o.extend("--ft-typography-font-family","",_.titleFont),zt=o.extend("--ft-typography-font-family","",_.contentFont),D={fontFamily:zt,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")},ro={fontFamily:o.extend("--ft-typography-title-font-family","",xd),fontSize:o.extend("--ft-typography-title-font-size","",D.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",D.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",D.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",D.textTransform,"inherit")},oo={fontFamily:o.extend("--ft-typography-title-dense-font-family","",xd),fontSize:o.extend("--ft-typography-title-dense-font-size","",D.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",D.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",D.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",D.textTransform,"inherit")},io={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",zt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",D.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",D.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",D.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",D.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",D.textTransform,"inherit")},no={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",zt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",D.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",D.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",D.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",D.textTransform,"inherit")},Ut={fontFamily:o.extend("--ft-typography-body1-font-family","",zt),fontSize:o.extend("--ft-typography-body1-font-size","",D.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",D.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",D.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",D.textTransform,"inherit")},Ae={fontFamily:o.extend("--ft-typography-body2-font-family","",zt),fontSize:o.extend("--ft-typography-body2-font-size","",D.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",D.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",D.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",D.textTransform,"inherit")},ut={fontFamily:o.extend("--ft-typography-caption-font-family","",zt),fontSize:o.extend("--ft-typography-caption-font-size","",D.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",D.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",D.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",D.textTransform,"inherit")},ao={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",zt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",D.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",D.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",D.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",D.textTransform,"inherit")},so={fontFamily:o.extend("--ft-typography-overline-font-family","",zt),fontSize:o.extend("--ft-typography-overline-font-size","",D.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",D.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",D.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",D.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",D.textTransform,"uppercase")},Ot={fontFamily:o.extend("--ft-typography-button-font-family","",zt),fontSize:o.extend("--ft-typography-button-font-size","",D.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",D.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",D.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",D.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",D.textTransform,"uppercase")},vd=L`
|
|
83
83
|
.ft-typography--title {
|
|
84
|
-
font-family: ${Qr.fontFamily};
|
|
85
|
-
font-size: ${Qr.fontSize};
|
|
86
|
-
font-weight: ${Qr.fontWeight};
|
|
87
|
-
letter-spacing: ${Qr.letterSpacing};
|
|
88
|
-
line-height: ${Qr.lineHeight};
|
|
89
|
-
text-transform: ${Qr.textTransform};
|
|
90
|
-
}
|
|
91
|
-
`,yd=L`
|
|
92
|
-
.ft-typography--title-dense {
|
|
93
|
-
font-family: ${eo.fontFamily};
|
|
94
|
-
font-size: ${eo.fontSize};
|
|
95
|
-
font-weight: ${eo.fontWeight};
|
|
96
|
-
letter-spacing: ${eo.letterSpacing};
|
|
97
|
-
line-height: ${eo.lineHeight};
|
|
98
|
-
text-transform: ${eo.textTransform};
|
|
99
|
-
}
|
|
100
|
-
`,gd=L`
|
|
101
|
-
.ft-typography--subtitle1 {
|
|
102
|
-
font-family: ${to.fontFamily};
|
|
103
|
-
font-size: ${to.fontSize};
|
|
104
|
-
font-weight: ${to.fontWeight};
|
|
105
|
-
letter-spacing: ${to.letterSpacing};
|
|
106
|
-
line-height: ${to.lineHeight};
|
|
107
|
-
text-transform: ${to.textTransform};
|
|
108
|
-
}
|
|
109
|
-
`,bd=L`
|
|
110
|
-
.ft-typography--subtitle2 {
|
|
111
84
|
font-family: ${ro.fontFamily};
|
|
112
85
|
font-size: ${ro.fontSize};
|
|
113
86
|
font-weight: ${ro.fontWeight};
|
|
@@ -115,36 +88,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
115
88
|
line-height: ${ro.lineHeight};
|
|
116
89
|
text-transform: ${ro.textTransform};
|
|
117
90
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.ft-typography--body1 {
|
|
121
|
-
font-family: ${Dt.fontFamily};
|
|
122
|
-
font-size: ${Dt.fontSize};
|
|
123
|
-
font-weight: ${Dt.fontWeight};
|
|
124
|
-
letter-spacing: ${Dt.letterSpacing};
|
|
125
|
-
line-height: ${Dt.lineHeight};
|
|
126
|
-
text-transform: ${Dt.textTransform};
|
|
127
|
-
}
|
|
128
|
-
`,no=L`
|
|
129
|
-
.ft-typography--body2 {
|
|
130
|
-
font-family: ${Ae.fontFamily};
|
|
131
|
-
font-size: ${Ae.fontSize};
|
|
132
|
-
font-weight: ${Ae.fontWeight};
|
|
133
|
-
letter-spacing: ${Ae.letterSpacing};
|
|
134
|
-
line-height: ${Ae.lineHeight};
|
|
135
|
-
text-transform: ${Ae.textTransform};
|
|
136
|
-
}
|
|
137
|
-
`,tr=L`
|
|
138
|
-
.ft-typography--caption {
|
|
139
|
-
font-family: ${ct.fontFamily};
|
|
140
|
-
font-size: ${ct.fontSize};
|
|
141
|
-
font-weight: ${ct.fontWeight};
|
|
142
|
-
letter-spacing: ${ct.letterSpacing};
|
|
143
|
-
line-height: ${ct.lineHeight};
|
|
144
|
-
text-transform: ${ct.textTransform};
|
|
145
|
-
}
|
|
146
|
-
`,xd=L`
|
|
147
|
-
.ft-typography--breadcrumb {
|
|
91
|
+
`,Sd=L`
|
|
92
|
+
.ft-typography--title-dense {
|
|
148
93
|
font-family: ${oo.fontFamily};
|
|
149
94
|
font-size: ${oo.fontSize};
|
|
150
95
|
font-weight: ${oo.fontWeight};
|
|
@@ -152,8 +97,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
152
97
|
line-height: ${oo.lineHeight};
|
|
153
98
|
text-transform: ${oo.textTransform};
|
|
154
99
|
}
|
|
155
|
-
`,
|
|
156
|
-
.ft-typography--
|
|
100
|
+
`,Od=L`
|
|
101
|
+
.ft-typography--subtitle1 {
|
|
157
102
|
font-family: ${io.fontFamily};
|
|
158
103
|
font-size: ${io.fontSize};
|
|
159
104
|
font-weight: ${io.fontWeight};
|
|
@@ -161,28 +106,83 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
161
106
|
line-height: ${io.lineHeight};
|
|
162
107
|
text-transform: ${io.textTransform};
|
|
163
108
|
}
|
|
164
|
-
`,Od=L`
|
|
165
|
-
.ft-typography--button {
|
|
166
|
-
font-family: ${xt.fontFamily};
|
|
167
|
-
font-size: ${xt.fontSize};
|
|
168
|
-
font-weight: ${xt.fontWeight};
|
|
169
|
-
letter-spacing: ${xt.letterSpacing};
|
|
170
|
-
line-height: ${xt.lineHeight};
|
|
171
|
-
text-transform: ${xt.textTransform};
|
|
172
|
-
}
|
|
173
109
|
`,Cd=L`
|
|
110
|
+
.ft-typography--subtitle2 {
|
|
111
|
+
font-family: ${no.fontFamily};
|
|
112
|
+
font-size: ${no.fontSize};
|
|
113
|
+
font-weight: ${no.fontWeight};
|
|
114
|
+
letter-spacing: ${no.letterSpacing};
|
|
115
|
+
line-height: ${no.lineHeight};
|
|
116
|
+
text-transform: ${no.textTransform};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
`,Ed=L`
|
|
120
|
+
.ft-typography--body1 {
|
|
121
|
+
font-family: ${Ut.fontFamily};
|
|
122
|
+
font-size: ${Ut.fontSize};
|
|
123
|
+
font-weight: ${Ut.fontWeight};
|
|
124
|
+
letter-spacing: ${Ut.letterSpacing};
|
|
125
|
+
line-height: ${Ut.lineHeight};
|
|
126
|
+
text-transform: ${Ut.textTransform};
|
|
127
|
+
}
|
|
128
|
+
`,lo=L`
|
|
129
|
+
.ft-typography--body2 {
|
|
130
|
+
font-family: ${Ae.fontFamily};
|
|
131
|
+
font-size: ${Ae.fontSize};
|
|
132
|
+
font-weight: ${Ae.fontWeight};
|
|
133
|
+
letter-spacing: ${Ae.letterSpacing};
|
|
134
|
+
line-height: ${Ae.lineHeight};
|
|
135
|
+
text-transform: ${Ae.textTransform};
|
|
136
|
+
}
|
|
137
|
+
`,tr=L`
|
|
138
|
+
.ft-typography--caption {
|
|
139
|
+
font-family: ${ut.fontFamily};
|
|
140
|
+
font-size: ${ut.fontSize};
|
|
141
|
+
font-weight: ${ut.fontWeight};
|
|
142
|
+
letter-spacing: ${ut.letterSpacing};
|
|
143
|
+
line-height: ${ut.lineHeight};
|
|
144
|
+
text-transform: ${ut.textTransform};
|
|
145
|
+
}
|
|
146
|
+
`,wd=L`
|
|
147
|
+
.ft-typography--breadcrumb {
|
|
148
|
+
font-family: ${ao.fontFamily};
|
|
149
|
+
font-size: ${ao.fontSize};
|
|
150
|
+
font-weight: ${ao.fontWeight};
|
|
151
|
+
letter-spacing: ${ao.letterSpacing};
|
|
152
|
+
line-height: ${ao.lineHeight};
|
|
153
|
+
text-transform: ${ao.textTransform};
|
|
154
|
+
}
|
|
155
|
+
`,Ad=L`
|
|
156
|
+
.ft-typography--overline {
|
|
157
|
+
font-family: ${so.fontFamily};
|
|
158
|
+
font-size: ${so.fontSize};
|
|
159
|
+
font-weight: ${so.fontWeight};
|
|
160
|
+
letter-spacing: ${so.letterSpacing};
|
|
161
|
+
line-height: ${so.lineHeight};
|
|
162
|
+
text-transform: ${so.textTransform};
|
|
163
|
+
}
|
|
164
|
+
`,Rd=L`
|
|
165
|
+
.ft-typography--button {
|
|
166
|
+
font-family: ${Ot.fontFamily};
|
|
167
|
+
font-size: ${Ot.fontSize};
|
|
168
|
+
font-weight: ${Ot.fontWeight};
|
|
169
|
+
letter-spacing: ${Ot.letterSpacing};
|
|
170
|
+
line-height: ${Ot.lineHeight};
|
|
171
|
+
text-transform: ${Ot.textTransform};
|
|
172
|
+
}
|
|
173
|
+
`,_d=L`
|
|
174
174
|
.ft-typography {
|
|
175
175
|
vertical-align: inherit;
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
<${
|
|
177
|
+
`,$d=[Object.keys($o).map(t=>bd(t))];var Ld=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 M{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?ws`
|
|
178
|
+
<${Es(this.element)}
|
|
179
179
|
part="text"
|
|
180
180
|
class="ft-typography ft-typography--${this.variant}">
|
|
181
181
|
<slot></slot>
|
|
182
|
-
</${
|
|
183
|
-
`:
|
|
182
|
+
</${Es(this.element)}>
|
|
183
|
+
`:ws`
|
|
184
184
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
185
|
-
`}};ae.styles=[
|
|
185
|
+
`}};ae.styles=[vd,Sd,Od,Cd,Ed,lo,tr,wd,Ad,Rd,_d,...$d];Ld([y()],ae.prototype,"element",void 0);Ld([y()],ae.prototype,"variant",void 0);V("ft-typography")(ae);function Wi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Nd(t){return Wi(t).split("|").pop()}function kd(t){return Wi(t).split("|").join(" > ")}function Td(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Td(r,t.selected)),value:t.value}}function Pd(t){return Ye(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function As(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Td(e,!1))}}function Id(t){return Ye(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Dd=o.extend("--ft-ripple-color","",_.colorContent),$={color:Dd,backgroundColor:o.extend("--ft-ripple-background-color","",Dd),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Bd=o.extend("--ft-ripple-color","",_.colorPrimary),Fd={color:Bd,backgroundColor:o.extend("--ft-ripple-background-color","",Bd)},Md=o.extend("--ft-ripple-color","",_.colorSecondary),Ud={color:Md,backgroundColor:o.extend("--ft-ripple-background-color","",Md)},zd=L`
|
|
186
186
|
:host {
|
|
187
187
|
display: contents;
|
|
188
188
|
}
|
|
@@ -195,7 +195,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
195
195
|
|
|
196
196
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
197
197
|
overflow: hidden;
|
|
198
|
-
border-radius: ${
|
|
198
|
+
border-radius: ${$.borderRadius};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.ft-ripple .ft-ripple--background,
|
|
@@ -229,27 +229,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.ft-ripple .ft-ripple--background {
|
|
232
|
-
background-color: ${
|
|
232
|
+
background-color: ${$.backgroundColor};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-ripple .ft-ripple--effect {
|
|
236
|
-
background-color: ${
|
|
236
|
+
background-color: ${$.color};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
240
|
-
background-color: ${
|
|
240
|
+
background-color: ${Ud.backgroundColor};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
244
|
-
background-color: ${
|
|
244
|
+
background-color: ${Ud.color};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
248
|
-
background-color: ${
|
|
248
|
+
background-color: ${Fd.backgroundColor};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
252
|
-
background-color: ${
|
|
252
|
+
background-color: ${Fd.color};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.ft-ripple .ft-ripple--background {
|
|
@@ -279,22 +279,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
282
|
-
opacity: ${
|
|
282
|
+
opacity: ${$.opacityContentOnSurfaceHover};
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
286
|
-
opacity: ${
|
|
286
|
+
opacity: ${$.opacityContentOnSurfaceSelected};
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
290
|
-
opacity: ${
|
|
290
|
+
opacity: ${$.opacityContentOnSurfaceFocused};
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
294
|
-
opacity: ${
|
|
294
|
+
opacity: ${$.opacityContentOnSurfacePressed};
|
|
295
295
|
transform: translate(-50%, -50%) scale(1);
|
|
296
296
|
}
|
|
297
|
-
`;var ue={color:o.extend("--ft-loader-color",""
|
|
297
|
+
`;var ue={color:o.extend("--ft-loader-color","",_.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Wd=L`
|
|
298
298
|
:host {
|
|
299
299
|
line-height: 0;
|
|
300
300
|
}
|
|
@@ -363,7 +363,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
363
363
|
transform: translate(calc(0.35 * ${ue.size}), 0);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
`;var be={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")},
|
|
366
|
+
`;var be={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")},Hd=L`
|
|
367
367
|
:host, i.ft-icon {
|
|
368
368
|
display: inline-flex;
|
|
369
369
|
align-items: center;
|
|
@@ -411,7 +411,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
411
411
|
.ft-icon--material {
|
|
412
412
|
font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
|
|
413
413
|
}
|
|
414
|
-
`;var
|
|
414
|
+
`;var Vd=o.extend("--ft-button-color","",_.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",_.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",_.borderRadiusL),color:Vd,fontSize:o.extend("--ft-button-font-size","",Ot.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Vd),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(_.colorOpacityDisabled,"Design system")},jd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",_.colorOnPrimary)),Rs={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",_.colorPrimary)),color:jd,rippleColor:o.extend("--ft-button-primary-ripple-color","",jd)},Ct={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",_.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")},Gd=[L`
|
|
415
415
|
:host {
|
|
416
416
|
display: inline-block;
|
|
417
417
|
max-width: 100%;
|
|
@@ -422,7 +422,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
422
422
|
box-shadow: 0px 0px 0px transparent;
|
|
423
423
|
border: 0px solid transparent;
|
|
424
424
|
text-shadow: 0px 0px 0px transparent;
|
|
425
|
-
font-size: ${
|
|
425
|
+
font-size: ${te.fontSize};
|
|
426
426
|
text-decoration: none;
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -452,31 +452,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
452
452
|
border: none;
|
|
453
453
|
pointer-events: auto;
|
|
454
454
|
|
|
455
|
-
--ft-button-internal-line-height: max(calc(${
|
|
456
|
-
--ft-button-internal-color: ${
|
|
457
|
-
${
|
|
458
|
-
${
|
|
455
|
+
--ft-button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
|
|
456
|
+
--ft-button-internal-color: ${te.color};
|
|
457
|
+
${x(be.size,te.iconSize)};
|
|
458
|
+
${x($.color,te.rippleColor)};
|
|
459
459
|
|
|
460
|
-
border-radius: ${
|
|
461
|
-
padding: ${
|
|
462
|
-
background-color: ${
|
|
460
|
+
border-radius: ${te.borderRadius};
|
|
461
|
+
padding: ${te.verticalPadding} ${te.horizontalPadding};
|
|
462
|
+
background-color: ${te.backgroundColor};
|
|
463
463
|
color: var(--ft-button-internal-color);
|
|
464
464
|
-webkit-mask-image: radial-gradient(white, black);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-button.ft-button--outlined {
|
|
468
468
|
border: 1px solid var(--ft-button-internal-color);
|
|
469
|
-
padding: calc(${
|
|
469
|
+
padding: calc(${te.verticalPadding} - 1px) calc(${te.horizontalPadding} - 1px);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.ft-button.ft-button--dense {
|
|
473
|
-
padding: ${
|
|
474
|
-
border-radius: ${
|
|
475
|
-
gap: ${
|
|
473
|
+
padding: ${Ct.verticalPadding} ${Ct.horizontalPadding};
|
|
474
|
+
border-radius: ${Ct.borderRadius};
|
|
475
|
+
gap: ${Ct.iconPadding};
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
479
|
-
padding: calc(${
|
|
479
|
+
padding: calc(${Ct.verticalPadding} - 1px) calc(${Ct.horizontalPadding} - 1px);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-button:not([disabled]):hover {
|
|
@@ -484,22 +484,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
.ft-button--round {
|
|
487
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
487
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${te.verticalPadding});
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-button--round.ft-button--dense {
|
|
491
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
491
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ct.verticalPadding});
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-button[disabled] {
|
|
495
495
|
filter: grayscale(1);
|
|
496
|
-
opacity: ${
|
|
496
|
+
opacity: ${te.opacityDisabled};
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.ft-button.ft-button--primary {
|
|
500
|
-
background-color: ${
|
|
501
|
-
--ft-button-internal-color: ${
|
|
502
|
-
${
|
|
500
|
+
background-color: ${Rs.backgroundColor};
|
|
501
|
+
--ft-button-internal-color: ${Rs.color};
|
|
502
|
+
${x($.color,Rs.rippleColor)};
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-button:focus {
|
|
@@ -512,13 +512,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
512
512
|
white-space: nowrap;
|
|
513
513
|
text-overflow: ellipsis;
|
|
514
514
|
display: block;
|
|
515
|
-
margin: 0 ${
|
|
516
|
-
${
|
|
517
|
-
${
|
|
515
|
+
margin: 0 ${te.iconPadding};
|
|
516
|
+
${x(Ot.fontSize,"1em")};
|
|
517
|
+
${x(Ot.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
.ft-button--dense .ft-button--label {
|
|
521
|
-
margin: 0 ${
|
|
521
|
+
margin: 0 ${Ct.iconPadding};
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
.ft-button--label[hidden] {
|
|
@@ -531,13 +531,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
.ft-button--label[hidden] + [part="icon"] {
|
|
534
|
-
margin: 0 calc(${
|
|
535
|
-
padding: 0 ${
|
|
534
|
+
margin: 0 calc(${te.horizontalPadding} * -1);
|
|
535
|
+
padding: 0 ${te.verticalPadding};
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
539
|
-
margin: 0 calc(${
|
|
540
|
-
padding: 0 ${
|
|
539
|
+
margin: 0 calc(${Ct.horizontalPadding} * -1);
|
|
540
|
+
padding: 0 ${Ct.verticalPadding};
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -545,10 +545,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
ft-loader {
|
|
548
|
-
${
|
|
549
|
-
${
|
|
548
|
+
${x(ue.size,te.iconSize)};
|
|
549
|
+
${x(ue.color,"var(--ft-button-internal-color)")};
|
|
550
550
|
}
|
|
551
|
-
`,
|
|
551
|
+
`,Ar];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},re=class extends M{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 ce(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 ce(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 w`
|
|
552
552
|
<style>
|
|
553
553
|
.ft-ripple .ft-ripple--effect {
|
|
554
554
|
left: ${this.originX}px;
|
|
@@ -559,7 +559,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
559
559
|
<div class="ft-ripple--background"></div>
|
|
560
560
|
<div class="ft-ripple--effect"></div>
|
|
561
561
|
</div>
|
|
562
|
-
`}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
|
|
562
|
+
`}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=zd;je([y({type:Boolean})],re.prototype,"primary",void 0);je([y({type:Boolean})],re.prototype,"secondary",void 0);je([y({type:Boolean})],re.prototype,"unbounded",void 0);je([y({type:Boolean})],re.prototype,"activated",void 0);je([y({type:Boolean})],re.prototype,"selected",void 0);je([y({type:Boolean})],re.prototype,"disabled",void 0);je([W()],re.prototype,"hovered",void 0);je([W()],re.prototype,"focused",void 0);je([W()],re.prototype,"pressed",void 0);je([W()],re.prototype,"rippling",void 0);je([W()],re.prototype,"originX",void 0);je([W()],re.prototype,"originY",void 0);je([F(".ft-ripple")],re.prototype,"ripple",void 0);je([F(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0);V("ft-ripple")(re);var rr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Kd=L`
|
|
563
563
|
.ft-tooltip--container {
|
|
564
564
|
display: block;
|
|
565
565
|
}
|
|
@@ -588,7 +588,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
588
588
|
position: relative;
|
|
589
589
|
word-break: break-word;
|
|
590
590
|
}
|
|
591
|
-
`;var
|
|
591
|
+
`;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},he=class extends M{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 ce,this.revealDebouncer=new ce}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return w`
|
|
592
592
|
<div part="container"
|
|
593
593
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
594
594
|
@mouseenter=${this.onHover}
|
|
@@ -606,24 +606,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
606
606
|
</div>
|
|
607
607
|
</div>
|
|
608
608
|
</div>
|
|
609
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ea(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,t){return Math.max(e,Math.min(0,-t))}};he.elementDefinitions={"ft-typography":ae};he.styles=Wd;je([m()],he.prototype,"text",void 0);je([m({type:Boolean})],he.prototype,"manual",void 0);je([m({type:Boolean})],he.prototype,"inline",void 0);je([m({type:Number})],he.prototype,"delay",void 0);je([m()],he.prototype,"position",void 0);je([yn()],he.prototype,"slotNodes",void 0);je([D(".ft-tooltip--container")],he.prototype,"container",void 0);je([D(".ft-tooltip")],he.prototype,"tooltip",void 0);je([D(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);je([W()],he.prototype,"visible",void 0);je([Br({passive:!0})],he.prototype,"onTouch",null);je([Br({passive:!0})],he.prototype,"onHover",null);je([Br({passive:!0})],he.prototype,"onOut",null);je([Br({passive:!0})],he.prototype,"onClick",null);H("ft-tooltip")(he);var Ot;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱"})(Ot||(Ot={}));var _;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(_||(_={}));var As=new Map([...["abw"].map(r=>[r,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,_.AUDIO]),...["avi"].map(r=>[r,_.AVI]),...["chm","xhs"].map(r=>[r,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,_.CODE]),...["csv"].map(r=>[r,_.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,_.DITA]),...["epub"].map(r=>[r,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,_.EXCEL]),...["flac"].map(r=>[r,_.FLAC]),...["gif"].map(r=>[r,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,_.GZIP]),...["html","htm","xhtml"].map(r=>[r,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,_.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,_.JPEG]),...["json"].map(r=>[r,_.JSON]),...["m4a","m4p"].map(r=>[r,_.M4A]),...["mov","qt"].map(r=>[r,_.MOV]),...["mp3"].map(r=>[r,_.MP3]),...["mp4","m4v"].map(r=>[r,_.MP4]),...["ogg","oga"].map(r=>[r,_.OGG]),...["pdf","ps"].map(r=>[r,_.PDF]),...["png"].map(r=>[r,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,_.POWERPOINT]),...["rar"].map(r=>[r,_.RAR]),...["stp"].map(r=>[r,_.STP]),...["txt","rtf","md","mdown"].map(r=>[r,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,_.VIDEO]),...["wav"].map(r=>[r,_.WAV]),...["wma"].map(r=>[r,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,_.WORD]),...["xml","xsl","rdf"].map(r=>[r,_.XML]),...["yaml","yml","x-yaml"].map(r=>[r,_.YAML]),...["zip"].map(r=>[r,_.ZIP])]),Qu=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Hd(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=Qu.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=As.get(l))!==null&&i!==void 0?i:As.get(e))!==null&&n!==void 0?n:As.get(s))!==null&&a!==void 0?a:_.UNKNOWN}var vO={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Me;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Me||(Me={}));var Hi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},me=class extends M{constructor(){super(...arguments),this.resolvedIcon=z}render(){let e=this.variant&&Object.values(Me).includes(this.variant)?this.variant:Me.fluid_topics,t=e!==Me.material||!!this.value;return w`
|
|
609
|
+
`}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="",wa(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))}};he.elementDefinitions={"ft-typography":ae};he.styles=Kd;Ge([y()],he.prototype,"text",void 0);Ge([y({type:Boolean})],he.prototype,"manual",void 0);Ge([y({type:Boolean})],he.prototype,"inline",void 0);Ge([y({type:Number})],he.prototype,"delay",void 0);Ge([y()],he.prototype,"position",void 0);Ge([mn()],he.prototype,"slotNodes",void 0);Ge([F(".ft-tooltip--container")],he.prototype,"container",void 0);Ge([F(".ft-tooltip")],he.prototype,"tooltip",void 0);Ge([F(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);Ge([W()],he.prototype,"visible",void 0);Ge([Fr({passive:!0})],he.prototype,"onTouch",null);Ge([Fr({passive:!0})],he.prototype,"onHover",null);Ge([Fr({passive:!0})],he.prototype,"onOut",null);Ge([Fr({passive:!0})],he.prototype,"onClick",null);V("ft-tooltip")(he);var Et;(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="󨃱"})(Et||(Et={}));var k;(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=""})(k||(k={}));var _s=new Map([...["abw"].map(t=>[t,k.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,k.AUDIO]),...["avi"].map(t=>[t,k.AVI]),...["chm","xhs"].map(t=>[t,k.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,k.CODE]),...["csv"].map(t=>[t,k.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,k.DITA]),...["epub"].map(t=>[t,k.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,k.EXCEL]),...["flac"].map(t=>[t,k.FLAC]),...["gif"].map(t=>[t,k.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,k.GZIP]),...["html","htm","xhtml"].map(t=>[t,k.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,k.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,k.JPEG]),...["json"].map(t=>[t,k.JSON]),...["m4a","m4p"].map(t=>[t,k.M4A]),...["mov","qt"].map(t=>[t,k.MOV]),...["mp3"].map(t=>[t,k.MP3]),...["mp4","m4v"].map(t=>[t,k.MP4]),...["ogg","oga"].map(t=>[t,k.OGG]),...["pdf","ps"].map(t=>[t,k.PDF]),...["png"].map(t=>[t,k.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,k.POWERPOINT]),...["rar"].map(t=>[t,k.RAR]),...["stp"].map(t=>[t,k.STP]),...["txt","rtf","md","mdown"].map(t=>[t,k.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,k.VIDEO]),...["wav"].map(t=>[t,k.WAV]),...["wma"].map(t=>[t,k.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,k.WORD]),...["xml","xsl","rdf"].map(t=>[t,k.XML]),...["yaml","yml","x-yaml"].map(t=>[t,k.YAML]),...["zip"].map(t=>[t,k.ZIP])]),ih=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Zd(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=ih.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=_s.get(l))!==null&&i!==void 0?i:_s.get(e))!==null&&n!==void 0?n:_s.get(s))!==null&&a!==void 0?a:k.UNKNOWN}var CO={[k.ABW]:"#91ABC6",[k.AUDIO]:"#1795E3",[k.AVI]:"#E63324",[k.CHM]:"#71C3EB",[k.CODE]:"#71C3EB",[k.CSV]:"#1F7345",[k.DITA]:"#71C3EB",[k.EPUB]:"#85B926",[k.EXCEL]:"#1F7345",[k.FLAC]:"#1795E3",[k.GIF]:"#59B031",[k.GZIP]:"#F8AB36",[k.HTML]:"#71C3EB",[k.IMAGE]:"#59B031",[k.JPEG]:"#59B031",[k.JSON]:"#71C3EB",[k.M4A]:"#1795E3",[k.MOV]:"#E63324",[k.MP3]:"#1795E3",[k.MP4]:"#E63324",[k.OGG]:"#1795E3",[k.PDF]:"#E44948",[k.PNG]:"#59B031",[k.POWERPOINT]:"#B54A2B",[k.RAR]:"#F8AB36",[k.STP]:"#3764B1",[k.TEXT]:"#3162AB",[k.UNKNOWN]:"#999999",[k.VIDEO]:"#E63324",[k.WAV]:"#1795E3",[k.WMA]:"#1795E3",[k.WORD]:"#3162AB",[k.XML]:"#71C3EB",[k.YAML]:"#71C3EB",[k.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Hi=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 M{constructor(){super(...arguments),this.resolvedIcon=z}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return w`
|
|
610
610
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
611
611
|
${Sn(this.resolvedIcon)}
|
|
612
|
-
<slot ?hidden=${
|
|
612
|
+
<slot ?hidden=${r}></slot>
|
|
613
613
|
</i>
|
|
614
|
-
`}get textContent(){var e,
|
|
614
|
+
`}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 Ue.file_format:this.resolvedIcon=(e=k[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||z;break;default:this.resolvedIcon=(r=Et[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=Hd;Hi([y()],ye.prototype,"variant",void 0);Hi([y()],ye.prototype,"value",void 0);Hi([W()],ye.prototype,"resolvedIcon",void 0);Hi([F("slot")],ye.prototype,"slottedContent",void 0);V("ft-icon")(ye);var Tr=class extends M{render(){return w`
|
|
615
615
|
<div class="ft-loader">
|
|
616
616
|
<div></div>
|
|
617
617
|
<div></div>
|
|
618
618
|
<div></div>
|
|
619
619
|
<div></div>
|
|
620
620
|
</div>
|
|
621
|
-
`}};
|
|
621
|
+
`}};Tr.styles=Wd;V("ft-loader")(Tr);var Te=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},me=class extends ys(M,"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=w`
|
|
622
622
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
623
623
|
<ft-typography part="label"
|
|
624
624
|
variant=${this.typographyVariant}
|
|
625
625
|
element="span"
|
|
626
|
-
class="ft-button--label ${
|
|
626
|
+
class="ft-button--label ${kr?"ft-safari-ellipsis-fix":""}"
|
|
627
627
|
?hidden=${!this.hasTextContent()}>
|
|
628
628
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
629
629
|
</ft-typography>
|
|
@@ -633,7 +633,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
633
633
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
634
634
|
part="button"
|
|
635
635
|
class="${pe(this.buttonClasses)}"
|
|
636
|
-
aria-label="${(
|
|
636
|
+
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
637
637
|
?disabled=${this.isDisabled()}>
|
|
638
638
|
${n}
|
|
639
639
|
</a>
|
|
@@ -655,7 +655,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
655
655
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
656
656
|
`:w`
|
|
657
657
|
<slot part="icon" name="icon"></slot>
|
|
658
|
-
`}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
|
|
658
|
+
`}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 Wr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};me.elementDefinitions={"ft-ripple":re,"ft-tooltip":he,"ft-typography":ae,"ft-icon":ye,"ft-loader":Tr};Te([y()],me.prototype,"href",void 0);Te([y()],me.prototype,"target",void 0);Te([y({type:String,reflect:!0})],me.prototype,"role",void 0);Te([y()],me.prototype,"type",void 0);Te([y({type:Boolean})],me.prototype,"disabled",void 0);Te([y()],me.prototype,"label",void 0);Te([y()],me.prototype,"icon",void 0);Te([y()],me.prototype,"iconVariant",void 0);Te([y({type:Boolean})],me.prototype,"trailingIcon",void 0);Te([y({type:Boolean})],me.prototype,"loading",void 0);Te([y({attribute:"aria-label"})],me.prototype,"ariaLabel",void 0);Te([y()],me.prototype,"tooltipPosition",void 0);Te([y({type:Boolean})],me.prototype,"hideTooltip",void 0);Te([y({type:Boolean})],me.prototype,"forceTooltip",void 0);Te([F(".ft-button")],me.prototype,"button",void 0);Te([F(".ft-button--label slot")],me.prototype,"slottedContent",void 0);Te([F("[part=tooltip]")],me.prototype,"tooltip",void 0);var Vi=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 me{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"}};Re.styles=[Uo,Gd];Vi([y({type:Boolean})],Re.prototype,"primary",void 0);Vi([y({type:Boolean})],Re.prototype,"outlined",void 0);Vi([y({type:Boolean})],Re.prototype,"dense",void 0);Vi([y({type:Boolean})],Re.prototype,"round",void 0);var qd=[L`
|
|
659
659
|
:host {
|
|
660
660
|
display: inline-block;
|
|
661
661
|
max-width: 100%;
|
|
@@ -740,13 +740,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
740
740
|
/** Brand Primary styles **/
|
|
741
741
|
|
|
742
742
|
.ftds--family-brand.ft-button--primary {
|
|
743
|
-
${
|
|
743
|
+
${x(ue.color,b.primaryBrandIconColor)};
|
|
744
744
|
|
|
745
|
-
${
|
|
746
|
-
${
|
|
747
|
-
${
|
|
748
|
-
${
|
|
749
|
-
${
|
|
745
|
+
${x($.color,b.primaryBrandStateLayerColor)};
|
|
746
|
+
${x($.opacityContentOnSurfaceHover,b.primaryBrandHoverStateLayerOpacity)};
|
|
747
|
+
${x($.opacityContentOnSurfaceFocused,b.primaryBrandFocusStateLayerOpacity)};
|
|
748
|
+
${x($.opacityContentOnSurfaceSelected,b.primaryBrandActiveStateLayerOpacity)};
|
|
749
|
+
${x($.opacityContentOnSurfacePressed,b.primaryBrandActiveStateLayerOpacity)};
|
|
750
750
|
|
|
751
751
|
background-color: ${b.primaryBrandBackgroundColor};
|
|
752
752
|
color: ${b.primaryBrandColor};
|
|
@@ -764,13 +764,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
764
764
|
/** Brand Secondary styles **/
|
|
765
765
|
|
|
766
766
|
.ftds--family-brand.ft-button--secondary {
|
|
767
|
-
${
|
|
767
|
+
${x(ue.color,b.secondaryBrandIconColor)};
|
|
768
768
|
|
|
769
|
-
${
|
|
770
|
-
${
|
|
771
|
-
${
|
|
772
|
-
${
|
|
773
|
-
${
|
|
769
|
+
${x($.color,b.secondaryBrandStateLayerColor)};
|
|
770
|
+
${x($.opacityContentOnSurfaceHover,b.secondaryBrandHoverStateLayerOpacity)};
|
|
771
|
+
${x($.opacityContentOnSurfaceFocused,b.secondaryBrandFocusStateLayerOpacity)};
|
|
772
|
+
${x($.opacityContentOnSurfaceSelected,b.secondaryBrandActiveStateLayerOpacity)};
|
|
773
|
+
${x($.opacityContentOnSurfacePressed,b.secondaryBrandActiveStateLayerOpacity)};
|
|
774
774
|
|
|
775
775
|
background-color: ${b.secondaryBrandBackgroundColor};
|
|
776
776
|
color: ${b.secondaryBrandColor};
|
|
@@ -789,13 +789,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
789
789
|
/** Brand Tertiary styles **/
|
|
790
790
|
|
|
791
791
|
.ftds--family-brand.ft-button--tertiary {
|
|
792
|
-
${
|
|
792
|
+
${x(ue.color,b.tertiaryBrandIconColor)};
|
|
793
793
|
|
|
794
|
-
${
|
|
795
|
-
${
|
|
796
|
-
${
|
|
797
|
-
${
|
|
798
|
-
${
|
|
794
|
+
${x($.color,b.tertiaryBrandStateLayerColor)};
|
|
795
|
+
${x($.opacityContentOnSurfaceHover,b.tertiaryBrandHoverStateLayerOpacity)};
|
|
796
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiaryBrandFocusStateLayerOpacity)};
|
|
797
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
798
|
+
${x($.opacityContentOnSurfacePressed,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
799
799
|
|
|
800
800
|
background-color: ${b.tertiaryBrandBackgroundColor};
|
|
801
801
|
color: ${b.tertiaryBrandColor};
|
|
@@ -813,13 +813,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
813
813
|
/** Neutral Secondary styles **/
|
|
814
814
|
|
|
815
815
|
.ftds--family-neutral.ft-button--secondary {
|
|
816
|
-
${
|
|
816
|
+
${x(ue.color,b.secondaryNeutralIconColor)};
|
|
817
817
|
|
|
818
|
-
${
|
|
819
|
-
${
|
|
820
|
-
${
|
|
821
|
-
${
|
|
822
|
-
${
|
|
818
|
+
${x($.backgroundColor,b.secondaryNeutralStateLayerColor)};
|
|
819
|
+
${x($.opacityContentOnSurfaceHover,b.secondaryNeutralHoverStateLayerOpacity)};
|
|
820
|
+
${x($.opacityContentOnSurfaceFocused,b.secondaryNeutralFocusStateLayerOpacity)};
|
|
821
|
+
${x($.opacityContentOnSurfaceSelected,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
822
|
+
${x($.opacityContentOnSurfacePressed,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
823
823
|
|
|
824
824
|
background-color: ${b.secondaryNeutralBackgroundColor};
|
|
825
825
|
color: ${b.secondaryNeutralColor};
|
|
@@ -838,13 +838,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
838
838
|
/** Neutral Tertiary styles **/
|
|
839
839
|
|
|
840
840
|
.ftds--family-neutral.ft-button--tertiary {
|
|
841
|
-
${
|
|
841
|
+
${x(ue.color,b.tertiaryNeutralIconColor)};
|
|
842
842
|
|
|
843
|
-
${
|
|
844
|
-
${
|
|
845
|
-
${
|
|
846
|
-
${
|
|
847
|
-
${
|
|
843
|
+
${x($.backgroundColor,b.tertiaryNeutralStateLayerColor)};
|
|
844
|
+
${x($.opacityContentOnSurfaceHover,b.tertiaryNeutralHoverStateLayerOpacity)};
|
|
845
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiaryNeutralFocusStateLayerOpacity)};
|
|
846
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
847
|
+
${x($.opacityContentOnSurfacePressed,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
848
848
|
|
|
849
849
|
background-color: ${b.tertiaryNeutralBackgroundColor};
|
|
850
850
|
color: ${b.tertiaryNeutralColor};
|
|
@@ -862,13 +862,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
862
862
|
/** Info Secondary styles **/
|
|
863
863
|
|
|
864
864
|
.ftds--family-info.ft-button--secondary {
|
|
865
|
-
${
|
|
865
|
+
${x(ue.color,b.secondaryInfoIconColor)};
|
|
866
866
|
|
|
867
|
-
${
|
|
868
|
-
${
|
|
869
|
-
${
|
|
870
|
-
${
|
|
871
|
-
${
|
|
867
|
+
${x($.backgroundColor,b.secondaryInfoStateLayerColor)};
|
|
868
|
+
${x($.opacityContentOnSurfaceHover,b.secondaryInfoHoverStateLayerOpacity)};
|
|
869
|
+
${x($.opacityContentOnSurfaceFocused,b.secondaryInfoFocusStateLayerOpacity)};
|
|
870
|
+
${x($.opacityContentOnSurfaceSelected,b.secondaryInfoActiveStateLayerOpacity)};
|
|
871
|
+
${x($.opacityContentOnSurfacePressed,b.secondaryInfoActiveStateLayerOpacity)};
|
|
872
872
|
|
|
873
873
|
background-color: ${b.secondaryInfoBackgroundColor};
|
|
874
874
|
color: ${b.secondaryInfoColor};
|
|
@@ -887,13 +887,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
887
887
|
/** Info Tertiary styles **/
|
|
888
888
|
|
|
889
889
|
.ftds--family-info.ft-button--tertiary {
|
|
890
|
-
${
|
|
890
|
+
${x(ue.color,b.tertiaryInfoIconColor)};
|
|
891
891
|
|
|
892
|
-
${
|
|
893
|
-
${
|
|
894
|
-
${
|
|
895
|
-
${
|
|
896
|
-
${
|
|
892
|
+
${x($.backgroundColor,b.tertiaryInfoStateLayerColor)};
|
|
893
|
+
${x($.opacityContentOnSurfaceHover,b.tertiaryInfoHoverStateLayerOpacity)};
|
|
894
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiaryInfoFocusStateLayerOpacity)};
|
|
895
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
896
|
+
${x($.opacityContentOnSurfacePressed,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
897
897
|
|
|
898
898
|
background-color: ${b.tertiaryInfoBackgroundColor};
|
|
899
899
|
color: ${b.tertiaryInfoColor};
|
|
@@ -911,13 +911,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
911
911
|
/** Success Secondary styles **/
|
|
912
912
|
|
|
913
913
|
.ftds--family-success.ft-button--secondary {
|
|
914
|
-
${
|
|
914
|
+
${x(ue.color,b.secondarySuccessIconColor)};
|
|
915
915
|
|
|
916
|
-
${
|
|
917
|
-
${
|
|
918
|
-
${
|
|
919
|
-
${
|
|
920
|
-
${
|
|
916
|
+
${x($.backgroundColor,b.secondarySuccessStateLayerColor)};
|
|
917
|
+
${x($.opacityContentOnSurfaceHover,b.secondarySuccessHoverStateLayerOpacity)};
|
|
918
|
+
${x($.opacityContentOnSurfaceFocused,b.secondarySuccessFocusStateLayerOpacity)};
|
|
919
|
+
${x($.opacityContentOnSurfaceSelected,b.secondarySuccessActiveStateLayerOpacity)};
|
|
920
|
+
${x($.opacityContentOnSurfacePressed,b.secondarySuccessActiveStateLayerOpacity)};
|
|
921
921
|
|
|
922
922
|
background-color: ${b.secondarySuccessBackgroundColor};
|
|
923
923
|
color: ${b.secondarySuccessColor};
|
|
@@ -936,13 +936,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
936
936
|
/** Success Tertiary styles **/
|
|
937
937
|
|
|
938
938
|
.ftds--family-success.ft-button--tertiary {
|
|
939
|
-
${
|
|
939
|
+
${x(ue.color,b.tertiarySuccessIconColor)};
|
|
940
940
|
|
|
941
|
-
${
|
|
942
|
-
${
|
|
943
|
-
${
|
|
944
|
-
${
|
|
945
|
-
${
|
|
941
|
+
${x($.backgroundColor,b.tertiarySuccessStateLayerColor)};
|
|
942
|
+
${x($.opacityContentOnSurfaceHover,b.tertiarySuccessHoverStateLayerOpacity)};
|
|
943
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiarySuccessFocusStateLayerOpacity)};
|
|
944
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
945
|
+
${x($.opacityContentOnSurfacePressed,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
946
946
|
|
|
947
947
|
background-color: ${b.tertiarySuccessBackgroundColor};
|
|
948
948
|
color: ${b.tertiarySuccessColor};
|
|
@@ -960,13 +960,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
960
960
|
/** Warning Secondary styles **/
|
|
961
961
|
|
|
962
962
|
.ftds--family-warning.ft-button--secondary {
|
|
963
|
-
${
|
|
963
|
+
${x(ue.color,b.secondaryWarningIconColor)};
|
|
964
964
|
|
|
965
|
-
${
|
|
966
|
-
${
|
|
967
|
-
${
|
|
968
|
-
${
|
|
969
|
-
${
|
|
965
|
+
${x($.backgroundColor,b.secondaryWarningStateLayerColor)};
|
|
966
|
+
${x($.opacityContentOnSurfaceHover,b.secondaryWarningHoverStateLayerOpacity)};
|
|
967
|
+
${x($.opacityContentOnSurfaceFocused,b.secondaryWarningFocusStateLayerOpacity)};
|
|
968
|
+
${x($.opacityContentOnSurfaceSelected,b.secondaryWarningActiveStateLayerOpacity)};
|
|
969
|
+
${x($.opacityContentOnSurfacePressed,b.secondaryWarningActiveStateLayerOpacity)};
|
|
970
970
|
|
|
971
971
|
background-color: ${b.secondaryWarningBackgroundColor};
|
|
972
972
|
color: ${b.secondaryWarningColor};
|
|
@@ -985,13 +985,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
985
985
|
/** Warning Tertiary styles **/
|
|
986
986
|
|
|
987
987
|
.ftds--family-warning.ft-button--tertiary {
|
|
988
|
-
${
|
|
988
|
+
${x(ue.color,b.tertiaryWarningIconColor)};
|
|
989
989
|
|
|
990
|
-
${
|
|
991
|
-
${
|
|
992
|
-
${
|
|
993
|
-
${
|
|
994
|
-
${
|
|
990
|
+
${x($.backgroundColor,b.tertiaryWarningStateLayerColor)};
|
|
991
|
+
${x($.opacityContentOnSurfaceHover,b.tertiaryWarningHoverStateLayerOpacity)};
|
|
992
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiaryWarningFocusStateLayerOpacity)};
|
|
993
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
994
|
+
${x($.opacityContentOnSurfacePressed,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
995
995
|
|
|
996
996
|
background-color: ${b.tertiaryWarningBackgroundColor};
|
|
997
997
|
color: ${b.tertiaryWarningColor};
|
|
@@ -1009,13 +1009,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1009
1009
|
/** Error Secondary styles **/
|
|
1010
1010
|
|
|
1011
1011
|
.ftds--family-error.ft-button--secondary {
|
|
1012
|
-
${
|
|
1012
|
+
${x(ue.color,b.secondaryErrorIconColor)};
|
|
1013
1013
|
|
|
1014
|
-
${
|
|
1015
|
-
${
|
|
1016
|
-
${
|
|
1017
|
-
${
|
|
1018
|
-
${
|
|
1014
|
+
${x($.backgroundColor,b.secondaryErrorStateLayerColor)};
|
|
1015
|
+
${x($.opacityContentOnSurfaceHover,b.secondaryErrorHoverStateLayerOpacity)};
|
|
1016
|
+
${x($.opacityContentOnSurfaceFocused,b.secondaryErrorFocusStateLayerOpacity)};
|
|
1017
|
+
${x($.opacityContentOnSurfaceSelected,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1018
|
+
${x($.opacityContentOnSurfacePressed,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1019
1019
|
|
|
1020
1020
|
background-color: ${b.secondaryErrorBackgroundColor};
|
|
1021
1021
|
color: ${b.secondaryErrorColor};
|
|
@@ -1034,13 +1034,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1034
1034
|
/** Error Tertiary styles **/
|
|
1035
1035
|
|
|
1036
1036
|
.ftds--family-error.ft-button--tertiary {
|
|
1037
|
-
${
|
|
1037
|
+
${x(ue.color,b.tertiaryErrorIconColor)};
|
|
1038
1038
|
|
|
1039
|
-
${
|
|
1040
|
-
${
|
|
1041
|
-
${
|
|
1042
|
-
${
|
|
1043
|
-
${
|
|
1039
|
+
${x($.backgroundColor,b.tertiaryErrorStateLayerColor)};
|
|
1040
|
+
${x($.opacityContentOnSurfaceHover,b.tertiaryErrorHoverStateLayerOpacity)};
|
|
1041
|
+
${x($.opacityContentOnSurfaceFocused,b.tertiaryErrorFocusStateLayerOpacity)};
|
|
1042
|
+
${x($.opacityContentOnSurfaceSelected,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1043
|
+
${x($.opacityContentOnSurfacePressed,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1044
1044
|
|
|
1045
1045
|
background-color: ${b.tertiaryErrorBackgroundColor};
|
|
1046
1046
|
color: ${b.tertiaryErrorColor};
|
|
@@ -1058,8 +1058,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1058
1058
|
/** Large styles **/
|
|
1059
1059
|
|
|
1060
1060
|
.ftds--size-large {
|
|
1061
|
-
${
|
|
1062
|
-
${
|
|
1061
|
+
${x(be.size,b.largeIconSize)};
|
|
1062
|
+
${x(ue.size,b.largeIconSize)};
|
|
1063
1063
|
|
|
1064
1064
|
height: ${b.largeHeight};
|
|
1065
1065
|
padding: 0 ${b.largeHorizontalPadding};
|
|
@@ -1080,8 +1080,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1080
1080
|
/** Small styles **/
|
|
1081
1081
|
|
|
1082
1082
|
.ftds--size-medium {
|
|
1083
|
-
${
|
|
1084
|
-
${
|
|
1083
|
+
${x(be.size,b.mediumIconSize)};
|
|
1084
|
+
${x(ue.size,b.mediumIconSize)};
|
|
1085
1085
|
|
|
1086
1086
|
height: ${b.mediumHeight};
|
|
1087
1087
|
padding: 0 ${b.mediumHorizontalPadding};
|
|
@@ -1103,8 +1103,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1103
1103
|
/** Small styles **/
|
|
1104
1104
|
|
|
1105
1105
|
.ftds--size-small {
|
|
1106
|
-
${
|
|
1107
|
-
${
|
|
1106
|
+
${x(be.size,b.smallIconSize)};
|
|
1107
|
+
${x(ue.size,b.smallIconSize)};
|
|
1108
1108
|
|
|
1109
1109
|
height: ${b.smallHeight};
|
|
1110
1110
|
padding: 0 ${b.smallHorizontalPadding};
|
|
@@ -1121,15 +1121,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1121
1121
|
.ftds--size-small.ft-button--icon-only {
|
|
1122
1122
|
width: ${b.smallIconOnlyWidth};
|
|
1123
1123
|
}
|
|
1124
|
-
`,
|
|
1124
|
+
`,Ar];var ji=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},ht=class extends Li(me){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=It.brand,this.iconVariant=Ue.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 Le.large:return at.body2medium;case Le.medium:return at.caption1medium;case Le.small:return at.caption2medium}}};ht.styles=[Uo,qd];ji([y({type:Boolean})],ht.prototype,"primary",void 0);ji([y({type:Boolean})],ht.prototype,"secondary",void 0);ji([y({type:Boolean})],ht.prototype,"tertiary",void 0);ji([y({type:Boolean})],ht.prototype,"round",void 0);V("ft-button")(Re);V("ftds-button")(ht);var et={textColor:o.extend("--ft-checkbox-text-color","",_.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",D.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",_.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",_.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",_.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",_.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",_.colorError)},Yd=L`
|
|
1125
1125
|
* {
|
|
1126
1126
|
box-sizing: border-box;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
1129
|
.ft-checkbox {
|
|
1130
1130
|
box-sizing: border-box;
|
|
1131
|
-
color: ${
|
|
1132
|
-
font-size: ${
|
|
1131
|
+
color: ${et.textColor};
|
|
1132
|
+
font-size: ${et.fontSize};
|
|
1133
1133
|
|
|
1134
1134
|
display: inline-flex;
|
|
1135
1135
|
align-items: center;
|
|
@@ -1137,7 +1137,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
1139
|
.ft-checkbox--disabled {
|
|
1140
|
-
color: ${
|
|
1140
|
+
color: ${et.disabledColor};
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
input {
|
|
@@ -1161,26 +1161,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1161
1161
|
|
|
1162
1162
|
.ft-checkbox--box {
|
|
1163
1163
|
display: flex;
|
|
1164
|
-
border: 2px solid ${
|
|
1164
|
+
border: 2px solid ${et.borderColor};
|
|
1165
1165
|
border-radius: 2px;
|
|
1166
1166
|
|
|
1167
1167
|
width: 18px;
|
|
1168
1168
|
height: 18px;
|
|
1169
1169
|
|
|
1170
|
-
color: ${
|
|
1170
|
+
color: ${et.checkColor};
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
1173
|
|
|
1174
1174
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1175
1175
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1176
|
-
border-color: ${
|
|
1177
|
-
background-color: ${
|
|
1176
|
+
border-color: ${et.activeColor};
|
|
1177
|
+
background-color: ${et.activeColor};
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1181
|
-
border-color: ${
|
|
1181
|
+
border-color: ${et.disabledColor};
|
|
1182
1182
|
background-color: transparent;
|
|
1183
|
-
color: ${
|
|
1183
|
+
color: ${et.disabledColor};
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
.ft-checkbox--checkmark {
|
|
@@ -1199,16 +1199,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1199
1199
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1200
1200
|
opacity: 1;
|
|
1201
1201
|
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1202
|
+
|
|
1203
|
+
.ft-checkbox.ft-checkbox--error {
|
|
1204
|
+
color: ${et.errorColor};
|
|
1205
|
+
${x($.color,et.errorColor)};
|
|
1206
|
+
|
|
1207
|
+
.ft-checkbox--box {
|
|
1208
|
+
border-color: ${et.errorColor};
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
1212
|
+
.ft-checkbox--box {
|
|
1213
|
+
background-color: ${et.errorColor};
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
`;var or=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},De=class extends M{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return w`
|
|
1218
|
+
<label class="${pe(e)}" for="checkbox-input" part="checkbox-label">
|
|
1219
|
+
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
1220
|
+
<ft-ripple part="checkbox-ripple"
|
|
1221
|
+
?disabled=${this.disabled}
|
|
1222
|
+
?primary=${this.checked||this.indeterminate}
|
|
1223
|
+
unbounded>
|
|
1209
1224
|
</ft-ripple>
|
|
1210
|
-
<div class="ft-checkbox--box">
|
|
1211
|
-
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
|
|
1225
|
+
<div class="ft-checkbox--box" part="checkbox-box">
|
|
1226
|
+
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check">
|
|
1212
1227
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
1213
1228
|
d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
|
|
1214
1229
|
</svg>
|
|
@@ -1222,19 +1237,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1222
1237
|
aria-checked=${this.indeterminate?"mixed":this.checked?"true":"false"}
|
|
1223
1238
|
>
|
|
1224
1239
|
</div>
|
|
1225
|
-
<ft-typography variant="body2">
|
|
1240
|
+
<ft-typography variant="body2" part="checkbox-body">
|
|
1226
1241
|
<slot></slot>
|
|
1227
1242
|
</ft-typography>
|
|
1228
1243
|
</label>
|
|
1229
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var
|
|
1244
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}};De.elementDefinitions={"ft-ripple":re,"ft-typography":ae};De.styles=Yd;or([y()],De.prototype,"name",void 0);or([y({type:Boolean,reflect:!0})],De.prototype,"checked",void 0);or([y({type:Boolean})],De.prototype,"indeterminate",void 0);or([y({type:Boolean})],De.prototype,"disabled",void 0);or([y({type:Boolean})],De.prototype,"error",void 0);or([F(".ft-checkbox")],De.prototype,"container",void 0);or([F("ft-ripple")],De.prototype,"ripple",void 0);or([F("input")],De.prototype,"input",void 0);V("ft-checkbox")(De);var ir={textColor:o.extend("--ft-radio-text-color","",_.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",D.fontSize),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnPrimary:o.external(_.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",_.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system")},Xd=L`
|
|
1230
1245
|
* {
|
|
1231
1246
|
box-sizing: border-box;
|
|
1232
1247
|
}
|
|
1233
1248
|
|
|
1234
1249
|
.ft-radio {
|
|
1235
1250
|
box-sizing: border-box;
|
|
1236
|
-
color: ${
|
|
1237
|
-
font-size: ${
|
|
1251
|
+
color: ${ir.textColor};
|
|
1252
|
+
font-size: ${ir.fontSize};
|
|
1238
1253
|
|
|
1239
1254
|
display: inline-flex;
|
|
1240
1255
|
align-items: center;
|
|
@@ -1242,7 +1257,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1242
1257
|
}
|
|
1243
1258
|
|
|
1244
1259
|
.ft-radio--disabled {
|
|
1245
|
-
color: ${
|
|
1260
|
+
color: ${ir.colorOnSurfaceDisabled};
|
|
1246
1261
|
}
|
|
1247
1262
|
|
|
1248
1263
|
input {
|
|
@@ -1265,7 +1280,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1265
1280
|
}
|
|
1266
1281
|
|
|
1267
1282
|
.ft-radio--box {
|
|
1268
|
-
border: 2px solid ${
|
|
1283
|
+
border: 2px solid ${ir.borderColor};
|
|
1269
1284
|
border-radius: 50%;
|
|
1270
1285
|
|
|
1271
1286
|
display: flex;
|
|
@@ -1278,7 +1293,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1278
1293
|
|
|
1279
1294
|
.ft-radio--box:after {
|
|
1280
1295
|
content: " ";
|
|
1281
|
-
background-color: ${
|
|
1296
|
+
background-color: ${ir.colorPrimary};
|
|
1282
1297
|
|
|
1283
1298
|
border-radius: 50%;
|
|
1284
1299
|
|
|
@@ -1290,7 +1305,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1290
1305
|
}
|
|
1291
1306
|
|
|
1292
1307
|
.ft-radio--checked .ft-radio--box {
|
|
1293
|
-
border-color: ${
|
|
1308
|
+
border-color: ${ir.colorPrimary};
|
|
1294
1309
|
}
|
|
1295
1310
|
|
|
1296
1311
|
|
|
@@ -1299,23 +1314,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1299
1314
|
}
|
|
1300
1315
|
|
|
1301
1316
|
.ft-radio--disabled .ft-radio--box {
|
|
1302
|
-
border-color: ${
|
|
1317
|
+
border-color: ${ir.colorOnSurfaceDisabled};
|
|
1303
1318
|
background-color: transparent;
|
|
1304
1319
|
}
|
|
1305
1320
|
|
|
1306
1321
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1307
|
-
background-color: ${
|
|
1322
|
+
background-color: ${ir.colorOnSurfaceDisabled};
|
|
1308
1323
|
}
|
|
1309
1324
|
|
|
1310
1325
|
.ft-radio:has(:focus-visible) {
|
|
1311
|
-
outline: 2px solid ${
|
|
1326
|
+
outline: 2px solid ${_.colorPrimary};
|
|
1312
1327
|
outline-offset: -2px;
|
|
1313
1328
|
}
|
|
1314
1329
|
|
|
1315
1330
|
.ft-radio ft-typography {
|
|
1316
1331
|
padding-right: 2px;
|
|
1317
1332
|
}
|
|
1318
|
-
`;var
|
|
1333
|
+
`;var Wt=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},Gi=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},_e=class extends M{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return w`
|
|
1319
1334
|
<div class="${pe(e)}">
|
|
1320
1335
|
<div class="ft-radio--box-container">
|
|
1321
1336
|
<ft-ripple
|
|
@@ -1334,13 +1349,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1334
1349
|
@change=${this.onChange}
|
|
1335
1350
|
>
|
|
1336
1351
|
</div>
|
|
1337
|
-
<label for="radio-button" @click=${
|
|
1352
|
+
<label for="radio-button" @click=${r=>{var i;r.stopPropagation(),r.preventDefault(),(i=this.input)===null||i===void 0||i.click()}}>
|
|
1338
1353
|
<ft-typography variant="body2">
|
|
1339
1354
|
<slot></slot>
|
|
1340
1355
|
</ft-typography>
|
|
1341
1356
|
</label>
|
|
1342
1357
|
</div>
|
|
1343
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Gi(this.value,this.checked))}contentAvailableCallback(e){var
|
|
1358
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Gi(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Gi(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};_e.elementDefinitions={"ft-ripple":re,"ft-typography":ae};_e.styles=Xd;Wt([y()],_e.prototype,"value",void 0);Wt([y()],_e.prototype,"name",void 0);Wt([y({type:Boolean,reflect:!0})],_e.prototype,"checked",void 0);Wt([y({attribute:"aria-checked",reflect:!0})],_e.prototype,"ariaChecked",void 0);Wt([y({type:Boolean})],_e.prototype,"disabled",void 0);Wt([y({reflect:!0,attribute:"role"})],_e.prototype,"role",void 0);Wt([F(".ft-radio")],_e.prototype,"container",void 0);Wt([F("ft-ripple")],_e.prototype,"ripple",void 0);Wt([F("input")],_e.prototype,"input",void 0);var Jd=L`
|
|
1344
1359
|
:host {
|
|
1345
1360
|
display: block;
|
|
1346
1361
|
}
|
|
@@ -1348,12 +1363,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1348
1363
|
:host(:focus-visible) {
|
|
1349
1364
|
outline: none;
|
|
1350
1365
|
}
|
|
1351
|
-
`;var
|
|
1366
|
+
`;var co=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},Ke=class extends M{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio")?[i]:[...i.querySelectorAll("ft-radio")]))!==null&&r!==void 0?r:[]}render(){return w`
|
|
1352
1367
|
<slot @slotchange=${this.onSlotChange}
|
|
1353
1368
|
@change=${this.onChange}
|
|
1354
1369
|
@keydown=${this.onKeyDown}
|
|
1355
1370
|
></slot>
|
|
1356
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(
|
|
1371
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ke.elementDefinitions={};Ke.styles=Jd;co([y()],Ke.prototype,"name",void 0);co([y({reflect:!0,attribute:"role"})],Ke.prototype,"role",void 0);co([y({reflect:!0})],Ke.prototype,"tabIndex",void 0);co([y({reflect:!0,attribute:"aria-labelledby"})],Ke.prototype,"ariaLabelledBy",void 0);co([yn()],Ke.prototype,"assignedElements",void 0);co([W()],Ke.prototype,"currentSelectedIndex",void 0);V("ft-radio")(_e);V("ft-radio-group")(Ke);var Zo={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",_.colorOnSurface),borderRadiusM:o.external(_.borderRadiusM,"Design system"),colorOutline:o.external(_.colorOutline,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnPrimary:o.external(_.colorOnPrimary,"Design system"),fontFamily:o.external(Ae.fontFamily,"Body2 typography"),fontSize:o.external(Ae.fontSize,"Body2 typography"),fontWeight:o.external(Ae.fontWeight,"Body2 typography"),letterSpacing:o.external(Ae.letterSpacing,"Body2 typography"),lineHeight:o.external(Ae.lineHeight,"Body2 typography"),textTransform:o.external(Ae.textTransform,"Body2 typography")},Qd=L`
|
|
1357
1372
|
.ft-filter-level--container {
|
|
1358
1373
|
display: flex;
|
|
1359
1374
|
flex-direction: column;
|
|
@@ -1367,14 +1382,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1367
1382
|
flex-shrink: 0;
|
|
1368
1383
|
text-decoration: none;
|
|
1369
1384
|
position: relative;
|
|
1370
|
-
border-radius: ${
|
|
1385
|
+
border-radius: ${Zo.borderRadiusM};
|
|
1371
1386
|
overflow: hidden;
|
|
1372
1387
|
display: flex;
|
|
1373
1388
|
align-items: center;
|
|
1374
1389
|
padding: 4px 4px;
|
|
1375
1390
|
gap: 4px;
|
|
1376
1391
|
cursor: pointer;
|
|
1377
|
-
color: ${
|
|
1392
|
+
color: ${Zo.colorOnSurface};
|
|
1378
1393
|
}
|
|
1379
1394
|
|
|
1380
1395
|
.ft-filter-level--go-back:focus {
|
|
@@ -1403,11 +1418,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1403
1418
|
}
|
|
1404
1419
|
|
|
1405
1420
|
ft-button {
|
|
1406
|
-
${
|
|
1421
|
+
${x(te.color,Zo.colorOnSurface)};
|
|
1407
1422
|
}
|
|
1408
1423
|
|
|
1409
1424
|
ft-button.ft-filter-level--display-more {
|
|
1410
|
-
${
|
|
1425
|
+
${x(te.color,Zo.buttonMoreColor)};
|
|
1411
1426
|
}
|
|
1412
1427
|
|
|
1413
1428
|
ft-radio, ft-checkbox {
|
|
@@ -1421,9 +1436,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1421
1436
|
|
|
1422
1437
|
.ft-filter-level--no-values {
|
|
1423
1438
|
margin: 10px 0;
|
|
1424
|
-
color: ${
|
|
1439
|
+
color: ${Zo.colorOnSurfaceMedium};
|
|
1425
1440
|
}
|
|
1426
|
-
`;var ze=function(
|
|
1441
|
+
`;var ze=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 M{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(i=>!i.selected)),this.filter&&(e=e.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())));let r=e.slice(0,this.limit);return w`
|
|
1427
1442
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1428
1443
|
${this.parent==null?null:w`
|
|
1429
1444
|
<div tabindex="0"
|
|
@@ -1444,7 +1459,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1444
1459
|
${this.noValuesLabel}
|
|
1445
1460
|
</ft-typography>
|
|
1446
1461
|
`:z}
|
|
1447
|
-
${
|
|
1462
|
+
${$e(r,i=>i.value,i=>{var n;return w`
|
|
1448
1463
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1449
1464
|
${this.multivalued?this.buildMultiValuedOption(i):this.buildMonoValuedOption(i)}
|
|
1450
1465
|
${this.preventNavigation||i.selected||((n=i.subOptions)!==null&&n!==void 0?n:[]).length===0?z:w`
|
|
@@ -1457,7 +1472,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1457
1472
|
`}
|
|
1458
1473
|
</div>
|
|
1459
1474
|
`})}
|
|
1460
|
-
${
|
|
1475
|
+
${r.length<e.length?w`
|
|
1461
1476
|
<ft-button
|
|
1462
1477
|
class="ft-filter-level--display-more"
|
|
1463
1478
|
icon="thin_arrow"
|
|
@@ -1468,13 +1483,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1468
1483
|
</ft-button>
|
|
1469
1484
|
`:z}
|
|
1470
1485
|
</div>
|
|
1471
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var
|
|
1486
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var r;return w`
|
|
1472
1487
|
<ft-checkbox name="${this.filterId}"
|
|
1473
1488
|
part="multivalued-option"
|
|
1474
1489
|
data-value="${e.value}"
|
|
1475
1490
|
.checked=${e.selected}
|
|
1476
1491
|
.disabled=${this.disabled}
|
|
1477
|
-
.indeterminate=${
|
|
1492
|
+
.indeterminate=${Ye((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1478
1493
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1479
1494
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1480
1495
|
</ft-checkbox>
|
|
@@ -1485,11 +1500,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1485
1500
|
value="${e.value}"
|
|
1486
1501
|
.checked=${e.selected}
|
|
1487
1502
|
.disabled=${this.disabled}
|
|
1488
|
-
@keydown=${
|
|
1489
|
-
@change=${
|
|
1503
|
+
@keydown=${r=>this.onRadioKeyDown(r,e)}
|
|
1504
|
+
@change=${r=>this.optionsChanged(r,e)}>
|
|
1490
1505
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1491
1506
|
</ft-radio>
|
|
1492
|
-
`}onRadioKeyDown(e,
|
|
1507
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};Oe.elementDefinitions={"ft-button":Re,"ft-ripple":re,"ft-typography":ae,"ft-checkbox":De,"ft-icon":ye,"ft-radio":_e};Oe.styles=Qd;ze([y({type:String})],Oe.prototype,"filterId",void 0);ze([y({type:Object})],Oe.prototype,"parent",void 0);ze([y({type:Array})],Oe.prototype,"options",void 0);ze([y({type:Boolean})],Oe.prototype,"multivalued",void 0);ze([y({type:Boolean})],Oe.prototype,"disabled",void 0);ze([y({type:Boolean})],Oe.prototype,"hideSelectedOptions",void 0);ze([y({type:Boolean})],Oe.prototype,"displayCount",void 0);ze([y({type:Boolean})],Oe.prototype,"preventNavigation",void 0);ze([y({type:String})],Oe.prototype,"filter",void 0);ze([y({type:String})],Oe.prototype,"moreValuesButtonLabel",void 0);ze([y({type:String})],Oe.prototype,"noValuesLabel",void 0);ze([y({type:Number})],Oe.prototype,"displayedValuesLimit",void 0);ze([F(".ft-filter-level--container")],Oe.prototype,"container",void 0);ze([W()],Oe.prototype,"radios",void 0);ze([W()],Oe.prototype,"displayedPages",void 0);var We={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",_.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(_.colorSurface,"Design system")},ep=L`
|
|
1493
1508
|
.ft-snap-scroll {
|
|
1494
1509
|
box-sizing: border-box;
|
|
1495
1510
|
position: relative;
|
|
@@ -1570,8 +1585,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1570
1585
|
z-index: ${We.buttonsZIndex};
|
|
1571
1586
|
opacity: 1;
|
|
1572
1587
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1573
|
-
${
|
|
1574
|
-
${
|
|
1588
|
+
${x(te.backgroundColor,"transparent")};
|
|
1589
|
+
${x(te.color,We.buttonsColor)};
|
|
1575
1590
|
}
|
|
1576
1591
|
|
|
1577
1592
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1614,15 +1629,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1614
1629
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1615
1630
|
background-color: ${We.colorSurface};
|
|
1616
1631
|
}
|
|
1617
|
-
`;var
|
|
1632
|
+
`;var wt=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},$s=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},we=class extends M{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ce(200),this.updateScrollDebouncer=new ce(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=pe({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":kr}),r=this.controls&&this.withScroll;return w`
|
|
1618
1633
|
<div part="container" class="${e}">
|
|
1619
1634
|
<ft-button
|
|
1620
1635
|
class="ft-snap-scroll--previous"
|
|
1621
1636
|
part="controls"
|
|
1622
1637
|
primary
|
|
1623
1638
|
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1624
|
-
?hidden=${!
|
|
1625
|
-
?disabled=${!
|
|
1639
|
+
?hidden=${!r||this.startReached}
|
|
1640
|
+
?disabled=${!r||this.startReached}
|
|
1626
1641
|
@click=${this.previous}
|
|
1627
1642
|
></ft-button>
|
|
1628
1643
|
<slot class="ft-snap-scroll--content"
|
|
@@ -1633,12 +1648,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1633
1648
|
part="controls"
|
|
1634
1649
|
primary
|
|
1635
1650
|
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1636
|
-
?hidden=${!
|
|
1637
|
-
?disabled=${!
|
|
1651
|
+
?hidden=${!r||this.endReached}
|
|
1652
|
+
?disabled=${!r||this.endReached}
|
|
1638
1653
|
@click=${this.next}
|
|
1639
1654
|
></ft-button>
|
|
1640
1655
|
</div>
|
|
1641
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1656
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new $s(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};we.elementDefinitions={"ft-button":Re};we.styles=ep;wt([y({type:Boolean})],we.prototype,"horizontal",void 0);wt([y({type:Boolean})],we.prototype,"hideScrollbar",void 0);wt([y({type:Boolean})],we.prototype,"controls",void 0);wt([y({type:Boolean})],we.prototype,"limitSize",void 0);wt([W()],we.prototype,"elements",void 0);wt([W()],we.prototype,"currentElement",void 0);wt([W()],we.prototype,"withScroll",void 0);wt([W()],we.prototype,"startReached",void 0);wt([W()],we.prototype,"endReached",void 0);wt([F(".ft-snap-scroll--content")],we.prototype,"contentSlot",void 0);V("ft-snap-scroll")(we);var Ze={colorOutline:o.external(_.colorOutline,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(_.colorPrimary,"Design system"),colorSurface:o.external(_.colorSurface,"Design system"),transitionDuration:o.external(_.transitionDuration,"Design system"),transitionTimingFunction:o.external(_.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",_.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",D.fontSize,"16px")},tp=[tr,zo,L`
|
|
1642
1657
|
:host {
|
|
1643
1658
|
display: flex;
|
|
1644
1659
|
max-height: 100%;
|
|
@@ -1666,7 +1681,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1666
1681
|
.ft-filter--header ft-button {
|
|
1667
1682
|
flex-shrink: 0;
|
|
1668
1683
|
margin-left: auto;
|
|
1669
|
-
${
|
|
1684
|
+
${x(te.iconSize,"18px")};
|
|
1670
1685
|
}
|
|
1671
1686
|
|
|
1672
1687
|
.filter-label {
|
|
@@ -1678,10 +1693,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1678
1693
|
flex-shrink: 1;
|
|
1679
1694
|
flex-grow: 1;
|
|
1680
1695
|
word-break: break-word;
|
|
1681
|
-
color: ${
|
|
1682
|
-
font-size: ${
|
|
1683
|
-
${
|
|
1684
|
-
${
|
|
1696
|
+
color: ${Ze.labelColor};
|
|
1697
|
+
font-size: ${Ze.labelFontSize};
|
|
1698
|
+
${x(D.lineHeight,"22px")};
|
|
1699
|
+
${x(D.fontWeight,"bold")};
|
|
1685
1700
|
}
|
|
1686
1701
|
|
|
1687
1702
|
.ft-filter--filter {
|
|
@@ -1692,8 +1707,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1692
1707
|
padding: 0 10px;
|
|
1693
1708
|
overflow: hidden;
|
|
1694
1709
|
height: 32px;
|
|
1695
|
-
transition: height ${
|
|
1696
|
-
margin ${
|
|
1710
|
+
transition: height ${Ze.transitionDuration} ${Ze.transitionTimingFunction},
|
|
1711
|
+
margin ${Ze.transitionDuration} ${Ze.transitionTimingFunction};
|
|
1697
1712
|
transition-delay: 500ms;
|
|
1698
1713
|
}
|
|
1699
1714
|
|
|
@@ -1706,15 +1721,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1706
1721
|
display: block;
|
|
1707
1722
|
width: 100%;
|
|
1708
1723
|
border-radius: 4px;
|
|
1709
|
-
border: 1px solid ${
|
|
1724
|
+
border: 1px solid ${Ze.colorOutline};
|
|
1710
1725
|
padding: 4px;
|
|
1711
|
-
background-color: ${
|
|
1712
|
-
color: ${
|
|
1713
|
-
outline-color: ${
|
|
1726
|
+
background-color: ${Ze.colorSurface};
|
|
1727
|
+
color: ${Ze.colorOnSurface};
|
|
1728
|
+
outline-color: ${Ze.colorPrimary};
|
|
1714
1729
|
}
|
|
1715
1730
|
|
|
1716
1731
|
input::placeholder {
|
|
1717
|
-
color: ${
|
|
1732
|
+
color: ${Ze.colorOnSurfaceMedium};
|
|
1718
1733
|
}
|
|
1719
1734
|
|
|
1720
1735
|
input:placeholder-shown {
|
|
@@ -1730,7 +1745,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1730
1745
|
}
|
|
1731
1746
|
|
|
1732
1747
|
.ft-filter--separator {
|
|
1733
|
-
border-top: 1px solid ${
|
|
1748
|
+
border-top: 1px solid ${Ze.colorOutline};
|
|
1734
1749
|
margin: 4px 10px;
|
|
1735
1750
|
}
|
|
1736
1751
|
|
|
@@ -1755,7 +1770,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1755
1770
|
slot:not([name]) {
|
|
1756
1771
|
display: none;
|
|
1757
1772
|
}
|
|
1758
|
-
`];var ge=function(
|
|
1773
|
+
`];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},Ls=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ne=class extends M{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ce(300),this.changeDebouncer=new ce(10),this.lastDispatchedValues=[]}get flatOptions(){return Ye(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ye(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return w`
|
|
1759
1774
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1760
1775
|
part="container">
|
|
1761
1776
|
${!this.label&&!e?null:w`
|
|
@@ -1774,13 +1789,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1774
1789
|
`:null}
|
|
1775
1790
|
</div>
|
|
1776
1791
|
`}
|
|
1777
|
-
<div class="ft-filter--filter" ?hidden=${!
|
|
1792
|
+
<div class="ft-filter--filter" ?hidden=${!r}>
|
|
1778
1793
|
<input type="search"
|
|
1779
1794
|
part="input"
|
|
1780
1795
|
class="ft-typography--caption"
|
|
1781
|
-
?disabled=${!
|
|
1796
|
+
?disabled=${!r}
|
|
1782
1797
|
placeholder="${i}"
|
|
1783
|
-
size="${
|
|
1798
|
+
size="${r?i.length:0}"
|
|
1784
1799
|
@search=${this.onFilterChange}
|
|
1785
1800
|
@keyup=${this.onFilterChange}>
|
|
1786
1801
|
</div>
|
|
@@ -1791,15 +1806,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1791
1806
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1792
1807
|
@option-change=${this.optionsChanged}></slot>
|
|
1793
1808
|
</div>
|
|
1794
|
-
`}update(e){if(super.update(e),e.has("options")){let
|
|
1795
|
-
${this.raiseSelectedOptions&&
|
|
1809
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((i=this.levelsContainer)===null||i===void 0||i.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return w`
|
|
1810
|
+
${this.raiseSelectedOptions&&r.length>0?w`
|
|
1796
1811
|
<ft-filter-level
|
|
1797
1812
|
filterId="${this.id}"
|
|
1798
1813
|
?multivalued=${this.multivalued}
|
|
1799
1814
|
?disabled=${this.disabled}
|
|
1800
1815
|
?displayCount="${this.displayCount}"
|
|
1801
1816
|
preventNavigation
|
|
1802
|
-
.options=${
|
|
1817
|
+
.options=${r}
|
|
1803
1818
|
@change=${this.onChange}
|
|
1804
1819
|
part="values selected-values"
|
|
1805
1820
|
.exportpartsPrefixes=${["values","selected-values"]}
|
|
@@ -1812,7 +1827,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1812
1827
|
${this.renderLevel(n,this.options)}
|
|
1813
1828
|
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let d=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(d,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
|
|
1814
1829
|
</ft-snap-scroll>
|
|
1815
|
-
`}renderLevel(e,
|
|
1830
|
+
`}renderLevel(e,r,i){return w`
|
|
1816
1831
|
<ft-filter-level
|
|
1817
1832
|
class="${e}"
|
|
1818
1833
|
filterId="${this.id}"
|
|
@@ -1823,7 +1838,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1823
1838
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1824
1839
|
?displayCount="${this.displayCount}"
|
|
1825
1840
|
.parent=${i}
|
|
1826
|
-
.options=${
|
|
1841
|
+
.options=${r}
|
|
1827
1842
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1828
1843
|
@change=${this.onChange}
|
|
1829
1844
|
@go-back=${this.goBack}
|
|
@@ -1832,21 +1847,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1832
1847
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1833
1848
|
noValuesLabel="${this.noValuesLabel}"
|
|
1834
1849
|
></ft-filter-level>
|
|
1835
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var
|
|
1850
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Me(this.lastDispatchedValues,e)||(this.dispatchEvent(new Ls(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ne.elementDefinitions={"ft-button":Re,"ft-filter-level":Oe,"ft-snap-scroll":we,"ft-typography":ae};ne.styles=tp;ge([y({type:String})],ne.prototype,"id",void 0);ge([y({type:String})],ne.prototype,"label",void 0);ge([y({type:String})],ne.prototype,"filterPlaceHolder",void 0);ge([y({type:String})],ne.prototype,"clearButtonLabel",void 0);ge([y({type:String})],ne.prototype,"moreValuesButtonLabel",void 0);ge([y({type:String})],ne.prototype,"noValuesLabel",void 0);ge([ke([])],ne.prototype,"options",void 0);ge([y({type:Boolean})],ne.prototype,"multivalued",void 0);ge([y({type:Boolean})],ne.prototype,"disabled",void 0);ge([y({type:Boolean})],ne.prototype,"raiseSelectedOptions",void 0);ge([y({type:Boolean})],ne.prototype,"displayCount",void 0);ge([y({type:Number})],ne.prototype,"displayedValuesLimit",void 0);ge([y({type:Boolean})],ne.prototype,"hideClearButton",void 0);ge([F(".ft-filter--slot")],ne.prototype,"slotElement",void 0);ge([F(".ft-filter--container")],ne.prototype,"container",void 0);ge([F(".ft-filter--values")],ne.prototype,"valuesContainer",void 0);ge([F(".ft-filter--levels")],ne.prototype,"levelsContainer",void 0);ge([W()],ne.prototype,"lastLevelHasHiddenvalues",void 0);ge([F(".ft-filter--filter input")],ne.prototype,"filterInput",void 0);ge([hn(".ft-filter--levels ft-filter-level")],ne.prototype,"levels",void 0);ge([W()],ne.prototype,"withScroll",void 0);ge([W()],ne.prototype,"filter",void 0);ge([W()],ne.prototype,"slideIn",void 0);ge([W()],ne.prototype,"slideOut",void 0);var po=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},tt=class extends M{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return w`
|
|
1836
1851
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1837
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(
|
|
1852
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};tt.elementDefinitions={};po([y({type:String})],tt.prototype,"label",void 0);po([y({type:Object,converter:t=>t})],tt.prototype,"value",void 0);po([y({type:Boolean,reflect:!0})],tt.prototype,"selected",void 0);po([y({type:Object})],tt.prototype,"subOptions",void 0);po([ke({})],tt.prototype,"renderOption",void 0);po([F(".ft-filter-option--slot")],tt.prototype,"slotElement",void 0);V("ft-filter")(ne);V("ft-filter-option")(tt);var rp=L`
|
|
1838
1853
|
.ft-accordion {
|
|
1839
1854
|
box-sizing: border-box;
|
|
1840
1855
|
}
|
|
1841
|
-
`;var
|
|
1856
|
+
`;var op=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},At=class extends M{constructor(){super(...arguments),this.multi=!1}render(){return w`
|
|
1842
1857
|
<div class="ft-accordion">
|
|
1843
1858
|
<slot @activated=${this.onChange}></slot>
|
|
1844
1859
|
</div>
|
|
1845
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(
|
|
1860
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};At.elementDefinitions={};At.styles=rp;op([y({type:Boolean})],At.prototype,"multi",void 0);op([F("slot")],At.prototype,"content",void 0);var Pr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(_.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},ip=L`
|
|
1846
1861
|
.ft-accordion-item {
|
|
1847
1862
|
display: flex;
|
|
1848
1863
|
flex-direction: column;
|
|
1849
|
-
background-color: ${
|
|
1864
|
+
background-color: ${Pr.backgroundColor};
|
|
1850
1865
|
}
|
|
1851
1866
|
|
|
1852
1867
|
.ft-accordion-item--toggle {
|
|
@@ -1856,8 +1871,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1856
1871
|
display: flex;
|
|
1857
1872
|
align-items: center;
|
|
1858
1873
|
cursor: pointer;
|
|
1859
|
-
padding: ${
|
|
1860
|
-
gap: calc(${
|
|
1874
|
+
padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
|
|
1875
|
+
gap: calc(${Pr.horizontalSpacing} / 2);
|
|
1861
1876
|
outline: none;
|
|
1862
1877
|
}
|
|
1863
1878
|
|
|
@@ -1882,13 +1897,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1882
1897
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1883
1898
|
height: initial;
|
|
1884
1899
|
overflow: visible;
|
|
1885
|
-
padding: ${
|
|
1900
|
+
padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
|
|
1886
1901
|
}
|
|
1887
1902
|
|
|
1888
1903
|
.ft-accordion-item--separator {
|
|
1889
|
-
border-bottom: 1px solid ${
|
|
1904
|
+
border-bottom: 1px solid ${Pr.colorOutline};
|
|
1890
1905
|
}
|
|
1891
|
-
`;var Ki=function(
|
|
1906
|
+
`;var Ki=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},st=class extends M{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return w`
|
|
1892
1907
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1893
1908
|
<div class="ft-accordion-item--toggle"
|
|
1894
1909
|
part="toggle"
|
|
@@ -1918,7 +1933,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1918
1933
|
</div>
|
|
1919
1934
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1920
1935
|
</div>
|
|
1921
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};
|
|
1936
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};st.elementDefinitions={"ft-ripple":re,"ft-typography":ae,"ft-icon":ye};st.styles=ip;Ki([y()],st.prototype,"icon",void 0);Ki([y()],st.prototype,"iconVariant",void 0);Ki([y()],st.prototype,"label",void 0);Ki([y({type:Boolean,reflect:!0})],st.prototype,"active",void 0);V("ft-accordion")(At);V("ft-accordion-item")(st);var np=o.extend("--ft-chip-color","",_.colorOnSurface),Be={backgroundColor:o.extend("--ft-chip-background-color","",_.colorSurface),color:np,fontSize:o.extend("--ft-chip-font-size","",Ae.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",Ae.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",np),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",_.colorOutline),opacityDisabled:o.external(_.colorOpacityDisabled,"Design system")},ap=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",_.colorOnPrimary)),Ns={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",_.colorPrimary)),color:ap,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",ap)},sp={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lp=[Ar,L`
|
|
1922
1937
|
:host {
|
|
1923
1938
|
display: inline-block;
|
|
1924
1939
|
max-width: 100%;
|
|
@@ -1937,7 +1952,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1937
1952
|
--ft-chip-internal-font-size: ${Be.fontSize};
|
|
1938
1953
|
--ft-chip-internal-font-weight: ${Be.fontWeight};
|
|
1939
1954
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1940
|
-
${
|
|
1955
|
+
${x(be.size,Be.iconSize)};
|
|
1941
1956
|
--ft-chip-internal-vertical-padding: ${Be.verticalPadding};
|
|
1942
1957
|
--ft-chip-internal-horizontal-padding: ${Be.horizontalPadding};
|
|
1943
1958
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -1945,8 +1960,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1945
1960
|
|
|
1946
1961
|
border: 1px solid ${Be.borderColor};
|
|
1947
1962
|
color: ${Be.color};
|
|
1948
|
-
${
|
|
1949
|
-
border-radius: var(${
|
|
1963
|
+
${x($.color,Be.rippleColor)};
|
|
1964
|
+
border-radius: var(${Nt(Be.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
|
|
1950
1965
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
1951
1966
|
background-color: ${Be.backgroundColor};
|
|
1952
1967
|
line-height: var(--ft-chip-internal-content-height);
|
|
@@ -1958,8 +1973,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1958
1973
|
|
|
1959
1974
|
.ft-chip--dense {
|
|
1960
1975
|
--ft-chip-internal-icon-padding: 3px;
|
|
1961
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1962
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1976
|
+
--ft-chip-internal-vertical-padding: ${sp.verticalPadding};
|
|
1977
|
+
--ft-chip-internal-horizontal-padding: ${sp.horizontalPadding};
|
|
1963
1978
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1964
1979
|
}
|
|
1965
1980
|
|
|
@@ -1977,9 +1992,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1977
1992
|
.ft-chip--highlighted {
|
|
1978
1993
|
border: none;
|
|
1979
1994
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
1980
|
-
background-color: ${
|
|
1981
|
-
${
|
|
1982
|
-
color: ${
|
|
1995
|
+
background-color: ${Ns.backgroundColor};
|
|
1996
|
+
${x($.color,Ns.rippleColor)};
|
|
1997
|
+
color: ${Ns.color};
|
|
1983
1998
|
}
|
|
1984
1999
|
|
|
1985
2000
|
.ft-chip--clickable {
|
|
@@ -2010,9 +2025,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2010
2025
|
}
|
|
2011
2026
|
|
|
2012
2027
|
.ft-chip--icon-button {
|
|
2013
|
-
${
|
|
2014
|
-
${
|
|
2015
|
-
${
|
|
2028
|
+
${x(te.iconSize,Be.iconSize)};
|
|
2029
|
+
${x(te.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
2030
|
+
${x(te.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
2016
2031
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
2017
2032
|
}
|
|
2018
2033
|
|
|
@@ -2020,9 +2035,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2020
2035
|
vertical-align: bottom;
|
|
2021
2036
|
display: block;
|
|
2022
2037
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
2023
|
-
${
|
|
2024
|
-
${
|
|
2025
|
-
${
|
|
2038
|
+
${x(Ae.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
2039
|
+
${x(Ae.fontWeight,"var(--ft-chip-internal-font-weight)")};
|
|
2040
|
+
${x(Ae.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
2026
2041
|
}
|
|
2027
2042
|
|
|
2028
2043
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -2058,7 +2073,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2058
2073
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2059
2074
|
order: -1;
|
|
2060
2075
|
}
|
|
2061
|
-
`];var
|
|
2076
|
+
`];var rt=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},Zi=class extends CustomEvent{constructor(){super("icon-click")}},Ce=class extends M{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":kr};return w`
|
|
2062
2077
|
<div class="${pe(e)}"
|
|
2063
2078
|
aria-label="${this.getLabel()}"
|
|
2064
2079
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -2084,7 +2099,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2084
2099
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2085
2100
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
2086
2101
|
</div>
|
|
2087
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Zi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Zi))}getLabel(){return this.label||this.textContent}get textContent(){return
|
|
2102
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Zi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Zi))}getLabel(){return this.label||this.textContent}get textContent(){return Wr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ce.elementDefinitions={"ft-ripple":re,"ft-typography":ae,"ft-icon":ye,"ft-button":Re};Ce.styles=lp;rt([y({type:Boolean})],Ce.prototype,"highlighted",void 0);rt([y({type:Boolean})],Ce.prototype,"removable",void 0);rt([y({type:Boolean})],Ce.prototype,"disabled",void 0);rt([y({type:Boolean})],Ce.prototype,"clickable",void 0);rt([y({type:Boolean})],Ce.prototype,"iconClickable",void 0);rt([y({type:Boolean})],Ce.prototype,"dense",void 0);rt([y({type:Boolean})],Ce.prototype,"multiLine",void 0);rt([y()],Ce.prototype,"label",void 0);rt([y()],Ce.prototype,"iconLabel",void 0);rt([y()],Ce.prototype,"icon",void 0);rt([y()],Ce.prototype,"iconVariant",void 0);rt([y({type:Boolean})],Ce.prototype,"trailingIcon",void 0);rt([F("ft-typography slot")],Ce.prototype,"slottedContent",void 0);var cp=[L`
|
|
2088
2103
|
:host {
|
|
2089
2104
|
display: inline-block;
|
|
2090
2105
|
max-width: 100%;
|
|
@@ -2102,95 +2117,95 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2102
2117
|
|
|
2103
2118
|
/* MEDIUM VARIANT */
|
|
2104
2119
|
.ftds--size-medium {
|
|
2105
|
-
min-height: ${
|
|
2106
|
-
padding: 0 ${
|
|
2107
|
-
border-radius: ${
|
|
2108
|
-
border-width: ${
|
|
2120
|
+
min-height: ${ee.mediumMinHeight};
|
|
2121
|
+
padding: 0 ${ee.mediumHorizontalPadding};
|
|
2122
|
+
border-radius: ${ee.mediumBorderRadius};
|
|
2123
|
+
border-width: ${ee.mediumBorderWidth};
|
|
2109
2124
|
border-style: solid;
|
|
2110
|
-
gap: ${
|
|
2111
|
-
${
|
|
2125
|
+
gap: ${ee.mediumGap};
|
|
2126
|
+
${x(be.size,ee.mediumIconSize)}
|
|
2112
2127
|
}
|
|
2113
2128
|
|
|
2114
2129
|
.ftds--size-medium.ftds-chip--removable {
|
|
2115
|
-
padding-right: ${
|
|
2130
|
+
padding-right: ${ee.mediumButtonRightPadding};
|
|
2116
2131
|
}
|
|
2117
2132
|
|
|
2118
2133
|
|
|
2119
2134
|
/* LARGE VARIANT */
|
|
2120
2135
|
.ftds--size-large {
|
|
2121
|
-
min-height: ${
|
|
2122
|
-
padding: 0 ${
|
|
2123
|
-
border-radius: ${
|
|
2124
|
-
border-width: ${
|
|
2136
|
+
min-height: ${ee.largeMinHeight};
|
|
2137
|
+
padding: 0 ${ee.largeHorizontalPadding};
|
|
2138
|
+
border-radius: ${ee.largeBorderRadius};
|
|
2139
|
+
border-width: ${ee.largeBorderWidth};
|
|
2125
2140
|
border-style: solid;
|
|
2126
|
-
gap: ${
|
|
2127
|
-
${
|
|
2141
|
+
gap: ${ee.largeGap};
|
|
2142
|
+
${x(be.size,ee.largeIconSize)}
|
|
2128
2143
|
}
|
|
2129
2144
|
|
|
2130
2145
|
.ftds--size-large.ftds-chip--removable {
|
|
2131
|
-
padding-right: ${
|
|
2146
|
+
padding-right: ${ee.largeButtonRightPadding};
|
|
2132
2147
|
}
|
|
2133
2148
|
|
|
2134
2149
|
|
|
2135
2150
|
/* NEUTRAL COLORS */
|
|
2136
2151
|
.ftds--family-neutral {
|
|
2137
|
-
background-color: ${
|
|
2138
|
-
border-color: ${
|
|
2139
|
-
color: ${
|
|
2152
|
+
background-color: ${ee.neutralBackgroundColor};
|
|
2153
|
+
border-color: ${ee.neutralBorderColor};
|
|
2154
|
+
color: ${ee.neutralColor};
|
|
2140
2155
|
}
|
|
2141
2156
|
|
|
2142
2157
|
.ftds--family-neutral .ftds-chip--icon-container {
|
|
2143
|
-
color: ${
|
|
2158
|
+
color: ${ee.neutralIconColor};
|
|
2144
2159
|
}
|
|
2145
2160
|
|
|
2146
2161
|
|
|
2147
2162
|
/* INFO COLORS */
|
|
2148
2163
|
.ftds--family-info {
|
|
2149
|
-
background-color: ${
|
|
2150
|
-
border-color: ${
|
|
2151
|
-
color: ${
|
|
2164
|
+
background-color: ${ee.infoBackgroundColor};
|
|
2165
|
+
border-color: ${ee.infoBorderColor};
|
|
2166
|
+
color: ${ee.infoColor};
|
|
2152
2167
|
}
|
|
2153
2168
|
|
|
2154
2169
|
.ftds--family-info .ftds-chip--icon-container {
|
|
2155
|
-
color: ${
|
|
2170
|
+
color: ${ee.infoIconColor};
|
|
2156
2171
|
}
|
|
2157
2172
|
|
|
2158
2173
|
|
|
2159
2174
|
/* SUCCESS COLORS */
|
|
2160
2175
|
.ftds--family-success {
|
|
2161
|
-
background-color: ${
|
|
2162
|
-
border-color: ${
|
|
2163
|
-
color: ${
|
|
2176
|
+
background-color: ${ee.successBackgroundColor};
|
|
2177
|
+
border-color: ${ee.successBorderColor};
|
|
2178
|
+
color: ${ee.successColor};
|
|
2164
2179
|
}
|
|
2165
2180
|
|
|
2166
2181
|
.ftds--family-success .ftds-chip--icon-container {
|
|
2167
|
-
color: ${
|
|
2182
|
+
color: ${ee.successIconColor};
|
|
2168
2183
|
}
|
|
2169
2184
|
|
|
2170
2185
|
|
|
2171
2186
|
/* WARNING COLORS */
|
|
2172
2187
|
.ftds--family-warning {
|
|
2173
|
-
background-color: ${
|
|
2174
|
-
border-color: ${
|
|
2175
|
-
color: ${
|
|
2188
|
+
background-color: ${ee.warningBackgroundColor};
|
|
2189
|
+
border-color: ${ee.warningBorderColor};
|
|
2190
|
+
color: ${ee.warningColor};
|
|
2176
2191
|
}
|
|
2177
2192
|
|
|
2178
2193
|
.ftds--family-warning .ftds-chip--icon-container {
|
|
2179
|
-
color: ${
|
|
2194
|
+
color: ${ee.warningIconColor};
|
|
2180
2195
|
}
|
|
2181
2196
|
|
|
2182
2197
|
|
|
2183
2198
|
/* ERROR COLORS */
|
|
2184
2199
|
.ftds--family-error {
|
|
2185
|
-
background-color: ${
|
|
2186
|
-
border-color: ${
|
|
2187
|
-
color: ${
|
|
2200
|
+
background-color: ${ee.errorBackgroundColor};
|
|
2201
|
+
border-color: ${ee.errorBorderColor};
|
|
2202
|
+
color: ${ee.errorColor};
|
|
2188
2203
|
}
|
|
2189
2204
|
|
|
2190
2205
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2191
|
-
color: ${
|
|
2206
|
+
color: ${ee.errorIconColor};
|
|
2192
2207
|
}
|
|
2193
|
-
`];var
|
|
2208
|
+
`];var qo=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},ks=class extends CustomEvent{constructor(){super("remove")}},yt=class extends Fo{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return w`
|
|
2194
2209
|
<div class="${pe(e)}"
|
|
2195
2210
|
aria-label="${this.getLabel()}"
|
|
2196
2211
|
part="chip">
|
|
@@ -2202,37 +2217,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2202
2217
|
</div>
|
|
2203
2218
|
`}renderIcon(){return this.icon?w`
|
|
2204
2219
|
<div class="ftds-chip--icon-container" part="icon-container">
|
|
2205
|
-
<ft-icon .variant=${
|
|
2220
|
+
<ft-icon .variant=${Ue.fluid_topics} .value="${this.icon}" part="icon"></ft-icon>
|
|
2206
2221
|
</div>
|
|
2207
2222
|
`:z}renderRemoveButton(){return this.removable?w`
|
|
2208
2223
|
<ftds-button round
|
|
2209
2224
|
class="ftds-chip--remove-button"
|
|
2210
2225
|
@click=${this.dispatchRemoveEvent}
|
|
2211
|
-
icon=${
|
|
2226
|
+
icon=${Et.X_MARK}
|
|
2212
2227
|
label=${this.removeButtonLabel}
|
|
2213
|
-
family=${
|
|
2228
|
+
family=${It.neutral}
|
|
2214
2229
|
size=${this.resolveButtonSize()}
|
|
2215
2230
|
part="icon-button"
|
|
2216
2231
|
></ftds-button>
|
|
2217
|
-
`:z}resolveButtonSize(){switch(this.size){case
|
|
2232
|
+
`:z}resolveButtonSize(){switch(this.size){case Le.large:return Le.medium;case Le.medium:case Le.small:return Le.small}}getLabel(){return this.label||this.textContent}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:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ks)}typographyVariant(){switch(this.size){case Le.large:return at.body2medium;case Le.medium:return at.caption1medium;case Le.small:return at.caption2medium}}};yt.elementDefinitions={"ft-typography":ae,"ft-icon":ye,"ftds-button":ht};yt.styles=cp;qo([y({type:Boolean})],yt.prototype,"removable",void 0);qo([y()],yt.prototype,"removeButtonLabel",void 0);qo([y()],yt.prototype,"label",void 0);qo([y()],yt.prototype,"icon",void 0);qo([F("ft-typography slot")],yt.prototype,"slottedContent",void 0);V("ft-chip")(Ce);V("ftds-chip")(yt);var Y={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","",_.colorOutline),textColor:o.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",_.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",_.borderRadiusS),colorError:o.external(_.colorError,"Design system")},dp=L`
|
|
2218
2233
|
.ft-input-label {
|
|
2219
2234
|
position: absolute;
|
|
2220
2235
|
inset: 0;
|
|
2221
2236
|
display: flex;
|
|
2222
|
-
background-color: ${
|
|
2223
|
-
border-radius: ${
|
|
2237
|
+
background-color: ${Y.backgroundColor};
|
|
2238
|
+
border-radius: ${Y.borderRadius} ${Y.borderRadius} 0 0;
|
|
2224
2239
|
}
|
|
2225
2240
|
|
|
2226
2241
|
.ft-input-label--outlined {
|
|
2227
|
-
border-radius: ${
|
|
2242
|
+
border-radius: ${Y.borderRadius};
|
|
2228
2243
|
}
|
|
2229
2244
|
|
|
2230
2245
|
.ft-input-label {
|
|
2231
|
-
border-color: ${
|
|
2246
|
+
border-color: ${Y.borderColor};
|
|
2232
2247
|
}
|
|
2233
2248
|
|
|
2234
2249
|
.ft-input-label.ft-input-label--in-error {
|
|
2235
|
-
border-color: ${
|
|
2250
|
+
border-color: ${Y.colorError}
|
|
2236
2251
|
}
|
|
2237
2252
|
|
|
2238
2253
|
.ft-input-label:before,
|
|
@@ -2245,7 +2260,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2245
2260
|
}
|
|
2246
2261
|
|
|
2247
2262
|
.ft-input-label:before {
|
|
2248
|
-
width: calc(${
|
|
2263
|
+
width: calc(${Y.horizontalSpacing} - 4px);
|
|
2249
2264
|
flex-shrink: 0;
|
|
2250
2265
|
}
|
|
2251
2266
|
|
|
@@ -2261,20 +2276,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2261
2276
|
border-bottom-width: 1px;
|
|
2262
2277
|
border-bottom-style: solid;
|
|
2263
2278
|
border-color: inherit;
|
|
2264
|
-
color: ${
|
|
2279
|
+
color: ${Y.textColor};
|
|
2265
2280
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2266
|
-
max-width: calc(${
|
|
2281
|
+
max-width: calc(${Y.labelMaxWidth} - 2 * (${Y.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2267
2282
|
text-overflow: ellipsis;
|
|
2268
|
-
${
|
|
2269
|
-
${
|
|
2283
|
+
${x(ut.fontSize,Y.fontSize)};
|
|
2284
|
+
${x(ut.lineHeight,Y.fontSize)};
|
|
2270
2285
|
}
|
|
2271
2286
|
|
|
2272
2287
|
.ft-input-label--in-error .ft-input-label--text {
|
|
2273
|
-
color: ${
|
|
2288
|
+
color: ${Y.colorError}
|
|
2274
2289
|
}
|
|
2275
2290
|
|
|
2276
2291
|
.ft-input-label--disabled .ft-input-label--text {
|
|
2277
|
-
color: ${
|
|
2292
|
+
color: ${Y.disabledTextColor};
|
|
2278
2293
|
}
|
|
2279
2294
|
|
|
2280
2295
|
.ft-input-label--hidden-text {
|
|
@@ -2291,19 +2306,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2291
2306
|
overflow: hidden;
|
|
2292
2307
|
white-space: nowrap;
|
|
2293
2308
|
text-overflow: ellipsis;
|
|
2294
|
-
padding: ${
|
|
2295
|
-
margin: calc(${
|
|
2309
|
+
padding: ${Y.verticalSpacing} 4px;
|
|
2310
|
+
margin: calc(${Y.verticalSpacing} * -1) 0;
|
|
2296
2311
|
max-width: 100%;
|
|
2297
2312
|
box-sizing: border-box;
|
|
2298
2313
|
}
|
|
2299
2314
|
|
|
2300
2315
|
.ft-input-label--raised .ft-input-label--text {
|
|
2301
|
-
${
|
|
2302
|
-
${
|
|
2316
|
+
${x(ut.fontSize,Y.raisedFontSize)};
|
|
2317
|
+
${x(ut.lineHeight,Y.raisedFontSize)};
|
|
2303
2318
|
}
|
|
2304
2319
|
|
|
2305
2320
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
2306
|
-
top: ${
|
|
2321
|
+
top: ${Y.verticalSpacing};
|
|
2307
2322
|
}
|
|
2308
2323
|
|
|
2309
2324
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -2316,27 +2331,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2316
2331
|
.ft-input-label--outlined:before {
|
|
2317
2332
|
border-left-width: 1px;
|
|
2318
2333
|
border-left-style: solid;
|
|
2319
|
-
border-radius: ${
|
|
2334
|
+
border-radius: ${Y.borderRadius} 0 0 ${Y.borderRadius};
|
|
2320
2335
|
}
|
|
2321
2336
|
|
|
2322
2337
|
.ft-input-label--outlined:after {
|
|
2323
2338
|
border-right-width: 1px;
|
|
2324
2339
|
border-right-style: solid;
|
|
2325
|
-
border-radius: 0 ${
|
|
2340
|
+
border-radius: 0 ${Y.borderRadius} ${Y.borderRadius} 0;
|
|
2326
2341
|
}
|
|
2327
2342
|
|
|
2328
2343
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
2329
2344
|
padding: 2px 4px;
|
|
2330
|
-
z-index: ${
|
|
2331
|
-
background-color: ${
|
|
2332
|
-
border-radius: ${
|
|
2345
|
+
z-index: ${Y.raisedZIndex};
|
|
2346
|
+
background-color: ${Y.backgroundColor};
|
|
2347
|
+
border-radius: ${Y.borderRadius};
|
|
2333
2348
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
2334
2349
|
}
|
|
2335
2350
|
|
|
2336
2351
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2337
2352
|
border-top: none;
|
|
2338
2353
|
}
|
|
2339
|
-
`;var
|
|
2354
|
+
`;var Yo=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},ot=class extends M{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 w`
|
|
2340
2355
|
<div class="${pe(e)}">
|
|
2341
2356
|
${this.text?w`
|
|
2342
2357
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -2345,7 +2360,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2345
2360
|
</div>
|
|
2346
2361
|
`:null}
|
|
2347
2362
|
</div>
|
|
2348
|
-
`}};
|
|
2363
|
+
`}};ot.elementDefinitions={};ot.styles=[tr,dp];Yo([y({type:String})],ot.prototype,"text",void 0);Yo([y({type:Boolean})],ot.prototype,"raised",void 0);Yo([y({type:Boolean})],ot.prototype,"outlined",void 0);Yo([y({type:Boolean})],ot.prototype,"disabled",void 0);Yo([y({type:Boolean})],ot.prototype,"error",void 0);V("ft-input-label")(ot);var X={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",_.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",_.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",_.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",_.colorSurface),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(_.colorPrimary,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),elevation02:o.external(_.elevation02,"Design system"),colorError:o.external(_.colorError,"Design system")},pp=L`
|
|
2349
2364
|
*:focus {
|
|
2350
2365
|
outline: none;
|
|
2351
2366
|
}
|
|
@@ -2359,7 +2374,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2359
2374
|
.ft-select--main-panel {
|
|
2360
2375
|
position: relative;
|
|
2361
2376
|
display: flex;
|
|
2362
|
-
height: calc(4 * ${
|
|
2377
|
+
height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.selectedOptionSize});
|
|
2363
2378
|
}
|
|
2364
2379
|
|
|
2365
2380
|
.ft-select--input-panel {
|
|
@@ -2368,17 +2383,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2368
2383
|
display: flex;
|
|
2369
2384
|
align-items: center;
|
|
2370
2385
|
overflow: hidden;
|
|
2371
|
-
padding-left: ${
|
|
2372
|
-
padding-right: ${
|
|
2386
|
+
padding-left: ${X.horizontalSpacing};
|
|
2387
|
+
padding-right: ${X.horizontalSpacing};
|
|
2373
2388
|
gap: 8px;
|
|
2374
|
-
color: ${
|
|
2375
|
-
${
|
|
2389
|
+
color: ${X.selectedOptionColor};
|
|
2390
|
+
${x($.color,X.selectedOptionColor)};
|
|
2376
2391
|
}
|
|
2377
2392
|
|
|
2378
2393
|
.ft-select--input-panel,
|
|
2379
2394
|
.ft-select--option {
|
|
2380
|
-
${
|
|
2381
|
-
${
|
|
2395
|
+
${x($.opacityContentOnSurfaceHover,"0.08")};
|
|
2396
|
+
${x($.opacityContentOnSurfacePressed,"0.04")};
|
|
2382
2397
|
}
|
|
2383
2398
|
|
|
2384
2399
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -2388,7 +2403,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2388
2403
|
|
|
2389
2404
|
.ft-select--disabled .ft-select--input-panel,
|
|
2390
2405
|
.ft-select--disabled .ft-select--option {
|
|
2391
|
-
color: ${
|
|
2406
|
+
color: ${X.colorOnSurfaceDisabled};
|
|
2392
2407
|
}
|
|
2393
2408
|
|
|
2394
2409
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -2397,21 +2412,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2397
2412
|
}
|
|
2398
2413
|
|
|
2399
2414
|
ft-input-label {
|
|
2400
|
-
${
|
|
2401
|
-
${
|
|
2402
|
-
${
|
|
2403
|
-
${
|
|
2404
|
-
${
|
|
2405
|
-
${
|
|
2415
|
+
${x(Y.fontSize,X.selectedOptionSize)};
|
|
2416
|
+
${x(Y.raisedFontSize,X.labelSize)};
|
|
2417
|
+
${x(Y.verticalSpacing,X.verticalSpacing)};
|
|
2418
|
+
${x(Y.horizontalSpacing,X.horizontalSpacing)};
|
|
2419
|
+
${x(Y.backgroundColor,X.backgroundColor)};
|
|
2420
|
+
${x(Y.labelMaxWidth,`calc(100% - ${be.size} - 8px)`)};
|
|
2406
2421
|
}
|
|
2407
2422
|
|
|
2408
2423
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
2409
|
-
color: ${
|
|
2424
|
+
color: ${X.colorPrimary};
|
|
2410
2425
|
}
|
|
2411
2426
|
|
|
2412
2427
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
2413
|
-
${
|
|
2414
|
-
${
|
|
2428
|
+
${x(Y.borderColor,X.colorPrimary)};
|
|
2429
|
+
${x(Y.textColor,X.colorPrimary)};
|
|
2415
2430
|
}
|
|
2416
2431
|
|
|
2417
2432
|
.ft-select--selected-option {
|
|
@@ -2421,12 +2436,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2421
2436
|
overflow: hidden;
|
|
2422
2437
|
white-space: nowrap;
|
|
2423
2438
|
text-overflow: ellipsis;
|
|
2424
|
-
${
|
|
2425
|
-
${
|
|
2439
|
+
${x(Ut.fontSize,X.selectedOptionSize)};
|
|
2440
|
+
${x(Ut.lineHeight,X.selectedOptionSize)};
|
|
2426
2441
|
}
|
|
2427
2442
|
|
|
2428
2443
|
.ft-select--in-error .ft-select--selected-option {
|
|
2429
|
-
color: ${
|
|
2444
|
+
color: ${X.colorError};
|
|
2430
2445
|
}
|
|
2431
2446
|
|
|
2432
2447
|
ft-icon {
|
|
@@ -2438,26 +2453,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2438
2453
|
}
|
|
2439
2454
|
|
|
2440
2455
|
.ft-select--filled .ft-select--input-panel {
|
|
2441
|
-
border-radius: ${
|
|
2456
|
+
border-radius: ${X.borderRadiusS} ${X.borderRadiusS} 0 0;
|
|
2442
2457
|
}
|
|
2443
2458
|
|
|
2444
2459
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
2445
2460
|
align-self: stretch;
|
|
2446
|
-
padding-top: calc(${
|
|
2461
|
+
padding-top: calc(${X.labelSize} + 2 * ${X.verticalSpacing});
|
|
2447
2462
|
}
|
|
2448
2463
|
|
|
2449
2464
|
.ft-select--outlined .ft-select--input-panel {
|
|
2450
|
-
border-radius: ${
|
|
2465
|
+
border-radius: ${X.borderRadiusS};
|
|
2451
2466
|
}
|
|
2452
2467
|
|
|
2453
2468
|
.ft-select--options {
|
|
2454
2469
|
display: none;
|
|
2455
2470
|
position: absolute;
|
|
2456
2471
|
top: 100%;
|
|
2457
|
-
color: ${
|
|
2458
|
-
background: ${
|
|
2459
|
-
z-index: ${
|
|
2460
|
-
box-shadow: ${
|
|
2472
|
+
color: ${X.optionsColor};
|
|
2473
|
+
background: ${X.backgroundColor};
|
|
2474
|
+
z-index: ${X.optionsZIndex};
|
|
2475
|
+
box-shadow: ${X.elevation02};
|
|
2461
2476
|
}
|
|
2462
2477
|
|
|
2463
2478
|
.ft-select--fixed .ft-select--options {
|
|
@@ -2466,13 +2481,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2466
2481
|
|
|
2467
2482
|
.ft-select--options-displayed .ft-select--options {
|
|
2468
2483
|
display: block;
|
|
2469
|
-
max-height: ${
|
|
2484
|
+
max-height: ${X.optionsHeight};
|
|
2470
2485
|
overflow-y: auto;
|
|
2471
2486
|
}
|
|
2472
2487
|
|
|
2473
2488
|
.ft-select--option {
|
|
2474
2489
|
position: relative;
|
|
2475
|
-
padding: 4px ${
|
|
2490
|
+
padding: 4px ${X.horizontalSpacing};
|
|
2476
2491
|
min-height: 32px;
|
|
2477
2492
|
display: flex;
|
|
2478
2493
|
align-items: center;
|
|
@@ -2484,14 +2499,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2484
2499
|
}
|
|
2485
2500
|
|
|
2486
2501
|
.ft-select--helper-text {
|
|
2487
|
-
padding: 0 ${
|
|
2488
|
-
color: ${
|
|
2502
|
+
padding: 0 ${X.horizontalSpacing};
|
|
2503
|
+
color: ${X.helperColor};
|
|
2489
2504
|
}
|
|
2490
2505
|
|
|
2491
2506
|
.ft-select--in-error .ft-select--helper-text {
|
|
2492
|
-
color: ${
|
|
2507
|
+
color: ${X.colorError};
|
|
2493
2508
|
}
|
|
2494
|
-
`;var
|
|
2509
|
+
`;var xe=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},Rt=class extends M{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return w``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Rt.elementDefinitions={};xe([y({type:String})],Rt.prototype,"label",void 0);xe([y({type:Object,converter:t=>t})],Rt.prototype,"value",void 0);xe([y({type:Boolean,reflect:!0})],Rt.prototype,"selected",void 0);var de=class extends M{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return w`
|
|
2495
2510
|
<div class="${pe(p)}" part="container">
|
|
2496
2511
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2497
2512
|
<ft-input-label text="${this.label}"
|
|
@@ -2520,7 +2535,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2520
2535
|
part="options"
|
|
2521
2536
|
@keydown=${this.onOptionsKeyDown}
|
|
2522
2537
|
innerrole="listbox">
|
|
2523
|
-
${
|
|
2538
|
+
${$e(this.options,h=>h.value,h=>this.renderOption(h))}
|
|
2524
2539
|
</div>
|
|
2525
2540
|
</div>
|
|
2526
2541
|
${this.helper?w`
|
|
@@ -2530,44 +2545,44 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2530
2545
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
2531
2546
|
@option-change=${this.updateOptionsFromSlot}
|
|
2532
2547
|
></slot>
|
|
2533
|
-
`}renderOption(e){let
|
|
2534
|
-
<div class="${pe({"ft-select--option":!0,"ft-select--option-selected":
|
|
2548
|
+
`}renderOption(e){let r=this.selectedOption===e;return w`
|
|
2549
|
+
<div class="${pe({"ft-select--option":!0,"ft-select--option-selected":r,"ft-typography--body2":!0})}"
|
|
2535
2550
|
part="option"
|
|
2536
2551
|
tabindex="0"
|
|
2537
2552
|
data-value="${e.value}"
|
|
2538
2553
|
@keydown=${n=>this.onOptionKeyDown(n,e)}
|
|
2539
2554
|
@click=${()=>this.selectOption(e)}>
|
|
2540
|
-
<ft-ripple ?primary=${
|
|
2555
|
+
<ft-ripple ?primary=${r} ?activated=${r}></ft-ripple>
|
|
2541
2556
|
<span>${e.label}</span>
|
|
2542
2557
|
</div>
|
|
2543
|
-
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(
|
|
2558
|
+
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];Aa(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",X.optionsHeight.name,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break}l?.focus()}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var r,i;if(!Me((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};de.elementDefinitions={"ft-input-label":ot,"ft-typography":ae,"ft-ripple":re,"ft-icon":ye};de.styles=[lo,tr,pp];xe([y({type:String})],de.prototype,"label",void 0);xe([y({type:String})],de.prototype,"ariaLabel",void 0);xe([y({type:String})],de.prototype,"helper",void 0);xe([y({type:Boolean})],de.prototype,"outlined",void 0);xe([y({type:Boolean})],de.prototype,"disabled",void 0);xe([y({type:Boolean})],de.prototype,"error",void 0);xe([y({type:Boolean})],de.prototype,"fixedMenuPosition",void 0);xe([y({type:Array})],de.prototype,"options",void 0);xe([W()],de.prototype,"selectedOption",void 0);xe([W()],de.prototype,"optionsDisplayed",void 0);xe([W()],de.prototype,"focusOptions",void 0);xe([F(".ft-select")],de.prototype,"container",void 0);xe([F(".ft-select--options")],de.prototype,"optionsMenu",void 0);xe([F(".ft-select--input-panel")],de.prototype,"mainPanel",void 0);xe([F(".ft-select--option:first-child")],de.prototype,"firstOption",void 0);xe([F(".ft-select--option:focus")],de.prototype,"focusedOption",void 0);xe([F(".ft-select--option.ft-select--option-selected")],de.prototype,"selectedOptionElement",void 0);xe([F(".ft-select--option:last-child")],de.prototype,"lastOption",void 0);xe([F("slot")],de.prototype,"optionsSlot",void 0);V("ft-select")(de);V("ft-select-option")(Rt);var Pe={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(_.borderRadiusM,"Design system")},fp=L`
|
|
2544
2559
|
:host {
|
|
2545
|
-
width: ${
|
|
2546
|
-
height: ${
|
|
2547
|
-
display: ${
|
|
2560
|
+
width: ${Pe.width};
|
|
2561
|
+
height: ${Pe.height};
|
|
2562
|
+
display: ${Pe.display};
|
|
2548
2563
|
overflow: hidden;
|
|
2549
|
-
border-radius: ${
|
|
2564
|
+
border-radius: ${Pe.borderRadiusM};
|
|
2550
2565
|
background: linear-gradient(
|
|
2551
2566
|
90deg,
|
|
2552
2567
|
transparent,
|
|
2553
|
-
${
|
|
2554
|
-
${
|
|
2555
|
-
transparent ${
|
|
2556
|
-
), ${
|
|
2568
|
+
${Pe.glareColor} calc(0.45 * ${Pe.glareWidth}),
|
|
2569
|
+
${Pe.glareColor} calc(0.55 * ${Pe.glareWidth}),
|
|
2570
|
+
transparent ${Pe.glareWidth}
|
|
2571
|
+
), ${Pe.backgroundColor};
|
|
2557
2572
|
background-repeat: repeat-y;
|
|
2558
2573
|
background-size: 100vw 100vh;
|
|
2559
2574
|
background-attachment: fixed;
|
|
2560
|
-
background-position: calc(${
|
|
2561
|
-
animation: shine ${
|
|
2575
|
+
background-position: calc(${Pe.glareWidth} * -1) 0;
|
|
2576
|
+
animation: shine ${Pe.animationDuration} infinite;
|
|
2562
2577
|
animation-timing-function: linear;
|
|
2563
2578
|
}
|
|
2564
2579
|
|
|
2565
2580
|
@keyframes shine {
|
|
2566
2581
|
to {
|
|
2567
|
-
background-position: calc(100vw + ${
|
|
2582
|
+
background-position: calc(100vw + ${Pe.glareWidth}) 0, calc(${Pe.glareWidth} * -1) 0;
|
|
2568
2583
|
}
|
|
2569
2584
|
}
|
|
2570
|
-
`;var
|
|
2585
|
+
`;var j={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",_.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(_.colorSurface,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(_.colorOutline,"Design system"),colorPrimary:o.external(_.colorPrimary,"Design system"),elevation02:o.external(_.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button")},up=L`
|
|
2571
2586
|
* {
|
|
2572
2587
|
box-sizing: border-box;
|
|
2573
2588
|
}
|
|
@@ -2576,7 +2591,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2576
2591
|
display: flex;
|
|
2577
2592
|
flex-direction: column;
|
|
2578
2593
|
gap: 8px;
|
|
2579
|
-
color: ${
|
|
2594
|
+
color: ${j.colorOnSurface};
|
|
2580
2595
|
outline: none;
|
|
2581
2596
|
}
|
|
2582
2597
|
|
|
@@ -2585,21 +2600,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2585
2600
|
}
|
|
2586
2601
|
|
|
2587
2602
|
.ft-search-bar--mobile-menu-open {
|
|
2588
|
-
position: ${
|
|
2589
|
-
top: ${
|
|
2590
|
-
bottom: ${
|
|
2591
|
-
left: ${
|
|
2592
|
-
right: ${
|
|
2593
|
-
z-index: ${
|
|
2603
|
+
position: ${j.mobileOpenPosition};
|
|
2604
|
+
top: ${j.mobileOpenTop};
|
|
2605
|
+
bottom: ${j.mobileOpenBottom};
|
|
2606
|
+
left: ${j.mobileOpenLeft};
|
|
2607
|
+
right: ${j.mobileOpenRight};
|
|
2608
|
+
z-index: ${j.floatingZIndex};
|
|
2594
2609
|
padding: 16px;
|
|
2595
2610
|
}
|
|
2596
2611
|
|
|
2597
2612
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2598
|
-
background: ${
|
|
2613
|
+
background: ${j.colorSurface};
|
|
2599
2614
|
}
|
|
2600
2615
|
|
|
2601
2616
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2602
|
-
position: ${
|
|
2617
|
+
position: ${j.mobileOpenPosition.get("static")};
|
|
2603
2618
|
}
|
|
2604
2619
|
|
|
2605
2620
|
.ft-search-bar {
|
|
@@ -2607,20 +2622,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2607
2622
|
display: flex;
|
|
2608
2623
|
flex-direction: row;
|
|
2609
2624
|
align-items: center;
|
|
2610
|
-
height: ${
|
|
2625
|
+
height: ${j.height};
|
|
2611
2626
|
|
|
2612
|
-
background: ${
|
|
2613
|
-
border: 1px solid ${
|
|
2614
|
-
border-radius: ${
|
|
2627
|
+
background: ${j.colorSurface};
|
|
2628
|
+
border: 1px solid ${j.colorOutline};
|
|
2629
|
+
border-radius: ${j.borderRadius};
|
|
2615
2630
|
}
|
|
2616
2631
|
|
|
2617
2632
|
.ft-search-bar--skeleton {
|
|
2618
|
-
${
|
|
2619
|
-
${
|
|
2633
|
+
${x(Pe.height,j.height)};
|
|
2634
|
+
${x(Pe.borderRadiusM,j.borderRadius)};
|
|
2620
2635
|
}
|
|
2621
2636
|
|
|
2622
2637
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2623
|
-
border-radius: ${
|
|
2638
|
+
border-radius: ${j.borderRadius} ${j.borderRadius} 0 0;
|
|
2624
2639
|
}
|
|
2625
2640
|
|
|
2626
2641
|
.ft-search-bar--input-container {
|
|
@@ -2638,7 +2653,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2638
2653
|
align-self: stretch;
|
|
2639
2654
|
display: grid;
|
|
2640
2655
|
padding: 0 8px;
|
|
2641
|
-
border-radius: ${
|
|
2656
|
+
border-radius: ${j.borderRadius};
|
|
2642
2657
|
}
|
|
2643
2658
|
|
|
2644
2659
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2647,7 +2662,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2647
2662
|
}
|
|
2648
2663
|
|
|
2649
2664
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2650
|
-
outline: 2px solid ${
|
|
2665
|
+
outline: 2px solid ${j.colorPrimary};
|
|
2651
2666
|
}
|
|
2652
2667
|
|
|
2653
2668
|
.ft-search-bar--input {
|
|
@@ -2655,12 +2670,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2655
2670
|
flex-grow: 1;
|
|
2656
2671
|
border: none;
|
|
2657
2672
|
background-color: transparent;
|
|
2658
|
-
color: ${
|
|
2673
|
+
color: ${j.colorOnSurface};
|
|
2659
2674
|
outline: none;
|
|
2660
2675
|
}
|
|
2661
2676
|
|
|
2662
2677
|
.ft-search-bar--input::placeholder {
|
|
2663
|
-
color: ${
|
|
2678
|
+
color: ${j.colorOnSurfaceMedium};
|
|
2664
2679
|
}
|
|
2665
2680
|
|
|
2666
2681
|
.ft-search-bar--actions {
|
|
@@ -2670,18 +2685,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2670
2685
|
align-items: center;
|
|
2671
2686
|
height: 100%;
|
|
2672
2687
|
|
|
2673
|
-
${
|
|
2688
|
+
${x(rr.zIndex,`calc(${j.floatingZIndex} + 1)`)};
|
|
2674
2689
|
}
|
|
2675
2690
|
|
|
2676
2691
|
.ft-search-bar > ft-button,
|
|
2677
2692
|
.ft-search-bar--actions ft-button {
|
|
2678
2693
|
flex-shrink: 0;
|
|
2679
|
-
${
|
|
2694
|
+
${x(te.backgroundColor,"transparent")};
|
|
2680
2695
|
}
|
|
2681
2696
|
|
|
2682
2697
|
.ft-search-bar--left-action {
|
|
2683
|
-
${
|
|
2684
|
-
border-right: 1px solid ${
|
|
2698
|
+
${x(te.borderRadius,`calc(${j.borderRadius} - 1px) 0 0 calc(${j.borderRadius} - 1px)`)};
|
|
2699
|
+
border-right: 1px solid ${j.colorOutline};
|
|
2685
2700
|
height: 100%;
|
|
2686
2701
|
}
|
|
2687
2702
|
|
|
@@ -2690,7 +2705,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2690
2705
|
}
|
|
2691
2706
|
|
|
2692
2707
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2693
|
-
${
|
|
2708
|
+
${x(te.borderRadius,`calc(${j.borderRadius} - 1px) 0 0 0`)};
|
|
2694
2709
|
}
|
|
2695
2710
|
|
|
2696
2711
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2700,13 +2715,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2700
2715
|
|
|
2701
2716
|
.ft-search-bar--separator {
|
|
2702
2717
|
height: 20px;
|
|
2703
|
-
border-right: 1px solid ${
|
|
2718
|
+
border-right: 1px solid ${j.colorOutline};
|
|
2704
2719
|
}
|
|
2705
2720
|
|
|
2706
2721
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2707
|
-
${
|
|
2708
|
-
${
|
|
2709
|
-
${
|
|
2722
|
+
${x(Y.borderColor,"transparent")};
|
|
2723
|
+
${x(Y.borderRadius,`calc(${j.borderRadius} - 1px)`)};
|
|
2724
|
+
${x(X.selectedOptionColor,j.buttonColor)};
|
|
2710
2725
|
}
|
|
2711
2726
|
|
|
2712
2727
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2723,7 +2738,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2723
2738
|
}
|
|
2724
2739
|
|
|
2725
2740
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2726
|
-
border-radius: calc(${
|
|
2741
|
+
border-radius: calc(${j.borderRadius} - 1px) 0 0 calc(${j.borderRadius} - 1px);
|
|
2727
2742
|
}
|
|
2728
2743
|
|
|
2729
2744
|
[part="content-locale-selector"] {
|
|
@@ -2732,7 +2747,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2732
2747
|
flex-direction: column;
|
|
2733
2748
|
max-height: 100%;
|
|
2734
2749
|
max-width: 100%;
|
|
2735
|
-
color: ${
|
|
2750
|
+
color: ${Ze.colorOnSurface};
|
|
2736
2751
|
}
|
|
2737
2752
|
|
|
2738
2753
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2750,7 +2765,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2750
2765
|
flex-shrink: 0;
|
|
2751
2766
|
padding: 0 10px;
|
|
2752
2767
|
margin-bottom: 8px;
|
|
2753
|
-
${
|
|
2768
|
+
${x(D.fontSize,"14px")};
|
|
2754
2769
|
}
|
|
2755
2770
|
|
|
2756
2771
|
[part="content-locale-selector-label"] {
|
|
@@ -2758,18 +2773,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2758
2773
|
flex-shrink: 1;
|
|
2759
2774
|
flex-grow: 1;
|
|
2760
2775
|
word-break: break-word;
|
|
2761
|
-
${
|
|
2762
|
-
${
|
|
2776
|
+
${x(D.lineHeight,"22px")};
|
|
2777
|
+
${x(D.fontWeight,"bold")};
|
|
2763
2778
|
}
|
|
2764
2779
|
|
|
2765
|
-
`,
|
|
2780
|
+
`,hp=L`
|
|
2766
2781
|
.ft-search-bar--presets {
|
|
2767
2782
|
min-width: 200px;
|
|
2768
2783
|
}
|
|
2769
2784
|
|
|
2770
2785
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2771
2786
|
margin-right: auto;
|
|
2772
|
-
${
|
|
2787
|
+
${x(X.optionsZIndex,"2")};
|
|
2773
2788
|
}
|
|
2774
2789
|
|
|
2775
2790
|
.ft-search-bar--desktop-menu {
|
|
@@ -2822,8 +2837,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2822
2837
|
|
|
2823
2838
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2824
2839
|
display: block;
|
|
2825
|
-
height: ${
|
|
2826
|
-
${
|
|
2840
|
+
height: ${j.desktopFiltersHeight};
|
|
2841
|
+
${x(We.gap,"16px")};
|
|
2827
2842
|
}
|
|
2828
2843
|
|
|
2829
2844
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2903,7 +2918,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2903
2918
|
.ft-search-bar--filter-label-values {
|
|
2904
2919
|
flex-grow: 0;
|
|
2905
2920
|
flex-shrink: 1;
|
|
2906
|
-
color: ${
|
|
2921
|
+
color: ${j.colorOnSurfaceMedium};
|
|
2907
2922
|
}
|
|
2908
2923
|
|
|
2909
2924
|
ft-accordion-item::part(toggle) {
|
|
@@ -2923,12 +2938,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2923
2938
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2924
2939
|
margin: 0;
|
|
2925
2940
|
}
|
|
2926
|
-
`;var
|
|
2927
|
-
`}};
|
|
2928
|
-
<div class="ft-search-bar--suggestions ft-word-wrap ${
|
|
2941
|
+
`;var nr=class extends M{render(){return w`
|
|
2942
|
+
`}};nr.elementDefinitions={};nr.styles=fp;V("ft-skeleton")(nr);var _t=class{constructor(e,r=300){this.searchBar=e,this.updateDebouncer=new ce(r)}render(){let e=this.searchBar.recentSearches.filter(i=>i.toLowerCase().includes(this.searchBar.query.toLowerCase())),r=this.searchBar.suggestions.length>0||e.length>0;return w`
|
|
2943
|
+
<div class="ft-search-bar--suggestions ft-word-wrap ${r?"ft-search-bar--suggestions-not-empty":""}"
|
|
2929
2944
|
part="suggestions-container"
|
|
2930
2945
|
@keydown=${i=>this.onSuggestKeyDown(i)}>
|
|
2931
|
-
${
|
|
2946
|
+
${$e(e.slice(0,5),i=>i,i=>w`
|
|
2932
2947
|
<div part="suggestion-container">
|
|
2933
2948
|
<a href="${this.getRequestWithQuery(i)}"
|
|
2934
2949
|
part="suggestions"
|
|
@@ -2948,7 +2963,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2948
2963
|
</ft-button>
|
|
2949
2964
|
</div>
|
|
2950
2965
|
`)}
|
|
2951
|
-
${
|
|
2966
|
+
${$e(this.searchBar.suggestions,i=>i.value,i=>w`
|
|
2952
2967
|
<div part="suggestion-container">
|
|
2953
2968
|
<a href="${this.getRequestWithQuery(i.value)}"
|
|
2954
2969
|
part="suggestions"
|
|
@@ -2961,9 +2976,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2961
2976
|
</div>
|
|
2962
2977
|
`)}
|
|
2963
2978
|
</div>
|
|
2964
|
-
`}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,
|
|
2965
|
-
<ft-icon .variant="${
|
|
2966
|
-
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};
|
|
2979
|
+
`}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestKeyDown(e){var r,i;switch(e.key){case"ArrowUp":(r=this.previousSuggestionElement())===null||r===void 0||r.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowDown":(i=this.nextSuggestionElement())===null||i===void 0||i.focus(),e.preventDefault(),e.stopPropagation();break}}nextSuggestionElement(){var e,r;let i=(e=this.getFocusedSuggestionElement())===null||e===void 0?void 0:e.parentElement,n=(r=i?.nextElementSibling)===null||r===void 0?void 0:r.querySelector("[part=suggestions]");return n??this.getFirstSuggestionElement()}previousSuggestionElement(){var e,r;let i=(e=this.getFocusedSuggestionElement())===null||e===void 0?void 0:e.parentElement,n=(r=i?.previousElementSibling)===null||r===void 0?void 0:r.querySelector("[part=suggestions]");return n??this.getLastSuggestionElement()}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){var i,n,a,s;e.preventDefault(),e.stopPropagation();let l=e.target.closest("[part='suggestion-container']"),d=(s=(n=(i=l?.previousElementSibling)===null||i===void 0?void 0:i.querySelector("[part='suggestions']"))!==null&&n!==void 0?n:(a=l?.nextElementSibling)===null||a===void 0?void 0:a.querySelector("[part='suggestions']"))!==null&&s!==void 0?s:this.searchBar.input;d?.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(p=>p.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Et.BOOK:Et.ARTICLE;break;case"DOCUMENT":i=Zd(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Et.TOPICS;break}return w`
|
|
2980
|
+
<ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
2981
|
+
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};_t.styles=[Pa,L`
|
|
2967
2982
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2968
2983
|
flex-grow: 1;
|
|
2969
2984
|
flex-shrink: 1;
|
|
@@ -2972,7 +2987,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2972
2987
|
}
|
|
2973
2988
|
|
|
2974
2989
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2975
|
-
border-top: 1px solid ${
|
|
2990
|
+
border-top: 1px solid ${j.colorOutline};
|
|
2976
2991
|
}
|
|
2977
2992
|
|
|
2978
2993
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2982,15 +2997,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2982
2997
|
.ft-search-bar--floating-panel,
|
|
2983
2998
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2984
2999
|
position: absolute;
|
|
2985
|
-
z-index: ${
|
|
3000
|
+
z-index: ${j.floatingZIndex};
|
|
2986
3001
|
top: 100%;
|
|
2987
3002
|
left: -1px;
|
|
2988
3003
|
right: -1px;
|
|
2989
3004
|
display: none;
|
|
2990
|
-
background: ${
|
|
2991
|
-
border: 1px solid ${
|
|
2992
|
-
border-radius: 0 0 ${
|
|
2993
|
-
box-shadow: ${
|
|
3005
|
+
background: ${j.colorSurface};
|
|
3006
|
+
border: 1px solid ${j.colorOutline};
|
|
3007
|
+
border-radius: 0 0 ${j.borderRadius} ${j.borderRadius};
|
|
3008
|
+
box-shadow: ${j.elevation02};
|
|
2994
3009
|
outline: none;
|
|
2995
3010
|
}
|
|
2996
3011
|
|
|
@@ -3020,7 +3035,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3020
3035
|
gap: 8px;
|
|
3021
3036
|
cursor: pointer;
|
|
3022
3037
|
flex-grow: 1;
|
|
3023
|
-
color: ${
|
|
3038
|
+
color: ${j.colorOnSurface};
|
|
3024
3039
|
min-height: 52px;
|
|
3025
3040
|
}
|
|
3026
3041
|
|
|
@@ -3037,7 +3052,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3037
3052
|
}
|
|
3038
3053
|
|
|
3039
3054
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
3040
|
-
border-top: 1px solid ${
|
|
3055
|
+
border-top: 1px solid ${j.colorOutline};
|
|
3041
3056
|
}
|
|
3042
3057
|
|
|
3043
3058
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -3045,7 +3060,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3045
3060
|
flex-grow: 1;
|
|
3046
3061
|
flex-shrink: 1;
|
|
3047
3062
|
}
|
|
3048
|
-
`];var
|
|
3063
|
+
`];var $t=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return w``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=w`
|
|
3049
3064
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?w`
|
|
3050
3065
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
3051
3066
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3056,7 +3071,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3056
3071
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
3057
3072
|
</ft-chip>
|
|
3058
3073
|
`:null}
|
|
3059
|
-
${
|
|
3074
|
+
${$e(this.searchBar.facets,n=>n.key,n=>{let a=Id(n);return $e(a,s=>{let l=n.label+": "+kd(s),d=n.key.replace(":","-"),p=w`
|
|
3060
3075
|
<ft-chip
|
|
3061
3076
|
part="selected-filters selected-filter-${d}"
|
|
3062
3077
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3064,14 +3079,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3064
3079
|
?removable=${!e}
|
|
3065
3080
|
icon=${e?z:"close"}
|
|
3066
3081
|
label="${l}"
|
|
3067
|
-
title=${
|
|
3082
|
+
title=${r?l:z}
|
|
3068
3083
|
@click=${()=>this.openMobileFilters(n.key)}
|
|
3069
3084
|
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(h=>h!==s))}
|
|
3070
3085
|
data-key="${n.key}"
|
|
3071
3086
|
data-value="${s}">
|
|
3072
|
-
${
|
|
3087
|
+
${Nd(s)}
|
|
3073
3088
|
</ft-chip>
|
|
3074
|
-
`;return
|
|
3089
|
+
`;return r?p:w`
|
|
3075
3090
|
<ft-tooltip inline text="${l}">
|
|
3076
3091
|
${p}
|
|
3077
3092
|
</ft-tooltip>
|
|
@@ -3084,7 +3099,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3084
3099
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
3085
3100
|
</ft-chip>
|
|
3086
3101
|
`:z}
|
|
3087
|
-
`;return
|
|
3102
|
+
`;return r?w`
|
|
3088
3103
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
3089
3104
|
class="ft-search-bar--selected-filters"
|
|
3090
3105
|
part="selected-filters-container"
|
|
@@ -3095,7 +3110,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3095
3110
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
3096
3111
|
${i}
|
|
3097
3112
|
</div>
|
|
3098
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var
|
|
3113
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};$t.styles=L`
|
|
3099
3114
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
3100
3115
|
flex-shrink: 0;
|
|
3101
3116
|
display: flex;
|
|
@@ -3106,7 +3121,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3106
3121
|
|
|
3107
3122
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3108
3123
|
overflow: hidden;
|
|
3109
|
-
${
|
|
3124
|
+
${x(We.gap,"4px")};
|
|
3110
3125
|
}
|
|
3111
3126
|
|
|
3112
3127
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -3114,8 +3129,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3114
3129
|
}
|
|
3115
3130
|
|
|
3116
3131
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3117
|
-
${
|
|
3118
|
-
${
|
|
3132
|
+
${x(Be.iconSize,"17px")};
|
|
3133
|
+
${x(Be.fontSize,"12px")};
|
|
3119
3134
|
}
|
|
3120
3135
|
|
|
3121
3136
|
.ft-search-bar--selected-filters * {
|
|
@@ -3125,7 +3140,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3125
3140
|
.ft-search-bar--selected-filters ft-chip {
|
|
3126
3141
|
flex-grow: 0;
|
|
3127
3142
|
}
|
|
3128
|
-
`;var
|
|
3143
|
+
`;var Xo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new $t(e),this.suggestManager=i??new _t(e)}render(){let e={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return w`
|
|
3129
3144
|
<div class="${pe(e)}" part="container" tabindex="-1">
|
|
3130
3145
|
<div class="ft-search-bar" role="search">
|
|
3131
3146
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -3135,8 +3150,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3135
3150
|
type="search"
|
|
3136
3151
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
3137
3152
|
value="${this.searchBar.query}"
|
|
3138
|
-
@input=${
|
|
3139
|
-
@keyup=${
|
|
3153
|
+
@input=${r=>this.onInput(r)}
|
|
3154
|
+
@keyup=${r=>this.onSearchBarKeyUp(r)}
|
|
3140
3155
|
@focus=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!1}}>
|
|
3141
3156
|
</div>
|
|
3142
3157
|
</div>
|
|
@@ -3174,12 +3189,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3174
3189
|
round
|
|
3175
3190
|
label="${this.searchBar.labelResolver.resolve("searchButton")}"
|
|
3176
3191
|
tooltipPosition="left"
|
|
3177
|
-
@click=${()=>{var
|
|
3192
|
+
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
3178
3193
|
></ft-button>
|
|
3179
3194
|
</div>
|
|
3180
|
-
`}onSearchBarKeyUp(e){var
|
|
3195
|
+
`}onSearchBarKeyUp(e){var r;e.key==="Enter"&&((r=this.searchBar.launchSearchButton)===null||r===void 0||r.click())}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Xo.styles=L`
|
|
3181
3196
|
|
|
3182
|
-
`;var
|
|
3197
|
+
`;var Jo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new $t(e),this.suggestManager=i??new _t(e)}render(){let e={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen,"ft-search-bar--react-to-focus":this.searchBar.reactToFocus};return w`
|
|
3183
3198
|
<div class="${pe(e)}" part="container" tabindex="-1">
|
|
3184
3199
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
3185
3200
|
${this.renderSearchBarLeftAction()}
|
|
@@ -3191,9 +3206,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3191
3206
|
type="search"
|
|
3192
3207
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
3193
3208
|
value="${this.searchBar.query}"
|
|
3194
|
-
@input=${
|
|
3195
|
-
@keydown=${
|
|
3196
|
-
@keyup=${
|
|
3209
|
+
@input=${r=>this.onInput(r)}
|
|
3210
|
+
@keydown=${r=>this.onSearchBarKeyDown(r)}
|
|
3211
|
+
@keyup=${r=>this.onSearchBarKeyUp(r)}>
|
|
3197
3212
|
</div>
|
|
3198
3213
|
${this.suggestManager.render()}
|
|
3199
3214
|
</div>
|
|
@@ -3221,7 +3236,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3221
3236
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
3222
3237
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
3223
3238
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
3224
|
-
${
|
|
3239
|
+
${$e(this.searchBar.availableContentLocales,e=>e.lang,e=>w`
|
|
3225
3240
|
<ft-select-option .value=${e.lang}
|
|
3226
3241
|
label="${e.label}"
|
|
3227
3242
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -3250,19 +3265,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3250
3265
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
3251
3266
|
></ft-button>
|
|
3252
3267
|
</div>
|
|
3253
|
-
`}onSearchBarKeyDown(e){var
|
|
3268
|
+
`}onSearchBarKeyDown(e){var r;switch(e.key){case"Escape":this.searchBar.mobileMenuOpen=!1,(r=this.searchBar.input)===null||r===void 0||r.blur();break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusFirstSuggestion();break}}onSearchBarKeyUp(e){var r;e.key==="Enter"&&((r=this.searchBar.launchSearchButton)===null||r===void 0||r.click())}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Jo.styles=L`
|
|
3254
3269
|
|
|
3255
|
-
`;var
|
|
3256
|
-
`;var
|
|
3270
|
+
`;var yp=L`
|
|
3271
|
+
`;var nh="ft-app-info",Ts=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},ah={session:(t,e)=>{Me(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>G.dispatchEvent(new Ts(e.payload)),0))}},G=Lr.get({name:nh,reducers:ah,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 Ir=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=G.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=G.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ar=class{constructor(e=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new xt,this.cache=e?n.commonCache:new xt}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}clearCache(){this.cache.clearAll()}};var mp,sh=Symbol("clearAfterUnitTest"),qi=class extends ar{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mp]=()=>{this.defaultMessages={},this.cache=new xt,this.listeners={}},this.currentUiLocale=G.getState().uiLocale,G.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=G.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};Me(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 Kt((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=>Ci(0).then(()=>r()).catch(()=>null)))}};mp=sh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends qi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends qi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var gp=window.FluidTopicsI18nService,q_=window.FluidTopicsCustomI18nService;var Fe=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},ve=class extends M{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ir.get(),this.messageContexts=[],this.cache=new xt,this.cleanSessionDebouncer=new ce}render(){return w`
|
|
3257
3272
|
<slot></slot>
|
|
3258
|
-
`}update(e){var t,i,n,a,s;super.update(e),e.has("baseUrl")&&(G.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&G.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&G.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&G.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&G.actions.noCustom(this.noCustom),e.has("editorMode")&&G.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&G.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&G.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>fp.addContext(l)),e.has("openExternalDocumentInNewTab")&&G.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&G.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&G.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(G.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),G.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),G.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())}};xe.elementDefinitions={};xe.styles=dp;Fe([m()],xe.prototype,"baseUrl",void 0);Fe([m()],xe.prototype,"apiIntegrationIdentifier",void 0);Fe([m()],xe.prototype,"uiLocale",void 0);Fe([ke(null)],xe.prototype,"availableUiLocales",void 0);Fe([ke(null)],xe.prototype,"metadataConfiguration",void 0);Fe([m({type:Boolean})],xe.prototype,"editorMode",void 0);Fe([m({type:Boolean})],xe.prototype,"noCustom",void 0);Fe([m({type:Boolean})],xe.prototype,"openExternalDocumentInNewTab",void 0);Fe([m({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],xe.prototype,"noCustomComponent",void 0);Fe([m({type:Boolean})],xe.prototype,"withManualResources",void 0);Fe([m({type:Boolean})],xe.prototype,"navigatorOnline",void 0);Fe([m({type:Boolean})],xe.prototype,"forcedOffline",void 0);Fe([m({type:Object})],xe.prototype,"apiProvider",void 0);Fe([ke([])],xe.prototype,"messageContexts",void 0);Fe([ke(void 0)],xe.prototype,"session",void 0);Fe([W()],xe.prototype,"localesConfiguration",void 0);var Yi=class extends nr{async listMySearches(){let e=G.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xi=class extends nr{async listMyBookmarks(){let e=G.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var oh="ft-user-assets",Ji=Rr.get({name:oh,initialState:{savedSearches:void 0,bookmarks:void 0}}),ks=class{constructor(){this.currentSession=G.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xi,this.savedSearchesService=new Yi,G.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=G.getState();De((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ji.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ji.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ji.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ji.actions.bookmarks(t)}}},gL=new ks;var Ps=class{addCommand(e,t=!1){G.commands.add(e,t)}consumeCommand(e){return G.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ps;var Is=class{highlightHtml(e,t,i){_a(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Is;var Ts=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=G.getState().metadataConfiguration)===null||t===void 0?void 0:t.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,t){var i,n,a;return Jr.format(e,(i=t?.locale)!==null&&i!==void 0?i:G.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ts;H("ft-app-context")(xe);var te=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var up={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Bs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ih=()=>{},K=class extends M{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Kt(up,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new $r(this.baseUrl,{}).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=ot.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new At(this),this.selectedFacetsManager=new Rt(this),this.desktopSearchBarManager=new Xo(this),this.mobileSearchBarManager=new Yo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ce(10),this.updateLocalesDebouncer=new ce(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ce(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(i=>t.values.includes(i)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(i=>t.metadataFilters.some(n=>this.compareFilters(i,n))),this.enableFocusReactionCallback=()=>this.enableFocusReaction()}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var i,n;return((n=(i=t.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===ot.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await Ci(()=>this.input,50),this.input.focus(),e||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return w`
|
|
3273
|
+
`}update(e){var r,i,n,a,s;super.update(e),e.has("baseUrl")&&(G.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&G.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&G.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&G.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&G.actions.noCustom(this.noCustom),e.has("editorMode")&&G.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&G.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&G.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>gp.addContext(l)),e.has("openExternalDocumentInNewTab")&&G.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&G.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&G.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(G.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),G.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),G.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())}};ve.elementDefinitions={};ve.styles=yp;Fe([y()],ve.prototype,"baseUrl",void 0);Fe([y()],ve.prototype,"apiIntegrationIdentifier",void 0);Fe([y()],ve.prototype,"uiLocale",void 0);Fe([ke(null)],ve.prototype,"availableUiLocales",void 0);Fe([ke(null)],ve.prototype,"metadataConfiguration",void 0);Fe([y({type:Boolean})],ve.prototype,"editorMode",void 0);Fe([y({type:Boolean})],ve.prototype,"noCustom",void 0);Fe([y({type:Boolean})],ve.prototype,"openExternalDocumentInNewTab",void 0);Fe([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ve.prototype,"noCustomComponent",void 0);Fe([y({type:Boolean})],ve.prototype,"withManualResources",void 0);Fe([y({type:Boolean})],ve.prototype,"navigatorOnline",void 0);Fe([y({type:Boolean})],ve.prototype,"forcedOffline",void 0);Fe([y({type:Object})],ve.prototype,"apiProvider",void 0);Fe([ke([])],ve.prototype,"messageContexts",void 0);Fe([ke(void 0)],ve.prototype,"session",void 0);Fe([W()],ve.prototype,"localesConfiguration",void 0);var Yi=class extends ar{async listMySearches(){let e=G.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xi=class extends ar{async listMyBookmarks(){let e=G.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var lh="ft-user-assets",Ji=Lr.get({name:lh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ps=class{constructor(){this.currentSession=G.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xi,this.savedSearchesService=new Yi,G.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=G.getState();Me((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(),Ji.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ji.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ji.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;Ji.actions.bookmarks(r)}}},O$=new Ps;var Is=class{addCommand(e,r=!1){G.commands.add(e,r)}consumeCommand(e){return G.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Is;var Ds=class{highlightHtml(e,r,i){ka(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ds;var Bs=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=G.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 to.format(e,(i=r?.locale)!==null&&i!==void 0?i:G.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Bs;V("ft-app-context")(ve);var oe=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};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var bp={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Fs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ch=()=>{},K=class extends M{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Kt(bp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Nr(this.baseUrl,{}).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=nt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new _t(this),this.selectedFacetsManager=new $t(this),this.desktopSearchBarManager=new Jo(this),this.mobileSearchBarManager=new Xo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ce(10),this.updateLocalesDebouncer=new ce(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ce(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n))),this.enableFocusReactionCallback=()=>this.enableFocusReaction()}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===nt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await Ei(()=>this.input,50),this.input.focus(),e||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return w`
|
|
3259
3274
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
3260
3275
|
${this.renderSearchBar()}
|
|
3261
3276
|
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():w`
|
|
3262
3277
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
3263
3278
|
part="loader"
|
|
3264
3279
|
tabindex="-1"></ft-skeleton>
|
|
3265
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(
|
|
3280
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return w`
|
|
3266
3281
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
3267
3282
|
${this.hasLocaleSelector()?w`
|
|
3268
3283
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
@@ -3280,10 +3295,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3280
3295
|
</div>
|
|
3281
3296
|
</ft-accordion-item>
|
|
3282
3297
|
`:null}
|
|
3283
|
-
${
|
|
3284
|
-
<ft-accordion-item data-facet-key="${
|
|
3298
|
+
${$e(this.facets,r=>r.key,r=>{let i=As(r),n=r.key.replace(":","-"),a=Pd(i);return r.rootNodes.length>0?w`
|
|
3299
|
+
<ft-accordion-item data-facet-key="${r.key}">
|
|
3285
3300
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
3286
|
-
<ft-typography variant="button">${
|
|
3301
|
+
<ft-typography variant="button">${r.label}</ft-typography>
|
|
3287
3302
|
${a.length>0?w`
|
|
3288
3303
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
3289
3304
|
${a.join(", ")}
|
|
@@ -3309,11 +3324,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3309
3324
|
</ft-accordion>
|
|
3310
3325
|
`}getContentLocaleRadioGroup(){var e;return w`
|
|
3311
3326
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
3312
|
-
@change=${
|
|
3313
|
-
${
|
|
3314
|
-
<ft-radio value="${(i=
|
|
3315
|
-
?checked=${
|
|
3316
|
-
${
|
|
3327
|
+
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
3328
|
+
${$e((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return w`
|
|
3329
|
+
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
3330
|
+
?checked=${r.lang==this.contentLocale}>
|
|
3331
|
+
${r.label}
|
|
3317
3332
|
</ft-radio>
|
|
3318
3333
|
`})}
|
|
3319
3334
|
</ft-radio-group>
|
|
@@ -3340,11 +3355,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3340
3355
|
part="presets"
|
|
3341
3356
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
3342
3357
|
outlined
|
|
3343
|
-
@change=${
|
|
3344
|
-
${
|
|
3345
|
-
<ft-select-option value="${
|
|
3346
|
-
label="${
|
|
3347
|
-
?selected=${
|
|
3358
|
+
@change=${r=>this.selectedPreset=r.detail}>
|
|
3359
|
+
${$e((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>w`
|
|
3360
|
+
<ft-select-option value="${r.name}"
|
|
3361
|
+
label="${r.name}"
|
|
3362
|
+
?selected=${r.name===this.selectedPreset}>
|
|
3348
3363
|
</ft-select-option>
|
|
3349
3364
|
`)}
|
|
3350
3365
|
</ft-select>
|
|
@@ -3373,33 +3388,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3373
3388
|
${this.getContentLocaleRadioGroup()}
|
|
3374
3389
|
</div>
|
|
3375
3390
|
`:z}
|
|
3376
|
-
${
|
|
3391
|
+
${$e(this.facets,e=>e.key,e=>{let r=As(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return w`
|
|
3377
3392
|
<ft-filter
|
|
3378
3393
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3379
3394
|
part="filters filter filter-${n}"
|
|
3380
3395
|
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
3381
|
-
id="${
|
|
3382
|
-
label="${
|
|
3383
|
-
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",
|
|
3396
|
+
id="${r.id}"
|
|
3397
|
+
label="${r.label}"
|
|
3398
|
+
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
|
|
3384
3399
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
3385
3400
|
moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
|
|
3386
3401
|
noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
|
|
3387
|
-
?multivalued=${
|
|
3402
|
+
?multivalued=${r.multivalued}
|
|
3388
3403
|
raiseSelectedOptions
|
|
3389
|
-
.options=${
|
|
3404
|
+
.options=${r.options}
|
|
3390
3405
|
.displayedValuesLimit=${10}
|
|
3391
|
-
@change=${a=>this.setFilter(
|
|
3406
|
+
@change=${a=>this.setFilter(r.id,a.detail)}
|
|
3392
3407
|
></ft-filter>
|
|
3393
3408
|
`})}
|
|
3394
3409
|
</ft-snap-scroll>
|
|
3395
|
-
`:z}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",
|
|
3410
|
+
`:z}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Kt(bp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(p=>p.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(p=>Wi(p)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Fs(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(ch)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Os&&this.focusInput(),G.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),G.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ye(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ye(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?z:w`
|
|
3396
3411
|
<div class="ft-search-bar--floating-panel"
|
|
3397
3412
|
id="ft-search-bar-floating-panel"
|
|
3398
3413
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3399
3414
|
part="floating-panel"
|
|
3400
3415
|
tabindex="-1">
|
|
3401
3416
|
${this.renderDesktopMenu()}
|
|
3402
|
-
</div>`}enableFocusReactionOnAnyUserInteraction(){this.addEventListener("blur",this.enableFocusReactionCallback),this.addEventListener("click",this.enableFocusReactionCallback),this.addEventListener("keyup",this.enableFocusReactionCallback)}enableFocusReaction(){this.reactToFocus=!0,this.removeEventListener("blur",this.enableFocusReactionCallback),this.removeEventListener("click",this.enableFocusReactionCallback),this.removeEventListener("keyup",this.enableFocusReactionCallback)}};K.elementDefinitions={"ft-accordion":
|
|
3417
|
+
</div>`}enableFocusReactionOnAnyUserInteraction(){this.addEventListener("blur",this.enableFocusReactionCallback),this.addEventListener("click",this.enableFocusReactionCallback),this.addEventListener("keyup",this.enableFocusReactionCallback)}enableFocusReaction(){this.reactToFocus=!0,this.removeEventListener("blur",this.enableFocusReactionCallback),this.removeEventListener("click",this.enableFocusReactionCallback),this.removeEventListener("keyup",this.enableFocusReactionCallback)}};K.elementDefinitions={"ft-accordion":At,"ft-accordion-item":st,"ft-button":Re,"ft-chip":Ce,"ft-filter":ne,"ft-filter-option":tt,"ft-icon":ye,"ft-ripple":re,"ft-select":de,"ft-select-option":Rt,"ft-size-watcher":Qe,"ft-skeleton":nr,"ft-snap-scroll":we,"ft-tooltip":he,"ft-typography":ae,"ft-radio-group":Ke,"ft-radio":_e};K.styles=[lo,zo,up,hp,$t.styles,_t.styles];oe([y({type:Boolean})],K.prototype,"dense",void 0);oe([y()],K.prototype,"mode",void 0);oe([y({type:Boolean})],K.prototype,"forceMobileMenuOpen",void 0);oe([y({type:Boolean})],K.prototype,"forceMenuOpen",void 0);oe([y()],K.prototype,"baseUrl",void 0);oe([y()],K.prototype,"apiIntegrationIdentifier",void 0);oe([y()],K.prototype,"contentLocale",void 0);oe([W()],K.prototype,"availableContentLocales",void 0);oe([W()],K.prototype,"availableContentLocalesInitialized",void 0);oe([y()],K.prototype,"uiLocale",void 0);oe([ke({})],K.prototype,"labels",void 0);oe([ke([])],K.prototype,"displayedFilters",void 0);oe([ke([])],K.prototype,"presets",void 0);oe([y({type:String,reflect:!0})],K.prototype,"selectedPreset",void 0);oe([ke([])],K.prototype,"priors",void 0);oe([y()],K.prototype,"searchRequestSerializer",void 0);oe([y({type:Boolean})],K.prototype,"focusOnDisplay",void 0);oe([W()],K.prototype,"metadataFilters",void 0);oe([W()],K.prototype,"sizeCategory",void 0);oe([W()],K.prototype,"displayFacets",void 0);oe([W()],K.prototype,"mobileMenuOpen",void 0);oe([W()],K.prototype,"facets",void 0);oe([W()],K.prototype,"facetsInitialized",void 0);oe([F(".ft-search-bar--container")],K.prototype,"container",void 0);oe([F(".ft-search-bar--filters-opener")],K.prototype,"filtersOpener",void 0);oe([F(".ft-search-bar--floating-panel")],K.prototype,"floatingContainer",void 0);oe([F("ft-snap-scroll.ft-search-bar--filters-container")],K.prototype,"scrollingFiltersContainer",void 0);oe([F(".ft-search-bar--input")],K.prototype,"input",void 0);oe([F(".ft-search-bar--launch-search")],K.prototype,"launchSearchButton",void 0);oe([W()],K.prototype,"query",void 0);oe([W()],K.prototype,"suggestions",void 0);oe([W()],K.prototype,"recentSearches",void 0);oe([W()],K.prototype,"scrollToFacet",void 0);oe([W()],K.prototype,"api",void 0);oe([W()],K.prototype,"reactToFocus",void 0);oe([W()],K.prototype,"facetsLoaded",void 0);V("ft-search-bar")(K);})();
|
|
3403
3418
|
/*! Bundled license information:
|
|
3404
3419
|
|
|
3405
3420
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|