@fluid-topics/ft-reader-search-in-document 1.3.28 → 1.3.30
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-reader-search-in-document.light.js +444 -442
- package/build/ft-reader-search-in-document.min.js +395 -393
- package/package.json +14 -14
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var xx=Object.create;var Ls=Object.defineProperty;var vx=Object.getOwnPropertyDescriptor;var Sx=Object.getOwnPropertyNames;var Cx=Object.getPrototypeOf,Ox=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var wx=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)Ls(r,t,{get:e[t],enumerable:!0})},Ex=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sx(e))!Ox.call(r,n)&&n!==t&&Ls(r,n,{get:()=>e[n],enumerable:!(i=vx(e,n))||i.enumerable});return r};var Rx=(r,e,t)=>(t=r!=null?xx(Cx(r)):{},Ex(e||!r||!r.__esModule?Ls(t,"default",{value:r,enumerable:!0}):t,r));var $u=p(()=>{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(k,E){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let _=E.prototype.attributeChangedCallback,G=new Set(E.observedAttributes||[]);b(E,G,_);let J={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:_,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:G};this._definitionsByTag.set(k,J),this._definitionsByClass.set(E,J);let ue=t.call(i,k);ue||(ue=m(k),e.call(i,k,ue)),this===window.customElements&&(s.set(E,J),J.standInClass=ue);let ce=this._awaitingUpgrade.get(k);if(ce){this._awaitingUpgrade.delete(k);for(let x of ce)a.delete(x),C(x,J,!0)}let K=this._whenDefinedPromises.get(k);return K!==void 0&&(K.resolve(E),this._whenDefinedPromises.delete(k)),E}upgrade(){D.push(this),i.upgrade.apply(i,arguments),D.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let E=this._getDefinition(k);if(E!==void 0)return Promise.resolve(E.elementClass);let _=this._whenDefinedPromises.get(k);return _===void 0&&(_={},_.promise=new Promise(G=>_.resolve=G),this._whenDefinedPromises.set(k,_)),_.promise}_upgradeWhenDefined(k,E,_){let G=this._awaitingUpgrade.get(E);G||this._awaitingUpgrade.set(E,G=new Set),_?G.add(k):G.delete(k)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let _=s.get(this.constructor);if(!_)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(r,[],_.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),n.set(E,_),E},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let E=k.getRootNode();if(!f(E)){let _=D[D.length-1];if(_ instanceof CustomElementRegistry)return _;E=_.getRootNode(),f(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let _=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(_,HTMLElement.prototype);let G=g(_)||window.customElements,J=G._getDefinition(k);return J?C(_,J):a.set(_,G),_}connectedCallback(){let _=n.get(this);_?_.connectedCallback&&_.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let _=n.get(this);_?_.disconnectedCallback&&_.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let _=n.get(this);_&&_.formAssociated&&_?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let _=n.get(this);_?.formAssociated&&_?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let _=n.get(this);_?.formAssociated&&_?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let _=n.get(this);_?.formAssociated&&_?.formStateRestoreCallback?.apply(this,arguments)}},b=(k,E,_)=>{if(E.size===0||_===void 0)return;let G=k.prototype.setAttribute;G&&(k.prototype.setAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);G.call(this,x,K),_.call(this,x,R,K)}else G.call(this,x,K)});let J=k.prototype.removeAttribute;J&&(k.prototype.removeAttribute=function(ce){let K=ce.toLowerCase();if(E.has(K)){let x=this.getAttribute(K);J.call(this,K),_.call(this,K,x,null)}else J.call(this,K)});let ue=k.prototype.toggleAttribute;ue&&(k.prototype.toggleAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);ue.call(this,x,K);let j=this.getAttribute(x);_.call(this,x,R,j)}else ue.call(this,x,K)})},O=k=>{let E=Object.getPrototypeOf(k);if(E!==window.HTMLElement)return E===r?Object.setPrototypeOf(k,window.HTMLElement):O(E)},C=(k,E,_=!1)=>{Object.setPrototypeOf(k,E.elementClass.prototype),n.set(k,E),d=k;try{new E.elementClass}catch{O(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(G=>{k.hasAttribute(G)&&E.attributeChangedCallback.call(k,G,null,k.getAttribute(G))}),_&&E.connectedCallback&&k.isConnected&&E.connectedCallback.call(k)},L=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let E=L.apply(this,arguments);return k.customElements&&(E.customElements=k.customElements),E};let D=[document],B=(k,E,_=void 0)=>{let G=(_?Object.getPrototypeOf(_):k.prototype)[E];k.prototype[E]=function(){D.push(this);let J=G.apply(_||this,arguments);return J!==void 0&&l.set(J,this),D.pop(),J}};B(ShadowRoot,"createElement",document),B(ShadowRoot,"importNode",document),B(Element,"insertAdjacentHTML");let z=(k,E)=>{let _=Object.getOwnPropertyDescriptor(k.prototype,E);Object.defineProperty(k.prototype,E,{..._,set(G){D.push(this),_.set.call(this,G),D.pop()}})};if(z(Element,"innerHTML"),z(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,E=HTMLElement.prototype.attachInternals,_=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let K=E.call(this,...ce);return k.set(K,this),K},_.forEach(ce=>{let K=window.ElementInternals.prototype,x=K[ce];K[ce]=function(...R){let j=k.get(this);if(n.get(j).formAssociated===!0)return x?.call(this,...R);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class G extends Array{constructor(K){super(...K),this._elements=K}get value(){return this._elements.find(K=>K.checked===!0)?.value||""}}class J{constructor(K){let x=new Map;K.forEach((R,j)=>{let he=R.getAttribute("name"),we=x.get(he)||[];this[+j]=R,we.push(R),x.set(he,we)}),this.length=K.length,x.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new G(R))})}namedItem(K){return this[K]}}let ue=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=ue.get.call(this,[]),K=[];for(let x of ce){let R=n.get(x);(!R||R.formAssociated===!0)&&K.push(x)}return new J(K)}})}}});var Tu=p(()=>{"use strict";$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 zn,Gi,ks,Pu,Qo,rr,A,Ki,Hn,Wn=p(()=>{zn=globalThis,Gi=zn.ShadowRoot&&(zn.ShadyCSS===void 0||zn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Pu=new WeakMap,Qo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ks)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(Gi&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Pu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pu.set(t,e))}return e}toString(){return this.cssText}},rr=r=>new Qo(typeof r=="string"?r:r+"",void 0,ks),A=(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 Qo(t,r,ks)},Ki=(r,e)=>{if(Gi)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=zn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Hn=Gi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return rr(t)})(r):r});var Ax,Ix,Lx,kx,_x,$x,Vn,Nu,Tx,Px,qi,Xo,Zi,Fu,or,Yi=p(()=>{Wn();Wn();({is:Ax,defineProperty:Ix,getOwnPropertyDescriptor:Lx,getOwnPropertyNames:kx,getOwnPropertySymbols:_x,getPrototypeOf:$x}=Object),Vn=globalThis,Nu=Vn.trustedTypes,Tx=Nu?Nu.emptyScript:"",Px=Vn.reactiveElementPolyfillSupport,qi=(r,e)=>r,Xo={toAttribute(r,e){switch(e){case Boolean:r=r?Tx: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}},Zi=(r,e)=>!Ax(r,e),Fu={attribute:!0,type:String,converter:Xo,reflect:!1,useDefault:!1,hasChanged:Zi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;or=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=Fu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Ix(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=Lx(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fu}static _$Ei(){if(this.hasOwnProperty(qi("elementProperties")))return;let e=$x(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(qi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qi("properties"))){let t=this.properties,i=[...kx(t),..._x(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(Hn(n))}else e!==void 0&&t.push(Hn(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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,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 Ki(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(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:Xo).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:Xo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??Zi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}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){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};or.elementStyles=[],or.shadowRootOptions={mode:"open"},or[qi("elementProperties")]=new Map,or[qi("finalized")]=new Map,Px?.({ReactiveElement:or}),(Vn.reactiveElementVersions??=[]).push("2.1.0")});function ju(r,e){if(!Ns(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bu!==void 0?Bu.createHTML(e):e}function bo(r,e,t=r,i){if(e===it)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=Ji(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=bo(r,n._$AS(r,e.values),n,i)),e}var $s,jn,Bu,Ts,wr,Ps,Nx,yo,Xi,Ji,Ns,Wu,_s,Qi,Du,Mu,mo,Uu,zu,Vu,Fs,S,Bs,Ds,it,T,Hu,go,Gu,en,Gn,Jo,xo,Kn,qn,Zn,Yn,Ms,Fx,Us,Gt=p(()=>{$s=globalThis,jn=$s.trustedTypes,Bu=jn?jn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ts="$lit$",wr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ps="?"+wr,Nx=`<${Ps}>`,yo=document,Xi=()=>yo.createComment(""),Ji=r=>r===null||typeof r!="object"&&typeof r!="function",Ns=Array.isArray,Wu=r=>Ns(r)||typeof r?.[Symbol.iterator]=="function",_s=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Uu=/'/g,zu=/"/g,Vu=/^(?:script|style|textarea|title)$/i,Fs=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Fs(1),Bs=Fs(2),Ds=Fs(3),it=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Hu=new WeakMap,go=yo.createTreeWalker(yo,129);Gu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Qi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,g=s.exec(d),g!==null);)b=s.lastIndex,s===Qi?g[1]==="!--"?s=Du:g[1]!==void 0?s=Mu:g[2]!==void 0?(Vu.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=mo):g[3]!==void 0&&(s=mo):s===mo?g[0]===">"?(s=n??Qi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?mo:g[3]==='"'?zu:Uu):s===zu||s===Uu?s=mo:s===Du||s===Mu?s=Qi:(s=mo,n=void 0);let O=s===mo&&r[l+1].startsWith("/>")?" ":"";a+=s===Qi?d+Nx:m>=0?(i.push(f),d.slice(0,m)+Ts+d.slice(m)+wr+O):d+wr+(m===-2?l:O)}return[ju(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},en=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Gu(e,t);if(this.el=r.createElement(f,i),go.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=go.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ts)){let b=g[s++],O=n.getAttribute(m).split(wr),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:C[2],strings:O,ctor:C[1]==="."?Kn:C[1]==="?"?qn:C[1]==="@"?Zn:xo}),n.removeAttribute(m)}else m.startsWith(wr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Vu.test(n.tagName)){let m=n.textContent.split(wr),b=m.length-1;if(b>0){n.textContent=jn?jn.emptyScript:"";for(let O=0;O<b;O++)n.append(m[O],Xi()),go.nextNode(),d.push({type:2,index:++a});n.append(m[b],Xi())}}}else if(n.nodeType===8)if(n.data===Ps)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(wr,m+1))!==-1;)d.push({type:7,index:a}),m+=wr.length-1}a++}}static createElement(e,t){let i=yo.createElement("template");return i.innerHTML=e,i}};Gn=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??yo).importNode(t,!0);go.currentNode=n;let a=go.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Jo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Yn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=go.nextNode(),s++)}return go.currentNode=yo,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++}},Jo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,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=bo(this,e,t),Ji(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==it&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&Ji(this._$AH)?this._$AA.nextSibling.data=e:this.T(yo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=en.createElement(ju(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Gn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Hu.get(e.strings);return t===void 0&&Hu.set(e.strings,t=new en(e)),t}k(e){Ns(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.O(Xi()),this.O(Xi()),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))}},xo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,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=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=bo(this,e,t,0),s=!Ji(e)||e!==this._$AH&&e!==it,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=bo(this,l[i+d],t,d),f===it&&(f=this._$AH[d]),s||=!Ji(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Kn=class extends xo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},qn=class extends xo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Zn=class extends xo{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=bo(this,e,t,0)??T)===it)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||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)}},Yn=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){bo(this,e)}},Ms={M:Ts,P:wr,A:Ps,C:1,L:Gu,R:Gn,D:Wu,V:bo,I:Jo,H:xo,N:qn,U:Zn,B:Kn,F:Yn},Fx=$s.litHtmlPolyfillSupport;Fx?.(en,Jo),($s.litHtmlVersions??=[]).push("3.3.0");Us=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new Jo(e.insertBefore(Xi(),a),a,void 0,t??{})}return n._$AI(r),n}});var zs,Er,Bx,Dx,Ku=p(()=>{Yi();Yi();Gt();Gt();zs=globalThis,Er=class extends or{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=Us(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return it}};Er._$litElement$=!0,Er.finalized=!0,zs.litElementHydrateSupport?.({LitElement:Er});Bx=zs.litElementPolyfillSupport;Bx?.({LitElement:Er});Dx={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(zs.litElementVersions??=[]).push("4.2.0")});var TS,qu=p(()=>{TS=!1});var Hs={};ne(Hs,{CSSResult:()=>Qo,LitElement:()=>Er,ReactiveElement:()=>or,_$LE:()=>Dx,_$LH:()=>Ms,adoptStyles:()=>Ki,css:()=>A,defaultConverter:()=>Xo,getCompatibleStyle:()=>Hn,html:()=>S,isServer:()=>TS,mathml:()=>Ds,noChange:()=>it,notEqual:()=>Zi,nothing:()=>T,render:()=>Us,supportsAdoptingStyleSheets:()=>Gi,svg:()=>Bs,unsafeCSS:()=>rr});var P=p(()=>{Yi();Gt();Ku();qu()});var Mx,Zu=p(()=>{Mx=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Yu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var Ux,Yu,Ws=p(()=>{Yi();Ux={attribute:!0,type:String,converter:Xo,reflect:!1,hasChanged:Zi},Yu=(r=Ux,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),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),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 N(r){return h({...r,state:!0,attribute:!1})}var Qu=p(()=>{Ws();});function ei(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var Xu=p(()=>{});var Kt,ti=p(()=>{Kt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function H(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(f){this[d]=f}}})();return Kt(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 Kt(t,i,{get(){return a(this)}})}}var Ju=p(()=>{ti();});function Vs(r){return(e,t)=>Kt(e,t,{get(){return(this.renderRoot??(zx??=document.createDocumentFragment())).querySelectorAll(r)}})}var zx,ef=p(()=>{ti();});function Hx(r){return(e,t)=>Kt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var tf=p(()=>{ti();});function js(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Kt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var rf=p(()=>{ti();});function Gs(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Kt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var of=p(()=>{ti();});var Ks={};ne(Ks,{customElement:()=>Mx,eventOptions:()=>ei,property:()=>h,query:()=>H,queryAll:()=>Vs,queryAssignedElements:()=>js,queryAssignedNodes:()=>Gs,queryAsync:()=>Hx,standardProperty:()=>Yu,state:()=>N});var Y=p(()=>{Zu();Ws();Qu();Xu();Ju();ef();tf();rf();of()});var ir,qt,Nt,vo=p(()=>{ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},qt=r=>(...e)=>({_$litDirective$:r,values:e}),Nt=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 Wx,af,nf,ri,Hr,Vx,sf,lf,Qn,qs=p(()=>{Gt();({I:Wx}=Ms),af=r=>r.strings===void 0,nf=()=>document.createComment(""),ri=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(nf(),n),s=i.insertBefore(nf(),n);t=new Wx(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 f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Hr=(r,e,t=r)=>(r._$AI(e,t),r),Vx={},sf=(r,e=Vx)=>r._$AH=e,lf=r=>r._$AH,Qn=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 cf,Ee,df=p(()=>{Gt();vo();qs();cf=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Ee=qt(class extends Nt{constructor(r){if(super(r),r.type!==ir.CHILD)throw Error("repeat() can only be used in text expressions")}dt(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.dt(r,e,t).values}update(r,[e,t,i]){let n=lf(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,b=n.length-1,O=0,C=a.length-1;for(;m<=b&&O<=C;)if(n[m]===null)m++;else if(n[b]===null)b--;else if(l[m]===s[O])d[O]=Hr(n[m],a[O]),m++,O++;else if(l[b]===s[C])d[C]=Hr(n[b],a[C]),b--,C--;else if(l[m]===s[C])d[C]=Hr(n[m],a[C]),ri(r,d[C+1],n[m]),m++,C--;else if(l[b]===s[O])d[O]=Hr(n[b],a[O]),ri(r,n[m],n[b]),b--,O++;else if(f===void 0&&(f=cf(s,O,C),g=cf(l,m,b)),f.has(l[m]))if(f.has(l[b])){let L=g.get(s[O]),D=L!==void 0?n[L]:null;if(D===null){let B=ri(r,n[m]);Hr(B,a[O]),d[O]=B}else d[O]=Hr(D,a[O]),ri(r,n[m],D),n[L]=null;O++}else Qn(n[b]),b--;else Qn(n[m]),m++;for(;O<=C;){let L=ri(r,d[C+1]);Hr(L,a[O]),d[O++]=L}for(;m<=b;){let L=n[m++];L!==null&&Qn(L)}return this.ut=s,sf(r,d),it}})});var Zs={};ne(Zs,{repeat:()=>Ee});var Zt=p(()=>{df()});var be,pf=p(()=>{Gt();vo();be=qt(class extends Nt{constructor(r){if(super(r),r.type!==ir.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.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return it}})});var Ys={};ne(Ys,{classMap:()=>be});var pt=p(()=>{pf()});var uf,jx,Gx,ff=p(()=>{Gt();vo();uf="important",jx=" !"+uf,Gx=qt(class extends Nt{constructor(r){if(super(r),r.type!==ir.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.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(jx);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?uf:""):t[i]=n}}return it}})});var Qs={};ne(Qs,{styleMap:()=>Gx});var hf=p(()=>{ff()});var oi,So,mf=p(()=>{Gt();vo();oi=class extends Nt{constructor(e){if(super(e),this.it=T,e.type!==ir.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===it)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};oi.directiveName="unsafeHTML",oi.resultType=1;So=qt(oi)});var Xs={};ne(Xs,{UnsafeHTMLDirective:()=>oi,unsafeHTML:()=>So});var tn=p(()=>{mf()});var Js={};ne(Js,{CancelablePromise:()=>Xn,CanceledPromiseError:()=>nr,cancelable:()=>ii});var nr,Xn,ii,Jn=p(()=>{"use strict";nr=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Xn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new nr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new nr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ii=r=>new Xn((e,t)=>r.then(e).catch(t))});var rl={};ne(rl,{applyMixinOnce:()=>Ne,dateReviver:()=>Kx,deepCopy:()=>on,deepEqual:()=>Ge,delay:()=>ea,eventPathContainsMatchingElement:()=>Zx,flatDeep:()=>wt,getComposedPathTo:()=>el,hasChanged:()=>Co,last:()=>Yx,minmax:()=>Oo,parseDate:()=>gf,randomId:()=>tl,unslotText:()=>ni,waitFor:()=>Wr,waitUntil:()=>rn});async function rn(r,e=10,t=2e4){await Wr(async()=>await r()||void 0,e,t)}async function Wr(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await ea(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function wt(r,e){return r.flatMap(t=>[t,...wt(e(t),e)])}function Kx(...r){return(e,t)=>r.includes(e)?gf(t):t}function gf(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 qx(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ge(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(!Ge(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(!Ge(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ge(r,e){try{return qx(r,e)}catch{return!1}}function Co(r,e){return!Ge(r,e)}function Zx(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 Oo(r,e,t){return Math.min(Math.max(r,e),t)}function Yx(r){return r[r.length-1]}function ni(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ni(e)).join(""):r?.textContent||""}function el(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}function on(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function tl(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ne(r,e){let t=i=>i[r]===!0;return i=>{if(t(i))return i;let n=e(i);return n[r]=!0,n}}var ea,yt=p(()=>{"use strict";ea=r=>new Promise(e=>setTimeout(e,r))});var nl={};ne(nl,{FtNotificationEvent:()=>nn,PostResizeEvent:()=>il,PreResizeEvent:()=>ol,WithEventBus:()=>Rr,withEventBus:()=>ta});var nn,ol,il,ta,Rr,ai=p(()=>{"use strict";yt();nn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ol=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},il=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ta=Ne(Symbol("withEventBus"),function(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)}}}),Rr=class extends ta(Object){}});var al={};ne(al,{CacheRegistry:()=>ar,ClearCacheEvent:()=>an});var an,ar,sl=p(()=>{"use strict";Jn();ai();an=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},ar=class extends Rr{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new an(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new an([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=ii(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var dl={};ne(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,pl=p(()=>{"use strict";cl=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(ll(l)),s.push(ll(l,t))}),{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}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,b,O)=>O.findIndex(C=>C.value===m.value)===b).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,b)=>this.compareMetadata(m.metadata.value,b.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 f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.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 f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===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 ul={};ne(ul,{Debouncer:()=>me});var me,ra=p(()=>{"use strict";me=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 fl={};ne(fl,{customElement:()=>M,dateProperty:()=>Xx,isNumber:()=>yf,jsonProperty:()=>Re,numberProperty:()=>oa,optionalNumberProperty:()=>Qx});function Re(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Co,...e??{}})}function Qx(r){return oa(r)}function oa(r){return h({type:Object,converter:{fromAttribute:e=>{if(e!=null)return yf(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function yf(r){return!isNaN(parseFloat(r))}function Xx(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var M,ia=p(()=>{"use strict";Y();yt();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Vr(`${r.name}: ${e}`)}var Vr,o,se=p(()=>{P();Vr=r=>typeof r=="string"?rr(r):r,o=class{static create(e,t,i,n){let a=l=>Vr(l??n),s=A`var(${Vr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Vr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=A`var(${Vr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Vr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=A`var(${Vr(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.set=a=>e.set(a),n.get=a=>A`var(${Vr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,hl,ml,gl,yl,bl,xl,vl,Sl,wo,bf,Cl,Ol,wl,El,Rl,Al,Il,Ll,kl,_l,jr,$l,Tl,Pl,Nl,Fl,sn,Jx,le=p(()=>{se();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},hl={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},wo={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},bf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Cl={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ol={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},wl={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},El={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Rl={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Al={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Il={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Ll={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},kl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},_l={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},jr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},$l={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Tl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Pl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Fl={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},sn={display:hl,"title-1":ml,"title-2":gl,"title-3":yl,"body-1-regular":bl,"body-1-medium":xl,"body-1-semibold":vl,"body-2-regular":Sl,"body-2-medium":wo,"body-2-medium-underline":bf,"body-2-semibold":Cl,"label-1-medium":Ol,"label-1-semibold":wl,"label-1-bold":El,"label-2-medium":Rl,"label-2-semibold":Al,"label-2-bold":Il,"caption-1-medium":Ll,"caption-1-semibold":kl,"caption-1-bold":_l,"caption-2-medium":jr,"caption-2-semibold":$l,"caption-2-bold":Tl,"caption-3-medium":Pl,"caption-3-semibold":Nl,"caption-3-bold":Fl},Jx=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{se();le();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
-
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 v,xf=p(()=>{se();le();ge();v={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var ev,vf=p(()=>{se();le();ge();ev={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ft-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ft-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ft-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ft-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ft-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ft-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ft-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ft-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)}});var tv,Sf=p(()=>{se();le();ge();tv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var pe,Cf=p(()=>{se();le();ge();pe={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var rv,Of=p(()=>{se();le();ge();rv={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var ov,wf=p(()=>{se();le();ge();ov={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Z,Ef=p(()=>{se();le();ge();Z={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var iv,Rf=p(()=>{se();le();ge();iv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var nv,Af=p(()=>{se();le();ge();nv={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var av,If=p(()=>{se();le();ge();av={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var sv,Lf=p(()=>{se();le();ge();sv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var lv,kf=p(()=>{se();le();ge();lv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var cv,_f=p(()=>{se();le();ge();cv={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var dv,$f=p(()=>{se();le();dv={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var pv,Tf=p(()=>{se();le();ge();pv={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var uv,Pf=p(()=>{se();le();ge();uv={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var fv,Nf=p(()=>{se();le();ge();fv={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var hv,Ff=p(()=>{se();le();ge();hv={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var mv,Bf=p(()=>{se();le();ge();mv={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var gv,Df=p(()=>{se();le();ge();gv={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var yv,Mf=p(()=>{se();le();ge();yv={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var bv,Uf=p(()=>{se();le();ge();bv={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var xv,zf=p(()=>{se();le();ge();xv={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),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"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var vv,Hf=p(()=>{se();le();ge();vv={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var Sv,Wf=p(()=>{se();le();ge();Sv={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var Cv,Vf=p(()=>{se();le();Cv={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 Ov,jf=p(()=>{se();le();Ov={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 wv,Gf=p(()=>{se();le();ge();wv={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var Ev,Kf=p(()=>{se();le();ge();Ev={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var Rv,qf=p(()=>{se();le();ge();Rv={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var Av,Zf=p(()=>{se();le();ge();Av={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var Iv,Yf=p(()=>{se();le();ge();Iv={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var Lv,Qf=p(()=>{se();le();Lv={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Xf=p(()=>{le();ge();xf();vf();Sf();Cf();Of();wf();Ef();Rf();Af();If();Lf();kf();_f();$f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf();zf();Hf();Wf();Vf();jf();Gf();Kf();qf();Zf();Yf();Qf()});function Bl(r){return`ftds--family-${r}`}function Dl(r){return`ftds--size-${r}`}var Et,Ke,Jf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Et||(Et={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(Ke||(Ke={}))});var ee=p(()=>{se();Xf();Jf()});var Ml={};ne(Ml,{DesignSystemFamily:()=>Et,DesignSystemSize:()=>Ke,FtCssVariableFactory:()=>o,badge:()=>av,banner:()=>nv,button:()=>v,chart:()=>Cv,checkbox:()=>tv,chip:()=>Z,chipChoice:()=>ov,collapsible:()=>vv,comboboxMultiSelect:()=>bv,comboboxSingleSelect:()=>yv,dateRangePicker:()=>Lv,drawer:()=>uv,floatingMenu:()=>gv,foundation:()=>c,link:()=>iv,modal:()=>pv,notice:()=>wv,notification:()=>Rv,pageDesigner:()=>Ov,pageFooter:()=>cv,pageHeader:()=>lv,pageLayout:()=>dv,popover:()=>xv,radio:()=>pe,reorderableList:()=>Iv,resolveFamilyClass:()=>Bl,resolveSizeClass:()=>Dl,semantic:()=>u,setVariable:()=>y,switch_:()=>Sv,table:()=>rv,tabs:()=>fv,textArea:()=>mv,textInput:()=>hv,titleBreadcrumb:()=>sv,toggle:()=>Ev,tooltip:()=>Av,treeList:()=>ev,typographies:()=>sn,typographyBody1Medium:()=>xl,typographyBody1Regular:()=>bl,typographyBody1Semibold:()=>vl,typographyBody2Medium:()=>wo,typographyBody2MediumUnderline:()=>bf,typographyBody2Regular:()=>Sl,typographyBody2Semibold:()=>Cl,typographyCaption1Bold:()=>_l,typographyCaption1Medium:()=>Ll,typographyCaption1Semibold:()=>kl,typographyCaption2Bold:()=>Tl,typographyCaption2Medium:()=>jr,typographyCaption2Semibold:()=>$l,typographyCaption3Bold:()=>Fl,typographyCaption3Medium:()=>Pl,typographyCaption3Semibold:()=>Nl,typographyDisplay:()=>hl,typographyLabel1Bold:()=>El,typographyLabel1Medium:()=>Ol,typographyLabel1Semibold:()=>wl,typographyLabel2Bold:()=>Il,typographyLabel2Medium:()=>Rl,typographyLabel2Semibold:()=>Al,typographyTitle1:()=>ml,typographyTitle2:()=>gl,typographyTitle3:()=>yl,typographyVariants:()=>Jx});var na=p(()=>{"use strict";ee()});var Ul={};ne(Ul,{designSystemVariables:()=>w});var w,zl=p(()=>{"use strict";na();w={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 Hl={};ne(Hl,{DynamicImporter:()=>aa,dynamicImporter:()=>kv});var aa,kv,Wl=p(()=>{"use strict";aa=class{async import(e){return import(e)}},kv=new aa});function Gl(r,e,t){return Gr(r,sa(e,t))}function si(r,e){return typeof r=="function"?r(e):r}function Kr(r){return r.split("-")[0]}function sr(r){return r.split("-")[1]}function Kl(r){return r==="x"?"y":"x"}function ql(r){return r==="y"?"height":"width"}function li(r){return["top","bottom"].includes(Kr(r))?"y":"x"}function Zl(r){return Kl(li(r))}function rh(r,e,t){t===void 0&&(t=!1);let i=sr(r),n=Zl(r),a=ql(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Vl(s)),[s,Vl(s)]}function oh(r){return r.replace(/start|end/g,e=>$v[e])}function Vl(r){return r.replace(/left|right|bottom|top/g,e=>_v[e])}function Tv(r){return{top:0,right:0,bottom:0,left:0,...r}}function ih(r){return typeof r!="number"?Tv(r):{top:r,right:r,bottom:r,left:r}}function Eo(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var th,eh,jl,sa,Gr,_v,$v,Yl=p(()=>{th=["top","right","bottom","left"],eh=["start","end"],jl=th.reduce((r,e)=>r.concat(e,e+"-"+eh[0],e+"-"+eh[1]),[]),sa=Math.min,Gr=Math.max,_v={left:"right",right:"left",bottom:"top",top:"bottom"},$v={start:"end",end:"start"}});function nh(r,e,t){let{reference:i,floating:n}=r,a=li(e),s=Zl(e),l=ql(s),d=Kr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,O;switch(d){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y:m};break;case"left":O={x:i.x-n.width,y:m};break;default:O={x:i.x,y:i.y}}switch(sr(e)){case"start":O[s]-=b*(t&&f?-1:1);break;case"end":O[s]+=b*(t&&f?-1:1);break}return O}async function la(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:O=0}=si(e,r),C=ih(O),D=l[b?m==="floating"?"reference":"floating":m],B=Eo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(D)))==null||t?D:D.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),z=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},_=Eo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:k,strategy:d}):z);return{top:(B.top-_.top+C.top)/E.y,bottom:(_.bottom-B.bottom+C.bottom)/E.y,left:(B.left-_.left+C.left)/E.x,right:(_.right-B.right+C.right)/E.x}}function Pv(r,e,t){return(r?[...t.filter(n=>sr(n)===r),...t.filter(n=>sr(n)!==r)]:t.filter(n=>Kr(n)===n)).filter(n=>r?sr(n)===r||(e?oh(n)!==n:!1):!0)}async function Nv(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Kr(t),l=sr(t),d=li(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=si(e,r),{mainAxis:b,crossAxis:O,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof C=="number"&&(O=l==="end"?C*-1:C),d?{x:O*g,y:b*f}:{x:b*f,y:O*g}}var ah,ca,Ql,Xl,Jl,ec=p(()=>{Yl();Yl();ah=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)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=nh(f,i,d),b=i,O={},C=0;for(let L=0;L<l.length;L++){let{name:D,fn:B}=l[L],{x:z,y:k,data:E,reset:_}=await B({x:g,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:f,platform:s,elements:{reference:r,floating:e}});g=z??g,m=k??m,O={...O,[D]:{...O[D],...E}},_&&C<=50&&(C++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(f=_.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):_.rects),{x:g,y:m}=nh(f,b,d)),L=-1)}return{x:g,y:m,placement:b,strategy:n,middlewareData:O}};ca=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:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:b=jl,autoAlignment:O=!0,...C}=si(r,e),L=m!==void 0||b===jl?Pv(m||null,O,b):b,D=await la(e,C),B=((t=s.autoPlacement)==null?void 0:t.index)||0,z=L[B];if(z==null)return{};let k=rh(z,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==z)return{reset:{placement:L[0]}};let E=[D[Kr(z)],D[k[0]],D[k[1]]],_=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:z,overflows:E}],G=L[B+1];if(G)return{data:{index:B+1,overflows:_},reset:{placement:G}};let J=_.map(K=>{let x=sr(K.placement);return[K.placement,x&&g?K.overflows.slice(0,2).reduce((R,j)=>R+j,0):K.overflows[0],K.overflows]}).sort((K,x)=>K[1]-x[1]),ce=((n=J.filter(K=>K[2].slice(0,sr(K[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||J[0][0];return ce!==l?{data:{index:B+1,overflows:_},reset:{placement:ce}}:{}}}};Ql=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 Nv(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}}}}},Xl=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:D=>{let{x:B,y:z}=D;return{x:B,y:z}}},...d}=si(r,e),f={x:t,y:i},g=await la(e,d),m=li(Kr(n)),b=Kl(m),O=f[b],C=f[m];if(a){let D=b==="y"?"top":"left",B=b==="y"?"bottom":"right",z=O+g[D],k=O-g[B];O=Gl(z,O,k)}if(s){let D=m==="y"?"top":"left",B=m==="y"?"bottom":"right",z=C+g[D],k=C-g[B];C=Gl(z,C,k)}let L=l.fn({...e,[b]:O,[m]:C});return{...L,data:{x:L.x-t,y:L.y-i,enabled:{[b]:a,[m]:s}}}}}},Jl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=si(r,e),g=await la(e,f),m=Kr(n),b=sr(n),O=li(n)==="y",{width:C,height:L}=a.floating,D,B;m==="top"||m==="bottom"?(D=m,B=b===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(B=m,D=b==="end"?"top":"bottom");let z=L-g.top-g.bottom,k=C-g.left-g.right,E=sa(L-g[D],z),_=sa(C-g[B],k),G=!e.middlewareData.shift,J=E,ue=_;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(ue=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=z),G&&!b){let K=Gr(g.left,0),x=Gr(g.right,0),R=Gr(g.top,0),j=Gr(g.bottom,0);O?ue=C-2*(K!==0||x!==0?K+x:Gr(g.left,g.right)):J=L-2*(R!==0||j!==0?R+j:Gr(g.top,g.bottom))}await d({...e,availableWidth:ue,availableHeight:J});let ce=await s.getDimensions(l.floating);return C!==ce.width||L!==ce.height?{reset:{rects:!0}}:{}}}}});var tc,ci,ln,Ar,sh=p(()=>{tc=Math.min,ci=Math.max,ln=Math.round,Ar=r=>({x:r,y:r})});function Ir(r){return ch(r)?(r.nodeName||"").toLowerCase():"#document"}function bt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Lr(r){var e;return(e=(ch(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ch(r){return r instanceof Node||r instanceof bt(r).Node}function lr(r){return r instanceof Element||r instanceof bt(r).Element}function Yt(r){return r instanceof HTMLElement||r instanceof bt(r).HTMLElement}function lh(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof bt(r).ShadowRoot}function di(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=Rt(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function dh(r){return["table","td","th"].includes(Ir(r))}function pa(r){let e=ua(),t=Rt(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 ph(r){let e=Ro(r);for(;Yt(e)&&!cn(e);){if(pa(e))return e;e=Ro(e)}return null}function ua(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function cn(r){return["html","body","#document"].includes(Ir(r))}function Rt(r){return bt(r).getComputedStyle(r)}function dn(r){return lr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Ro(r){if(Ir(r)==="html")return r;let e=r.assignedSlot||r.parentNode||lh(r)&&r.host||Lr(r);return lh(e)?e.host:e}function uh(r){let e=Ro(r);return cn(e)?r.ownerDocument?r.ownerDocument.body:r.body:Yt(e)&&di(e)?e:uh(e)}function da(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=uh(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=bt(n);return a?e.concat(s,s.visualViewport||[],di(n)?n:[],s.frameElement&&t?da(s.frameElement):[]):e.concat(n,da(n,[],t))}var fh=p(()=>{});function gh(r){let e=Rt(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Yt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=ln(t)!==a||ln(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function yh(r){return lr(r)?r:r.contextElement}function pi(r){let e=yh(r);if(!Yt(e))return Ar(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=gh(e),s=(a?ln(t.width):t.width)/i,l=(a?ln(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function bh(r){let e=bt(r);return!ua()||!e.visualViewport?Fv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Bv(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==bt(r)?!1:e}function pn(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=yh(r),s=Ar(1);e&&(i?lr(i)&&(s=pi(i)):s=pi(r));let l=Bv(a,t,i)?bh(a):Ar(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let b=bt(a),O=i&&lr(i)?bt(i):i,C=b.frameElement;for(;C&&i&&O!==b;){let L=pi(C),D=C.getBoundingClientRect(),B=Rt(C),z=D.left+(C.clientLeft+parseFloat(B.paddingLeft))*L.x,k=D.top+(C.clientTop+parseFloat(B.paddingTop))*L.y;d*=L.x,f*=L.y,g*=L.x,m*=L.y,d+=z,f+=k,C=bt(C).frameElement}}return Eo({width:g,height:m,x:d,y:f})}function Dv(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Yt(t),a=Lr(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Ar(1),d=Ar(0);if((n||!n&&i!=="fixed")&&((Ir(t)!=="body"||di(a))&&(s=dn(t)),Yt(t))){let f=pn(t);l=pi(t),d.x=f.x+t.clientLeft,d.y=f.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 Mv(r){return Array.from(r.getClientRects())}function xh(r){return pn(Lr(r)).left+dn(r).scrollLeft}function Uv(r){let e=Lr(r),t=dn(r),i=r.ownerDocument.body,n=ci(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=ci(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+xh(r),l=-t.scrollTop;return Rt(i).direction==="rtl"&&(s+=ci(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function zv(r,e){let t=bt(r),i=Lr(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ua();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Hv(r,e){let t=pn(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Yt(r)?pi(r):Ar(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function hh(r,e,t){let i;if(e==="viewport")i=zv(r,t);else if(e==="document")i=Uv(Lr(r));else if(lr(e))i=Hv(e,t);else{let n=bh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return Eo(i)}function vh(r,e){let t=Ro(r);return t===e||!lr(t)||cn(t)?!1:Rt(t).position==="fixed"||vh(t,e)}function Wv(r,e){let t=e.get(r);if(t)return t;let i=da(r,[],!1).filter(l=>lr(l)&&Ir(l)!=="body"),n=null,a=Rt(r).position==="fixed",s=a?Ro(r):r;for(;lr(s)&&!cn(s);){let l=Rt(s),d=pa(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||di(s)&&!d&&vh(r,s))?i=i.filter(g=>g!==s):n=l,s=Ro(s)}return e.set(r,i),i}function Vv(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Wv(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=hh(e,g,n);return f.top=ci(m.top,f.top),f.right=tc(m.right,f.right),f.bottom=tc(m.bottom,f.bottom),f.left=ci(m.left,f.left),f},hh(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function jv(r){return gh(r)}function Gv(r,e,t){let i=Yt(e),n=Lr(e),a=t==="fixed",s=pn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Ar(0);if(i||!i&&!a)if((Ir(e)!=="body"||di(n))&&(l=dn(e)),i){let f=pn(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=xh(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function mh(r,e){return!Yt(r)||Rt(r).position==="fixed"?null:e?e(r):r.offsetParent}function Sh(r,e){let t=bt(r);if(!Yt(r))return t;let i=mh(r,e);for(;i&&dh(i)&&Rt(i).position==="static";)i=mh(i,e);return i&&(Ir(i)==="html"||Ir(i)==="body"&&Rt(i).position==="static"&&!pa(i))?t:i||ph(r)||t}function qv(r){return Rt(r).direction==="rtl"}var Fv,Kv,ui,rc,Ch=p(()=>{ec();ec();sh();fh();Fv=Ar(0);Kv=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||Sh,a=this.getDimensions;return{reference:Gv(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};ui={convertOffsetParentRelativeRectToViewportRelativeRect:Dv,getDocumentElement:Lr,getClippingRect:Vv,getOffsetParent:Sh,getElementRects:Kv,getClientRects:Mv,getDimensions:jv,getScale:pi,isElement:lr,isRTL:qv},rc=(r,e,t)=>{let i=new Map,n={platform:ui,...t},a={...n.platform,_c:i};return ah(r,e,{...n,platform:a})}});function ic(r){return Zv(r)}function oc(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Zv(r){for(let e=r;e;e=oc(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oc(r);e;e=oc(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}var Oh=p(()=>{});var sc={};ne(sc,{computeOffsetAutoPosition:()=>ac,computeOffsetPosition:()=>nc});async function nc(r,e,t){return rc(r,e,{platform:{...ui,getOffsetParent:i=>ui.getOffsetParent(i,ic)},middleware:[Xl({crossAxis:!0}),ca({allowedPlacements:[t]})]})}async function ac(r,e,t,i,n,a,s=4){return rc(r,e,{placement:t,strategy:n,platform:{...ui,getOffsetParent:l=>ui.getOffsetParent(l,ic)},middleware:[Ql(s),ca({allowedPlacements:i}),Jl({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var fa=p(()=>{"use strict";Ch();Oh()});var lc={};ne(lc,{ScopedRegistryLitElement:()=>un});var un,ha=p(()=>{"use strict";P();Wn();un=class extends Er{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 Ki(i,e.elementStyles),i}}});var dc={};ne(dc,{shadowQuerySelector:()=>cc,shadowQuerySelectorAll:()=>Yv});function cc(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 Yv(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 ma=p(()=>{"use strict"});var pc={};ne(pc,{FtLitElement:()=>W});var fn,Ah,wh,Eh,Ih,Rh,W,hn=p(()=>{"use strict";Y();ia();ra();ha();ma();fn=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},wh=Symbol("constructorPrototype"),Eh=Symbol("constructorName"),Ih=Symbol("exportpartsDebouncer"),Rh=Symbol("dynamicDependenciesLoaded"),W=class extends un{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ah]=new me(5),this[Eh]=this.constructor.name,this[wh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eh]&&Object.setPrototypeOf(this,this[wh])}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[Rh]||(e[Rh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=cc(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}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[Ih].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=b=>b!=null&&b.trim().length>0,f=e.filter(d).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let b of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...C).filter(d).map(L=>L.trim()).forEach(L=>g.add(L))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(b=>f.map(O=>`${b}:${O}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ah=Ih;fn([h()],W.prototype,"exportpartsPrefix",void 0);fn([Re([])],W.prototype,"exportpartsPrefixes",void 0);fn([h()],W.prototype,"customStylesheet",void 0);fn([h()],W.prototype,"elementToFocus",void 0);fn([N()],W.prototype,"useAdoptedStyleSheets",void 0)});var uc={};ne(uc,{FtdsBase:()=>mn,toFtdsBase:()=>cr});var Lh,cr,mn,fc=p(()=>{"use strict";hn();Y();ee();yt();Lh=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},cr=Ne(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Ke.medium,this.family=Et.neutral}getDesignSystemBaseClasses(){return{[Bl(this.family)]:!0,[Dl(this.size)]:!0}}}return Lh([h()],e.prototype,"size",void 0),Lh([h()],e.prototype,"family",void 0),e}),mn=class extends cr(W){}});var kh={};var hc=p(()=>{"use strict"});var Ao,_h=p(()=>{Ao=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(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),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=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,b=>this.checkIframeFilter(f,g,b,l),b=>{this.createInstanceOnIframe(b).forEachNode(e,O=>d.push(O),n)}),d.push(f);d.forEach(b=>{i(b)}),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 gn,$h=p(()=>{_h();gn=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 Ao(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 Ao.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 f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),b=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+b,e.nodes.forEach((O,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=g),e.nodes[C].end-=g)}),i-=g,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 f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[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 f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,b)=>{e.lastIndex=b,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,b=>t(b,l,a.value.substring(f,g),d),b=>{i(b,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=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(b,O)=>this.opt.filter(O,f,i,m),b=>{m++,i++,this.opt.each(b)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+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=Ao.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function mc(r){let e=new gn(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 Th=p(()=>{$h()});var yc={};ne(yc,{highlightHtml:()=>gc,highlightHtmlColorCssVariable:()=>Ph,highlightHtmlStyles:()=>Xv});function gc(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Qv(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Qv,Ph,Xv,bc=p(()=>{"use strict";P();ee();Th();Qv=mc,Ph=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Xv=A`
|
|
1
|
+
"use strict";(()=>{var vx=Object.create;var Is=Object.defineProperty;var Sx=Object.getOwnPropertyDescriptor;var Cx=Object.getOwnPropertyNames;var Ox=Object.getPrototypeOf,wx=Object.prototype.hasOwnProperty;var p=(r,e)=>()=>(r&&(e=r(r=0)),e);var Ex=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)Is(r,t,{get:e[t],enumerable:!0})},Rx=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cx(e))!wx.call(r,n)&&n!==t&&Is(r,n,{get:()=>e[n],enumerable:!(i=Sx(e,n))||i.enumerable});return r};var Ax=(r,e,t)=>(t=r!=null?vx(Ox(r)):{},Rx(e||!r||!r.__esModule?Is(t,"default",{value:r,enumerable:!0}):t,r));var $u=p(()=>{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(k,E){if(k=k.toLowerCase(),this._getDefinition(k)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${k}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let _=E.prototype.attributeChangedCallback,G=new Set(E.observedAttributes||[]);b(E,G,_);let J={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:_,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:G};this._definitionsByTag.set(k,J),this._definitionsByClass.set(E,J);let he=t.call(i,k);he||(he=m(k),e.call(i,k,he)),this===window.customElements&&(s.set(E,J),J.standInClass=he);let ce=this._awaitingUpgrade.get(k);if(ce){this._awaitingUpgrade.delete(k);for(let x of ce)a.delete(x),C(x,J,!0)}let K=this._whenDefinedPromises.get(k);return K!==void 0&&(K.resolve(E),this._whenDefinedPromises.delete(k)),E}upgrade(){D.push(this),i.upgrade.apply(i,arguments),D.pop()}get(k){return this._definitionsByTag.get(k)?.elementClass}_getDefinition(k){return this._definitionsByTag.get(k)}whenDefined(k){let E=this._getDefinition(k);if(E!==void 0)return Promise.resolve(E.elementClass);let _=this._whenDefinedPromises.get(k);return _===void 0&&(_={},_.promise=new Promise(G=>_.resolve=G),this._whenDefinedPromises.set(k,_)),_.promise}_upgradeWhenDefined(k,E,_){let G=this._awaitingUpgrade.get(E);G||this._awaitingUpgrade.set(E,G=new Set),_?G.add(k):G.delete(k)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let _=s.get(this.constructor);if(!_)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(r,[],_.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),n.set(E,_),E},window.HTMLElement.prototype=r.prototype;let f=k=>k===document||k instanceof ShadowRoot,g=k=>{let E=k.getRootNode();if(!f(E)){let _=D[D.length-1];if(_ instanceof CustomElementRegistry)return _;E=_.getRootNode(),f(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},m=k=>class{static get formAssociated(){return!0}constructor(){let _=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(_,HTMLElement.prototype);let G=g(_)||window.customElements,J=G._getDefinition(k);return J?C(_,J):a.set(_,G),_}connectedCallback(){let _=n.get(this);_?_.connectedCallback&&_.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!0)}disconnectedCallback(){let _=n.get(this);_?_.disconnectedCallback&&_.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,k,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let _=n.get(this);_&&_.formAssociated&&_?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let _=n.get(this);_?.formAssociated&&_?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let _=n.get(this);_?.formAssociated&&_?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let _=n.get(this);_?.formAssociated&&_?.formStateRestoreCallback?.apply(this,arguments)}},b=(k,E,_)=>{if(E.size===0||_===void 0)return;let G=k.prototype.setAttribute;G&&(k.prototype.setAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);G.call(this,x,K),_.call(this,x,R,K)}else G.call(this,x,K)});let J=k.prototype.removeAttribute;J&&(k.prototype.removeAttribute=function(ce){let K=ce.toLowerCase();if(E.has(K)){let x=this.getAttribute(K);J.call(this,K),_.call(this,K,x,null)}else J.call(this,K)});let he=k.prototype.toggleAttribute;he&&(k.prototype.toggleAttribute=function(ce,K){let x=ce.toLowerCase();if(E.has(x)){let R=this.getAttribute(x);he.call(this,x,K);let j=this.getAttribute(x);_.call(this,x,R,j)}else he.call(this,x,K)})},O=k=>{let E=Object.getPrototypeOf(k);if(E!==window.HTMLElement)return E===r?Object.setPrototypeOf(k,window.HTMLElement):O(E)},C=(k,E,_=!1)=>{Object.setPrototypeOf(k,E.elementClass.prototype),n.set(k,E),d=k;try{new E.elementClass}catch{O(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(G=>{k.hasAttribute(G)&&E.attributeChangedCallback.call(k,G,null,k.getAttribute(G))}),_&&E.connectedCallback&&k.isConnected&&E.connectedCallback.call(k)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(k){let E=I.apply(this,arguments);return k.customElements&&(E.customElements=k.customElements),E};let D=[document],B=(k,E,_=void 0)=>{let G=(_?Object.getPrototypeOf(_):k.prototype)[E];k.prototype[E]=function(){D.push(this);let J=G.apply(_||this,arguments);return J!==void 0&&l.set(J,this),D.pop(),J}};B(ShadowRoot,"createElement",document),B(ShadowRoot,"importNode",document),B(Element,"insertAdjacentHTML");let z=(k,E)=>{let _=Object.getOwnPropertyDescriptor(k.prototype,E);Object.defineProperty(k.prototype,E,{..._,set(G){D.push(this),_.set.call(this,G),D.pop()}})};if(z(Element,"innerHTML"),z(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let k=new WeakMap,E=HTMLElement.prototype.attachInternals,_=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ce){let K=E.call(this,...ce);return k.set(K,this),K},_.forEach(ce=>{let K=window.ElementInternals.prototype,x=K[ce];K[ce]=function(...R){let j=k.get(this);if(n.get(j).formAssociated===!0)return x?.call(this,...R);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class G extends Array{constructor(K){super(...K),this._elements=K}get value(){return this._elements.find(K=>K.checked===!0)?.value||""}}class J{constructor(K){let x=new Map;K.forEach((R,j)=>{let me=R.getAttribute("name"),we=x.get(me)||[];this[+j]=R,we.push(R),x.set(me,we)}),this.length=K.length,x.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new G(R))})}namedItem(K){return this[K]}}let he=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ce=he.get.call(this,[]),K=[];for(let x of ce){let R=n.get(x);(!R||R.formAssociated===!0)&&K.push(x)}return new J(K)}})}}});var Tu=p(()=>{"use strict";$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 Hn,Ki,ks,Pu,Xo,ir,A,qi,Wn,Vn=p(()=>{Hn=globalThis,Ki=Hn.ShadowRoot&&(Hn.ShadyCSS===void 0||Hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),Pu=new WeakMap,Xo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ks)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(Ki&&e===void 0){let i=t!==void 0&&t.length===1;i&&(e=Pu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pu.set(t,e))}return e}toString(){return this.cssText}},ir=r=>new Xo(typeof r=="string"?r:r+"",void 0,ks),A=(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 Xo(t,r,ks)},qi=(r,e)=>{if(Ki)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let i=document.createElement("style"),n=Hn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,r.appendChild(i)}},Wn=Ki?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return ir(t)})(r):r});var Lx,Ix,kx,_x,$x,Tx,jn,Nu,Px,Nx,Zi,Jo,Yi,Fu,nr,Qi=p(()=>{Vn();Vn();({is:Lx,defineProperty:Ix,getOwnPropertyDescriptor:kx,getOwnPropertyNames:_x,getOwnPropertySymbols:$x,getPrototypeOf:Tx}=Object),jn=globalThis,Nu=jn.trustedTypes,Px=Nu?Nu.emptyScript:"",Nx=jn.reactiveElementPolyfillSupport,Zi=(r,e)=>r,Jo={toAttribute(r,e){switch(e){case Boolean:r=r?Px: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}},Yi=(r,e)=>!Lx(r,e),Fu={attribute:!0,type:String,converter:Jo,reflect:!1,useDefault:!1,hasChanged:Yi};Symbol.metadata??=Symbol("metadata"),jn.litPropertyMetadata??=new WeakMap;nr=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=Fu){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,t);n!==void 0&&Ix(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){let{get:n,set:a}=kx(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fu}static _$Ei(){if(this.hasOwnProperty(Zi("elementProperties")))return;let e=Tx(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zi("properties"))){let t=this.properties,i=[..._x(t),...$x(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(Wn(n))}else e!==void 0&&t.push(Wn(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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,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 qi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(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:Jo).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:Jo;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??Yi)(a,t)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}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){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(t)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};nr.elementStyles=[],nr.shadowRootOptions={mode:"open"},nr[Zi("elementProperties")]=new Map,nr[Zi("finalized")]=new Map,Nx?.({ReactiveElement:nr}),(jn.reactiveElementVersions??=[]).push("2.1.0")});function ju(r,e){if(!Ns(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bu!==void 0?Bu.createHTML(e):e}function So(r,e,t=r,i){if(e===nt)return e;let n=i!==void 0?t._$Co?.[i]:t._$Cl,a=en(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=So(r,n._$AS(r,e.values),n,i)),e}var $s,Gn,Bu,Ts,Er,Ps,Fx,vo,Ji,en,Ns,Wu,_s,Xi,Du,Mu,bo,Uu,zu,Vu,Fs,S,Bs,Ds,nt,T,Hu,xo,Gu,tn,Kn,ei,Co,qn,Zn,Yn,Qn,Ms,Bx,Us,Kt=p(()=>{$s=globalThis,Gn=$s.trustedTypes,Bu=Gn?Gn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ts="$lit$",Er=`lit$${Math.random().toFixed(9).slice(2)}$`,Ps="?"+Er,Fx=`<${Ps}>`,vo=document,Ji=()=>vo.createComment(""),en=r=>r===null||typeof r!="object"&&typeof r!="function",Ns=Array.isArray,Wu=r=>Ns(r)||typeof r?.[Symbol.iterator]=="function",_s=`[
|
|
2
|
+
\f\r]`,Xi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Du=/-->/g,Mu=/>/g,bo=RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Uu=/'/g,zu=/"/g,Vu=/^(?:script|style|textarea|title)$/i,Fs=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),S=Fs(1),Bs=Fs(2),Ds=Fs(3),nt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Hu=new WeakMap,xo=vo.createTreeWalker(vo,129);Gu=(r,e)=>{let t=r.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Xi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,b=0;for(;b<d.length&&(s.lastIndex=b,g=s.exec(d),g!==null);)b=s.lastIndex,s===Xi?g[1]==="!--"?s=Du:g[1]!==void 0?s=Mu:g[2]!==void 0?(Vu.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=bo):g[3]!==void 0&&(s=bo):s===bo?g[0]===">"?(s=n??Xi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?bo:g[3]==='"'?zu:Uu):s===zu||s===Uu?s=bo:s===Du||s===Mu?s=Xi:(s=bo,n=void 0);let O=s===bo&&r[l+1].startsWith("/>")?" ":"";a+=s===Xi?d+Fx:m>=0?(i.push(f),d.slice(0,m)+Ts+d.slice(m)+Er+O):d+Er+(m===-2?l:O)}return[ju(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},tn=class r{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Gu(e,t);if(this.el=r.createElement(f,i),xo.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=xo.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ts)){let b=g[s++],O=n.getAttribute(m).split(Er),C=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:C[2],strings:O,ctor:C[1]==="."?qn:C[1]==="?"?Zn:C[1]==="@"?Yn:Co}),n.removeAttribute(m)}else m.startsWith(Er)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Vu.test(n.tagName)){let m=n.textContent.split(Er),b=m.length-1;if(b>0){n.textContent=Gn?Gn.emptyScript:"";for(let O=0;O<b;O++)n.append(m[O],Ji()),xo.nextNode(),d.push({type:2,index:++a});n.append(m[b],Ji())}}}else if(n.nodeType===8)if(n.data===Ps)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Er,m+1))!==-1;)d.push({type:7,index:a}),m+=Er.length-1}a++}}static createElement(e,t){let i=vo.createElement("template");return i.innerHTML=e,i}};Kn=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??vo).importNode(t,!0);xo.currentNode=n;let a=xo.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new ei(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Qn(a,this,e)),this._$AV.push(f),d=i[++l]}s!==d?.index&&(a=xo.nextNode(),s++)}return xo.currentNode=vo,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++}},ei=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,n){this.type=2,this._$AH=T,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=So(this,e,t),en(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&en(this._$AH)?this._$AA.nextSibling.data=e:this.T(vo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=tn.createElement(ju(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Kn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Hu.get(e.strings);return t===void 0&&Hu.set(e.strings,t=new tn(e)),t}k(e){Ns(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.O(Ji()),this.O(Ji()),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))}},Co=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,n,a){this.type=1,this._$AH=T,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=T}_$AI(e,t=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=So(this,e,t,0),s=!en(e)||e!==this._$AH&&e!==nt,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=So(this,l[i+d],t,d),f===nt&&(f=this._$AH[d]),s||=!en(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qn=class extends Co{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Zn=class extends Co{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Yn=class extends Co{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){if((e=So(this,e,t,0)??T)===nt)return;let i=this._$AH,n=e===T&&i!==T||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==T&&(i===T||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)}},Qn=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){So(this,e)}},Ms={M:Ts,P:Er,A:Ps,C:1,L:Gu,R:Kn,D:Wu,V:So,I:ei,H:Co,N:Zn,U:Yn,B:qn,F:Qn},Bx=$s.litHtmlPolyfillSupport;Bx?.(tn,ei),($s.litHtmlVersions??=[]).push("3.3.0");Us=(r,e,t)=>{let i=t?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=t?.renderBefore??null;i._$litPart$=n=new ei(e.insertBefore(Ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var zs,Rr,Dx,Mx,Ku=p(()=>{Qi();Qi();Kt();Kt();zs=globalThis,Rr=class extends nr{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=Us(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return nt}};Rr._$litElement$=!0,Rr.finalized=!0,zs.litElementHydrateSupport?.({LitElement:Rr});Dx=zs.litElementPolyfillSupport;Dx?.({LitElement:Rr});Mx={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(zs.litElementVersions??=[]).push("4.2.0")});var PS,qu=p(()=>{PS=!1});var Hs={};ne(Hs,{CSSResult:()=>Xo,LitElement:()=>Rr,ReactiveElement:()=>nr,_$LE:()=>Mx,_$LH:()=>Ms,adoptStyles:()=>qi,css:()=>A,defaultConverter:()=>Jo,getCompatibleStyle:()=>Wn,html:()=>S,isServer:()=>PS,mathml:()=>Ds,noChange:()=>nt,notEqual:()=>Yi,nothing:()=>T,render:()=>Us,supportsAdoptingStyleSheets:()=>Ki,svg:()=>Bs,unsafeCSS:()=>ir});var P=p(()=>{Qi();Kt();Ku();qu()});var Ux,Zu=p(()=>{Ux=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Yu(r,e,t):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var zx,Yu,Ws=p(()=>{Qi();zx={attribute:!0,type:String,converter:Jo,reflect:!1,hasChanged:Yi},Yu=(r=zx,e,t)=>{let{kind:i,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((r=Object.create(r)).wrapped=!0),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),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 N(r){return h({...r,state:!0,attribute:!1})}var Qu=p(()=>{Ws();});function ti(r){return(e,t)=>{let i=typeof e=="function"?e:e[t];Object.assign(i,r)}}var Xu=p(()=>{});var qt,ri=p(()=>{qt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function H(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(f){this[d]=f}}})();return qt(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 qt(t,i,{get(){return a(this)}})}}var Ju=p(()=>{ri();});function Vs(r){return(e,t)=>qt(e,t,{get(){return(this.renderRoot??(Hx??=document.createDocumentFragment())).querySelectorAll(r)}})}var Hx,ef=p(()=>{ri();});function Wx(r){return(e,t)=>qt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var tf=p(()=>{ri();});function js(r){return(e,t)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return qt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}var rf=p(()=>{ri();});function Gs(r){return(e,t)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return qt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var of=p(()=>{ri();});var Ks={};ne(Ks,{customElement:()=>Ux,eventOptions:()=>ti,property:()=>h,query:()=>H,queryAll:()=>Vs,queryAssignedElements:()=>js,queryAssignedNodes:()=>Gs,queryAsync:()=>Wx,standardProperty:()=>Yu,state:()=>N});var Y=p(()=>{Zu();Ws();Qu();Xu();Ju();ef();tf();rf();of()});var ar,Zt,Bt,Oo=p(()=>{ar={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zt=r=>(...e)=>({_$litDirective$:r,values:e}),Bt=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 Vx,af,nf,oi,Vr,jx,sf,lf,Xn,qs=p(()=>{Kt();({I:Vx}=Ms),af=r=>r.strings===void 0,nf=()=>document.createComment(""),oi=(r,e,t)=>{let i=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=i.insertBefore(nf(),n),s=i.insertBefore(nf(),n);t=new Vx(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 f=d.nextSibling;i.insertBefore(d,n),d=f}}}return t},Vr=(r,e,t=r)=>(r._$AI(e,t),r),jx={},sf=(r,e=jx)=>r._$AH=e,lf=r=>r._$AH,Xn=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 cf,Re,df=p(()=>{Kt();Oo();qs();cf=(r,e,t)=>{let i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},Re=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.CHILD)throw Error("repeat() can only be used in text expressions")}dt(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.dt(r,e,t).values}update(r,[e,t,i]){let n=lf(r),{values:a,keys:s}=this.dt(e,t,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,g,m=0,b=n.length-1,O=0,C=a.length-1;for(;m<=b&&O<=C;)if(n[m]===null)m++;else if(n[b]===null)b--;else if(l[m]===s[O])d[O]=Vr(n[m],a[O]),m++,O++;else if(l[b]===s[C])d[C]=Vr(n[b],a[C]),b--,C--;else if(l[m]===s[C])d[C]=Vr(n[m],a[C]),oi(r,d[C+1],n[m]),m++,C--;else if(l[b]===s[O])d[O]=Vr(n[b],a[O]),oi(r,n[m],n[b]),b--,O++;else if(f===void 0&&(f=cf(s,O,C),g=cf(l,m,b)),f.has(l[m]))if(f.has(l[b])){let I=g.get(s[O]),D=I!==void 0?n[I]:null;if(D===null){let B=oi(r,n[m]);Vr(B,a[O]),d[O]=B}else d[O]=Vr(D,a[O]),oi(r,n[m],D),n[I]=null;O++}else Xn(n[b]),b--;else Xn(n[m]),m++;for(;O<=C;){let I=oi(r,d[C+1]);Vr(I,a[O]),d[O++]=I}for(;m<=b;){let I=n[m++];I!==null&&Xn(I)}return this.ut=s,sf(r,d),nt}})});var Zs={};ne(Zs,{repeat:()=>Re});var Yt=p(()=>{df()});var be,pf=p(()=>{Kt();Oo();be=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.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.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let t=r.element.classList;for(let i of this.st)i in e||(t.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return nt}})});var Ys={};ne(Ys,{classMap:()=>be});var ut=p(()=>{pf()});var uf,Gx,Kx,ff=p(()=>{Kt();Oo();uf="important",Gx=" !"+uf,Kx=Zt(class extends Bt{constructor(r){if(super(r),r.type!==ar.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.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Gx);i.includes("-")||a?t.setProperty(i,a?n.slice(0,-11):n,a?uf:""):t[i]=n}}return nt}})});var Qs={};ne(Qs,{styleMap:()=>Kx});var hf=p(()=>{ff()});var ii,wo,mf=p(()=>{Kt();Oo();ii=class extends Bt{constructor(e){if(super(e),this.it=T,e.type!==ar.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===nt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ii.directiveName="unsafeHTML",ii.resultType=1;wo=Zt(ii)});var Xs={};ne(Xs,{UnsafeHTMLDirective:()=>ii,unsafeHTML:()=>wo});var rn=p(()=>{mf()});var Js={};ne(Js,{CancelablePromise:()=>Jn,CanceledPromiseError:()=>sr,cancelable:()=>ni});var sr,Jn,ni,ea=p(()=>{"use strict";sr=class extends Error{constructor(e,t,i){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=i}},Jn=class extends Promise{constructor(e){super((t,i)=>e(n=>{this.isCanceled?i(new sr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?i(new sr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ni=r=>new Jn((e,t)=>r.then(e).catch(t))});var rl={};ne(rl,{applyMixinOnce:()=>Ne,dateReviver:()=>qx,deepCopy:()=>nn,deepEqual:()=>Ke,delay:()=>ta,eventPathContainsMatchingElement:()=>Yx,flatDeep:()=>Et,getComposedPathTo:()=>el,hasChanged:()=>Ar,last:()=>Qx,minmax:()=>Eo,parseDate:()=>gf,randomId:()=>tl,unslotText:()=>ai,waitFor:()=>jr,waitUntil:()=>on});async function on(r,e=10,t=2e4){await jr(async()=>await r()||void 0,e,t)}async function jr(r,e=10,t=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!t||a-n<t);)await ta(e),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Et(r,e){return r.flatMap(t=>[t,...Et(e(t),e)])}function qx(...r){return(e,t)=>r.includes(e)?gf(t):t}function gf(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 Zx(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,i,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(i=t;i--!==0;)if(!Ke(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(!Ke(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(!Ke(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Ke(r,e){try{return Zx(r,e)}catch{return!1}}function Ar(r,e){return!Ke(r,e)}function Yx(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 Eo(r,e,t){return Math.min(Math.max(r,e),t)}function Qx(r){return r[r.length-1]}function ai(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ai(e)).join(""):r?.textContent||""}function el(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}function nn(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function tl(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ne(r,e){let t=i=>i[r]===!0;return i=>{if(t(i))return i;let n=e(i);return n[r]=!0,n}}var ta,yt=p(()=>{"use strict";ta=r=>new Promise(e=>setTimeout(e,r))});var nl={};ne(nl,{FtNotificationEvent:()=>an,PostResizeEvent:()=>il,PreResizeEvent:()=>ol,WithEventBus:()=>Lr,withEventBus:()=>ra});var an,ol,il,ra,Lr,si=p(()=>{"use strict";yt();an=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ol=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},il=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ra=Ne(Symbol("withEventBus"),function(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)}}}),Lr=class extends ra(Object){}});var al={};ne(al,{CacheRegistry:()=>lr,ClearCacheEvent:()=>sn});var sn,lr,sl=p(()=>{"use strict";ea();si();sn=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},lr=class extends Lr{constructor(){super(...arguments),this.content={}}register(e,t,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:i,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&i.length>0&&this.dispatchEvent(new sn(i)),i}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new sn([e])),e}forceClear(e){var t;let i=this.content[e];i&&(this.clearClearTimeout(e),(t=i.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var t,i,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,i=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,i){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=ni(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,i;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var dl={};ne(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,pl=p(()=>{"use strict";cl=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(ll(l)),s.push(ll(l,t))}),{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}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:i}).filter(m=>m.value!=d?.value).filter((m,b,O)=>O.findIndex(C=>C.value===m.value)===b).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,b)=>this.compareMetadata(m.metadata.value,b.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 f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.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 f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===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 ul={};ne(ul,{Debouncer:()=>pe});var pe,oa=p(()=>{"use strict";pe=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 fl={};ne(fl,{customElement:()=>M,dateProperty:()=>Jx,isNumber:()=>yf,jsonProperty:()=>Ee,numberProperty:()=>Gr,optionalNumberProperty:()=>Xx});function Ee(r,e){let t=()=>JSON.parse(JSON.stringify(r));return h({type:Object,converter:{fromAttribute:i=>{if(i==null)return t();try{return JSON.parse(i)}catch{return t()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Ar,...e??{}})}function Xx(r){return Gr(r)}function Gr(r){return h({type:Object,converter:{fromAttribute:e=>{if(e!=null)return yf(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function yf(r){return!isNaN(parseFloat(r))}function Jx(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var M,ia=p(()=>{"use strict";Y();yt();M=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});function y(r,e){return Kr(`${r.name}: ${e}`)}var Kr,o,se=p(()=>{P();Kr=r=>typeof r=="string"?ir(r):r,o=class{static create(e,t,i,n){let a=l=>Kr(l??n),s=A`var(${Kr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Kr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,i,n){let a=l=>i.get(l??n),s=A`var(${Kr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>y(s,l??a(n)),s.get=l=>A`var(${Kr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,t){let i=a=>e.defaultCssValue(a),n=A`var(${Kr(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.set=a=>e.set(a),n.get=a=>A`var(${Kr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,hl,ml,gl,yl,bl,xl,vl,Sl,Ro,bf,Cl,Ol,wl,El,Rl,Al,Ll,Il,kl,_l,qr,$l,Tl,Pl,Nl,Fl,ln,ev,le=p(()=>{se();c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},hl={fontFamily:o.create("--ft-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-text-case","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-text-case","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-text-case","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ft-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-text-case","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-text-case","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-text-case","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-text-case","","UNKNOWN","none")},Sl={fontFamily:o.create("--ft-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-text-case","","UNKNOWN","none")},Ro={fontFamily:o.create("--ft-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-text-case","","UNKNOWN","none")},bf={fontFamily:o.create("--ft-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Cl={fontFamily:o.create("--ft-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ft-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ol={fontFamily:o.create("--ft-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-text-decoration","","UNKNOWN","none")},wl={fontFamily:o.create("--ft-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},El={fontFamily:o.create("--ft-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Rl={fontFamily:o.create("--ft-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Al={fontFamily:o.create("--ft-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Ll={fontFamily:o.create("--ft-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Il={fontFamily:o.create("--ft-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},kl={fontFamily:o.create("--ft-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},_l={fontFamily:o.create("--ft-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},qr={fontFamily:o.create("--ft-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},$l={fontFamily:o.create("--ft-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Tl={fontFamily:o.create("--ft-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Pl={fontFamily:o.create("--ft-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Nl={fontFamily:o.create("--ft-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Fl={fontFamily:o.create("--ft-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ft-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},ln={display:hl,"title-1":ml,"title-2":gl,"title-3":yl,"body-1-regular":bl,"body-1-medium":xl,"body-1-semibold":vl,"body-2-regular":Sl,"body-2-medium":Ro,"body-2-medium-underline":bf,"body-2-semibold":Cl,"label-1-medium":Ol,"label-1-semibold":wl,"label-1-bold":El,"label-2-medium":Rl,"label-2-semibold":Al,"label-2-bold":Ll,"caption-1-medium":Il,"caption-1-semibold":kl,"caption-1-bold":_l,"caption-2-medium":qr,"caption-2-semibold":$l,"caption-2-bold":Tl,"caption-3-medium":Pl,"caption-3-semibold":Nl,"caption-3-bold":Fl},ev=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});var u,ge=p(()=>{se();le();u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
+
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 v,xf=p(()=>{se();le();ge();v={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)}});var tv,vf=p(()=>{se();le();ge();tv={loadMoreIconSize:o.extend("--ft-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ft-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ft-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ft-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ft-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ft-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ft-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ft-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ft-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ft-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ft-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)}});var rv,Sf=p(()=>{se();le();ge();rv={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)}});var ue,Cf=p(()=>{se();le();ge();ue={circleSize:o.create("--ft-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ft-radio-border-width","","SIZE","2px"),color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ft-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ft-radio-horizontal-gap","",c.spacing3)}});var ov,Of=p(()=>{se();le();ge();ov={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)}});var iv,wf=p(()=>{se();le();ge();iv={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)}});var Z,Ef=p(()=>{se();le();ge();Z={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)}});var nv,Rf=p(()=>{se();le();ge();nv={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)}});var av,Af=p(()=>{se();le();ge();av={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)}});var sv,Lf=p(()=>{se();le();ge();sv={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)}});var lv,If=p(()=>{se();le();ge();lv={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)}});var cv,kf=p(()=>{se();le();ge();cv={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")}});var dv,_f=p(()=>{se();le();ge();dv={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)}});var pv,$f=p(()=>{se();le();pv={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)}});var uv,Tf=p(()=>{se();le();ge();uv={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)}});var fv,Pf=p(()=>{se();le();ge();fv={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)}});var hv,Nf=p(()=>{se();le();ge();hv={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)}});var mv,Ff=p(()=>{se();le();ge();mv={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)}});var gv,Bf=p(()=>{se();le();ge();gv={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusS)}});var yv,Df=p(()=>{se();le();ge();yv={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)}});var bv,Mf=p(()=>{se();le();ge();bv={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)}});var xv,Uf=p(()=>{se();le();ge();xv={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)}});var vv,zf=p(()=>{se();le();ge();vv={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),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"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)}});var Sv,Hf=p(()=>{se();le();ge();Sv={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)}});var Cv,Wf=p(()=>{se();le();ge();Cv={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)}});var Ov,Vf=p(()=>{se();le();Ov={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 wv,jf=p(()=>{se();le();wv={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 Ev,Gf=p(()=>{se();le();ge();Ev={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")}});var Rv,Kf=p(()=>{se();le();ge();Rv={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)}});var Av,qf=p(()=>{se();le();ge();Av={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)}});var Lv,Zf=p(()=>{se();le();ge();Lv={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)}});var Iv,Yf=p(()=>{se();le();ge();Iv={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)}});var kv,Qf=p(()=>{se();le();kv={menuHorizontalPadding:o.extend("--ft-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ft-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ft-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ft-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var Xf=p(()=>{le();ge();xf();vf();Sf();Cf();Of();wf();Ef();Rf();Af();Lf();If();kf();_f();$f();Tf();Pf();Nf();Ff();Bf();Df();Mf();Uf();zf();Hf();Wf();Vf();jf();Gf();Kf();qf();Zf();Yf();Qf()});function Bl(r){return`ftds--family-${r}`}function Dl(r){return`ftds--size-${r}`}var Rt,qe,Jf=p(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Rt||(Rt={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(qe||(qe={}))});var ee=p(()=>{se();Xf();Jf()});var Ml={};ne(Ml,{DesignSystemFamily:()=>Rt,DesignSystemSize:()=>qe,FtCssVariableFactory:()=>o,badge:()=>sv,banner:()=>av,button:()=>v,chart:()=>Ov,checkbox:()=>rv,chip:()=>Z,chipChoice:()=>iv,collapsible:()=>Sv,comboboxMultiSelect:()=>xv,comboboxSingleSelect:()=>bv,dateRangePicker:()=>kv,drawer:()=>fv,floatingMenu:()=>yv,foundation:()=>c,link:()=>nv,modal:()=>uv,notice:()=>Ev,notification:()=>Av,pageDesigner:()=>wv,pageFooter:()=>dv,pageHeader:()=>cv,pageLayout:()=>pv,popover:()=>vv,radio:()=>ue,reorderableList:()=>Iv,resolveFamilyClass:()=>Bl,resolveSizeClass:()=>Dl,semantic:()=>u,setVariable:()=>y,switch_:()=>Cv,table:()=>ov,tabs:()=>hv,textArea:()=>gv,textInput:()=>mv,titleBreadcrumb:()=>lv,toggle:()=>Rv,tooltip:()=>Lv,treeList:()=>tv,typographies:()=>ln,typographyBody1Medium:()=>xl,typographyBody1Regular:()=>bl,typographyBody1Semibold:()=>vl,typographyBody2Medium:()=>Ro,typographyBody2MediumUnderline:()=>bf,typographyBody2Regular:()=>Sl,typographyBody2Semibold:()=>Cl,typographyCaption1Bold:()=>_l,typographyCaption1Medium:()=>Il,typographyCaption1Semibold:()=>kl,typographyCaption2Bold:()=>Tl,typographyCaption2Medium:()=>qr,typographyCaption2Semibold:()=>$l,typographyCaption3Bold:()=>Fl,typographyCaption3Medium:()=>Pl,typographyCaption3Semibold:()=>Nl,typographyDisplay:()=>hl,typographyLabel1Bold:()=>El,typographyLabel1Medium:()=>Ol,typographyLabel1Semibold:()=>wl,typographyLabel2Bold:()=>Ll,typographyLabel2Medium:()=>Rl,typographyLabel2Semibold:()=>Al,typographyTitle1:()=>ml,typographyTitle2:()=>gl,typographyTitle3:()=>yl,typographyVariants:()=>ev});var na=p(()=>{"use strict";ee()});var Ul={};ne(Ul,{designSystemVariables:()=>w});var w,zl=p(()=>{"use strict";na();w={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)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),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 Hl={};ne(Hl,{DynamicImporter:()=>aa,dynamicImporter:()=>_v});var aa,_v,Wl=p(()=>{"use strict";aa=class{async import(e){return import(e)}},_v=new aa});function Gl(r,e,t){return Zr(r,sa(e,t))}function li(r,e){return typeof r=="function"?r(e):r}function Yr(r){return r.split("-")[0]}function cr(r){return r.split("-")[1]}function Kl(r){return r==="x"?"y":"x"}function ql(r){return r==="y"?"height":"width"}function ci(r){return["top","bottom"].includes(Yr(r))?"y":"x"}function Zl(r){return Kl(ci(r))}function rh(r,e,t){t===void 0&&(t=!1);let i=cr(r),n=Zl(r),a=ql(n),s=n==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Vl(s)),[s,Vl(s)]}function oh(r){return r.replace(/start|end/g,e=>Tv[e])}function Vl(r){return r.replace(/left|right|bottom|top/g,e=>$v[e])}function Pv(r){return{top:0,right:0,bottom:0,left:0,...r}}function ih(r){return typeof r!="number"?Pv(r):{top:r,right:r,bottom:r,left:r}}function Ao(r){let{x:e,y:t,width:i,height:n}=r;return{width:i,height:n,top:t,left:e,right:e+i,bottom:t+n,x:e,y:t}}var th,eh,jl,sa,Zr,$v,Tv,Yl=p(()=>{th=["top","right","bottom","left"],eh=["start","end"],jl=th.reduce((r,e)=>r.concat(e,e+"-"+eh[0],e+"-"+eh[1]),[]),sa=Math.min,Zr=Math.max,$v={left:"right",right:"left",bottom:"top",top:"bottom"},Tv={start:"end",end:"start"}});function nh(r,e,t){let{reference:i,floating:n}=r,a=ci(e),s=Zl(e),l=ql(s),d=Yr(e),f=a==="y",g=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,b=i[l]/2-n[l]/2,O;switch(d){case"top":O={x:g,y:i.y-n.height};break;case"bottom":O={x:g,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y:m};break;case"left":O={x:i.x-n.width,y:m};break;default:O={x:i.x,y:i.y}}switch(cr(e)){case"start":O[s]-=b*(t&&f?-1:1);break;case"end":O[s]+=b*(t&&f?-1:1);break}return O}async function la(r,e){var t;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:O=0}=li(e,r),C=ih(O),D=l[b?m==="floating"?"reference":"floating":m],B=Ao(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(D)))==null||t?D:D.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),z=m==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},_=Ao(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:k,strategy:d}):z);return{top:(B.top-_.top+C.top)/E.y,bottom:(_.bottom-B.bottom+C.bottom)/E.y,left:(B.left-_.left+C.left)/E.x,right:(_.right-B.right+C.right)/E.x}}function Nv(r,e,t){return(r?[...t.filter(n=>cr(n)===r),...t.filter(n=>cr(n)!==r)]:t.filter(n=>Yr(n)===n)).filter(n=>r?cr(n)===r||(e?oh(n)!==n:!1):!0)}async function Fv(r,e){let{placement:t,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Yr(t),l=cr(t),d=ci(t)==="y",f=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,m=li(e,r),{mainAxis:b,crossAxis:O,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof C=="number"&&(O=l==="end"?C*-1:C),d?{x:O*g,y:b*f}:{x:b*f,y:O*g}}var ah,ca,Ql,Xl,Jl,ec=p(()=>{Yl();Yl();ah=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)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=nh(f,i,d),b=i,O={},C=0;for(let I=0;I<l.length;I++){let{name:D,fn:B}=l[I],{x:z,y:k,data:E,reset:_}=await B({x:g,y:m,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:f,platform:s,elements:{reference:r,floating:e}});g=z??g,m=k??m,O={...O,[D]:{...O[D],...E}},_&&C<=50&&(C++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(f=_.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):_.rects),{x:g,y:m}=nh(f,b,d)),I=-1)}return{x:g,y:m,placement:b,strategy:n,middlewareData:O}};ca=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:f}=e,{crossAxis:g=!1,alignment:m,allowedPlacements:b=jl,autoAlignment:O=!0,...C}=li(r,e),I=m!==void 0||b===jl?Nv(m||null,O,b):b,D=await la(e,C),B=((t=s.autoPlacement)==null?void 0:t.index)||0,z=I[B];if(z==null)return{};let k=rh(z,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==z)return{reset:{placement:I[0]}};let E=[D[Yr(z)],D[k[0]],D[k[1]]],_=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:z,overflows:E}],G=I[B+1];if(G)return{data:{index:B+1,overflows:_},reset:{placement:G}};let J=_.map(K=>{let x=cr(K.placement);return[K.placement,x&&g?K.overflows.slice(0,2).reduce((R,j)=>R+j,0):K.overflows[0],K.overflows]}).sort((K,x)=>K[1]-x[1]),ce=((n=J.filter(K=>K[2].slice(0,cr(K[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||J[0][0];return ce!==l?{data:{index:B+1,overflows:_},reset:{placement:ce}}:{}}}};Ql=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 Fv(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}}}}},Xl=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:D=>{let{x:B,y:z}=D;return{x:B,y:z}}},...d}=li(r,e),f={x:t,y:i},g=await la(e,d),m=ci(Yr(n)),b=Kl(m),O=f[b],C=f[m];if(a){let D=b==="y"?"top":"left",B=b==="y"?"bottom":"right",z=O+g[D],k=O-g[B];O=Gl(z,O,k)}if(s){let D=m==="y"?"top":"left",B=m==="y"?"bottom":"right",z=C+g[D],k=C-g[B];C=Gl(z,C,k)}let I=l.fn({...e,[b]:O,[m]:C});return{...I,data:{x:I.x-t,y:I.y-i,enabled:{[b]:a,[m]:s}}}}}},Jl=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=li(r,e),g=await la(e,f),m=Yr(n),b=cr(n),O=ci(n)==="y",{width:C,height:I}=a.floating,D,B;m==="top"||m==="bottom"?(D=m,B=b===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(B=m,D=b==="end"?"top":"bottom");let z=I-g.top-g.bottom,k=C-g.left-g.right,E=sa(I-g[D],z),_=sa(C-g[B],k),G=!e.middlewareData.shift,J=E,he=_;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(he=k),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=z),G&&!b){let K=Zr(g.left,0),x=Zr(g.right,0),R=Zr(g.top,0),j=Zr(g.bottom,0);O?he=C-2*(K!==0||x!==0?K+x:Zr(g.left,g.right)):J=I-2*(R!==0||j!==0?R+j:Zr(g.top,g.bottom))}await d({...e,availableWidth:he,availableHeight:J});let ce=await s.getDimensions(l.floating);return C!==ce.width||I!==ce.height?{reset:{rects:!0}}:{}}}}});var tc,di,cn,Ir,sh=p(()=>{tc=Math.min,di=Math.max,cn=Math.round,Ir=r=>({x:r,y:r})});function kr(r){return ch(r)?(r.nodeName||"").toLowerCase():"#document"}function bt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function _r(r){var e;return(e=(ch(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ch(r){return r instanceof Node||r instanceof bt(r).Node}function dr(r){return r instanceof Element||r instanceof bt(r).Element}function Qt(r){return r instanceof HTMLElement||r instanceof bt(r).HTMLElement}function lh(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof bt(r).ShadowRoot}function pi(r){let{overflow:e,overflowX:t,overflowY:i,display:n}=At(r);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(n)}function dh(r){return["table","td","th"].includes(kr(r))}function pa(r){let e=ua(),t=At(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 ph(r){let e=Lo(r);for(;Qt(e)&&!dn(e);){if(pa(e))return e;e=Lo(e)}return null}function ua(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dn(r){return["html","body","#document"].includes(kr(r))}function At(r){return bt(r).getComputedStyle(r)}function pn(r){return dr(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Lo(r){if(kr(r)==="html")return r;let e=r.assignedSlot||r.parentNode||lh(r)&&r.host||_r(r);return lh(e)?e.host:e}function uh(r){let e=Lo(r);return dn(e)?r.ownerDocument?r.ownerDocument.body:r.body:Qt(e)&&pi(e)?e:uh(e)}function da(r,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=uh(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=bt(n);return a?e.concat(s,s.visualViewport||[],pi(n)?n:[],s.frameElement&&t?da(s.frameElement):[]):e.concat(n,da(n,[],t))}var fh=p(()=>{});function gh(r){let e=At(r),t=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Qt(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:i,l=cn(t)!==a||cn(i)!==s;return l&&(t=a,i=s),{width:t,height:i,$:l}}function yh(r){return dr(r)?r:r.contextElement}function ui(r){let e=yh(r);if(!Qt(e))return Ir(1);let t=e.getBoundingClientRect(),{width:i,height:n,$:a}=gh(e),s=(a?cn(t.width):t.width)/i,l=(a?cn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function bh(r){let e=bt(r);return!ua()||!e.visualViewport?Bv:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Dv(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==bt(r)?!1:e}function un(r,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=yh(r),s=Ir(1);e&&(i?dr(i)&&(s=ui(i)):s=ui(r));let l=Dv(a,t,i)?bh(a):Ir(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a){let b=bt(a),O=i&&dr(i)?bt(i):i,C=b.frameElement;for(;C&&i&&O!==b;){let I=ui(C),D=C.getBoundingClientRect(),B=At(C),z=D.left+(C.clientLeft+parseFloat(B.paddingLeft))*I.x,k=D.top+(C.clientTop+parseFloat(B.paddingTop))*I.y;d*=I.x,f*=I.y,g*=I.x,m*=I.y,d+=z,f+=k,C=bt(C).frameElement}}return Ao({width:g,height:m,x:d,y:f})}function Mv(r){let{rect:e,offsetParent:t,strategy:i}=r,n=Qt(t),a=_r(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Ir(1),d=Ir(0);if((n||!n&&i!=="fixed")&&((kr(t)!=="body"||pi(a))&&(s=pn(t)),Qt(t))){let f=un(t);l=ui(t),d.x=f.x+t.clientLeft,d.y=f.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 Uv(r){return Array.from(r.getClientRects())}function xh(r){return un(_r(r)).left+pn(r).scrollLeft}function zv(r){let e=_r(r),t=pn(r),i=r.ownerDocument.body,n=di(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=di(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+xh(r),l=-t.scrollTop;return At(i).direction==="rtl"&&(s+=di(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Hv(r,e){let t=bt(r),i=_r(r),n=t.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let f=ua();(!f||f&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Wv(r,e){let t=un(r,!0,e==="fixed"),i=t.top+r.clientTop,n=t.left+r.clientLeft,a=Qt(r)?ui(r):Ir(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:s,height:l,x:d,y:f}}function hh(r,e,t){let i;if(e==="viewport")i=Hv(r,t);else if(e==="document")i=zv(_r(r));else if(dr(e))i=Wv(e,t);else{let n=bh(r);i={...e,x:e.x-n.x,y:e.y-n.y}}return Ao(i)}function vh(r,e){let t=Lo(r);return t===e||!dr(t)||dn(t)?!1:At(t).position==="fixed"||vh(t,e)}function Vv(r,e){let t=e.get(r);if(t)return t;let i=da(r,[],!1).filter(l=>dr(l)&&kr(l)!=="body"),n=null,a=At(r).position==="fixed",s=a?Lo(r):r;for(;dr(s)&&!dn(s);){let l=At(s),d=pa(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||pi(s)&&!d&&vh(r,s))?i=i.filter(g=>g!==s):n=l,s=Lo(s)}return e.set(r,i),i}function jv(r){let{element:e,boundary:t,rootBoundary:i,strategy:n}=r,s=[...t==="clippingAncestors"?Vv(e,this._c):[].concat(t),i],l=s[0],d=s.reduce((f,g)=>{let m=hh(e,g,n);return f.top=di(m.top,f.top),f.right=tc(m.right,f.right),f.bottom=tc(m.bottom,f.bottom),f.left=di(m.left,f.left),f},hh(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Gv(r){return gh(r)}function Kv(r,e,t){let i=Qt(e),n=_r(e),a=t==="fixed",s=un(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Ir(0);if(i||!i&&!a)if((kr(e)!=="body"||pi(n))&&(l=pn(e)),i){let f=un(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=xh(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function mh(r,e){return!Qt(r)||At(r).position==="fixed"?null:e?e(r):r.offsetParent}function Sh(r,e){let t=bt(r);if(!Qt(r))return t;let i=mh(r,e);for(;i&&dh(i)&&At(i).position==="static";)i=mh(i,e);return i&&(kr(i)==="html"||kr(i)==="body"&&At(i).position==="static"&&!pa(i))?t:i||ph(r)||t}function Zv(r){return At(r).direction==="rtl"}var Bv,qv,fi,rc,Ch=p(()=>{ec();ec();sh();fh();Bv=Ir(0);qv=async function(r){let{reference:e,floating:t,strategy:i}=r,n=this.getOffsetParent||Sh,a=this.getDimensions;return{reference:Kv(e,await n(t),i),floating:{x:0,y:0,...await a(t)}}};fi={convertOffsetParentRelativeRectToViewportRelativeRect:Mv,getDocumentElement:_r,getClippingRect:jv,getOffsetParent:Sh,getElementRects:qv,getClientRects:Uv,getDimensions:Gv,getScale:ui,isElement:dr,isRTL:Zv},rc=(r,e,t)=>{let i=new Map,n={platform:fi,...t},a={...n.platform,_c:i};return ah(r,e,{...n,platform:a})}});function ic(r){return Yv(r)}function oc(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Yv(r){for(let e=r;e;e=oc(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oc(r);e;e=oc(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}var Oh=p(()=>{});var sc={};ne(sc,{computeOffsetAutoPosition:()=>ac,computeOffsetPosition:()=>nc});async function nc(r,e,t){return rc(r,e,{platform:{...fi,getOffsetParent:i=>fi.getOffsetParent(i,ic)},middleware:[Xl({crossAxis:!0}),ca({allowedPlacements:[t]})]})}async function ac(r,e,t,i,n,a,s=4){return rc(r,e,{placement:t,strategy:n,platform:{...fi,getOffsetParent:l=>fi.getOffsetParent(l,ic)},middleware:[Ql(s),ca({allowedPlacements:i}),Jl({apply({availableHeight:l,elements:d}){typeof a=="string"&&(a=`var(${a})`),a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, ${a})`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var fa=p(()=>{"use strict";Ch();Oh()});var lc={};ne(lc,{ScopedRegistryLitElement:()=>fn});var fn,ha=p(()=>{"use strict";P();Vn();fn=class extends Rr{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 qi(i,e.elementStyles),i}}});var dc={};ne(dc,{shadowQuerySelector:()=>cc,shadowQuerySelectorAll:()=>Qv});function cc(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 Qv(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 ma=p(()=>{"use strict"});var pc={};ne(pc,{FtLitElement:()=>W});var hn,Ah,wh,Eh,Lh,Rh,W,mn=p(()=>{"use strict";Y();ia();oa();ha();ma();hn=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},wh=Symbol("constructorPrototype"),Eh=Symbol("constructorName"),Lh=Symbol("exportpartsDebouncer"),Rh=Symbol("dynamicDependenciesLoaded"),W=class extends fn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ah]=new pe(5),this[Eh]=this.constructor.name,this[wh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eh]&&Object.setPrototypeOf(this,this[wh])}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[Rh]||(e[Rh]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];t=cc(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}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[Lh].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=b=>b!=null&&b.trim().length>0,f=e.filter(d).map(b=>b.trim());if(f.length===0){this.removeAttribute("exportparts");return}let g=new Set;for(let b of(i=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...C).filter(d).map(I=>I.trim()).forEach(I=>g.add(I))}if(g.size===0){this.removeAttribute("exportparts");return}let m=[...g.values()].flatMap(b=>f.map(O=>`${b}:${O}--${b}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ah=Lh;hn([h()],W.prototype,"exportpartsPrefix",void 0);hn([Ee([])],W.prototype,"exportpartsPrefixes",void 0);hn([h()],W.prototype,"customStylesheet",void 0);hn([h()],W.prototype,"elementToFocus",void 0);hn([N()],W.prototype,"useAdoptedStyleSheets",void 0)});var uc={};ne(uc,{FtdsBase:()=>gn,toFtdsBase:()=>pr});var Ih,pr,gn,fc=p(()=>{"use strict";mn();Y();ee();yt();Ih=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},pr=Ne(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=qe.medium,this.family=Rt.neutral}getDesignSystemBaseClasses(){return{[Bl(this.family)]:!0,[Dl(this.size)]:!0}}}return Ih([h()],e.prototype,"size",void 0),Ih([h()],e.prototype,"family",void 0),e}),gn=class extends pr(W){}});var kh={};var hc=p(()=>{"use strict"});var Io,_h=p(()=>{Io=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(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,g=>{t(f)&&(l++,i(g)),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=[],f,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,b=>this.checkIframeFilter(f,g,b,l),b=>{this.createInstanceOnIframe(b).forEachNode(e,O=>d.push(O),n)}),d.push(f);d.forEach(b=>{i(b)}),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 yn,$h=p(()=>{_h();yn=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 Io(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 Io.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 f=t-s.start,g=(i>s.end?s.end:i)-s.start,m=e.value.substr(0,s.start),b=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+b,e.nodes.forEach((O,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=g),e.nodes[C].end-=g)}),i-=g,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 f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!i(f[s],d))continue;let g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+f[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 f=d.index;if(s!==0)for(let m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>i(d[s],m),(m,b)=>{e.lastIndex=b,n(m)})}a()})}wrapRangeFromIndex(e,t,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,b=>t(b,l,a.value.substring(f,g),d),b=>{i(b,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=f=>{let g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(b,O)=>this.opt.filter(O,f,i,m),b=>{m++,i++,this.opt.each(b)},()=>{m===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(i):d(a[a.indexOf(f)+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=Io.matches(i,t),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function mc(r){let e=new yn(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 Th=p(()=>{$h()});var yc={};ne(yc,{highlightHtml:()=>gc,highlightHtmlColorCssVariable:()=>Ph,highlightHtmlStyles:()=>Jv});function gc(r,e,t){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Xv(r);if(s.unmark(),e&&e.trim()){let l={className:(i=t?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=f=>{for(let g in t.attributes)f.setAttribute(g,t.attributes[g])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Xv,Ph,Jv,bc=p(()=>{"use strict";P();ee();Th();Xv=mc,Ph=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Jv=A`
|
|
5
5
|
.highlight-html-match {
|
|
6
6
|
background: ${Ph};
|
|
7
7
|
}
|
|
8
|
-
`});var xc={};ne(xc,{noTextInputDefaultClearButton:()=>
|
|
8
|
+
`});var xc={};ne(xc,{noTextInputDefaultClearButton:()=>ko,noTextSelect:()=>$r,safariEllipsisFix:()=>Tr,wordWrap:()=>bn});var $r,bn,Tr,ko,vc=p(()=>{"use strict";P();$r=A`
|
|
9
9
|
.ft-no-text-select {
|
|
10
10
|
-webkit-touch-callout: none;
|
|
11
11
|
-webkit-user-select: none;
|
|
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
14
14
|
-ms-user-select: none;
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,bn=A`
|
|
18
18
|
.ft-word-wrap {
|
|
19
19
|
white-space: normal;
|
|
20
20
|
word-wrap: break-word;
|
|
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
26
26
|
-webkit-hyphens: auto;
|
|
27
27
|
hyphens: auto
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Tr=A`
|
|
30
30
|
.ft-safari-ellipsis-fix {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
|
|
@@ -37,15 +37,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
width: 0;
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,ko=A`
|
|
41
41
|
input::-webkit-search-cancel-button,
|
|
42
42
|
input::-webkit-search-decoration,
|
|
43
43
|
input::-webkit-search-results-button,
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`});var Nh={};var Sc=p(()=>{"use strict"});var Cc={};ne(Cc,{ParametrizedLabelResolver:()=>qr});var qr,Oc=p(()=>{"use strict";qr=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 Jv,ve,e0,Fh=p(()=>{"use strict";yt();Y();Jv=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},ve=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Co,attribute:!1,...e};h(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})}},e0=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var bn,wc=p(()=>{"use strict";bn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(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}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function fi(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ga=p(()=>{"use strict"});var xn,Zr,Lo,Bh,Qt,Dh=p(()=>{"use strict";hn();ga();yt();xn=Symbol("internalReduxEventsUnsubscribers"),Zr=Symbol("internalStoresUnsubscribers"),Lo=Symbol("internalStores"),Bh=Ne(Symbol("withRedux"),function(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Lo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Lo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Zr].has(s.store):this[Zr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Zr].set(s,l.subscribe(()=>this.updateFromStores())),this[xn].set(s,[]),fi(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=b=>this[g](b);l.addEventListener(f.eventName,m),this[xn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Zr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Zr].has(s)&&this[Zr].get(s)(),this[Zr].delete(s),(l=this[xn].get(s))===null||l===void 0||l.forEach(d=>d()),this[xn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Zr,t=Lo,i=xn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Qt=class extends Bh(W){}});function Ft(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 $r(r){return!!r&&!!r[Le]}function Xt(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)===l0}(r)||Array.isArray(r)||!!r[jh]||!!(!((e=r.constructor)===null||e===void 0)&&e[jh])||Tc(r)||Pc(r))}function ko(r,e,t){t===void 0&&(t=!1),gi(r)===0?(t?Object.keys:mi)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function gi(r){var e=r[Le];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Tc(r)?2:Pc(r)?3:0}function hi(r,e){return gi(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function t0(r,e){return gi(r)===2?r.get(e):r[e]}function Gh(r,e,t){var i=gi(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Kh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Tc(r){return a0&&r instanceof Map}function Pc(r){return s0&&r instanceof Set}function Yr(r){return r.o||r.t}function Nc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Yh(r);delete e[Le];for(var t=mi(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 Fc(r,e){return e===void 0&&(e=!1),Bc(r)||$r(r)||!Xt(r)||(gi(r)>1&&(r.set=r.add=r.clear=r.delete=r0),Object.freeze(r),e&&ko(r,function(t,i){return Fc(i,!0)},!0)),r}function r0(){Ft(2)}function Bc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function dr(r){var e=$c[r];return e||Ft(18,r),e}function o0(r,e){$c[r]||($c[r]=e)}function Lc(){return Sn}function Ec(r,e){e&&(dr("Patches"),r.u=[],r.s=[],r.v=e)}function ya(r){kc(r),r.p.forEach(i0),r.p=null}function kc(r){r===Sn&&(Sn=r.l)}function Mh(r){return Sn={p:[],l:Sn,h:r,m:!0,_:0}}function i0(r){var e=r[Le];e.i===0||e.i===1?e.j():e.g=!0}function Rc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||dr("ES5").S(e,r,i),i?(t[Le].P&&(ya(e),Ft(4)),Xt(r)&&(r=ba(e,r),e.l||xa(e,r)),e.u&&dr("Patches").M(t[Le].t,r,e.u,e.s)):r=ba(e,t,[]),ya(e),e.u&&e.v(e.u,e.s),r!==Zh?r:void 0}function ba(r,e,t){if(Bc(e))return e;var i=e[Le];if(!i)return ko(e,function(l,d){return Uh(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return xa(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Nc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),ko(a,function(l,d){return Uh(r,i,n,l,d,t,s)}),xa(r,n,!1),t&&r.u&&dr("Patches").N(i,t,r.u,r.s)}return i.o}function Uh(r,e,t,i,n,a,s){if($r(n)){var l=ba(r,n,a&&e&&e.i!==3&&!hi(e.R,i)?a.concat(i):void 0);if(Gh(t,i,l),!$r(l))return;r.m=!1}else s&&t.add(n);if(Xt(n)&&!Bc(n)){if(!r.h.D&&r._<1)return;ba(r,n),e&&e.A.l||xa(r,n)}}function xa(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Fc(e,t)}function Ac(r,e){var t=r[Le];return(t?Yr(t):r)[e]}function zh(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 Qr(r){r.P||(r.P=!0,r.l&&Qr(r.l))}function Ic(r){r.o||(r.o=Nc(r.t))}function _c(r,e,t){var i=Tc(e)?dr("MapSet").F(e,t):Pc(e)?dr("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Lc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=Cn;s&&(d=[l],f=vn);var g=Proxy.revocable(d,f),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(e,t):dr("ES5").J(e,t);return(t?t.A:Lc()).p.push(i),i}function n0(r){return $r(r)||Ft(22,r),function e(t){if(!Xt(t))return t;var i,n=t[Le],a=gi(t);if(n){if(!n.P&&(n.i<4||!dr("ES5").K(n)))return n.t;n.I=!0,i=Hh(t,a),n.I=!1}else i=Hh(t,a);return ko(i,function(s,l){n&&t0(n.t,s)===l||Gh(i,s,e(l))}),a===3?new Set(i):i}(r)}function Hh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Nc(r)}function qh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Le];return Cn.get(f,s)},set:function(f){var g=this[Le];Cn.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Le];if(!d.P)switch(d.i){case 5:i(d)&&Qr(d);break;case 4:t(d)&&Qr(d)}}}function t(s){for(var l=s.t,d=s.k,f=mi(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Le){var b=l[m];if(b===void 0&&!hi(l,m))return!0;var O=d[m],C=O&&O[Le];if(C?C.t!==b:!Kh(O,b))return!0}}var L=!!l[Le];return f.length!==mi(l).length+(L?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 f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&Ft(3,JSON.stringify(Yr(s)))}var a={};o0("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,b){if(m){for(var O=Array(b.length),C=0;C<b.length;C++)Object.defineProperty(O,""+C,r(C,!0));return O}var L=Yh(b);delete L[Le];for(var D=mi(L),B=0;B<D.length;B++){var z=D[B];L[z]=r(z,m||!!L[z].enumerable)}return Object.create(Object.getPrototypeOf(b),L)}(d,s),g={i:d?5:4,A:l?l.A:Lc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Le,{value:g,writable:!0}),f},S:function(s,l,d){d?$r(l)&&l[Le].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[Le];if(m){var b=m.t,O=m.k,C=m.R,L=m.i;if(L===4)ko(O,function(E){E!==Le&&(b[E]!==void 0||hi(b,E)?C[E]||f(O[E]):(C[E]=!0,Qr(m)))}),ko(b,function(E){O[E]!==void 0||hi(O,E)||(C[E]=!1,Qr(m))});else if(L===5){if(i(m)&&(Qr(m),C.length=!0),O.length<b.length)for(var D=O.length;D<b.length;D++)C[D]=!1;else for(var B=b.length;B<O.length;B++)C[B]=!0;for(var z=Math.min(O.length,b.length),k=0;k<z;k++)O.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&f(O[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var Wh,Sn,Dc,a0,s0,Vh,Zh,jh,Le,l0,mi,Yh,$c,Cn,vn,c0,At,d0,JR,eA,tA,rA,oA,iA,va,Sa=p(()=>{Dc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",a0=typeof Map<"u",s0=typeof Set<"u",Vh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zh=Dc?Symbol.for("immer-nothing"):((Wh={})["immer-nothing"]=!0,Wh),jh=Dc?Symbol.for("immer-draftable"):"__$immer_draftable",Le=Dc?Symbol.for("immer-state"):"__$immer_state",l0=""+Object.prototype.constructor,mi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Yh=Object.getOwnPropertyDescriptors||function(r){var e={};return mi(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},$c={},Cn={get:function(r,e){if(e===Le)return r;var t=Yr(r);if(!hi(t,e))return function(n,a,s){var l,d=zh(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||!Xt(i)?i:i===Ac(r.t,e)?(Ic(r),r.o[e]=_c(r.A.h,i,r)):i},has:function(r,e){return e in Yr(r)},ownKeys:function(r){return Reflect.ownKeys(Yr(r))},set:function(r,e,t){var i=zh(Yr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ac(Yr(r),e),a=n?.[Le];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Kh(t,n)&&(t!==void 0||hi(r.t,e)))return!0;Ic(r),Qr(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 Ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ic(r),Qr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Yr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){Ft(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Ft(12)}},vn={};ko(Cn,function(r,e){vn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vn.deleteProperty=function(r,e){return vn.set.call(this,r,e,void 0)},vn.set=function(r,e,t){return Cn.set.call(this,r[0],e,t,r[0])};c0=function(){function r(t){var i=this;this.O=Vh,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(L){var D=this;L===void 0&&(L=l);for(var B=arguments.length,z=Array(B>1?B-1:0),k=1;k<B;k++)z[k-1]=arguments[k];return d.produce(L,function(E){var _;return(_=a).call.apply(_,[D,E].concat(z))})}}var f;if(typeof a!="function"&&Ft(6),s!==void 0&&typeof s!="function"&&Ft(7),Xt(n)){var g=Mh(i),m=_c(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ya(g):kc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(L){return Ec(g,s),Rc(L,g)},function(L){throw ya(g),L}):(Ec(g,s),Rc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Zh&&(f=void 0),i.D&&Fc(f,!0),s){var O=[],C=[];dr("Patches").M(n,f,O,C),s(O,C)}return f}Ft(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(O){return n.apply(void 0,[O].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,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){Xt(t)||Ft(8),$r(t)&&(t=n0(t));var i=Mh(this),n=_c(this,t,void 0);return n[Le].C=!0,kc(i),n},e.finishDraft=function(t,i){var n=t&&t[Le],a=n.A;return Ec(a,i),Rc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vh&&Ft(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=dr("Patches").$;return $r(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),At=new c0,d0=At.produce,JR=At.produceWithPatches.bind(At),eA=At.setAutoFreeze.bind(At),tA=At.setUseProxies.bind(At),rA=At.applyPatches.bind(At),oA=At.createDraft.bind(At),iA=At.finishDraft.bind(At),va=d0});function _o(r){"@babel/helpers - typeof";return _o=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},_o(r)}var Mc=p(()=>{});function Qh(r,e){if(_o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(_o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Xh=p(()=>{Mc()});function Jh(r){var e=Qh(r,"string");return _o(e)=="symbol"?e:e+""}var em=p(()=>{Mc();Xh()});function tm(r,e,t){return(e=Jh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rm=p(()=>{em()});function om(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 Uc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?om(Object(t),!0).forEach(function(i){tm(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):om(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var im=p(()=>{rm()});function nt(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. "}function p0(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 Hc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(nt(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(nt(1));return t(Hc)(r,e)}if(typeof r!="function")throw new Error(nt(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(nt(3));return a}function m(L){if(typeof L!="function")throw new Error(nt(4));if(d)throw new Error(nt(5));var D=!0;return f(),l.push(L),function(){if(D){if(d)throw new Error(nt(6));D=!1,f();var z=l.indexOf(L);l.splice(z,1),s=null}}}function b(L){if(!p0(L))throw new Error(nt(7));if(typeof L.type>"u")throw new Error(nt(8));if(d)throw new Error(nt(9));try{d=!0,a=n(a,L)}finally{d=!1}for(var D=s=l,B=0;B<D.length;B++){var z=D[B];z()}return L}function O(L){if(typeof L!="function")throw new Error(nt(10));n=L,b({type:Ca.REPLACE})}function C(){var L,D=m;return L={subscribe:function(z){if(typeof z!="object"||z===null)throw new Error(nt(11));function k(){z.next&&z.next(g())}k();var E=D(k);return{unsubscribe:E}}},L[nm]=function(){return this},L}return b({type:Ca.INIT}),i={dispatch:b,subscribe:m,getState:g,replaceReducer:O},i[nm]=C,i}function u0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Ca.INIT});if(typeof i>"u")throw new Error(nt(12));if(typeof t(void 0,{type:Ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function am(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{u0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,O={},C=0;C<a.length;C++){var L=a[C],D=t[L],B=f[L],z=D(B,g);if(typeof z>"u"){var k=g&&g.type;throw new Error(nt(14))}O[L]=z,b=b||z!==B}return b=b||a.length!==Object.keys(f).length,b?O:f}}function yi(){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 sm(){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(nt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=yi.apply(void 0,l)(n.dispatch),Uc(Uc({},n),{},{dispatch:a})}}}var nm,zc,Ca,Oa=p(()=>{im();nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ca={INIT:"@@redux/INIT"+zc(),REPLACE:"@@redux/REPLACE"+zc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zc()}}});function lm(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 cm,Wc,dm=p(()=>{cm=lm();cm.withExtraArgument=lm;Wc=cm});function S0(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}function Kc(r){return Xt(r)?va(r,function(){}):r}function w0(r){return typeof r=="boolean"}function E0(){return function(e){return R0(e)}}function R0(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 C0;if(t&&(w0(t)?l.push(Wc):l.push(Wc.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function gm(r){var e=E0(),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,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,b=m===void 0?void 0:m,O;if(typeof n=="function")O=n;else if(S0(n))O=am(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 C=s;if(typeof C=="function"&&(C=C(e),!jc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!jc&&C.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=sm.apply(void 0,C),D=yi;d&&(D=v0(Xr({trace:!jc},typeof d=="object"&&d)));var B=new O0(L),z=B;Array.isArray(b)?z=bi([L],b):typeof b=="function"&&(z=b(B));var k=D.apply(void 0,z);return Hc(O,g,k)}function Jr(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 Xr(Xr({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 ym(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 A0(r){return typeof r=="function"}function I0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?ym(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(A0(r))d=function(){return Kc(r())};else{var f=Kc(r);d=function(){return f}}function g(m,b){m===void 0&&(m=d());var O=bi([a[b.type]],s.filter(function(C){var L=C.matcher;return L(b)}).map(function(C){var L=C.reducer;return L}));return O.filter(function(C){return!!C}).length===0&&(O=[l]),O.reduce(function(C,L){if(L)if($r(C)){var D=C,B=L(D,b);return B===void 0?C:B}else{if(Xt(C))return va(C,function(z){return L(z,b)});var B=L(C,b);if(B===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return C},m)}return g.getInitialState=d,g}function L0(r,e){return r+"/"+e}function bm(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:Kc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],b=L0(e,g),O,C;"reducer"in m?(O=m.reducer,C=m.prepare):O=m,a[g]=O,s[b]=O,l[g]=C?Jr(b,C):Jr(b)});function d(){var g=typeof r.extraReducers=="function"?ym(r.extraReducers):[r.extraReducers],m=g[0],b=m===void 0?{}:m,O=g[1],C=O===void 0?[]:O,L=g[2],D=L===void 0?void 0:L,B=Xr(Xr({},b),s);return I0(t,function(z){for(var k in B)z.addCase(k,B[k]);for(var E=0,_=C;E<_.length;E++){var G=_[E];z.addMatcher(G.matcher,G.reducer)}D&&z.addDefaultCase(D)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function P0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function N0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var mm,f0,bi,h0,m0,g0,pm,y0,b0,um,Xr,Vc,x0,v0,CA,C0,O0,jc,k0,_0,$0,Gc,fm,T0,RA,xm,vm,Sm,AA,IA,LA,kA,qc,_A,$A,TA,hm,PA,F0,NA,Cm=p(()=>{Sa();Oa();Oa();Oa();dm();Sa();Sa();mm=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)}}(),f0=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(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},bi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},h0=Object.defineProperty,m0=Object.defineProperties,g0=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,b0=Object.prototype.propertyIsEnumerable,um=function(r,e,t){return e in r?h0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Xr=function(r,e){for(var t in e||(e={}))y0.call(e,t)&&um(r,t,e[t]);if(pm)for(var i=0,n=pm(e);i<n.length;i++){var t=n[i];b0.call(e,t)&&um(r,t,e[t])}return r},Vc=function(r,e){return m0(r,g0(e))},x0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},v0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yi:yi.apply(null,arguments)},CA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};C0=function(r){mm(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,bi([void 0],t[0].concat(this)))):new(e.bind.apply(e,bi([void 0],t.concat(this))))},e}(Array),O0=function(r){mm(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,bi([void 0],t[0].concat(this)))):new(e.bind.apply(e,bi([void 0],t.concat(this))))},e}(Array);jc=!0;k0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=k0[Math.random()*64|0];return e},$0=["name","message","stack","code"],Gc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),fm=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),T0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=$0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},RA=function(){function r(e,t,i){var n=Jr(e+"/fulfilled",function(g,m,b,O){return{payload:g,meta:Vc(Xr({},O||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=Jr(e+"/pending",function(g,m,b){return{payload:void 0,meta:Vc(Xr({},b||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Jr(e+"/rejected",function(g,m,b,O,C){return{payload:O,error:(i&&i.serializeError||T0)(g||"Rejected"),meta:Vc(Xr({},C||{}),{arg:b,requestId:m,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,b,O){var C=i?.idGenerator?i.idGenerator(g):_0(),L=new d,D,B=!1;function z(E){D=E,L.abort()}var k=function(){return x0(this,null,function(){var E,_,G,J,ue,ce,K;return f0(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),J=(E=i?.condition)==null?void 0:E.call(i,g,{getState:b,extra:O}),N0(J)?[4,J]:[3,2];case 1:J=x.sent(),x.label=2;case 2:if(J===!1||L.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return B=!0,ue=new Promise(function(R,j){return L.signal.addEventListener("abort",function(){return j({name:"AbortError",message:D||"Aborted"})})}),m(a(C,g,(_=i?.getPendingMeta)==null?void 0:_.call(i,{requestId:C,arg:g},{getState:b,extra:O}))),[4,Promise.race([ue,Promise.resolve(t(g,{dispatch:m,getState:b,extra:O,requestId:C,signal:L.signal,abort:z,rejectWithValue:function(R,j){return new Gc(R,j)},fulfillWithValue:function(R,j){return new fm(R,j)}})).then(function(R){if(R instanceof Gc)throw R;return R instanceof fm?n(R.payload,C,g,R.meta):n(R,C,g)})])];case 3:return G=x.sent(),[3,5];case 4:return ce=x.sent(),G=ce instanceof Gc?s(null,C,g,ce.payload,ce.meta):s(ce,C,g),[3,5];case 5:return K=i&&!i.dispatchConditionRejection&&s.match(G)&&G.meta.condition,K||m(G),[2,G]}})})}();return Object.assign(k,{abort:z,requestId:C,arg:g,unwrap:function(){return k.then(P0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();xm="listener",vm="completed",Sm="cancelled",AA="task-"+Sm,IA="task-"+vm,LA=xm+"-"+Sm,kA=xm+"-"+vm,qc="listenerMiddleware",_A=Jr(qc+"/add"),$A=Jr(qc+"/removeAll"),TA=Jr(qc+"/remove"),PA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(hm||(hm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},F0=function(r){return function(e){setTimeout(e,r)}},NA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:F0(10);qh()});function B0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))fi(e)&&e.clear()}var Tr,Om=p(()=>{"use strict";Cm();ga();wc();ai();window.ftReduxStores||(window.ftReduxStores={});Tr=class r extends Rr{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(fi(a))return a;if(n==null)return;let s=bm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=gm({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new bn;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,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),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 xi(r,e,t){return new wa(r,e,t).watch()}var wa,wm=p(()=>{"use strict";yt();wa=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);Co(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}}});var Zc={};ne(Zc,{FtCommandQueue:()=>bn,FtLitElementRedux:()=>Qt,FtReduxStore:()=>Tr,ReduxWatcher:()=>wa,clearAllStores:()=>B0,isFtReduxStore:()=>fi,redux:()=>ve,reduxEventListener:()=>e0,reduxReactive:()=>Jv,watch:()=>xi,withRedux:()=>Bh});var Ea=p(()=>{"use strict";Fh();wc();Dh();Om();ga();wm()});var Jc={};ne(Jc,{scrollHelper:()=>Xc});var Yc,Ra,Qc,Xc,ed=p(()=>{"use strict";yt();Ra=new Map,Qc=class{lock(e,t){if(t){let i=Ra.get(t);if(i==null||i===e)return Ra.set(t,e),t}}release(e,t){t&&Ra.get(t)===e&&Ra.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of el(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=Oo(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=(Yc=window.FluidTopicsScrollHelper)!==null&&Yc!==void 0?Yc:new Qc;Xc=window.FluidTopicsScrollHelper});var Rm=wx((eo,Em)=>{var Aa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ia=function(){function r(){this.fetch=!1,this.DOMException=Aa.DOMException}return r.prototype=Aa,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(x){return x&&DataView.prototype.isPrototypeOf(x)}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(x){return x&&s.indexOf(Object.prototype.toString.call(x))>-1};function d(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(x)||x==="")throw new TypeError('Invalid character in header field name: "'+x+'"');return x.toLowerCase()}function f(x){return typeof x!="string"&&(x=String(x)),x}function g(x){var R={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return n.iterable&&(R[Symbol.iterator]=function(){return R}),R}function m(x){this.map={},x instanceof m?x.forEach(function(R,j){this.append(j,R)},this):Array.isArray(x)?x.forEach(function(R){if(R.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+R.length);this.append(R[0],R[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(R){this.append(R,x[R])},this)}m.prototype.append=function(x,R){x=d(x),R=f(R);var j=this.map[x];this.map[x]=j?j+", "+R:R},m.prototype.delete=function(x){delete this.map[d(x)]},m.prototype.get=function(x){return x=d(x),this.has(x)?this.map[x]:null},m.prototype.has=function(x){return this.map.hasOwnProperty(d(x))},m.prototype.set=function(x,R){this.map[d(x)]=f(R)},m.prototype.forEach=function(x,R){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(R,this.map[j],j,this)},m.prototype.keys=function(){var x=[];return this.forEach(function(R,j){x.push(j)}),g(x)},m.prototype.values=function(){var x=[];return this.forEach(function(R){x.push(R)}),g(x)},m.prototype.entries=function(){var x=[];return this.forEach(function(R,j){x.push([j,R])}),g(x)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(x){if(!x._noBody){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}}function O(x){return new Promise(function(R,j){x.onload=function(){R(x.result)},x.onerror=function(){j(x.error)}})}function C(x){var R=new FileReader,j=O(R);return R.readAsArrayBuffer(x),j}function L(x){var R=new FileReader,j=O(R),he=/charset=([A-Za-z0-9_-]+)/.exec(x.type),we=he?he[1]:"utf-8";return R.readAsText(x,we),j}function D(x){for(var R=new Uint8Array(x),j=new Array(R.length),he=0;he<R.length;he++)j[he]=String.fromCharCode(R[he]);return j.join("")}function B(x){if(x.slice)return x.slice(0);var R=new Uint8Array(x.byteLength);return R.set(new Uint8Array(x)),R.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(x){this.bodyUsed=this.bodyUsed,this._bodyInit=x,x?typeof x=="string"?this._bodyText=x:n.blob&&Blob.prototype.isPrototypeOf(x)?this._bodyBlob=x:n.formData&&FormData.prototype.isPrototypeOf(x)?this._bodyFormData=x:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)?this._bodyText=x.toString():n.arrayBuffer&&n.blob&&a(x)?(this._bodyArrayBuffer=B(x.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(x)||l(x))?this._bodyArrayBuffer=B(x):this._bodyText=x=Object.prototype.toString.call(x):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof x=="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(x)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var x=b(this);if(x)return x;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 x=b(this);return x||(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(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var x=b(this);if(x)return x;if(this._bodyBlob)return L(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(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(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(x){var R=x.toUpperCase();return k.indexOf(R)>-1?R:x}function _(x,R){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var j=R.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,R.headers||(this.headers=new m(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new m(R.headers)),this.method=E(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var he=/([?&])_=[^&]*/;if(he.test(this.url))this.url=this.url.replace(he,"$1_="+new Date().getTime());else{var we=/\?/;this.url+=(we.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function G(x){var R=new FormData;return x.trim().split("&").forEach(function(j){if(j){var he=j.split("="),we=he.shift().replace(/\+/g," "),de=he.join("=").replace(/\+/g," ");R.append(decodeURIComponent(we),decodeURIComponent(de))}}),R}function J(x){var R=new m,j=x.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(he){return he.indexOf(`
|
|
48
|
-
`)===0?he.substr(1,he.length):he}).forEach(function(he){var we=he.split(":"),de=we.shift().trim();if(de){var Un=we.join(":").trim();try{R.append(de,Un)}catch(Is){console.warn("Response "+Is.message)}}}),R}z.call(_.prototype);function ue(x,R){if(!(this instanceof ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(R||(R={}),this.type="default",this.status=R.status===void 0?200:R.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=R.statusText===void 0?"":""+R.statusText,this.headers=new m(R.headers),this.url=R.url||"",this._initBody(x)}z.call(ue.prototype),ue.prototype.clone=function(){return new ue(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},ue.error=function(){var x=new ue(null,{status:200,statusText:""});return x.ok=!1,x.status=0,x.type="error",x};var ce=[301,302,303,307,308];ue.redirect=function(x,R){if(ce.indexOf(R)===-1)throw new RangeError("Invalid status code");return new ue(null,{status:R,headers:{location:x}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(R,j){this.message=R,this.name=j;var he=Error(R);this.stack=he.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function K(x,R){return new Promise(function(j,he){var we=new _(x,R);if(we.signal&&we.signal.aborted)return he(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function Un(){de.abort()}de.onload=function(){var Xe={statusText:de.statusText,headers:J(de.getAllResponseHeaders()||"")};we.url.indexOf("file://")===0&&(de.status<200||de.status>599)?Xe.status=200:Xe.status=de.status,Xe.url="responseURL"in de?de.responseURL:Xe.headers.get("X-Request-URL");var ho="response"in de?de.response:de.responseText;setTimeout(function(){j(new ue(ho,Xe))},0)},de.onerror=function(){setTimeout(function(){he(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){he(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){he(new t.DOMException("Aborted","AbortError"))},0)};function Is(Xe){try{return Xe===""&&i.location.href?i.location.href:Xe}catch{return Xe}}if(de.open(we.method,Is(we.url),!0),we.credentials==="include"?de.withCredentials=!0:we.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof m||i.Headers&&R.headers instanceof i.Headers)){var _u=[];Object.getOwnPropertyNames(R.headers).forEach(function(Xe){_u.push(d(Xe)),de.setRequestHeader(Xe,f(R.headers[Xe]))}),we.headers.forEach(function(Xe,ho){_u.indexOf(ho)===-1&&de.setRequestHeader(ho,Xe)})}else we.headers.forEach(function(Xe,ho){de.setRequestHeader(ho,Xe)});we.signal&&(we.signal.addEventListener("abort",Un),de.onreadystatechange=function(){de.readyState===4&&we.signal.removeEventListener("abort",Un)}),de.send(typeof we._bodyInit>"u"?null:we._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=m,i.Request=_,i.Response=ue),t.Headers=m,t.Request=_,t.Response=ue,t.fetch=K,t}({})})(Ia);Ia.fetch.ponyfill=!0;delete Ia.fetch.polyfill;var vi=Aa.fetch?Aa:Ia;eo=vi.fetch;eo.default=vi.fetch;eo.fetch=vi.fetch;eo.Headers=vi.Headers;eo.Request=vi.Request;eo.Response=vi.Response;Em.exports=eo});var td=p(()=>{});var Am,Im,Lm,Si,km,_m,$o,$m,Tm,Pm,Nm,Fm,Bm,Dm,Mm,Um,To,Vm,zm,La,Hm,Ci,jm,Bt,Oi,Wm,We,Po,rd=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Am||(Am={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Im||(Im={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Lm||(Lm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Si||(Si={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(km||(km={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(_m||(_m={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})($o||($o={}));(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"})($m||($m={}));(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",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Tm||(Tm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Pm||(Pm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Nm||(Nm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Fm||(Fm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Bm||(Bm={}));(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"})(Dm||(Dm={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Mm||(Mm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Um||(Um={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(To||(To={}));Vm=r=>Object.keys(To).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(zm||(zm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(La||(La={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Hm||(Hm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ci||(Ci={}));jm=r=>Object.keys(Ci).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Bt||(Bt={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Oi||(Oi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wm||(Wm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(We||(We={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Po||(Po={}))});var Gm,Km,qm,Zm,Ym=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Gm||(Gm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Km||(Km={}));(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(qm||(qm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Zm||(Zm={}))});function Qm(r,e){return r===e||(D0[r]??[]).some(t=>Qm(t,e))}function Xm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Qm(i,e))}var D0,Jm=p(()=>{rd();D0={[We.PERSONAL_BOOK_SHARE_USER]:[We.PERSONAL_BOOK_USER],[We.HTML_EXPORT_USER]:[We.PERSONAL_BOOK_USER],[We.PDF_EXPORT_USER]:[We.PERSONAL_BOOK_USER],[We.KHUB_ADMIN]:[We.CONTENT_PUBLISHER],[We.ADMIN]:[We.KHUB_ADMIN,We.USERS_ADMIN,We.PORTAL_ADMIN],[We.GENERATIVE_AI_EXPORT_USER]:[We.GENERATIVE_AI_USER]}});var eg=p(()=>{});var M0,to=p(()=>{M0=Rx(Rm(),1);td();rd();Ym();Jm();eg();td()});var od={};ne(od,{SearchPlaceConverter:()=>ro,SearchPlaceQueryParams:()=>Se,isSearchPlaceQueryParams:()=>rg,serializeRequest:()=>z0});function U0(r){return`"${r}"`}function tg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function z0(r,e){return new ro(r).serialize(e)}function rg(r){return H0.has(r)}var Se,H0,ro,id=p(()=>{"use strict";to();yt();(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"})(Se||(Se={}));H0=new Set(Object.values(Se));ro=class{constructor(e,t=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=i,this.defaultContentLocale=n,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=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,b,O;let C=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&C.append(Se.LOCALE,e.contentLocale):C.append(Se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&C.append(Se.QUERY,e.query);let L=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(E=>E.valueFilter&&!E.valueFilter.negative))!==null&&a!==void 0?a:[];if(L.length>0){let E=L.map(_=>{var G,J;let ue=((J=(G=_.valueFilter)===null||G===void 0?void 0:G.values)!==null&&J!==void 0?J:[]).map(ce=>this.escapeFilters(ce)).map(ce=>U0(tg(ce))).join("_");return`${_.key}~${ue}`}).join("*");C.append(Se.VALUE_FILTERS,E)}let D=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(D.length>0){let E=D.map(_=>{var G;return`${_.key}~${(G=_.dateFilter)===null||G===void 0?void 0:G.type.toLowerCase()}`}).join("*");C.append(Se.DATE_FILTERS,E)}let B=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&f!==void 0?f:[];if(B.length>0){let E=B.map(_=>{var G,J;return`${_.key}~${(G=_.rangeFilter)===null||G===void 0?void 0:G.from}_${(J=_.rangeFilter)===null||J===void 0?void 0:J.to}`}).join("*");C.append(Se.RANGE_FILTERS,E)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(Se.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Se.PER_PAGE,String(e.paging.perPage));let z=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let E in z)C.append(E,z[E]);let k=new Array;return C.forEach((E,_)=>{k.push(this.encodeQueryString(_)+"="+this.encodeQueryString(E))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),f=d.get(Se.LOCALE)==="all"?void 0:d.get(Se.LOCALE),g=((t=d.get(Se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(i=d.get(Se.SORT))===null||i===void 0?void 0:i.toLowerCase(),b=(n=d.get(Se.SCOPE))!==null&&n!==void 0?n:"default",O=+((a=d.get(Se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let L of d.keys())rg(L)||(C[L]=d.get(L));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Se.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Vm(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Oo(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(Se.FILTERS)&&(d=this.parseValueFilters((t=e.get(Se.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(Se.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(Se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(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(tg).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Ci[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(jm(e))return[{key:"ft:lastEdition",dateFilter:{type:Ci[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var sd={};ne(sd,{toFtFormComponent:()=>ad});var nd,ad,ld=p(()=>{"use strict";yt();nd=Symbol("elementInternals"),ad=Ne(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[nd].form}constructor(...i){super(i),this[nd]=this.attachInternals()}setFormValue(i){this[nd].setFormValue(i)}}return e})});var cd={};ne(cd,{DateFormatter:()=>No});var No,ka=p(()=>{"use strict";No=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,t,i,n)}static getMomentDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(t,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var pd={};ne(pd,{ALL_KEYS_VALUE:()=>dd,SameWindowStorageEvent:()=>wi});var dd,wi,ud=p(()=>{"use strict";dd="__all__",wi=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dd}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new wi(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new wi(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new wi(dd))}})});var hd={};ne(hd,{FocusMainContentEvent:()=>fd});var fd,md=p(()=>{"use strict";fd=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var og={};function W0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function V0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var gd=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",W0);document.addEventListener("click",V0)});var Ei,yd=p(()=>{"use strict";P();Ei=A`
|
|
47
|
+
`});var Nh={};var Sc=p(()=>{"use strict"});var Cc={};ne(Cc,{ParametrizedLabelResolver:()=>Qr});var Qr,Oc=p(()=>{"use strict";Qr=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 e0,ve,t0,Fh=p(()=>{"use strict";yt();Y();e0=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},ve=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Ar,attribute:!1,...e};h(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})}},t0=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)}});var xn,wc=p(()=>{"use strict";xn=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(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}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function hi(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ga=p(()=>{"use strict"});var vn,Xr,_o,Bh,Xt,Dh=p(()=>{"use strict";mn();ga();yt();vn=Symbol("internalReduxEventsUnsubscribers"),Xr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),Bh=Ne(Symbol("withRedux"),function(r){var e,t,i;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Xr].has(s.store):this[Xr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Xr].set(s,l.subscribe(()=>this.updateFromStores())),this[vn].set(s,[]),hi(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=b=>this[g](b);l.addEventListener(f.eventName,m),this[vn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Xr].has(s)&&this[Xr].get(s)(),this[Xr].delete(s),(l=this[vn].get(s))===null||l===void 0||l.forEach(d=>d()),this[vn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xr,t=_o,i=vn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Xt=class extends Bh(W){}});function Dt(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 Pr(r){return!!r&&!!r[ke]}function Jt(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)===c0}(r)||Array.isArray(r)||!!r[jh]||!!(!((e=r.constructor)===null||e===void 0)&&e[jh])||Tc(r)||Pc(r))}function $o(r,e,t){t===void 0&&(t=!1),yi(r)===0?(t?Object.keys:gi)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function yi(r){var e=r[ke];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Tc(r)?2:Pc(r)?3:0}function mi(r,e){return yi(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function r0(r,e){return yi(r)===2?r.get(e):r[e]}function Gh(r,e,t){var i=yi(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Kh(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Tc(r){return s0&&r instanceof Map}function Pc(r){return l0&&r instanceof Set}function Jr(r){return r.o||r.t}function Nc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Yh(r);delete e[ke];for(var t=gi(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 Fc(r,e){return e===void 0&&(e=!1),Bc(r)||Pr(r)||!Jt(r)||(yi(r)>1&&(r.set=r.add=r.clear=r.delete=o0),Object.freeze(r),e&&$o(r,function(t,i){return Fc(i,!0)},!0)),r}function o0(){Dt(2)}function Bc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ur(r){var e=$c[r];return e||Dt(18,r),e}function i0(r,e){$c[r]||($c[r]=e)}function Ic(){return Cn}function Ec(r,e){e&&(ur("Patches"),r.u=[],r.s=[],r.v=e)}function ya(r){kc(r),r.p.forEach(n0),r.p=null}function kc(r){r===Cn&&(Cn=r.l)}function Mh(r){return Cn={p:[],l:Cn,h:r,m:!0,_:0}}function n0(r){var e=r[ke];e.i===0||e.i===1?e.j():e.g=!0}function Rc(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||ur("ES5").S(e,r,i),i?(t[ke].P&&(ya(e),Dt(4)),Jt(r)&&(r=ba(e,r),e.l||xa(e,r)),e.u&&ur("Patches").M(t[ke].t,r,e.u,e.s)):r=ba(e,t,[]),ya(e),e.u&&e.v(e.u,e.s),r!==Zh?r:void 0}function ba(r,e,t){if(Bc(e))return e;var i=e[ke];if(!i)return $o(e,function(l,d){return Uh(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return xa(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Nc(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),$o(a,function(l,d){return Uh(r,i,n,l,d,t,s)}),xa(r,n,!1),t&&r.u&&ur("Patches").N(i,t,r.u,r.s)}return i.o}function Uh(r,e,t,i,n,a,s){if(Pr(n)){var l=ba(r,n,a&&e&&e.i!==3&&!mi(e.R,i)?a.concat(i):void 0);if(Gh(t,i,l),!Pr(l))return;r.m=!1}else s&&t.add(n);if(Jt(n)&&!Bc(n)){if(!r.h.D&&r._<1)return;ba(r,n),e&&e.A.l||xa(r,n)}}function xa(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Fc(e,t)}function Ac(r,e){var t=r[ke];return(t?Jr(t):r)[e]}function zh(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 eo(r){r.P||(r.P=!0,r.l&&eo(r.l))}function Lc(r){r.o||(r.o=Nc(r.t))}function _c(r,e,t){var i=Tc(e)?ur("MapSet").F(e,t):Pc(e)?ur("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ic(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=On;s&&(d=[l],f=Sn);var g=Proxy.revocable(d,f),m=g.revoke,b=g.proxy;return l.k=b,l.j=m,b}(e,t):ur("ES5").J(e,t);return(t?t.A:Ic()).p.push(i),i}function a0(r){return Pr(r)||Dt(22,r),function e(t){if(!Jt(t))return t;var i,n=t[ke],a=yi(t);if(n){if(!n.P&&(n.i<4||!ur("ES5").K(n)))return n.t;n.I=!0,i=Hh(t,a),n.I=!1}else i=Hh(t,a);return $o(i,function(s,l){n&&r0(n.t,s)===l||Gh(i,s,e(l))}),a===3?new Set(i):i}(r)}function Hh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Nc(r)}function qh(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[ke];return On.get(f,s)},set:function(f){var g=this[ke];On.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ke];if(!d.P)switch(d.i){case 5:i(d)&&eo(d);break;case 4:t(d)&&eo(d)}}}function t(s){for(var l=s.t,d=s.k,f=gi(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==ke){var b=l[m];if(b===void 0&&!mi(l,m))return!0;var O=d[m],C=O&&O[ke];if(C?C.t!==b:!Kh(O,b))return!0}}var I=!!l[ke];return f.length!==gi(l).length+(I?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 f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&Dt(3,JSON.stringify(Jr(s)))}var a={};i0("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(m,b){if(m){for(var O=Array(b.length),C=0;C<b.length;C++)Object.defineProperty(O,""+C,r(C,!0));return O}var I=Yh(b);delete I[ke];for(var D=gi(I),B=0;B<D.length;B++){var z=D[B];I[z]=r(z,m||!!I[z].enumerable)}return Object.create(Object.getPrototypeOf(b),I)}(d,s),g={i:d?5:4,A:l?l.A:Ic(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ke,{value:g,writable:!0}),f},S:function(s,l,d){d?Pr(l)&&l[ke].A===s&&e(s.p):(s.u&&function f(g){if(g&&typeof g=="object"){var m=g[ke];if(m){var b=m.t,O=m.k,C=m.R,I=m.i;if(I===4)$o(O,function(E){E!==ke&&(b[E]!==void 0||mi(b,E)?C[E]||f(O[E]):(C[E]=!0,eo(m)))}),$o(b,function(E){O[E]!==void 0||mi(O,E)||(C[E]=!1,eo(m))});else if(I===5){if(i(m)&&(eo(m),C.length=!0),O.length<b.length)for(var D=O.length;D<b.length;D++)C[D]=!1;else for(var B=b.length;B<O.length;B++)C[B]=!0;for(var z=Math.min(O.length,b.length),k=0;k<z;k++)O.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&f(O[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var Wh,Cn,Dc,s0,l0,Vh,Zh,jh,ke,c0,gi,Yh,$c,On,Sn,d0,Lt,p0,eA,tA,rA,oA,iA,nA,va,Sa=p(()=>{Dc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",s0=typeof Map<"u",l0=typeof Set<"u",Vh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zh=Dc?Symbol.for("immer-nothing"):((Wh={})["immer-nothing"]=!0,Wh),jh=Dc?Symbol.for("immer-draftable"):"__$immer_draftable",ke=Dc?Symbol.for("immer-state"):"__$immer_state",c0=""+Object.prototype.constructor,gi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Yh=Object.getOwnPropertyDescriptors||function(r){var e={};return gi(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},$c={},On={get:function(r,e){if(e===ke)return r;var t=Jr(r);if(!mi(t,e))return function(n,a,s){var l,d=zh(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||!Jt(i)?i:i===Ac(r.t,e)?(Lc(r),r.o[e]=_c(r.A.h,i,r)):i},has:function(r,e){return e in Jr(r)},ownKeys:function(r){return Reflect.ownKeys(Jr(r))},set:function(r,e,t){var i=zh(Jr(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ac(Jr(r),e),a=n?.[ke];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Kh(t,n)&&(t!==void 0||mi(r.t,e)))return!0;Lc(r),eo(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 Ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Lc(r),eo(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Jr(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){Dt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Dt(12)}},Sn={};$o(On,function(r,e){Sn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Sn.deleteProperty=function(r,e){return Sn.set.call(this,r,e,void 0)},Sn.set=function(r,e,t){return On.set.call(this,r[0],e,t,r[0])};d0=function(){function r(t){var i=this;this.O=Vh,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(I){var D=this;I===void 0&&(I=l);for(var B=arguments.length,z=Array(B>1?B-1:0),k=1;k<B;k++)z[k-1]=arguments[k];return d.produce(I,function(E){var _;return(_=a).call.apply(_,[D,E].concat(z))})}}var f;if(typeof a!="function"&&Dt(6),s!==void 0&&typeof s!="function"&&Dt(7),Jt(n)){var g=Mh(i),m=_c(i,n,void 0),b=!0;try{f=a(m),b=!1}finally{b?ya(g):kc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(I){return Ec(g,s),Rc(I,g)},function(I){throw ya(g),I}):(Ec(g,s),Rc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Zh&&(f=void 0),i.D&&Fc(f,!0),s){var O=[],C=[];ur("Patches").M(n,f,O,C),s(O,C)}return f}Dt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];return i.produceWithPatches(f,function(O){return n.apply(void 0,[O].concat(m))})};var s,l,d=i.produce(n,a,function(f,g){s=f,l=g});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,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){Jt(t)||Dt(8),Pr(t)&&(t=a0(t));var i=Mh(this),n=_c(this,t,void 0);return n[ke].C=!0,kc(i),n},e.finishDraft=function(t,i){var n=t&&t[ke],a=n.A;return Ec(a,i),Rc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vh&&Dt(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=ur("Patches").$;return Pr(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Lt=new d0,p0=Lt.produce,eA=Lt.produceWithPatches.bind(Lt),tA=Lt.setAutoFreeze.bind(Lt),rA=Lt.setUseProxies.bind(Lt),oA=Lt.applyPatches.bind(Lt),iA=Lt.createDraft.bind(Lt),nA=Lt.finishDraft.bind(Lt),va=p0});function To(r){"@babel/helpers - typeof";return To=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},To(r)}var Mc=p(()=>{});function Qh(r,e){if(To(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(To(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Xh=p(()=>{Mc()});function Jh(r){var e=Qh(r,"string");return To(e)=="symbol"?e:e+""}var em=p(()=>{Mc();Xh()});function tm(r,e,t){return(e=Jh(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rm=p(()=>{em()});function om(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 Uc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?om(Object(t),!0).forEach(function(i){tm(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):om(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}var im=p(()=>{rm()});function at(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. "}function u0(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 Hc(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(at(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(at(1));return t(Hc)(r,e)}if(typeof r!="function")throw new Error(at(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(at(3));return a}function m(I){if(typeof I!="function")throw new Error(at(4));if(d)throw new Error(at(5));var D=!0;return f(),l.push(I),function(){if(D){if(d)throw new Error(at(6));D=!1,f();var z=l.indexOf(I);l.splice(z,1),s=null}}}function b(I){if(!u0(I))throw new Error(at(7));if(typeof I.type>"u")throw new Error(at(8));if(d)throw new Error(at(9));try{d=!0,a=n(a,I)}finally{d=!1}for(var D=s=l,B=0;B<D.length;B++){var z=D[B];z()}return I}function O(I){if(typeof I!="function")throw new Error(at(10));n=I,b({type:Ca.REPLACE})}function C(){var I,D=m;return I={subscribe:function(z){if(typeof z!="object"||z===null)throw new Error(at(11));function k(){z.next&&z.next(g())}k();var E=D(k);return{unsubscribe:E}}},I[nm]=function(){return this},I}return b({type:Ca.INIT}),i={dispatch:b,subscribe:m,getState:g,replaceReducer:O},i[nm]=C,i}function f0(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Ca.INIT});if(typeof i>"u")throw new Error(at(12));if(typeof t(void 0,{type:Ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(at(13))})}function am(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{f0(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var b=!1,O={},C=0;C<a.length;C++){var I=a[C],D=t[I],B=f[I],z=D(B,g);if(typeof z>"u"){var k=g&&g.type;throw new Error(at(14))}O[I]=z,b=b||z!==B}return b=b||a.length!==Object.keys(f).length,b?O:f}}function bi(){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 sm(){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(at(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=bi.apply(void 0,l)(n.dispatch),Uc(Uc({},n),{},{dispatch:a})}}}var nm,zc,Ca,Oa=p(()=>{im();nm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ca={INIT:"@@redux/INIT"+zc(),REPLACE:"@@redux/REPLACE"+zc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zc()}}});function lm(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 cm,Wc,dm=p(()=>{cm=lm();cm.withExtraArgument=lm;Wc=cm});function C0(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}function Kc(r){return Jt(r)?va(r,function(){}):r}function E0(r){return typeof r=="boolean"}function R0(){return function(e){return A0(e)}}function A0(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 O0;if(t&&(E0(t)?l.push(Wc):l.push(Wc.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var f}return l}function gm(r){var e=R0(),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,f=t.preloadedState,g=f===void 0?void 0:f,m=t.enhancers,b=m===void 0?void 0:m,O;if(typeof n=="function")O=n;else if(C0(n))O=am(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 C=s;if(typeof C=="function"&&(C=C(e),!jc&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!jc&&C.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var I=sm.apply(void 0,C),D=bi;d&&(D=S0(to({trace:!jc},typeof d=="object"&&d)));var B=new w0(I),z=B;Array.isArray(b)?z=xi([I],b):typeof b=="function"&&(z=b(B));var k=D.apply(void 0,z);return Hc(O,g,k)}function ro(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 to(to({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 ym(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 L0(r){return typeof r=="function"}function I0(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?ym(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(L0(r))d=function(){return Kc(r())};else{var f=Kc(r);d=function(){return f}}function g(m,b){m===void 0&&(m=d());var O=xi([a[b.type]],s.filter(function(C){var I=C.matcher;return I(b)}).map(function(C){var I=C.reducer;return I}));return O.filter(function(C){return!!C}).length===0&&(O=[l]),O.reduce(function(C,I){if(I)if(Pr(C)){var D=C,B=I(D,b);return B===void 0?C:B}else{if(Jt(C))return va(C,function(z){return I(z,b)});var B=I(C,b);if(B===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return B}return C},m)}return g.getInitialState=d,g}function k0(r,e){return r+"/"+e}function bm(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:Kc(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(g){var m=i[g],b=k0(e,g),O,C;"reducer"in m?(O=m.reducer,C=m.prepare):O=m,a[g]=O,s[b]=O,l[g]=C?ro(b,C):ro(b)});function d(){var g=typeof r.extraReducers=="function"?ym(r.extraReducers):[r.extraReducers],m=g[0],b=m===void 0?{}:m,O=g[1],C=O===void 0?[]:O,I=g[2],D=I===void 0?void 0:I,B=to(to({},b),s);return I0(t,function(z){for(var k in B)z.addCase(k,B[k]);for(var E=0,_=C;E<_.length;E++){var G=_[E];z.addMatcher(G.matcher,G.reducer)}D&&z.addDefaultCase(D)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function N0(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function F0(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var mm,h0,xi,m0,g0,y0,pm,b0,x0,um,to,Vc,v0,S0,OA,O0,w0,jc,_0,$0,T0,Gc,fm,P0,AA,xm,vm,Sm,LA,IA,kA,_A,qc,$A,TA,PA,hm,NA,B0,FA,Cm=p(()=>{Sa();Oa();Oa();Oa();dm();Sa();Sa();mm=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)}}(),h0=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(f){return function(g){return d([f,g])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(g){f=[6,g],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},xi=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},m0=Object.defineProperty,g0=Object.defineProperties,y0=Object.getOwnPropertyDescriptors,pm=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,um=function(r,e,t){return e in r?m0(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},to=function(r,e){for(var t in e||(e={}))b0.call(e,t)&&um(r,t,e[t]);if(pm)for(var i=0,n=pm(e);i<n.length;i++){var t=n[i];x0.call(e,t)&&um(r,t,e[t])}return r},Vc=function(r,e){return g0(r,y0(e))},v0=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},S0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bi:bi.apply(null,arguments)},OA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};O0=function(r){mm(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,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),w0=function(r){mm(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,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);jc=!0;_0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$0=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=_0[Math.random()*64|0];return e},T0=["name","message","stack","code"],Gc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),fm=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),P0=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=T0;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},AA=function(){function r(e,t,i){var n=ro(e+"/fulfilled",function(g,m,b,O){return{payload:g,meta:Vc(to({},O||{}),{arg:b,requestId:m,requestStatus:"fulfilled"})}}),a=ro(e+"/pending",function(g,m,b){return{payload:void 0,meta:Vc(to({},b||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=ro(e+"/rejected",function(g,m,b,O,C){return{payload:O,error:(i&&i.serializeError||P0)(g||"Rejected"),meta:Vc(to({},C||{}),{arg:b,requestId:m,rejectedWithValue:!!O,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function f(g){return function(m,b,O){var C=i?.idGenerator?i.idGenerator(g):$0(),I=new d,D,B=!1;function z(E){D=E,I.abort()}var k=function(){return v0(this,null,function(){var E,_,G,J,he,ce,K;return h0(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),J=(E=i?.condition)==null?void 0:E.call(i,g,{getState:b,extra:O}),F0(J)?[4,J]:[3,2];case 1:J=x.sent(),x.label=2;case 2:if(J===!1||I.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return B=!0,he=new Promise(function(R,j){return I.signal.addEventListener("abort",function(){return j({name:"AbortError",message:D||"Aborted"})})}),m(a(C,g,(_=i?.getPendingMeta)==null?void 0:_.call(i,{requestId:C,arg:g},{getState:b,extra:O}))),[4,Promise.race([he,Promise.resolve(t(g,{dispatch:m,getState:b,extra:O,requestId:C,signal:I.signal,abort:z,rejectWithValue:function(R,j){return new Gc(R,j)},fulfillWithValue:function(R,j){return new fm(R,j)}})).then(function(R){if(R instanceof Gc)throw R;return R instanceof fm?n(R.payload,C,g,R.meta):n(R,C,g)})])];case 3:return G=x.sent(),[3,5];case 4:return ce=x.sent(),G=ce instanceof Gc?s(null,C,g,ce.payload,ce.meta):s(ce,C,g),[3,5];case 5:return K=i&&!i.dispatchConditionRejection&&s.match(G)&&G.meta.condition,K||m(G),[2,G]}})})}();return Object.assign(k,{abort:z,requestId:C,arg:g,unwrap:function(){return k.then(N0)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();xm="listener",vm="completed",Sm="cancelled",LA="task-"+Sm,IA="task-"+vm,kA=xm+"-"+Sm,_A=xm+"-"+vm,qc="listenerMiddleware",$A=ro(qc+"/add"),TA=ro(qc+"/removeAll"),PA=ro(qc+"/remove"),NA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(hm||(hm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},B0=function(r){return function(e){setTimeout(e,r)}},FA=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:B0(10);qh()});function D0(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))hi(e)&&e.clear()}var Nr,Om=p(()=>{"use strict";Cm();ga();wc();si();window.ftReduxStores||(window.ftReduxStores={});Nr=class r extends Lr{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(hi(a))return a;if(n==null)return;let s=bm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=gm({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,i){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new xn;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,f=a[d];return f?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),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 vi(r,e,t){return new wa(r,e,t).watch()}var wa,wm=p(()=>{"use strict";yt();wa=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);Ar(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}}});var Zc={};ne(Zc,{FtCommandQueue:()=>xn,FtLitElementRedux:()=>Xt,FtReduxStore:()=>Nr,ReduxWatcher:()=>wa,clearAllStores:()=>D0,isFtReduxStore:()=>hi,redux:()=>ve,reduxEventListener:()=>t0,reduxReactive:()=>e0,watch:()=>vi,withRedux:()=>Bh});var Ea=p(()=>{"use strict";Fh();wc();Dh();Om();ga();wm()});var Jc={};ne(Jc,{scrollHelper:()=>Xc});var Yc,Ra,Qc,Xc,ed=p(()=>{"use strict";yt();Ra=new Map,Qc=class{lock(e,t){if(t){let i=Ra.get(t);if(i==null||i===e)return Ra.set(t,e),t}}release(e,t){t&&Ra.get(t)===e&&Ra.delete(t)}findFirstScrollableParent(e){var t;let i,n;for(let a of el(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=Eo(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=(Yc=window.FluidTopicsScrollHelper)!==null&&Yc!==void 0?Yc:new Qc;Xc=window.FluidTopicsScrollHelper});var Rm=Ex((oo,Em)=>{var Aa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,La=function(){function r(){this.fetch=!1,this.DOMException=Aa.DOMException}return r.prototype=Aa,new r}();(function(r){var e=function(t){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(x){return x&&DataView.prototype.isPrototypeOf(x)}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(x){return x&&s.indexOf(Object.prototype.toString.call(x))>-1};function d(x){if(typeof x!="string"&&(x=String(x)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(x)||x==="")throw new TypeError('Invalid character in header field name: "'+x+'"');return x.toLowerCase()}function f(x){return typeof x!="string"&&(x=String(x)),x}function g(x){var R={next:function(){var j=x.shift();return{done:j===void 0,value:j}}};return n.iterable&&(R[Symbol.iterator]=function(){return R}),R}function m(x){this.map={},x instanceof m?x.forEach(function(R,j){this.append(j,R)},this):Array.isArray(x)?x.forEach(function(R){if(R.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+R.length);this.append(R[0],R[1])},this):x&&Object.getOwnPropertyNames(x).forEach(function(R){this.append(R,x[R])},this)}m.prototype.append=function(x,R){x=d(x),R=f(R);var j=this.map[x];this.map[x]=j?j+", "+R:R},m.prototype.delete=function(x){delete this.map[d(x)]},m.prototype.get=function(x){return x=d(x),this.has(x)?this.map[x]:null},m.prototype.has=function(x){return this.map.hasOwnProperty(d(x))},m.prototype.set=function(x,R){this.map[d(x)]=f(R)},m.prototype.forEach=function(x,R){for(var j in this.map)this.map.hasOwnProperty(j)&&x.call(R,this.map[j],j,this)},m.prototype.keys=function(){var x=[];return this.forEach(function(R,j){x.push(j)}),g(x)},m.prototype.values=function(){var x=[];return this.forEach(function(R){x.push(R)}),g(x)},m.prototype.entries=function(){var x=[];return this.forEach(function(R,j){x.push([j,R])}),g(x)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function b(x){if(!x._noBody){if(x.bodyUsed)return Promise.reject(new TypeError("Already read"));x.bodyUsed=!0}}function O(x){return new Promise(function(R,j){x.onload=function(){R(x.result)},x.onerror=function(){j(x.error)}})}function C(x){var R=new FileReader,j=O(R);return R.readAsArrayBuffer(x),j}function I(x){var R=new FileReader,j=O(R),me=/charset=([A-Za-z0-9_-]+)/.exec(x.type),we=me?me[1]:"utf-8";return R.readAsText(x,we),j}function D(x){for(var R=new Uint8Array(x),j=new Array(R.length),me=0;me<R.length;me++)j[me]=String.fromCharCode(R[me]);return j.join("")}function B(x){if(x.slice)return x.slice(0);var R=new Uint8Array(x.byteLength);return R.set(new Uint8Array(x)),R.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(x){this.bodyUsed=this.bodyUsed,this._bodyInit=x,x?typeof x=="string"?this._bodyText=x:n.blob&&Blob.prototype.isPrototypeOf(x)?this._bodyBlob=x:n.formData&&FormData.prototype.isPrototypeOf(x)?this._bodyFormData=x:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(x)?this._bodyText=x.toString():n.arrayBuffer&&n.blob&&a(x)?(this._bodyArrayBuffer=B(x.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(x)||l(x))?this._bodyArrayBuffer=B(x):this._bodyText=x=Object.prototype.toString.call(x):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof x=="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(x)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var x=b(this);if(x)return x;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 x=b(this);return x||(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(C);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var x=b(this);if(x)return x;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(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(G)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(x){var R=x.toUpperCase();return k.indexOf(R)>-1?R:x}function _(x,R){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var j=R.body;if(x instanceof _){if(x.bodyUsed)throw new TypeError("Already read");this.url=x.url,this.credentials=x.credentials,R.headers||(this.headers=new m(x.headers)),this.method=x.method,this.mode=x.mode,this.signal=x.signal,!j&&x._bodyInit!=null&&(j=x._bodyInit,x.bodyUsed=!0)}else this.url=String(x);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new m(R.headers)),this.method=E(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal||function(){if("AbortController"in i){var de=new AbortController;return de.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var me=/([?&])_=[^&]*/;if(me.test(this.url))this.url=this.url.replace(me,"$1_="+new Date().getTime());else{var we=/\?/;this.url+=(we.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function G(x){var R=new FormData;return x.trim().split("&").forEach(function(j){if(j){var me=j.split("="),we=me.shift().replace(/\+/g," "),de=me.join("=").replace(/\+/g," ");R.append(decodeURIComponent(we),decodeURIComponent(de))}}),R}function J(x){var R=new m,j=x.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(me){return me.indexOf(`
|
|
48
|
+
`)===0?me.substr(1,me.length):me}).forEach(function(me){var we=me.split(":"),de=we.shift().trim();if(de){var zn=we.join(":").trim();try{R.append(de,zn)}catch(Ls){console.warn("Response "+Ls.message)}}}),R}z.call(_.prototype);function he(x,R){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(R||(R={}),this.type="default",this.status=R.status===void 0?200:R.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=R.statusText===void 0?"":""+R.statusText,this.headers=new m(R.headers),this.url=R.url||"",this._initBody(x)}z.call(he.prototype),he.prototype.clone=function(){return new he(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},he.error=function(){var x=new he(null,{status:200,statusText:""});return x.ok=!1,x.status=0,x.type="error",x};var ce=[301,302,303,307,308];he.redirect=function(x,R){if(ce.indexOf(R)===-1)throw new RangeError("Invalid status code");return new he(null,{status:R,headers:{location:x}})},t.DOMException=i.DOMException;try{new t.DOMException}catch{t.DOMException=function(R,j){this.message=R,this.name=j;var me=Error(R);this.stack=me.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function K(x,R){return new Promise(function(j,me){var we=new _(x,R);if(we.signal&&we.signal.aborted)return me(new t.DOMException("Aborted","AbortError"));var de=new XMLHttpRequest;function zn(){de.abort()}de.onload=function(){var Xe={statusText:de.statusText,headers:J(de.getAllResponseHeaders()||"")};we.url.indexOf("file://")===0&&(de.status<200||de.status>599)?Xe.status=200:Xe.status=de.status,Xe.url="responseURL"in de?de.responseURL:Xe.headers.get("X-Request-URL");var yo="response"in de?de.response:de.responseText;setTimeout(function(){j(new he(yo,Xe))},0)},de.onerror=function(){setTimeout(function(){me(new TypeError("Network request failed"))},0)},de.ontimeout=function(){setTimeout(function(){me(new TypeError("Network request timed out"))},0)},de.onabort=function(){setTimeout(function(){me(new t.DOMException("Aborted","AbortError"))},0)};function Ls(Xe){try{return Xe===""&&i.location.href?i.location.href:Xe}catch{return Xe}}if(de.open(we.method,Ls(we.url),!0),we.credentials==="include"?de.withCredentials=!0:we.credentials==="omit"&&(de.withCredentials=!1),"responseType"in de&&(n.blob?de.responseType="blob":n.arrayBuffer&&(de.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof m||i.Headers&&R.headers instanceof i.Headers)){var _u=[];Object.getOwnPropertyNames(R.headers).forEach(function(Xe){_u.push(d(Xe)),de.setRequestHeader(Xe,f(R.headers[Xe]))}),we.headers.forEach(function(Xe,yo){_u.indexOf(yo)===-1&&de.setRequestHeader(yo,Xe)})}else we.headers.forEach(function(Xe,yo){de.setRequestHeader(yo,Xe)});we.signal&&(we.signal.addEventListener("abort",zn),de.onreadystatechange=function(){de.readyState===4&&we.signal.removeEventListener("abort",zn)}),de.send(typeof we._bodyInit>"u"?null:we._bodyInit)})}return K.polyfill=!0,i.fetch||(i.fetch=K,i.Headers=m,i.Request=_,i.Response=he),t.Headers=m,t.Request=_,t.Response=he,t.fetch=K,t}({})})(La);La.fetch.ponyfill=!0;delete La.fetch.polyfill;var Si=Aa.fetch?Aa:La;oo=Si.fetch;oo.default=Si.fetch;oo.fetch=Si.fetch;oo.Headers=Si.Headers;oo.Request=Si.Request;oo.Response=Si.Response;Em.exports=oo});var td=p(()=>{});var Am,Lm,Im,Ci,km,_m,Po,$m,Tm,Pm,Nm,Fm,Bm,Dm,Mm,Um,No,Vm,zm,Ia,Hm,Oi,jm,Mt,wi,Wm,Ve,It,rd=p(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Am||(Am={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Lm||(Lm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Im||(Im={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ci||(Ci={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(km||(km={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(_m||(_m={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Po||(Po={}));(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"})($m||($m={}));(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",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Tm||(Tm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Pm||(Pm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Nm||(Nm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Fm||(Fm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Bm||(Bm={}));(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"})(Dm||(Dm={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Mm||(Mm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Um||(Um={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(No||(No={}));Vm=r=>Object.keys(No).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(zm||(zm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ia||(Ia={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Hm||(Hm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Oi||(Oi={}));jm=r=>Object.keys(Oi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Mt||(Mt={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wi||(wi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wm||(Wm={}));(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ve||(Ve={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(It||(It={}))});var Gm,Km,qm,Zm,Ym=p(()=>{(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Gm||(Gm={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Km||(Km={}));(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(qm||(qm={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Zm||(Zm={}))});function Qm(r,e){return r===e||(M0[r]??[]).some(t=>Qm(t,e))}function Xm(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Qm(i,e))}var M0,Jm=p(()=>{rd();M0={[Ve.PERSONAL_BOOK_SHARE_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.HTML_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.PDF_EXPORT_USER]:[Ve.PERSONAL_BOOK_USER],[Ve.KHUB_ADMIN]:[Ve.CONTENT_PUBLISHER],[Ve.ADMIN]:[Ve.KHUB_ADMIN,Ve.USERS_ADMIN,Ve.PORTAL_ADMIN],[Ve.GENERATIVE_AI_EXPORT_USER]:[Ve.GENERATIVE_AI_USER]}});var eg=p(()=>{});var U0,io=p(()=>{U0=Ax(Rm(),1);td();rd();Ym();Jm();eg();td()});var od={};ne(od,{SearchPlaceConverter:()=>no,SearchPlaceQueryParams:()=>Se,isSearchPlaceQueryParams:()=>rg,serializeRequest:()=>H0});function z0(r){return`"${r}"`}function tg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function H0(r,e){return new no(r).serialize(e)}function rg(r){return W0.has(r)}var Se,W0,no,id=p(()=>{"use strict";io();yt();(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"})(Se||(Se={}));W0=new Set(Object.values(Se));no=class{constructor(e,t=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=i,this.defaultContentLocale=n,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=t==null||t.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,f,g,m,b,O;let C=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&C.append(Se.LOCALE,e.contentLocale):C.append(Se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&C.append(Se.QUERY,e.query);let I=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(E=>E.valueFilter&&!E.valueFilter.negative))!==null&&a!==void 0?a:[];if(I.length>0){let E=I.map(_=>{var G,J;let he=((J=(G=_.valueFilter)===null||G===void 0?void 0:G.values)!==null&&J!==void 0?J:[]).map(ce=>this.escapeFilters(ce)).map(ce=>z0(tg(ce))).join("_");return`${_.key}~${he}`}).join("*");C.append(Se.VALUE_FILTERS,E)}let D=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(D.length>0){let E=D.map(_=>{var G;return`${_.key}~${(G=_.dateFilter)===null||G===void 0?void 0:G.type.toLowerCase()}`}).join("*");C.append(Se.DATE_FILTERS,E)}let B=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&f!==void 0?f:[];if(B.length>0){let E=B.map(_=>{var G,J;return`${_.key}~${(G=_.rangeFilter)===null||G===void 0?void 0:G.from}_${(J=_.rangeFilter)===null||J===void 0?void 0:J.to}`}).join("*");C.append(Se.RANGE_FILTERS,E)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(Se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(Se.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Se.PER_PAGE,String(e.paging.perPage));let z=(O=e.otherQueryParams)!==null&&O!==void 0?O:{};for(let E in z)C.append(E,z[E]);let k=new Array;return C.forEach((E,_)=>{k.push(this.encodeQueryString(_)+"="+this.encodeQueryString(E))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(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;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),f=d.get(Se.LOCALE)==="all"?void 0:d.get(Se.LOCALE),g=((t=d.get(Se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(i=d.get(Se.SORT))===null||i===void 0?void 0:i.toLowerCase(),b=(n=d.get(Se.SCOPE))!==null&&n!==void 0?n:"default",O=+((a=d.get(Se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let I of d.keys())rg(I)||(C[I]=d.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Se.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Vm(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Eo(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(Se.FILTERS)&&(d=this.parseValueFilters((t=e.get(Se.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(Se.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(Se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(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(tg).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Oi[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(jm(e))return[{key:"ft:lastEdition",dateFilter:{type:Oi[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}}});var sd={};ne(sd,{toFtFormComponent:()=>ad});var nd,ad,ld=p(()=>{"use strict";yt();nd=Symbol("elementInternals"),ad=Ne(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[nd].form}constructor(...i){super(i),this[nd]=this.attachInternals()}setFormValue(i){this[nd].setFormValue(i)}}return e})});var cd={};ne(cd,{DateFormatter:()=>Fo});var Fo,ka=p(()=>{"use strict";Fo=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,t,i,n)}static getMomentDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(t,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let l=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(a);return`${s} ${l}`}}});var pd={};ne(pd,{ALL_KEYS_VALUE:()=>dd,SameWindowStorageEvent:()=>Ei});var dd,Ei,ud=p(()=>{"use strict";dd="__all__",Ei=class extends CustomEvent{constructor(e,t,i){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dd}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let i=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new Ei(t[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new Ei(dd))}})});var hd={};ne(hd,{FocusMainContentEvent:()=>fd});var fd,md=p(()=>{"use strict";fd=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var og={};function V0(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function j0(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var gd=p(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1};document.addEventListener("keydown",V0);document.addEventListener("click",j0)});var Ri,yd=p(()=>{"use strict";P();Ri=A`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,20 +69,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`});var
|
|
72
|
+
`});var ig,ng=p(()=>{"use strict";si();yt();ig=Ne(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotificationIfVisible(i){setTimeout(()=>{this.checkVisibility()&&this.sendAriaNotification(i)},20)}sendAriaNotification(i){i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new an({type:"aria",message:i}))}}return e})});function Ai(r,e,t){return r?e(r):t?.(r)}var ag=p(()=>{});var _a=p(()=>{ag()});var Je,Bo,Do,bd,IL,sg=p(()=>{"use strict";Y();Yt();_a();P();yt();Je=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(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Bo||(Bo={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Do||(Do={}));bd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},IL=Ne(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Bo.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Do.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Bo.blur||this.validateOn===Bo.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Do.default&&this.validateOn===Bo.blurWithStatusResolutionOnInput||this.validateOn===Bo.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new bd(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return S`
|
|
73
73
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
74
74
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
75
|
-
${
|
|
75
|
+
${Re(this.errorMessages,i=>S`
|
|
76
76
|
<li>${i}</li>
|
|
77
77
|
`)}
|
|
78
|
-
${
|
|
78
|
+
${Re(this.warningMessages,i=>S`
|
|
79
79
|
<li>${i}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${Ai(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>S`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Do.error:this.warningMessages.length?Do.warning:Do.default}processRules(i){return i.map(n=>n(this.value)).filter(n=>n!==!0).map(n=>n)}}return Je([h()],e.prototype,"warningRules",void 0),Je([h()],e.prototype,"errorRules",void 0),Je([h()],e.prototype,"validateOn",void 0),Je([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Je([h()],e.prototype,"label",void 0),Je([h({type:Boolean})],e.prototype,"hideLabel",void 0),Je([h()],e.prototype,"name",void 0),Je([h({type:Boolean})],e.prototype,"disabled",void 0),Je([h()],e.prototype,"helperText",void 0),Je([h()],e.prototype,"forceStatus",void 0),Je([h({reflect:!0})],e.prototype,"value",void 0),Je([N()],e.prototype,"errorMessages",void 0),Je([N()],e.prototype,"warningMessages",void 0),Je([N()],e.prototype,"status",void 0),Je([N()],e.prototype,"focused",void 0),Je([N()],e.prototype,"additionalWarningRules",void 0),Je([N()],e.prototype,"additionalErrorRules",void 0),e})});var lg=p(()=>{"use strict"});var cg=p(()=>{"use strict";sg();lg()});function G0(r){this._$AN!==void 0?($a(this),this._$AM=r,dg(this)):this._$AM=r}function K0(r,e=!1,t=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=t;a<i.length;a++)wn(i[a],!1),$a(i[a]);else i!=null&&(wn(i,!1),$a(i));else wn(this,r)}var wn,$a,dg,q0,Ta,pg=p(()=>{qs();Oo();Oo();wn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let i of t)i._$AO?.(e,!1),wn(i,e);return!0},$a=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},dg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),q0(e)}};q0=r=>{r.type==ar.CHILD&&(r._$AP??=K0,r._$AQ??=G0)},Ta=class extends Bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),dg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(wn(this,e),$a(this))}setValue(e){if(af(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var ug=p(()=>{pg()});var fg,Z0,xd,WL,hg=p(()=>{"use strict";ug();P();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(fg||(fg={}));Z0={sm:640,md:768,lg:1024,xl:1280},xd=class extends Ta{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,i,n]){return this.lastArgs=[t,i,n],this.render(t,i,n)}render(e,t,i){let n=this.resolveThreshold(e),a=i??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:Z0[e]}},WL=Zt(xd)});var mg=p(()=>{"use strict";hg()});var vd,Sd,Cd,Od,Mo,En,L=p(()=>{"use strict";Tu();P();Y();Yt();ut();hf();rn();sl();ea();pl();oa();ia();zl();Wl();si();fa();na();fc();mn();hc();yt();bc();vc();Sc();Oc();Ea();ha();ed();ma();id();ld();ka();ee();ud();md();gd();yd();md();gd();sl();ea();pl();ka();oa();ia();zl();Wl();si();fa();ed();na();fc();ld();mn();ng();hc();yt();bc();vc();Sc();Oc();Ea();ud();ha();ma();id();yd();cg();mg();ee();Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Cd=(Sd=(vd=window.safari)===null||vd===void 0?void 0:vd.pushNotification)===null||Sd===void 0?void 0:Sd.toString())!==null&&Cd!==void 0?Cd:"")==="[object SafariRemoteNotification]",En="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Od=window.ftGlobals)!==null&&Od!==void 0?Od:{lit:Hs,litDecorators:Ks,litRepeat:Zs,litClassMap:Ys,litStyleMap:Qs,litUnsafeHTML:Xs,wcUtils:{...al,...Js,...dl,...cd,...ul,...fl,...Ul,...nl,...sc,...hd,...og,...Jc,...Ml,...uc,...sd,...pc,...kh,...rl,...yc,...Hl,...xc,...Ri,...Nh,...Cc,...Zc,...pd,...lc,...dc,...od,isSafari:Mo,isTouchScreen:En,setVariable:y}}});var gg,$,yg,bg,xg,vg,Sg,Fr=p(()=>{"use strict";P();L();gg=o.extend("--ft-ripple-color","",w.colorContent),$={color:gg,backgroundColor:o.extend("--ft-ripple-background-color","",gg),opacityContentOnSurfacePressed:o.external(w.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(w.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(w.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(w.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},yg=o.extend("--ft-ripple-color","",w.colorPrimary),bg={color:yg,backgroundColor:o.extend("--ft-ripple-background-color","",yg)},xg=o.extend("--ft-ripple-color","",w.colorSecondary),vg={color:xg,backgroundColor:o.extend("--ft-ripple-background-color","",xg)},Sg=A`
|
|
86
86
|
:host {
|
|
87
87
|
display: contents;
|
|
88
88
|
}
|
|
@@ -137,19 +137,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
140
|
+
background-color: ${vg.backgroundColor};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${vg.color};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${bg.backgroundColor};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${bg.color};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -194,8 +194,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
194
194
|
opacity: ${$.opacityContentOnSurfacePressed};
|
|
195
195
|
transform: translate(-50%, -50%) scale(1);
|
|
196
196
|
}
|
|
197
|
-
`});function
|
|
198
|
-
${e?
|
|
197
|
+
`});function Og(r,e){let t=ln[r];return A`
|
|
198
|
+
${e?ir(e):A`.ft-typography--${ir(r)}`} {
|
|
199
199
|
font-family: ${t.fontFamily};
|
|
200
200
|
font-size: ${t.fontSize};
|
|
201
201
|
font-weight: ${t.fontWeight};
|
|
@@ -204,16 +204,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
204
204
|
text-decoration: ${t.textDecoration};
|
|
205
205
|
text-transform: ${t.textCase};
|
|
206
206
|
}
|
|
207
|
-
`}var
|
|
207
|
+
`}var wg=p(()=>{"use strict";P();ee()});var Eg,Dr,V,Li,Ii,ki,_i,Br,je,Ze,$i,Ti,fr,Rg,Ag,Lg,Ig,kg,ao,hr,_g,$g,Tg,Pg,Ng,Ut=p(()=>{"use strict";P();L();ee();wg();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();ee();Eg=o.extend("--ft-typography-font-family","",w.titleFont),Dr=o.extend("--ft-typography-font-family","",w.contentFont),V={fontFamily:Dr,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")},Li={fontFamily:o.extend("--ft-typography-title-font-family","",Eg),fontSize:o.extend("--ft-typography-title-font-size","",V.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",V.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",V.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",V.textTransform,"inherit")},Ii={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Eg),fontSize:o.extend("--ft-typography-title-dense-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",V.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",V.textTransform,"inherit")},ki={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Dr),fontSize:o.extend("--ft-typography-subtitle1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",V.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",V.textTransform,"inherit")},_i={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Dr),fontSize:o.extend("--ft-typography-subtitle2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",V.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",V.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",V.textTransform,"inherit")},Br={fontFamily:o.extend("--ft-typography-body1-font-family","",Dr),fontSize:o.extend("--ft-typography-body1-font-size","",V.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",V.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",V.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",V.textTransform,"inherit")},je={fontFamily:o.extend("--ft-typography-body2-font-family","",Dr),fontSize:o.extend("--ft-typography-body2-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",V.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",V.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",V.textTransform,"inherit")},Ze={fontFamily:o.extend("--ft-typography-caption-font-family","",Dr),fontSize:o.extend("--ft-typography-caption-font-size","",V.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",V.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",V.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",V.textTransform,"inherit")},$i={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Dr),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",V.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",V.textTransform,"inherit")},Ti={fontFamily:o.extend("--ft-typography-overline-font-family","",Dr),fontSize:o.extend("--ft-typography-overline-font-size","",V.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",V.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",V.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",V.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",V.textTransform,"uppercase")},fr={fontFamily:o.extend("--ft-typography-button-font-family","",Dr),fontSize:o.extend("--ft-typography-button-font-size","",V.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",V.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",V.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",V.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",V.textTransform,"uppercase")},Rg=A`
|
|
208
208
|
.ft-typography--title {
|
|
209
|
-
font-family: ${
|
|
210
|
-
font-size: ${
|
|
211
|
-
font-weight: ${
|
|
212
|
-
letter-spacing: ${
|
|
213
|
-
line-height: ${
|
|
214
|
-
text-transform: ${
|
|
215
|
-
}
|
|
216
|
-
`,
|
|
209
|
+
font-family: ${Li.fontFamily};
|
|
210
|
+
font-size: ${Li.fontSize};
|
|
211
|
+
font-weight: ${Li.fontWeight};
|
|
212
|
+
letter-spacing: ${Li.letterSpacing};
|
|
213
|
+
line-height: ${Li.lineHeight};
|
|
214
|
+
text-transform: ${Li.textTransform};
|
|
215
|
+
}
|
|
216
|
+
`,Ag=A`
|
|
217
217
|
.ft-typography--title-dense {
|
|
218
218
|
font-family: ${Ii.fontFamily};
|
|
219
219
|
font-size: ${Ii.fontSize};
|
|
@@ -222,17 +222,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
222
222
|
line-height: ${Ii.lineHeight};
|
|
223
223
|
text-transform: ${Ii.textTransform};
|
|
224
224
|
}
|
|
225
|
-
`,
|
|
225
|
+
`,Lg=A`
|
|
226
226
|
.ft-typography--subtitle1 {
|
|
227
|
-
font-family: ${Li.fontFamily};
|
|
228
|
-
font-size: ${Li.fontSize};
|
|
229
|
-
font-weight: ${Li.fontWeight};
|
|
230
|
-
letter-spacing: ${Li.letterSpacing};
|
|
231
|
-
line-height: ${Li.lineHeight};
|
|
232
|
-
text-transform: ${Li.textTransform};
|
|
233
|
-
}
|
|
234
|
-
`,Ig=A`
|
|
235
|
-
.ft-typography--subtitle2 {
|
|
236
227
|
font-family: ${ki.fontFamily};
|
|
237
228
|
font-size: ${ki.fontSize};
|
|
238
229
|
font-weight: ${ki.fontWeight};
|
|
@@ -240,36 +231,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
240
231
|
line-height: ${ki.lineHeight};
|
|
241
232
|
text-transform: ${ki.textTransform};
|
|
242
233
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
.ft-typography--body1 {
|
|
246
|
-
font-family: ${Nr.fontFamily};
|
|
247
|
-
font-size: ${Nr.fontSize};
|
|
248
|
-
font-weight: ${Nr.fontWeight};
|
|
249
|
-
letter-spacing: ${Nr.letterSpacing};
|
|
250
|
-
line-height: ${Nr.lineHeight};
|
|
251
|
-
text-transform: ${Nr.textTransform};
|
|
252
|
-
}
|
|
253
|
-
`,oo=A`
|
|
254
|
-
.ft-typography--body2 {
|
|
255
|
-
font-family: ${Ve.fontFamily};
|
|
256
|
-
font-size: ${Ve.fontSize};
|
|
257
|
-
font-weight: ${Ve.fontWeight};
|
|
258
|
-
letter-spacing: ${Ve.letterSpacing};
|
|
259
|
-
line-height: ${Ve.lineHeight};
|
|
260
|
-
text-transform: ${Ve.textTransform};
|
|
261
|
-
}
|
|
262
|
-
`,ur=A`
|
|
263
|
-
.ft-typography--caption {
|
|
264
|
-
font-family: ${qe.fontFamily};
|
|
265
|
-
font-size: ${qe.fontSize};
|
|
266
|
-
font-weight: ${qe.fontWeight};
|
|
267
|
-
letter-spacing: ${qe.letterSpacing};
|
|
268
|
-
line-height: ${qe.lineHeight};
|
|
269
|
-
text-transform: ${qe.textTransform};
|
|
270
|
-
}
|
|
271
|
-
`,kg=A`
|
|
272
|
-
.ft-typography--breadcrumb {
|
|
234
|
+
`,Ig=A`
|
|
235
|
+
.ft-typography--subtitle2 {
|
|
273
236
|
font-family: ${_i.fontFamily};
|
|
274
237
|
font-size: ${_i.fontSize};
|
|
275
238
|
font-weight: ${_i.fontWeight};
|
|
@@ -277,8 +240,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
277
240
|
line-height: ${_i.lineHeight};
|
|
278
241
|
text-transform: ${_i.textTransform};
|
|
279
242
|
}
|
|
243
|
+
|
|
244
|
+
`,kg=A`
|
|
245
|
+
.ft-typography--body1 {
|
|
246
|
+
font-family: ${Br.fontFamily};
|
|
247
|
+
font-size: ${Br.fontSize};
|
|
248
|
+
font-weight: ${Br.fontWeight};
|
|
249
|
+
letter-spacing: ${Br.letterSpacing};
|
|
250
|
+
line-height: ${Br.lineHeight};
|
|
251
|
+
text-transform: ${Br.textTransform};
|
|
252
|
+
}
|
|
253
|
+
`,ao=A`
|
|
254
|
+
.ft-typography--body2 {
|
|
255
|
+
font-family: ${je.fontFamily};
|
|
256
|
+
font-size: ${je.fontSize};
|
|
257
|
+
font-weight: ${je.fontWeight};
|
|
258
|
+
letter-spacing: ${je.letterSpacing};
|
|
259
|
+
line-height: ${je.lineHeight};
|
|
260
|
+
text-transform: ${je.textTransform};
|
|
261
|
+
}
|
|
262
|
+
`,hr=A`
|
|
263
|
+
.ft-typography--caption {
|
|
264
|
+
font-family: ${Ze.fontFamily};
|
|
265
|
+
font-size: ${Ze.fontSize};
|
|
266
|
+
font-weight: ${Ze.fontWeight};
|
|
267
|
+
letter-spacing: ${Ze.letterSpacing};
|
|
268
|
+
line-height: ${Ze.lineHeight};
|
|
269
|
+
text-transform: ${Ze.textTransform};
|
|
270
|
+
}
|
|
280
271
|
`,_g=A`
|
|
281
|
-
.ft-typography--
|
|
272
|
+
.ft-typography--breadcrumb {
|
|
282
273
|
font-family: ${$i.fontFamily};
|
|
283
274
|
font-size: ${$i.fontSize};
|
|
284
275
|
font-weight: ${$i.fontWeight};
|
|
@@ -287,19 +278,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
287
278
|
text-transform: ${$i.textTransform};
|
|
288
279
|
}
|
|
289
280
|
`,$g=A`
|
|
290
|
-
.ft-typography--
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
281
|
+
.ft-typography--overline {
|
|
282
|
+
font-family: ${Ti.fontFamily};
|
|
283
|
+
font-size: ${Ti.fontSize};
|
|
284
|
+
font-weight: ${Ti.fontWeight};
|
|
285
|
+
letter-spacing: ${Ti.letterSpacing};
|
|
286
|
+
line-height: ${Ti.lineHeight};
|
|
287
|
+
text-transform: ${Ti.textTransform};
|
|
297
288
|
}
|
|
298
289
|
`,Tg=A`
|
|
290
|
+
.ft-typography--button {
|
|
291
|
+
font-family: ${fr.fontFamily};
|
|
292
|
+
font-size: ${fr.fontSize};
|
|
293
|
+
font-weight: ${fr.fontWeight};
|
|
294
|
+
letter-spacing: ${fr.letterSpacing};
|
|
295
|
+
line-height: ${fr.lineHeight};
|
|
296
|
+
text-transform: ${fr.textTransform};
|
|
297
|
+
}
|
|
298
|
+
`,Pg=A`
|
|
299
299
|
.ft-typography {
|
|
300
300
|
vertical-align: inherit;
|
|
301
301
|
}
|
|
302
|
-
`,
|
|
302
|
+
`,Ng=[Object.keys(ln).map(r=>Og(r))]});var _e,Fg,Rn=p(()=>{"use strict";P();L();_e={color:o.extend("--ft-loader-color","",w.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Fg=A`
|
|
303
303
|
:host {
|
|
304
304
|
line-height: 0;
|
|
305
305
|
}
|
|
@@ -308,8 +308,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
308
308
|
display: inline-block;
|
|
309
309
|
position: relative;
|
|
310
310
|
|
|
311
|
-
width: ${
|
|
312
|
-
height: ${
|
|
311
|
+
width: ${_e.size};
|
|
312
|
+
height: ${_e.size};
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.ft-loader div {
|
|
@@ -318,7 +318,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
318
318
|
width: 25%;
|
|
319
319
|
height: 25%;
|
|
320
320
|
border-radius: 50%;
|
|
321
|
-
background: ${
|
|
321
|
+
background: ${_e.color};
|
|
322
322
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
323
323
|
}
|
|
324
324
|
|
|
@@ -365,10 +365,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
365
365
|
transform: translate(0, 0);
|
|
366
366
|
}
|
|
367
367
|
100% {
|
|
368
|
-
transform: translate(calc(0.35 * ${
|
|
368
|
+
transform: translate(calc(0.35 * ${_e.size}), 0);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
`});var Fe,
|
|
371
|
+
`});var Fe,Bg,Uo=p(()=>{"use strict";P();L();Fe={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")},Bg=[A`
|
|
372
372
|
:host, i.ft-icon {
|
|
373
373
|
display: inline-flex;
|
|
374
374
|
align-items: center;
|
|
@@ -416,7 +416,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
416
416
|
.ft-icon--material {
|
|
417
417
|
font-family: ${Fe.materialFontFamily}, "Material Icons", sans-serif;
|
|
418
418
|
}
|
|
419
|
-
|
|
419
|
+
`,$r]});var Dg,te,Mg,wd,mr,Ug,zo=p(()=>{"use strict";P();L();Fr();Ut();Rn();Uo();Dg=o.extend("--ft-button-color","",w.colorPrimary),te={backgroundColor:o.extend("--ft-button-background-color","",w.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",w.borderRadiusL),color:Dg,fontSize:o.extend("--ft-button-font-size","",fr.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Dg),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(w.colorOpacityDisabled,"Design system")},Mg=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",w.colorOnPrimary)),wd={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",w.colorPrimary)),color:Mg,rippleColor:o.extend("--ft-button-primary-ripple-color","",Mg)},mr={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",w.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")},Ug=[A`
|
|
420
420
|
:host {
|
|
421
421
|
display: inline-block;
|
|
422
422
|
max-width: 100%;
|
|
@@ -475,13 +475,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-button.ft-button--dense {
|
|
478
|
-
padding: ${
|
|
479
|
-
border-radius: ${
|
|
480
|
-
gap: ${
|
|
478
|
+
padding: ${mr.verticalPadding} ${mr.horizontalPadding};
|
|
479
|
+
border-radius: ${mr.borderRadius};
|
|
480
|
+
gap: ${mr.iconPadding};
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
484
|
-
padding: calc(${
|
|
484
|
+
padding: calc(${mr.verticalPadding} - 1px) calc(${mr.horizontalPadding} - 1px);
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-button:not([disabled]):hover {
|
|
@@ -493,7 +493,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
.ft-button--round.ft-button--dense {
|
|
496
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
496
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${mr.verticalPadding});
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.ft-button[disabled] {
|
|
@@ -518,12 +518,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
518
518
|
text-overflow: ellipsis;
|
|
519
519
|
display: block;
|
|
520
520
|
margin: 0 ${te.iconPadding};
|
|
521
|
-
${y(
|
|
522
|
-
${y(
|
|
521
|
+
${y(fr.fontSize,"1em")};
|
|
522
|
+
${y(fr.lineHeight,"var(--button-internal-line-height)")};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
.ft-button--dense .ft-button--label {
|
|
526
|
-
margin: 0 ${
|
|
526
|
+
margin: 0 ${mr.iconPadding};
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
.ft-button--label[hidden] {
|
|
@@ -541,8 +541,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
544
|
-
margin: 0 calc(${
|
|
545
|
-
padding: 0 ${
|
|
544
|
+
margin: 0 calc(${mr.horizontalPadding} * -1);
|
|
545
|
+
padding: 0 ${mr.verticalPadding};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -550,10 +550,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
ft-loader {
|
|
553
|
-
${y(
|
|
554
|
-
${y(
|
|
553
|
+
${y(_e.size,te.iconSize)};
|
|
554
|
+
${y(_e.color,"var(--button-internal-color)")};
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
`,$r]});var xt,re,Ed=p(()=>{"use strict";P();Y();ut();L();Fr();xt=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},re=class extends W{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new pe(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 pe(10),this.moveRipple=e=>{var t,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(t=this.ripple)===null||t===void 0?void 0:t.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 S`
|
|
557
557
|
<style>
|
|
558
558
|
.ft-ripple .ft-ripple--effect {
|
|
559
559
|
left: ${this.originX}px;
|
|
@@ -564,15 +564,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
564
564
|
<div class="ft-ripple--background"></div>
|
|
565
565
|
<div class="ft-ripple--effect"></div>
|
|
566
566
|
</div>
|
|
567
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.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,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",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 t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t: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 t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=
|
|
567
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.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,t;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((t=this.target)!==null&&t!==void 0?t:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",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 t=e,i=e,n,a;return t.x!=null?{x:n,y:a}=t: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 t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Sg;xt([h({type:Boolean})],re.prototype,"primary",void 0);xt([h({type:Boolean})],re.prototype,"secondary",void 0);xt([h({type:Boolean})],re.prototype,"unbounded",void 0);xt([h({type:Boolean})],re.prototype,"activated",void 0);xt([h({type:Boolean})],re.prototype,"selected",void 0);xt([h({type:Boolean})],re.prototype,"disabled",void 0);xt([N()],re.prototype,"hovered",void 0);xt([N()],re.prototype,"focused",void 0);xt([N()],re.prototype,"pressed",void 0);xt([N()],re.prototype,"rippling",void 0);xt([N()],re.prototype,"originX",void 0);xt([N()],re.prototype,"originY",void 0);xt([H(".ft-ripple")],re.prototype,"ripple",void 0);xt([H(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0)});var zg=p(()=>{"use strict"});var ft=p(()=>{"use strict";L();Ed();Ed();Fr();zg();M("ft-ripple")(re)});var Wg,Y0,Rd,Hg,Ad,Ld,Hk,Wk,Vg=p(()=>{Kt();Wg=Symbol.for(""),Y0=r=>{if(r?.r===Wg)return r?._$litStatic$},Rd=r=>({_$litStatic$:r,r:Wg}),Hg=new Map,Ad=r=>(e,...t)=>{let i=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<i;){for(d=e[f];f<i&&(a=t[f],(n=Y0(a))!==void 0);)d+=n+e[++f],g=!0;f!==i&&l.push(a),s.push(d),f++}if(f===i&&s.push(e[i]),g){let m=s.join("$$lit$$");(e=Hg.get(m))===void 0&&(s.raw=s,Hg.set(m,e=s)),t=l}return r(e,...t)},Ld=Ad(S),Hk=Ad(Bs),Wk=Ad(Ds)});var jg=p(()=>{Vg()});var Be,Pi=p(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Be||(Be={}))});var Gg,oe,Id=p(()=>{"use strict";jg();Y();L();Pi();Ut();Gg=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},oe=class extends W{constructor(){super(...arguments),this.variant=Be.body1}render(){return this.element?Ld`
|
|
568
568
|
<${Rd(this.element)}
|
|
569
569
|
part="text"
|
|
570
570
|
class="ft-typography ft-typography--${this.variant}">
|
|
571
571
|
<slot></slot>
|
|
572
572
|
</${Rd(this.element)}>
|
|
573
|
-
`:
|
|
573
|
+
`:Ld`
|
|
574
574
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
575
|
-
`}};oe.styles=[
|
|
575
|
+
`}};oe.styles=[Rg,Ag,Lg,Ig,kg,ao,hr,_g,$g,Tg,Pg,...Ng];Gg([h()],oe.prototype,"element",void 0);Gg([h()],oe.prototype,"variant",void 0)});var ze=p(()=>{"use strict";L();Id();Id();Ut();Pi();M("ft-typography")(oe)});var gr,Kg,Pa=p(()=>{"use strict";P();L();gr={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(w.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Kg=A`
|
|
576
576
|
.ft-tooltip--container {
|
|
577
577
|
display: block;
|
|
578
578
|
}
|
|
@@ -587,21 +587,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
587
587
|
box-sizing: border-box;
|
|
588
588
|
overflow: hidden;
|
|
589
589
|
width: max-content;
|
|
590
|
-
max-width: ${
|
|
590
|
+
max-width: ${gr.maxWidth};
|
|
591
591
|
text-align: center;
|
|
592
|
-
padding: ${
|
|
593
|
-
z-index: ${
|
|
592
|
+
padding: ${gr.distance};
|
|
593
|
+
z-index: ${gr.zIndex};
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
.ft-tooltip--content {
|
|
597
597
|
padding: 4px 8px;
|
|
598
|
-
border-radius: ${
|
|
599
|
-
background-color: ${
|
|
600
|
-
color: ${
|
|
598
|
+
border-radius: ${gr.borderRadiusS};
|
|
599
|
+
background-color: ${gr.backgroundColor};
|
|
600
|
+
color: ${gr.color};
|
|
601
601
|
position: relative;
|
|
602
602
|
word-break: break-word;
|
|
603
603
|
}
|
|
604
|
-
`});var vt,
|
|
604
|
+
`});var vt,$e,kd=p(()=>{"use strict";P();Y();L();ze();Pa();fa();vt=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},$e=class extends W{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new pe,this.revealDebouncer=new pe}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return S`
|
|
605
605
|
<div part="container"
|
|
606
606
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
607
607
|
@mouseenter=${this.onHover}
|
|
@@ -619,19 +619,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
619
619
|
</div>
|
|
620
620
|
</div>
|
|
621
621
|
</div>
|
|
622
|
-
`}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)}async showTemporaryText(e,t){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(t),this.text=n,this.manual=i}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="",nc(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 ${w.transitionDuration}, left ${w.transitionDuration}`,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))}};_e.elementDefinitions={"ft-typography":oe};_e.styles=Gg;vt([h()],_e.prototype,"text",void 0);vt([h({type:Boolean})],_e.prototype,"manual",void 0);vt([h({type:Boolean})],_e.prototype,"inline",void 0);vt([h({type:Number})],_e.prototype,"delay",void 0);vt([h()],_e.prototype,"position",void 0);vt([Gs()],_e.prototype,"slotNodes",void 0);vt([H(".ft-tooltip--container")],_e.prototype,"container",void 0);vt([H(".ft-tooltip")],_e.prototype,"tooltip",void 0);vt([H(".ft-tooltip--content")],_e.prototype,"tooltipContent",void 0);vt([N()],_e.prototype,"visible",void 0);vt([ei({passive:!0})],_e.prototype,"onTouch",null);vt([ei({passive:!0})],_e.prototype,"onHover",null);vt([ei({passive:!0})],_e.prototype,"onOut",null);vt([ei({passive:!0})],_e.prototype,"onClick",null)});var Kg=p(()=>{"use strict"});var Na=p(()=>{"use strict";I();kd();kd();Pa();Kg();M("ft-tooltip")(_e)});function Fa(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=Y0.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=_d.get(l))!==null&&i!==void 0?i:_d.get(e))!==null&&n!==void 0?n:_d.get(s))!==null&&a!==void 0?a:F.UNKNOWN}var et,F,_d,Y0,C_,$d=p(()=>{"use strict";(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="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK=""})(et||(et={}));(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=""})(F||(F={}));_d=new Map([...["abw"].map(r=>[r,F.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,F.AUDIO]),...["avi"].map(r=>[r,F.AVI]),...["chm","xhs"].map(r=>[r,F.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,F.CODE]),...["csv"].map(r=>[r,F.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,F.DITA]),...["epub"].map(r=>[r,F.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,F.EXCEL]),...["flac"].map(r=>[r,F.FLAC]),...["gif"].map(r=>[r,F.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,F.GZIP]),...["html","htm","xhtml"].map(r=>[r,F.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,F.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,F.JPEG]),...["json"].map(r=>[r,F.JSON]),...["m4a","m4p"].map(r=>[r,F.M4A]),...["mov","qt"].map(r=>[r,F.MOV]),...["mp3"].map(r=>[r,F.MP3]),...["mp4","m4v"].map(r=>[r,F.MP4]),...["ogg","oga"].map(r=>[r,F.OGG]),...["pdf","ps"].map(r=>[r,F.PDF]),...["png"].map(r=>[r,F.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,F.POWERPOINT]),...["rar"].map(r=>[r,F.RAR]),...["stp"].map(r=>[r,F.STP]),...["txt","rtf","md","mdown"].map(r=>[r,F.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,F.VIDEO]),...["wav"].map(r=>[r,F.WAV]),...["wma"].map(r=>[r,F.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,F.WORD]),...["xml","xsl","rdf"].map(r=>[r,F.XML]),...["yaml","yml","x-yaml"].map(r=>[r,F.YAML]),...["zip"].map(r=>[r,F.ZIP])]),Y0=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"]]);C_={[F.ABW]:"#91ABC6",[F.AUDIO]:"#1795E3",[F.AVI]:"#E63324",[F.CHM]:"#71C3EB",[F.CODE]:"#71C3EB",[F.CSV]:"#1F7345",[F.DITA]:"#71C3EB",[F.EPUB]:"#85B926",[F.EXCEL]:"#1F7345",[F.FLAC]:"#1795E3",[F.GIF]:"#59B031",[F.GZIP]:"#F8AB36",[F.HTML]:"#71C3EB",[F.IMAGE]:"#59B031",[F.JPEG]:"#59B031",[F.JSON]:"#71C3EB",[F.M4A]:"#1795E3",[F.MOV]:"#E63324",[F.MP3]:"#1795E3",[F.MP4]:"#E63324",[F.OGG]:"#1795E3",[F.PDF]:"#E44948",[F.PNG]:"#59B031",[F.POWERPOINT]:"#B54A2B",[F.RAR]:"#F8AB36",[F.STP]:"#3764B1",[F.TEXT]:"#3162AB",[F.UNKNOWN]:"#999999",[F.VIDEO]:"#E63324",[F.WAV]:"#1795E3",[F.WMA]:"#1795E3",[F.WORD]:"#3162AB",[F.XML]:"#71C3EB",[F.YAML]:"#71C3EB",[F.ZIP]:"#F8AB36"}});var Ye,Td=p(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ye||(Ye={}))});var Rn,Ce,Pd=p(()=>{"use strict";P();Y();I();tn();$d();Mo();Td();Rn=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},Ce=class extends W{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,t=e!==Ye.material||!!this.value;return S`
|
|
622
|
+
`}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)}async showTemporaryText(e,t){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(t),this.text=n,this.manual=i}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="",nc(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 ${w.transitionDuration}, left ${w.transitionDuration}`,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))}};$e.elementDefinitions={"ft-typography":oe};$e.styles=Kg;vt([h()],$e.prototype,"text",void 0);vt([h({type:Boolean})],$e.prototype,"manual",void 0);vt([h({type:Boolean})],$e.prototype,"inline",void 0);vt([h({type:Number})],$e.prototype,"delay",void 0);vt([h()],$e.prototype,"position",void 0);vt([Gs()],$e.prototype,"slotNodes",void 0);vt([H(".ft-tooltip--container")],$e.prototype,"container",void 0);vt([H(".ft-tooltip")],$e.prototype,"tooltip",void 0);vt([H(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0);vt([N()],$e.prototype,"visible",void 0);vt([ti({passive:!0})],$e.prototype,"onTouch",null);vt([ti({passive:!0})],$e.prototype,"onHover",null);vt([ti({passive:!0})],$e.prototype,"onOut",null);vt([ti({passive:!0})],$e.prototype,"onClick",null)});var qg=p(()=>{"use strict"});var Na=p(()=>{"use strict";L();kd();kd();Pa();qg();M("ft-tooltip")($e)});function Fa(r,e){var t,i,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=Q0.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(i=_d.get(l))!==null&&i!==void 0?i:_d.get(e))!==null&&n!==void 0?n:_d.get(s))!==null&&a!==void 0?a:F.UNKNOWN}var et,F,_d,Q0,C_,$d=p(()=>{"use strict";(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="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK="",r.BOOKMARK_SLASH="",r.CIRCLE_PAUSE="",r.CIRCLE_PLAY="",r.CIRCLE_STOP_PLAIN="",r.CLOUD_ARROW_DOWN="",r.SHARE_NODES="",r.BELL="",r.BELL_SLASH="",r.FILE="",r.HAND="",r.SQUARE_INFO_SOLID=""})(et||(et={}));(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=""})(F||(F={}));_d=new Map([...["abw"].map(r=>[r,F.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,F.AUDIO]),...["avi"].map(r=>[r,F.AVI]),...["chm","xhs"].map(r=>[r,F.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,F.CODE]),...["csv"].map(r=>[r,F.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,F.DITA]),...["epub"].map(r=>[r,F.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,F.EXCEL]),...["flac"].map(r=>[r,F.FLAC]),...["gif"].map(r=>[r,F.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,F.GZIP]),...["html","htm","xhtml"].map(r=>[r,F.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,F.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,F.JPEG]),...["json"].map(r=>[r,F.JSON]),...["m4a","m4p"].map(r=>[r,F.M4A]),...["mov","qt"].map(r=>[r,F.MOV]),...["mp3"].map(r=>[r,F.MP3]),...["mp4","m4v"].map(r=>[r,F.MP4]),...["ogg","oga"].map(r=>[r,F.OGG]),...["pdf","ps"].map(r=>[r,F.PDF]),...["png"].map(r=>[r,F.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,F.POWERPOINT]),...["rar"].map(r=>[r,F.RAR]),...["stp"].map(r=>[r,F.STP]),...["txt","rtf","md","mdown"].map(r=>[r,F.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,F.VIDEO]),...["wav"].map(r=>[r,F.WAV]),...["wma"].map(r=>[r,F.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,F.WORD]),...["xml","xsl","rdf"].map(r=>[r,F.XML]),...["yaml","yml","x-yaml"].map(r=>[r,F.YAML]),...["zip"].map(r=>[r,F.ZIP])]),Q0=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"]]);C_={[F.ABW]:"#91ABC6",[F.AUDIO]:"#1795E3",[F.AVI]:"#E63324",[F.CHM]:"#71C3EB",[F.CODE]:"#71C3EB",[F.CSV]:"#1F7345",[F.DITA]:"#71C3EB",[F.EPUB]:"#85B926",[F.EXCEL]:"#1F7345",[F.FLAC]:"#1795E3",[F.GIF]:"#59B031",[F.GZIP]:"#F8AB36",[F.HTML]:"#71C3EB",[F.IMAGE]:"#59B031",[F.JPEG]:"#59B031",[F.JSON]:"#71C3EB",[F.M4A]:"#1795E3",[F.MOV]:"#E63324",[F.MP3]:"#1795E3",[F.MP4]:"#E63324",[F.OGG]:"#1795E3",[F.PDF]:"#E44948",[F.PNG]:"#59B031",[F.POWERPOINT]:"#B54A2B",[F.RAR]:"#F8AB36",[F.STP]:"#3764B1",[F.TEXT]:"#3162AB",[F.UNKNOWN]:"#999999",[F.VIDEO]:"#E63324",[F.WAV]:"#1795E3",[F.WMA]:"#1795E3",[F.WORD]:"#3162AB",[F.XML]:"#71C3EB",[F.YAML]:"#71C3EB",[F.ZIP]:"#F8AB36"}});var Ye,Td=p(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ye||(Ye={}))});var An,Ce,Pd=p(()=>{"use strict";P();Y();L();rn();$d();Uo();Td();An=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},Ce=class extends W{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,t=e!==Ye.material||!!this.value;return S`
|
|
623
623
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
624
|
-
${
|
|
624
|
+
${wo(this.resolvedIcon)}
|
|
625
625
|
<slot ?hidden=${t}></slot>
|
|
626
626
|
</i>
|
|
627
|
-
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=F[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=et[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=
|
|
627
|
+
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let i=this.value||this.textContent;switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=F[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ye.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=et[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ce.elementDefinitions={};Ce.styles=Bg;An([h()],Ce.prototype,"variant",void 0);An([h()],Ce.prototype,"value",void 0);An([h({reflect:!0,attribute:"aria-hidden"})],Ce.prototype,"ariaHidden",void 0);An([N()],Ce.prototype,"resolvedIcon",void 0);An([H("slot")],Ce.prototype,"slottedContent",void 0)});var zt=p(()=>{"use strict";L();Pd();Uo();Td();Pd();$d();M("ft-icon")(Ce)});var Ho,Nd=p(()=>{"use strict";P();L();Rn();Ho=class extends W{render(){return S`
|
|
628
628
|
<div class="ft-loader">
|
|
629
629
|
<div></div>
|
|
630
630
|
<div></div>
|
|
631
631
|
<div></div>
|
|
632
632
|
<div></div>
|
|
633
633
|
</div>
|
|
634
|
-
`}};
|
|
634
|
+
`}};Ho.styles=Fg});var Zg=p(()=>{"use strict"});var Yg=p(()=>{"use strict";L();Nd();Rn();Zg();Nd();M("ft-loader")(Ho)});var Wo,Qg=p(()=>{Kt();Wo=r=>r??T});var Ba=p(()=>{Qg()});var Qe,Ae,Fd=p(()=>{"use strict";L();ft();Na();ze();zt();Yg();P();ut();Y();Ba();Qe=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},Ae=class extends ad(W){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,i;let n=S`
|
|
635
635
|
<ft-ripple part="ripple"
|
|
636
636
|
?disabled=${this.isDisabled()}
|
|
637
637
|
?activated=${this.activated}
|
|
@@ -639,7 +639,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
639
639
|
<ft-typography part="label"
|
|
640
640
|
variant="${this.typographyVariant}"
|
|
641
641
|
element="span"
|
|
642
|
-
class="ft-button--label ${
|
|
642
|
+
class="ft-button--label ${Mo?"ft-safari-ellipsis-fix":""}"
|
|
643
643
|
?hidden=${!this.hasTextContent()}>
|
|
644
644
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
645
645
|
</ft-typography>
|
|
@@ -657,7 +657,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
657
657
|
<button part="button"
|
|
658
658
|
class="${be(this.buttonClasses)}"
|
|
659
659
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
660
|
-
aria-haspopup="${
|
|
660
|
+
aria-haspopup="${Wo(this.ariaHasPopup)}"
|
|
661
661
|
?disabled=${this.isDisabled()}>
|
|
662
662
|
${n}
|
|
663
663
|
</button>
|
|
@@ -672,7 +672,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
672
672
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
673
673
|
`:S`
|
|
674
674
|
<slot part="icon" name="icon"></slot>
|
|
675
|
-
`}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)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}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
|
|
675
|
+
`}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)}showTemporaryTooltip(e,t){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,t)}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 ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Ae.elementDefinitions={"ft-ripple":re,"ft-tooltip":$e,"ft-typography":oe,"ft-icon":Ce,"ft-loader":Ho};Qe([h()],Ae.prototype,"href",void 0);Qe([h()],Ae.prototype,"target",void 0);Qe([h()],Ae.prototype,"type",void 0);Qe([h({type:Boolean})],Ae.prototype,"disabled",void 0);Qe([h()],Ae.prototype,"label",void 0);Qe([h()],Ae.prototype,"icon",void 0);Qe([h()],Ae.prototype,"iconVariant",void 0);Qe([h({type:Boolean})],Ae.prototype,"trailingIcon",void 0);Qe([h({type:Boolean})],Ae.prototype,"loading",void 0);Qe([h({attribute:"aria-label"})],Ae.prototype,"ariaLabel",void 0);Qe([h()],Ae.prototype,"ariaHasPopup",void 0);Qe([h()],Ae.prototype,"tooltipPosition",void 0);Qe([h({type:Boolean})],Ae.prototype,"hideTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"forceTooltip",void 0);Qe([h({type:Boolean})],Ae.prototype,"activated",void 0);Qe([H(".ft-button")],Ae.prototype,"button",void 0);Qe([H(".ft-button--label slot")],Ae.prototype,"slottedContent",void 0);Qe([H("[part=tooltip]")],Ae.prototype,"tooltip",void 0)});var Da,De,Bd=p(()=>{"use strict";Y();L();zo();Fd();Da=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},De=class extends Ae{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"}};De.styles=[Tr,Ug];Da([h({type:Boolean})],De.prototype,"primary",void 0);Da([h({type:Boolean})],De.prototype,"outlined",void 0);Da([h({type:Boolean})],De.prototype,"dense",void 0);Da([h({type:Boolean})],De.prototype,"round",void 0)});var Dd,Xg,Md=p(()=>{"use strict";P();L();Fr();Rn();Uo();ee();Dd={...v,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},Xg=[A`
|
|
676
676
|
:host {
|
|
677
677
|
display: inline-block;
|
|
678
678
|
max-width: 100%;
|
|
@@ -761,7 +761,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
761
761
|
/** Brand Primary styles **/
|
|
762
762
|
|
|
763
763
|
.ftds--family-brand.ft-button--primary {
|
|
764
|
-
${y(
|
|
764
|
+
${y(_e.color,v.primaryBrandIconColor)};
|
|
765
765
|
|
|
766
766
|
${y($.color,v.primaryBrandStateLayerColor)};
|
|
767
767
|
${y($.opacityContentOnSurfaceHover,v.primaryBrandHoverStateLayerOpacity)};
|
|
@@ -785,7 +785,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
785
785
|
/** Brand Secondary styles **/
|
|
786
786
|
|
|
787
787
|
.ftds--family-brand.ft-button--secondary {
|
|
788
|
-
${y(
|
|
788
|
+
${y(_e.color,v.secondaryBrandIconColor)};
|
|
789
789
|
|
|
790
790
|
${y($.color,v.secondaryBrandStateLayerColor)};
|
|
791
791
|
${y($.opacityContentOnSurfaceHover,v.secondaryBrandHoverStateLayerOpacity)};
|
|
@@ -810,7 +810,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
810
810
|
/** Brand Tertiary styles **/
|
|
811
811
|
|
|
812
812
|
.ftds--family-brand.ft-button--tertiary {
|
|
813
|
-
${y(
|
|
813
|
+
${y(_e.color,v.tertiaryBrandIconColor)};
|
|
814
814
|
|
|
815
815
|
${y($.color,v.tertiaryBrandStateLayerColor)};
|
|
816
816
|
${y($.opacityContentOnSurfaceHover,v.tertiaryBrandHoverStateLayerOpacity)};
|
|
@@ -834,7 +834,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
834
834
|
/** Neutral Secondary styles **/
|
|
835
835
|
|
|
836
836
|
.ftds--family-neutral.ft-button--secondary {
|
|
837
|
-
${y(
|
|
837
|
+
${y(_e.color,v.secondaryNeutralIconColor)};
|
|
838
838
|
|
|
839
839
|
${y($.backgroundColor,v.secondaryNeutralStateLayerColor)};
|
|
840
840
|
${y($.opacityContentOnSurfaceHover,v.secondaryNeutralHoverStateLayerOpacity)};
|
|
@@ -859,7 +859,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
859
859
|
/** Neutral Tertiary styles **/
|
|
860
860
|
|
|
861
861
|
.ftds--family-neutral.ft-button--tertiary {
|
|
862
|
-
${y(
|
|
862
|
+
${y(_e.color,v.tertiaryNeutralIconColor)};
|
|
863
863
|
|
|
864
864
|
${y($.backgroundColor,v.tertiaryNeutralStateLayerColor)};
|
|
865
865
|
${y($.opacityContentOnSurfaceHover,v.tertiaryNeutralHoverStateLayerOpacity)};
|
|
@@ -883,7 +883,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
883
883
|
/** Info Secondary styles **/
|
|
884
884
|
|
|
885
885
|
.ftds--family-info.ft-button--secondary {
|
|
886
|
-
${y(
|
|
886
|
+
${y(_e.color,v.secondaryInfoIconColor)};
|
|
887
887
|
|
|
888
888
|
${y($.backgroundColor,v.secondaryInfoStateLayerColor)};
|
|
889
889
|
${y($.opacityContentOnSurfaceHover,v.secondaryInfoHoverStateLayerOpacity)};
|
|
@@ -908,7 +908,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
908
908
|
/** Info Tertiary styles **/
|
|
909
909
|
|
|
910
910
|
.ftds--family-info.ft-button--tertiary {
|
|
911
|
-
${y(
|
|
911
|
+
${y(_e.color,v.tertiaryInfoIconColor)};
|
|
912
912
|
|
|
913
913
|
${y($.backgroundColor,v.tertiaryInfoStateLayerColor)};
|
|
914
914
|
${y($.opacityContentOnSurfaceHover,v.tertiaryInfoHoverStateLayerOpacity)};
|
|
@@ -932,7 +932,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
932
932
|
/** Success Secondary styles **/
|
|
933
933
|
|
|
934
934
|
.ftds--family-success.ft-button--secondary {
|
|
935
|
-
${y(
|
|
935
|
+
${y(_e.color,v.secondarySuccessIconColor)};
|
|
936
936
|
|
|
937
937
|
${y($.backgroundColor,v.secondarySuccessStateLayerColor)};
|
|
938
938
|
${y($.opacityContentOnSurfaceHover,v.secondarySuccessHoverStateLayerOpacity)};
|
|
@@ -957,7 +957,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
957
957
|
/** Success Tertiary styles **/
|
|
958
958
|
|
|
959
959
|
.ftds--family-success.ft-button--tertiary {
|
|
960
|
-
${y(
|
|
960
|
+
${y(_e.color,v.tertiarySuccessIconColor)};
|
|
961
961
|
|
|
962
962
|
${y($.backgroundColor,v.tertiarySuccessStateLayerColor)};
|
|
963
963
|
${y($.opacityContentOnSurfaceHover,v.tertiarySuccessHoverStateLayerOpacity)};
|
|
@@ -981,7 +981,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
981
981
|
/** Warning Secondary styles **/
|
|
982
982
|
|
|
983
983
|
.ftds--family-warning.ft-button--secondary {
|
|
984
|
-
${y(
|
|
984
|
+
${y(_e.color,v.secondaryWarningIconColor)};
|
|
985
985
|
|
|
986
986
|
${y($.backgroundColor,v.secondaryWarningStateLayerColor)};
|
|
987
987
|
${y($.opacityContentOnSurfaceHover,v.secondaryWarningHoverStateLayerOpacity)};
|
|
@@ -1006,7 +1006,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1006
1006
|
/** Warning Tertiary styles **/
|
|
1007
1007
|
|
|
1008
1008
|
.ftds--family-warning.ft-button--tertiary {
|
|
1009
|
-
${y(
|
|
1009
|
+
${y(_e.color,v.tertiaryWarningIconColor)};
|
|
1010
1010
|
|
|
1011
1011
|
${y($.backgroundColor,v.tertiaryWarningStateLayerColor)};
|
|
1012
1012
|
${y($.opacityContentOnSurfaceHover,v.tertiaryWarningHoverStateLayerOpacity)};
|
|
@@ -1030,7 +1030,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1030
1030
|
/** Error Secondary styles **/
|
|
1031
1031
|
|
|
1032
1032
|
.ftds--family-error.ft-button--secondary {
|
|
1033
|
-
${y(
|
|
1033
|
+
${y(_e.color,v.secondaryErrorIconColor)};
|
|
1034
1034
|
|
|
1035
1035
|
${y($.backgroundColor,v.secondaryErrorStateLayerColor)};
|
|
1036
1036
|
${y($.opacityContentOnSurfaceHover,v.secondaryErrorHoverStateLayerOpacity)};
|
|
@@ -1055,7 +1055,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1055
1055
|
/** Error Tertiary styles **/
|
|
1056
1056
|
|
|
1057
1057
|
.ftds--family-error.ft-button--tertiary {
|
|
1058
|
-
${y(
|
|
1058
|
+
${y(_e.color,v.tertiaryErrorIconColor)};
|
|
1059
1059
|
|
|
1060
1060
|
${y($.backgroundColor,v.tertiaryErrorStateLayerColor)};
|
|
1061
1061
|
${y($.opacityContentOnSurfaceHover,v.tertiaryErrorHoverStateLayerOpacity)};
|
|
@@ -1080,7 +1080,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1080
1080
|
|
|
1081
1081
|
.ftds--size-large {
|
|
1082
1082
|
${y(Fe.size,v.largeIconSize)};
|
|
1083
|
-
${y(
|
|
1083
|
+
${y(_e.size,v.largeIconSize)};
|
|
1084
1084
|
|
|
1085
1085
|
height: ${v.largeHeight};
|
|
1086
1086
|
padding: 0 ${v.largeHorizontalPadding};
|
|
@@ -1102,7 +1102,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1102
1102
|
|
|
1103
1103
|
.ftds--size-medium {
|
|
1104
1104
|
${y(Fe.size,v.mediumIconSize)};
|
|
1105
|
-
${y(
|
|
1105
|
+
${y(_e.size,v.mediumIconSize)};
|
|
1106
1106
|
|
|
1107
1107
|
height: ${v.mediumHeight};
|
|
1108
1108
|
padding: 0 ${v.mediumHorizontalPadding};
|
|
@@ -1125,7 +1125,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1125
1125
|
|
|
1126
1126
|
.ftds--size-small {
|
|
1127
1127
|
${y(Fe.size,v.smallIconSize)};
|
|
1128
|
-
${y(
|
|
1128
|
+
${y(_e.size,v.smallIconSize)};
|
|
1129
1129
|
|
|
1130
1130
|
height: ${v.smallHeight};
|
|
1131
1131
|
padding: 0 ${v.smallHorizontalPadding};
|
|
@@ -1142,7 +1142,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1142
1142
|
.ftds--size-small.ft-button--icon-only {
|
|
1143
1143
|
width: ${v.smallIconOnlyWidth};
|
|
1144
1144
|
}
|
|
1145
|
-
|
|
1145
|
+
`,$r]});var Ma,er,Ud=p(()=>{"use strict";Fd();Y();Pi();L();Md();ee();zt();Ma=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},er=class extends pr(Ae){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Rt.brand,this.iconVariant=Ye.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 qe.large:return Be.body2medium;case qe.medium:return Be.caption1medium;case qe.small:return Be.caption2medium}}};er.styles=[Tr,Xg];Ma([h({type:Boolean})],er.prototype,"primary",void 0);Ma([h({type:Boolean})],er.prototype,"secondary",void 0);Ma([h({type:Boolean})],er.prototype,"tertiary",void 0);Ma([h({type:Boolean})],er.prototype,"round",void 0)});var Jg=p(()=>{"use strict"});var ey=p(()=>{"use strict"});var Ht=p(()=>{"use strict";L();Bd();Ud();Bd();zo();Jg();Ud();Md();ey();M("ft-button")(De);M("ftds-button")(er)});var Oe,zd,Ln=p(()=>{"use strict";P();L();Ht();Na();Oe={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",w.borderRadiusS),desktopFiltersHeight:o.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.extend("--ft-search-input-background-color","",w.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",w.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",w.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",w.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",w.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",w.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",w.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",w.colorPrimary)},zd=A`
|
|
1146
1146
|
* {
|
|
1147
1147
|
box-sizing: border-box;
|
|
1148
1148
|
${y(te.color,Oe.buttonColor)};
|
|
@@ -1200,7 +1200,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1200
1200
|
align-items: center;
|
|
1201
1201
|
height: 100%;
|
|
1202
1202
|
|
|
1203
|
-
${y(
|
|
1203
|
+
${y(gr.zIndex,`calc(${Oe.floatingZIndex} + 1)`)};
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
.ft-search-input > ft-button,
|
|
@@ -1218,12 +1218,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1218
1218
|
height: 20px;
|
|
1219
1219
|
border-right: 1px solid ${Oe.colorOutline};
|
|
1220
1220
|
}
|
|
1221
|
-
`});var Ua,Hd,za=p(()=>{"use strict";P();
|
|
1221
|
+
`});var Ua,Hd,za=p(()=>{"use strict";P();L();Ua={highlightBackgroundColor:o.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Hd=A`
|
|
1222
1222
|
.kwicmatch {
|
|
1223
1223
|
font-weight: 700;
|
|
1224
1224
|
background-color: ${Ua.highlightBackgroundColor};
|
|
1225
1225
|
}
|
|
1226
|
-
`});var Ha,Wd,Wa=p(()=>{"use strict";P();
|
|
1226
|
+
`});var Ha,Wd,Wa=p(()=>{"use strict";P();L();Ha={highlightBackgroundColor:o.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Wd=A`
|
|
1227
1227
|
.kwicmatch {
|
|
1228
1228
|
font-weight: 700;
|
|
1229
1229
|
background-color: ${Ha.highlightBackgroundColor};
|
|
@@ -1237,19 +1237,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1237
1237
|
a:focus {
|
|
1238
1238
|
outline: revert;
|
|
1239
1239
|
}
|
|
1240
|
-
`});var
|
|
1241
|
-
`});var
|
|
1242
|
-
`});var Q0,Wo,X0,U,st=p(()=>{"use strict";I();Q0="ft-app-info",Wo=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Wo.eventName="authentication-change";X0={session:(r,e)=>{Ge(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>U.dispatchEvent(new Wo(e.payload)),0))}},U=Tr.get({name:Q0,reducers:X0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],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,authenticationRequired:!1}})});var Vo,Gd=p(()=>{"use strict";st();Vo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=U.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var Va,iy=p(()=>{"use strict";Gd();Va=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Vo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Vo.await()}}});var lt,io=p(()=>{"use strict";I();iy();lt=class extends Va{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ar,this.cache=e?n.commonCache:new ar}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var ja,Kd=p(()=>{"use strict";st();io();ja=class extends lt{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var qd,ny=p(()=>{"use strict";st();qd=class{addCommand(e,t=!1){U.commands.add(e,t)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qd});var ay,Pi,J0,Ga,Ni,Ka,sy=p(()=>{"use strict";st();I();io();Pi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},J0=Symbol("clearAfterUnitTest"),Ga=class extends ta(lt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ay]=()=>{this.defaultMessages={},this.cache=new ar,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ge(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new qr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof nr)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pi({loadedContexts:e})),this.dispatchEvent(new Pi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Pi({loadedContexts:[e]})),this.dispatchEvent(new Pi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ea(0).then(()=>i()).catch(()=>null)))}};ay=J0;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ni=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService});var Zd,ly=p(()=>{"use strict";I();Zd=class{highlightHtml(e,t,i){gc(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Zd});var qa,Yd=p(()=>{"use strict";st();to();io();qa=class extends lt{async listMySearches(){let{session:e}=U.getState();return Xm(e,We.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Qd,cy=p(()=>{"use strict";I();st();Qd=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=U.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 No.format(e,(i=t?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Qd});var Br,Xd=p(()=>{"use strict";I();st();Br=class{static get(e,t){var i,n;let a=U.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new ro(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Za,dy=p(()=>{"use strict";io();Za=class extends lt{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var Jd,py=p(()=>{"use strict";Xd();Jd=class{urlToSearchRequest(e){return Br.get().parse(e)}searchRequestToUrl(e){return Br.get().serialize(e)}};window.FluidTopicsUrlService=new Jd});var jo,uy=p(()=>{"use strict";jo=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};jo.eventName="change"});var ep,fy,hy=p(()=>{"use strict";ep=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},fy=new ep});var Ya,my=p(()=>{"use strict";I();uy();hy();Ya=class r extends Rr{static build(){return new r(window.history,fy,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new jo(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(jo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(jo.eventName,e)}currentItem(){return on(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return on(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return on(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var gy=p(()=>{"use strict";my();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ya.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var yy=p(()=>{"use strict";st()});var tp=p(()=>{"use strict";Kd();Gd();ny();sy();io();ly();Yd();cy();Xd();dy();py();gy();yy()});function xy(r,e){var t;return by.getState().authenticationRequired&&!(!((t=by.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var by,vy=p(()=>{"use strict";st();by=U});var je,Ie,rp=p(()=>{"use strict";P();Y();I();jd();st();tp();vy();je=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},Ie=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Vo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new ar,this.cleanSessionDebouncer=new me,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
|
|
1240
|
+
`});var oy,Vd=p(()=>{"use strict";P();oy=A`
|
|
1241
|
+
`});var iy,jd=p(()=>{"use strict";P();iy=A`
|
|
1242
|
+
`});var X0,Vo,J0,U,lt=p(()=>{"use strict";L();X0="ft-app-info",Vo=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Vo.eventName="authentication-change";J0={session:(r,e)=>{Ke(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>U.dispatchEvent(new Vo(e.payload)),0))}},U=Nr.get({name:X0,reducers:J0,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],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,authenticationRequired:!1}})});var jo,Gd=p(()=>{"use strict";lt();jo=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let i=r.get(e);if(i)t(i);else{let n=U.subscribe(()=>{i=r.get(e),i&&(n(),t(i))})}})}}});var Va,ny=p(()=>{"use strict";Gd();Va=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:jo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):jo.await()}}});var ct,so=p(()=>{"use strict";L();ny();ct=class extends Va{constructor(e=!0,t){var i;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new lr,this.cache=e?n.commonCache:new lr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,i)=>0|31*t+i.charCodeAt(0),0))}}});var ja,Kd=p(()=>{"use strict";lt();so();ja=class extends ct{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var qd,ay=p(()=>{"use strict";lt();qd=class{addCommand(e,t=!1){U.commands.add(e,t)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qd});var sy,Ni,eS,Ga,Fi,Ka,ly=p(()=>{"use strict";lt();L();so();Ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},eS=Symbol("clearAfterUnitTest"),Ga=class extends ra(ct){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sy]=()=>{this.defaultMessages={},this.cache=new lr,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var i;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...t};Ke(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,i;return this.fetchContext(e),(i=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,t){let i=e.toLowerCase();return this.resolveContext(i)[t]}resolveMessage(e,t,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Qr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...i)}async fetchContext(e){let t=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof sr)&&t&&console.error(n)}return i}subscribe(e,t){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ni({loadedContexts:e})),this.dispatchEvent(new Ni({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ni({loadedContexts:[e]})),this.dispatchEvent(new Ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ta(0).then(()=>i()).catch(()=>null)))}};sy=eS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ga{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Fi=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService});var Zd,cy=p(()=>{"use strict";L();Zd=class{highlightHtml(e,t,i){gc(e,t,i)}};window.FluidTopicsHighlightHtmlService=new Zd});var qa,Yd=p(()=>{"use strict";lt();io();so();qa=class extends ct{async listMySearches(){let{session:e}=U.getState();return Xm(e,Ve.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var Qd,dy=p(()=>{"use strict";L();lt();Qd=class{isDate(e){var t,i,n,a;return(a=(n=((i=(t=U.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 Fo.format(e,(i=t?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Qd});var Mr,Xd=p(()=>{"use strict";L();lt();Mr=class{static get(e,t){var i,n;let a=U.getState(),{lang:s,region:l}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new no(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Za,py=p(()=>{"use strict";so();Za=class extends ct{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let t=Object.entries(e).map(([i,n])=>Array.isArray(n)?[i,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[i,this.sortEventArrays(n)]:[i,n]);return Object.fromEntries(t)}sendEvents(e,t){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(n=>(console.info(t),console.debug(n),i)),1e3)}}});var Jd,uy=p(()=>{"use strict";Xd();Jd=class{urlToSearchRequest(e){return Mr.get().parse(e)}searchRequestToUrl(e){return Mr.get().serialize(e)}};window.FluidTopicsUrlService=new Jd});var Go,fy=p(()=>{"use strict";Go=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Go.eventName="change"});var ep,hy,my=p(()=>{"use strict";ep=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},hy=new ep});var Ya,gy=p(()=>{"use strict";L();fy();my();Ya=class r extends Lr{static build(){return new r(window.history,hy,()=>window.location,!1)}constructor(e,t,i,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let i=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ke(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Go(this.currentItem())),0)}installProxies(){let e=t=>(i,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Go.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Go.eventName,e)}currentItem(){return nn(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return nn(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return nn(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let i=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var i;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}}});var yy=p(()=>{"use strict";gy();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ya.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var by=p(()=>{"use strict";lt()});var tp=p(()=>{"use strict";Kd();Gd();ay();ly();so();cy();Yd();dy();Xd();py();uy();yy();by()});function vy(r,e){var t;return xy.getState().authenticationRequired&&!(!((t=xy.getState().session)===null||t===void 0)&&t.sessionAuthenticated)?Promise.resolve(e):r()}var xy,Sy=p(()=>{"use strict";lt();xy=U});var Ge,Le,rp=p(()=>{"use strict";P();Y();L();jd();lt();tp();Sy();Ge=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},Le=class extends W{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>jo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new lr,this.cleanSessionDebouncer=new pe,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return S`
|
|
1243
1243
|
<slot></slot>
|
|
1244
|
-
`}connectedCallback(){super.connectedCallback(),U.addEventListener(Wo.eventName,this.reloadConfiguration)}disconnectedCallback(){U.addEventListener(Wo.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(U.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&U.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&U.actions.noCustom(this.noCustom),e.has("editorMode")&&U.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&U.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Ni.addContext(f)),e.has("openExternalDocumentInNewTab")&&U.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&U.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&U.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(U.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),U.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),U.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&U.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&U.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>xy(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Ie.elementDefinitions={};Ie.styles=oy;je([h()],Ie.prototype,"baseUrl",void 0);je([h()],Ie.prototype,"apiIntegrationIdentifier",void 0);je([h()],Ie.prototype,"apiIntegrationAppVersion",void 0);je([h()],Ie.prototype,"uiLocale",void 0);je([Re(null)],Ie.prototype,"availableUiLocales",void 0);je([Re(null)],Ie.prototype,"metadataConfiguration",void 0);je([h({type:Boolean})],Ie.prototype,"editorMode",void 0);je([h({type:Boolean})],Ie.prototype,"noCustom",void 0);je([h({type:Boolean})],Ie.prototype,"openExternalDocumentInNewTab",void 0);je([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Ie.prototype,"noCustomComponent",void 0);je([h({type:Boolean})],Ie.prototype,"withManualResources",void 0);je([h({type:Boolean})],Ie.prototype,"navigatorOnline",void 0);je([h({type:Boolean})],Ie.prototype,"forcedOffline",void 0);je([h({type:Object})],Ie.prototype,"apiProvider",void 0);je([h({type:Boolean})],Ie.prototype,"authenticationRequired",void 0);je([Re([])],Ie.prototype,"messageContexts",void 0);je([Re(void 0)],Ie.prototype,"session",void 0);je([N()],Ie.prototype,"localesConfiguration",void 0);je([N()],Ie.prototype,"availableContentLocales",void 0)});var Qa,kP,Sy=p(()=>{"use strict";Y();Ea();ka();st();I();Qa=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},kP=Ne(Symbol("withDateFormat"),function(r){class e extends r{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>No.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Qa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Qa([ve({store:U.name,selector:t=>{var i,n;return(n=(i=t.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Qa([ve({store:U.name})],e.prototype,"uiLocale",void 0),e})});var Xa,Cy=p(()=>{"use strict";st();io();Xa=class extends lt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var Ja,Oy=p(()=>{"use strict";io();st();Ja=class extends lt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var eS,tS,It,op,ip,es=p(()=>{"use strict";to();I();Yd();Kd();st();Cy();Oy();eS="ft-user-assets",tS={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(Po).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},It=Tr.get({name:eS,reducers:tS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Po).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),op=class{constructor(e=new Xa,t=new Ja){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ja,this.savedSearchesService=new qa,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=U.getState();Ge((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),It.actions.clearAssetCount(),It.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),It.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),It.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();It.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();It.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&It.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&It.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(It.getState().assetCounts.bookmarkByMap).length!==0;e===Po.BOOKMARKS&&t&&It.actions.clearBookmarkCountByMap(),It.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}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;It.actions.bookmarks(t)}}},ip=new op;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ip)});var wy=p(()=>{"use strict";to();es()});var Ey=p(()=>{"use strict"});var mr=p(()=>{"use strict";I();rp();Sy();st();es();wy();tp();jd();Ey();rp();M("ft-app-context")(Ie)});var np,Ry,Ay=p(()=>{"use strict";np=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ry=new np});var rS,oS,iS,Ly,ts,In,zt,Iy,rs,os=p(()=>{"use strict";I();mr();Y();Ay();rS=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},oS=Symbol("i18nAttributes"),iS=Symbol("i18nListAttributes"),Ly=Symbol("i18nProperties"),ts=Symbol("i18nContexts"),In=Symbol("i18nUnsubs"),zt=Ne(Symbol("withI18n"),function(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:Ni}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let b=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(s,l,...b)}return d}customI18n(a,s){if(Ry.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,b)=>b?.context&&b.key&&a(g,m,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[oS])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[iS])===null||l===void 0||l.forEach((g,m)=>{var b;return d[m]=(b=d[m])===null||b===void 0?void 0:b.map(O=>f(g,m,O))})}updateI18nProperties(a){var s;(s=this[Ly])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ts].set(d,{isCustomContext:l}),this[In].has(d)||this[In].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ts].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ts].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[In].forEach(a=>a()),this[In].clear()}}return e=ts,t=In,rS([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Iy=class extends zt(W){},rs=class extends zt(Qt){}});var Ln,er,ap=p(()=>{"use strict";P();Y();I();Vd();os();mr();Ln=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},er=class extends rs{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
|
|
1244
|
+
`}connectedCallback(){super.connectedCallback(),U.addEventListener(Vo.eventName,this.reloadConfiguration)}disconnectedCallback(){U.addEventListener(Vo.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var t,i,n,a,s,l,d;super.update(e),e.has("baseUrl")&&(U.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&U.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&U.actions.noCustom(this.noCustom),e.has("editorMode")&&U.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&U.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Fi.addContext(f)),e.has("openExternalDocumentInNewTab")&&U.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&U.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&U.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(U.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),U.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),U.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&U.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&U.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>vy(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Le.elementDefinitions={};Le.styles=iy;Ge([h()],Le.prototype,"baseUrl",void 0);Ge([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ge([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ge([h()],Le.prototype,"uiLocale",void 0);Ge([Ee(null)],Le.prototype,"availableUiLocales",void 0);Ge([Ee(null)],Le.prototype,"metadataConfiguration",void 0);Ge([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ge([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ge([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ge([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ge([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ge([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ge([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ge([h({type:Object})],Le.prototype,"apiProvider",void 0);Ge([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ge([Ee([])],Le.prototype,"messageContexts",void 0);Ge([Ee(void 0)],Le.prototype,"session",void 0);Ge([N()],Le.prototype,"localesConfiguration",void 0);Ge([N()],Le.prototype,"availableContentLocales",void 0)});var Qa,kP,Cy=p(()=>{"use strict";Y();Ea();ka();lt();L();Qa=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},kP=Ne(Symbol("withDateFormat"),function(r){class e extends r{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Fo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Qa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Qa([ve({store:U.name,selector:t=>{var i,n;return(n=(i=t.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Qa([ve({store:U.name})],e.prototype,"uiLocale",void 0),e})});var Xa,Oy=p(()=>{"use strict";lt();so();Xa=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var Ja,wy=p(()=>{"use strict";so();lt();Ja=class extends ct{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=U.getState().session;return!!e?.sessionAuthenticated}}});var tS,rS,kt,op,ip,es=p(()=>{"use strict";io();L();Yd();Kd();lt();Oy();wy();tS="ft-user-assets",rS={setAssetCount:(r,e)=>{let{userAssetType:t,count:i}=e.payload.assetCount;r.assetCounts.allAsset[t]=i},clearAssetCount:r=>{Object.values(It).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:i,asset:n}=e.payload;switch(t){case It.BOOKMARKS:r.bookmarks?r.bookmarks.push(n):r.bookmarks=[n];break;case It.SEARCHES:r.savedSearches?r.savedSearches.push(n):r.savedSearches=[n];break}let a=r.assetCounts.allAsset[t];if(a!==void 0&&(r.assetCounts.allAsset[t]=a+1),t===It.BOOKMARKS&&i!==void 0){let s=r.assetCounts.bookmarkByMap[i];s!==void 0&&(r.assetCounts.bookmarkByMap[i]=s+1)}},removeAsset:(r,e)=>{var t,i;let{assetType:n,mapId:a,assetId:s}=e.payload;switch(n){case It.BOOKMARKS:r.bookmarks=(t=r.bookmarks)===null||t===void 0?void 0:t.filter(d=>d.id!==s);break;case It.SEARCHES:r.savedSearches=(i=r.savedSearches)===null||i===void 0?void 0:i.filter(d=>d.id!==s);break}let l=r.assetCounts.allAsset[n];if(l!==void 0&&l>0&&(r.assetCounts.allAsset[n]=l-1),n===It.BOOKMARKS&&a!==void 0){let d=r.assetCounts.bookmarkByMap[a];d!==void 0&&d>0&&(r.assetCounts.bookmarkByMap[a]=d-1)}}},kt=Nr.get({name:tS,reducers:rS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(It).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),op=class{constructor(e=new Xa,t=new Ja){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ja,this.savedSearchesService=new qa,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=U.getState();Ke((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),kt.actions.clearAssetCount(),kt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),kt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),kt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();kt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();kt.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&kt.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&kt.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(kt.getState().assetCounts.bookmarkByMap).length!==0;e===It.BOOKMARKS&&t&&kt.actions.clearBookmarkCountByMap(),kt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}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;kt.actions.bookmarks(t)}}},ip=new op;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ip)});var Ey=p(()=>{"use strict";io();es()});var Ry=p(()=>{"use strict"});var yr=p(()=>{"use strict";L();rp();Cy();lt();es();Ey();tp();jd();Ry();rp();M("ft-app-context")(Le)});var np,Ay,Ly=p(()=>{"use strict";np=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ay=new np});var oS,iS,nS,ky,ts,In,St,Iy,rs,os=p(()=>{"use strict";L();yr();Y();Ly();oS=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},iS=Symbol("i18nAttributes"),nS=Symbol("i18nListAttributes"),ky=Symbol("i18nProperties"),ts=Symbol("i18nContexts"),In=Symbol("i18nUnsubs"),St=Ne(Symbol("withI18n"),function(r){var e,t;class i extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:Fi}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let b=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(s,l,...b)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ay.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(g,m,b)=>b?.context&&b.key&&a(g,m,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[iS])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[nS])===null||l===void 0||l.forEach((g,m)=>{var b;return d[m]=(b=d[m])===null||b===void 0?void 0:b.map(O=>f(g,m,O))})}updateI18nProperties(a){var s;(s=this[ky])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ts].set(d,{isCustomContext:l}),this[In].has(d)||this[In].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ts].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ts].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[In].forEach(a=>a()),this[In].clear()}}return e=ts,t=In,oS([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Iy=class extends St(W){},rs=class extends St(Xt){}});var kn,tr,ap=p(()=>{"use strict";P();Y();L();Vd();os();yr();kn=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},tr=class extends rs{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:S`
|
|
1245
1245
|
<span class="ft-i18n">
|
|
1246
1246
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1247
1247
|
</span>
|
|
1248
|
-
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};
|
|
1249
|
-
`});var By=p(()=>{"use strict"});var lS,Dy,My=p(()=>{"use strict";I();lS={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:Oo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestSortId:(r,e)=>{r.request.sortId=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},Dy=r=>Tr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:lS})});var as,Uy=p(()=>{"use strict";mr();as=class extends lt{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var zy,kn,Mi,hp=p(()=>{"use strict";I();My();to();Uy();zy=r=>r.request.virtualField===To.TITLE_ONLY&&r.request.scope===Oi.DOCUMENTS,kn=class r extends Event{constructor(){super(r.eventName)}};kn.eventName="search-context-clear-all-filters";Mi=class r{static build(e,t){return new r(Dy(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new me(10),this.searchDebouncer=new me(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new me(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=t??new as,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=xi(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=xi(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var t;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(t=this.sortOptions.find(n=>n.id==e))!==null&&t!==void 0?t:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(To.TITLE_ONLY),this.store.actions.setRequestScope(Oi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(To.EVERYWHERE),this.store.actions.setRequestScope(Oi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return zy(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new kn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=ii(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof nr||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=ii(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof nr)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var cS,gp,Hy,mp,dS,pS,Ht,Go=p(()=>{"use strict";I();Y();By();hp();cS=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},gp=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Hy=Symbol("registerInterval"),mp=Symbol("registerAttempts"),dS=40,pS=Ne(Symbol("toFtSearchComponent"),function(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[mp]=0,this[Hy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[mp]>dS?window.clearInterval(this[Hy]):(this[mp]++,this.dispatchEvent(new gp))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return cS([N()],e.prototype,"stateManager",void 0),e}),Ht=class extends pS(Qt){}});function _n(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function $n(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var yp=p(()=>{"use strict"});var ss,Wy=p(()=>{"use strict";I();to();mr();yp();ss=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Za,this.resultsWatcher=xi(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=U.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=U.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:$o.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:_n(e.metadataFilters),facets:e.metadataFilters.map(n=>$n(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:$o.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Bt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:$o.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:_n(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Bt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:$o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:_n(i.metadataFilters),facets:i.metadataFilters.map(s=>$n(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Bt.MAP:return{id:e.map.mapId,title:e.map.title,type:Si.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Bt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Si.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Bt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Si.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var tt,ls,cs,ds,$e,bp=p(()=>{"use strict";P();Y();I();fp();Go();mr();es();Wy();tt=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},ls=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},cs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ds=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},$e=class extends Qt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Mi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ss(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(U)}render(){return S`
|
|
1248
|
+
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};tr.elementDefinitions={};tr.styles=oy;kn([ve()],tr.prototype,"editorMode",void 0);kn([h()],tr.prototype,"context",void 0);kn([h()],tr.prototype,"key",void 0);kn([Ee([])],tr.prototype,"args",void 0);kn([h()],tr.prototype,"defaultMessage",void 0)});var br,_y=p(()=>{"use strict";yr();br=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ka:Fi}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var $y=p(()=>{"use strict";os()});var Ty=p(()=>{"use strict"});var rr=p(()=>{"use strict";L();ap();_y();os();$y();Vd();Ty();ap();M("ft-i18n")(tr)});function Fy(r){var e,t,i,n,a;return((n=(t=(e=r.map)===null||e===void 0?void 0:e.openMode)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.openMode)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.openMode)===Ia.EXTERNAL}function ns(r){var e,t,i,n,a;if(Fy(r))return(n=(t=(e=r.map)===null||e===void 0?void 0:e.originUrl)!==null&&t!==void 0?t:(i=r.topic)===null||i===void 0?void 0:i.originUrl)!==null&&n!==void 0?n:(a=r.document)===null||a===void 0?void 0:a.originUrl;switch(r.type){case Mt.MAP:return r.map.readerUrl;case Mt.DOCUMENT:return r.document.viewerUrl;case Mt.TOPIC:return r.topic.readerUrl}return""}function By(r,e){return Wo(e&&Fy(r)?"_blank":void 0)}var cp=p(()=>{"use strict";io();Ba()});var Di,Mi,pp=p(()=>{"use strict";Di=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Mi=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}}});var lS,up,fp=p(()=>{"use strict";P();lS={},up=A`
|
|
1249
|
+
`});var Dy=p(()=>{"use strict"});var cS,My,Uy=p(()=>{"use strict";L();cS={setRequest:(r,e)=>{r.request=e.payload},setRequestQuery:(r,e)=>{r.request.query=e.payload},setRequestContentLocale:(r,e)=>{r.request.contentLocale=e.payload},setPageSize:(r,e)=>{var t;let i=+((t=e.payload)!==null&&t!==void 0?t:20);r.request.paging.perPage=isNaN(i)?20:Eo(1,i,1e3)},setPageNumber:(r,e)=>{r.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(r,e)=>{r.request.sort=e.payload},setRequestSortId:(r,e)=>{r.request.sortId=e.payload},setRequestFilters:(r,e)=>{r.request.metadataFilters=e.payload},setRequestFacets:(r,e)=>{r.request.facets=e.payload},setRequestVirtualField:(r,e)=>{r.request.virtualField=e.payload},setRequestScope:(r,e)=>{r.request.scope=e.payload},setOtherQueryParams:(r,e)=>{r.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(r,e)=>{var t;r.request.clusterSortCriterions=(t=e.payload)!==null&&t!==void 0?t:[]}},My=r=>Nr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:cS})});var as,zy=p(()=>{"use strict";yr();as=class extends ct{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,n)=>i.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((i,n)=>i.localeCompare(n))}}).sort((t,i)=>t.key.localeCompare(i.key))}}});var Hy,_n,Ui,hp=p(()=>{"use strict";L();Uy();io();zy();Hy=r=>r.request.virtualField===No.TITLE_ONLY&&r.request.scope===wi.DOCUMENTS,_n=class r extends Event{constructor(){super(r.eventName)}};_n.eventName="search-context-clear-all-filters";Ui=class r{static build(e,t){return new r(My(e.trim()||"context"),t)}constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pe(10),this.searchDebouncer=new pe(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new pe(300),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var n;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(n=i.request.sort)!==null&&n!==void 0?n:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope}},this.service=t??new as,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=vi(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=vi(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1)}setContentLocale(e){var t;let i=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],n=this.store.getState().request.contentLocale;if(e!=n){if(i.length>0){let a=s=>i.some(l=>l.lang==s);a(e)||(e=a(n)?n:i[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([])}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e)}setPageSize(e){this.store.actions.setPageSize(e)}setPageNumber(e){this.store.actions.setPageNumber(e)}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1)}setSortId(e){var t;if(this.store.actions.setPageNumber(1),e==null||this.sortOptions.length==0)return this.store.actions.setRequestSortId(e),e;let i=(t=this.sortOptions.find(n=>n.id==e))!==null&&t!==void 0?t:this.sortOptions[0];return this.store.actions.setRequestSortId(i.id),i.id}setFilters(e){let t=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.store.actions.setRequestFilters(t),this.store.actions.setPageNumber(1)}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e)}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(No.TITLE_ONLY),this.store.actions.setRequestScope(wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(No.EVERYWHERE),this.store.actions.setRequestScope(wi.DEFAULT))}setVirtualField(e){this.store.actions.setRequestVirtualField(e)}get searchInDocumentTitlesOnly(){return Hy(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new _n)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let i=this.facetIds.filter(n=>n!=e);t&&i.push(t),this.facetIds=i}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(i=>i.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let i=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(i)}setRangeFilter(e,t,i){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:i}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,i=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1)}setScope(e){this.store.actions.setRequestScope(e)}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,i,n,a;try{if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=ni(this.service.launchSearch(e));let s=await this.cancelableSearch;if(this.store.actions.announcements(s.announcements),s.paging.currentPage<=1)this.store.actions.results(s.results),this.store.actions.facets(s.facets),this.store.actions.spellcheck(s.spellcheck);else{let l=((i=this.store.getState().results)!==null&&i!==void 0?i:[]).concat(s.results);this.store.actions.results(l),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(s.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(s.paging)}}catch(s){s instanceof sr||(console.error(s),(a=this.errorHandler)===null||a===void 0||a.call(this,s))}}async fetchSuggestData(e){var t;try{(t=this.cancelableSuggest)===null||t===void 0||t.cancel(),this.cancelableSuggest=ni(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof sr)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var dS,gp,Wy,mp,pS,uS,Wt,Ko=p(()=>{"use strict";L();Y();Dy();hp();dS=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},gp=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Wy=Symbol("registerInterval"),mp=Symbol("registerAttempts"),pS=40,uS=Ne(Symbol("toFtSearchComponent"),function(r){class e extends r{setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[mp]=0,this[Wy]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[mp]>pS?window.clearInterval(this[Wy]):(this[mp]++,this.dispatchEvent(new gp))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return dS([N()],e.prototype,"stateManager",void 0),e}),Wt=class extends uS(Xt){}});function $n(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Tn(r){var e;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values}}var yp=p(()=>{"use strict"});var ss,Vy=p(()=>{"use strict";L();io();yr();yp();ss=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=i=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i):this.sendDocumentSearchEvent(n,i)},this.eventsService=t??new Za,this.resultsWatcher=vi(e,i=>i.results,this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.convertToAnalyticsMap(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=U.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}convertToAnalyticsMap(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=U.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:$n(e.metadataFilters),facets:e.metadataFilters.map(n=>Tn(n))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t){if(e.metadataFilters.find(n=>{var a;return n.key==="ft:publicationId"&&((a=n.valueFilter)===null||a===void 0?void 0:a.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Mt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let i=this.store.getState().request,n;e.type==Mt.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Po.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:$n(i.metadataFilters),facets:i.metadataFilters.map(s=>Tn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Mt.MAP:return{id:e.map.mapId,title:e.map.title,type:Ci.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Mt.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ci.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Mt.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ci.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.originUrl}}});var tt,ls,cs,ds,Te,bp=p(()=>{"use strict";P();Y();L();fp();Ko();yr();es();Vy();tt=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},ls=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},cs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ds=class extends CustomEvent{constructor(e,t,i){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:i}})}},Te=class extends Xt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ui.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ss(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(U)}render(){return S`
|
|
1250
1250
|
<slot @register-ft-search-component="${this.registerComponent}" @ft-search-result-click="${this.onResultClicked}"
|
|
1251
1251
|
@ft-search-result-open-context-menu="${this.onResultContextMenuOpened}"></slot>
|
|
1252
|
-
`}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new cs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ds(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ls(e))}reloadSavedSearches(){ip.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}}
|
|
1252
|
+
`}willUpdate(e){super.willUpdate(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSortId(this.sortId),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new cs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ds(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ls(e))}reloadSavedSearches(){ip.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};Te.elementDefinitions={};Te.styles=up;tt([ve({store:U.name})],Te.prototype,"session",void 0);tt([h()],Te.prototype,"query",void 0);tt([h()],Te.prototype,"contentLocale",void 0);tt([h({type:Number})],Te.prototype,"pageSize",void 0);tt([h({type:Boolean})],Te.prototype,"searchInDocumentTitlesOnly",void 0);tt([h()],Te.prototype,"scope",void 0);tt([h()],Te.prototype,"virtualField",void 0);tt([h({type:Boolean})],Te.prototype,"ignoreEmptyQuery",void 0);tt([ve({store:U.name})],Te.prototype,"openExternalDocumentInNewTab",void 0);tt([Ee([])],Te.prototype,"filters",void 0);tt([h()],Te.prototype,"sortId",void 0);tt([Ee([])],Te.prototype,"sort",void 0);tt([Ee({})],Te.prototype,"otherQueryParams",void 0);tt([ve({store:"search"})],Te.prototype,"request",void 0);tt([ve({store:"search"})],Te.prototype,"paging",void 0);tt([ve({store:"search",selector:r=>r.spellcheck})],Te.prototype,"autocorrect",void 0);tt([h({attribute:!1})],Te.prototype,"searchServiceProvider",void 0)});var jy=p(()=>{"use strict"});var Gy={};ne(Gy,{ClearAllFiltersEvent:()=>_n,FtSearchContext:()=>Te,FtSearchContextCssVariables:()=>lS,FtSearchStateManager:()=>Ui,LoadErrorEvent:()=>ls,SearchRequestChangeEvent:()=>cs,SearchResultsChangeEvent:()=>ds,convertMetadataFilterToAnalyticsFacet:()=>Tn,getAnalyticsLastUpdate:()=>$n,searchInDocumentTitlesOnlySelector:()=>Hy,styles:()=>up});var Ky=p(()=>{"use strict";L();bp();fp();jy();bp();hp();yp();M("ft-search-context")(Te)});var lo,xp=p(()=>{"use strict";rr();lo=br.build("designedSearchInput")});var Vt,vp=p(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Vt||(Vt={}))});var qy,Sp=p(()=>{"use strict";P();qy=A`
|
|
1253
1253
|
.ft-size-watcher--pixel {
|
|
1254
1254
|
width: 0;
|
|
1255
1255
|
height: 0;
|
|
@@ -1268,19 +1268,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1268
1268
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
1269
1269
|
width: 100%;
|
|
1270
1270
|
}
|
|
1271
|
-
`});var
|
|
1271
|
+
`});var Pn,Cp,_t,Op=p(()=>{"use strict";P();Y();L();vp();Sp();Pn=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},Cp=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},_t=class extends W{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Vt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new pe}render(){return S`
|
|
1272
1272
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
1273
1273
|
<div class="ft-size-watcher--watcher"></div>
|
|
1274
1274
|
</div>
|
|
1275
|
-
`}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=
|
|
1275
|
+
`}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=Vt.S:this.size<976?this.category=Vt.M:this.size<1024?this.category=Vt.L:this.size<1440?this.category=Vt.XL:this.category=Vt.XXL,this.dispatchEvent(new Cp(this.size,this.category)))},this.debounceTimeout)}};_t.elementDefinitions={};_t.styles=qy;Pn([h({type:Number})],_t.prototype,"debounceTimeout",void 0);Pn([h({type:Boolean})],_t.prototype,"local",void 0);Pn([h({type:Number,reflect:!0})],_t.prototype,"size",void 0);Pn([h({type:String,reflect:!0})],_t.prototype,"category",void 0);Pn([H(".ft-size-watcher--watcher")],_t.prototype,"watcher",void 0)});var Zy=p(()=>{"use strict";L();Op();Op();Sp();vp();M("ft-size-watcher")(_t)});function ps(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yy(r){return ps(r).split("|").pop()}function Qy(r){return ps(r).split("|").join(" > ")}function Xy(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Xy(t,r.selected)),value:r.value}}function Jy(r){return Et(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function wp(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Xy(e,!1))}}function eb(r){return Et(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ep=p(()=>{"use strict";L()});var $t,tb,Rp=p(()=>{"use strict";L();P();ze();ft();$t={textColor:o.extend("--ft-checkbox-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",V.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",w.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",w.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",w.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",w.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",w.colorError)},tb=A`
|
|
1276
1276
|
* {
|
|
1277
1277
|
box-sizing: border-box;
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
.ft-checkbox {
|
|
1281
1281
|
box-sizing: border-box;
|
|
1282
|
-
color: ${
|
|
1283
|
-
font-size: ${
|
|
1282
|
+
color: ${$t.textColor};
|
|
1283
|
+
font-size: ${$t.fontSize};
|
|
1284
1284
|
|
|
1285
1285
|
display: inline-flex;
|
|
1286
1286
|
align-items: center;
|
|
@@ -1288,7 +1288,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
1290
|
.ft-checkbox--disabled {
|
|
1291
|
-
color: ${
|
|
1291
|
+
color: ${$t.disabledColor};
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
1294
|
input {
|
|
@@ -1312,26 +1312,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1312
1312
|
|
|
1313
1313
|
.ft-checkbox--box {
|
|
1314
1314
|
display: flex;
|
|
1315
|
-
border: 2px solid ${
|
|
1315
|
+
border: 2px solid ${$t.borderColor};
|
|
1316
1316
|
border-radius: 2px;
|
|
1317
1317
|
|
|
1318
1318
|
width: 18px;
|
|
1319
1319
|
height: 18px;
|
|
1320
1320
|
|
|
1321
|
-
color: ${
|
|
1321
|
+
color: ${$t.checkColor};
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
1324
|
|
|
1325
1325
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1326
1326
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1327
|
-
border-color: ${
|
|
1328
|
-
background-color: ${
|
|
1327
|
+
border-color: ${$t.activeColor};
|
|
1328
|
+
background-color: ${$t.activeColor};
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1332
|
-
border-color: ${
|
|
1332
|
+
border-color: ${$t.disabledColor};
|
|
1333
1333
|
background-color: transparent;
|
|
1334
|
-
color: ${
|
|
1334
|
+
color: ${$t.disabledColor};
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
1337
|
.ft-checkbox--checkmark {
|
|
@@ -1352,20 +1352,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
.ft-checkbox.ft-checkbox--error {
|
|
1355
|
-
color: ${
|
|
1356
|
-
${y($.color
|
|
1355
|
+
color: ${$t.errorColor};
|
|
1356
|
+
${y($.color,$t.errorColor)};
|
|
1357
1357
|
|
|
1358
1358
|
.ft-checkbox--box {
|
|
1359
|
-
border-color: ${
|
|
1359
|
+
border-color: ${$t.errorColor};
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
1363
1363
|
.ft-checkbox--box {
|
|
1364
|
-
background-color: ${
|
|
1364
|
+
background-color: ${$t.errorColor};
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
`});var
|
|
1368
|
+
`});var co,dt,Ap=p(()=>{"use strict";P();Y();L();ut();ft();ze();Rp();co=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},dt=class extends W{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 S`
|
|
1369
1369
|
<label class="${be(e)}" for="checkbox-input" part="checkbox-label">
|
|
1370
1370
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
1371
1371
|
<ft-ripple part="checkbox-ripple"
|
|
@@ -1392,7 +1392,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1392
1392
|
<slot></slot>
|
|
1393
1393
|
</ft-typography>
|
|
1394
1394
|
</label>
|
|
1395
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};
|
|
1395
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};dt.elementDefinitions={"ft-ripple":re,"ft-typography":oe};dt.styles=tb;co([h()],dt.prototype,"name",void 0);co([h({type:Boolean,reflect:!0})],dt.prototype,"checked",void 0);co([h({type:Boolean})],dt.prototype,"indeterminate",void 0);co([h({type:Boolean})],dt.prototype,"disabled",void 0);co([h({type:Boolean})],dt.prototype,"error",void 0);co([H(".ft-checkbox")],dt.prototype,"container",void 0);co([H("ft-ripple")],dt.prototype,"ripple",void 0);co([H("input")],dt.prototype,"input",void 0)});var rb=p(()=>{"use strict"});var ob=p(()=>{"use strict";L();Ap();Ap();Rp();rb();M("ft-checkbox")(dt)});var po,us,ht,fs=p(()=>{"use strict";P();Y();L();ut();ft();ze();po=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},us=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},ht=class extends W{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return S`
|
|
1396
1396
|
<div class="${be(this.radioClasses)}"
|
|
1397
1397
|
@click=${this.onClick}>
|
|
1398
1398
|
<div class="ft-radio--box-container">
|
|
@@ -1418,15 +1418,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1418
1418
|
</ft-typography>
|
|
1419
1419
|
</label>
|
|
1420
1420
|
</div>
|
|
1421
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};
|
|
1421
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};ht.elementDefinitions={"ft-ripple":re,"ft-typography":oe};po([h()],ht.prototype,"value",void 0);po([h()],ht.prototype,"name",void 0);po([h({type:Boolean,reflect:!0})],ht.prototype,"checked",void 0);po([h({attribute:"aria-checked",reflect:!0})],ht.prototype,"ariaChecked",void 0);po([h({type:Boolean})],ht.prototype,"disabled",void 0);po([H(".ft-radio")],ht.prototype,"container",void 0);po([H("ft-ripple")],ht.prototype,"ripple",void 0);po([H("input")],ht.prototype,"input",void 0)});var uo,ib,Lp=p(()=>{"use strict";P();L();ze();uo={textColor:o.extend("--ft-radio-text-color","",w.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",V.fontSize),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",w.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system")},ib=A`
|
|
1422
1422
|
* {
|
|
1423
1423
|
box-sizing: border-box;
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
1426
|
.ft-radio {
|
|
1427
1427
|
box-sizing: border-box;
|
|
1428
|
-
color: ${
|
|
1429
|
-
font-size: ${
|
|
1428
|
+
color: ${uo.textColor};
|
|
1429
|
+
font-size: ${uo.fontSize};
|
|
1430
1430
|
|
|
1431
1431
|
display: inline-flex;
|
|
1432
1432
|
align-items: center;
|
|
@@ -1434,7 +1434,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
1436
|
.ft-radio--disabled {
|
|
1437
|
-
color: ${
|
|
1437
|
+
color: ${uo.colorOnSurfaceDisabled};
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
1440
|
input {
|
|
@@ -1457,7 +1457,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
.ft-radio--box {
|
|
1460
|
-
border: 2px solid ${
|
|
1460
|
+
border: 2px solid ${uo.borderColor};
|
|
1461
1461
|
border-radius: 50%;
|
|
1462
1462
|
|
|
1463
1463
|
display: flex;
|
|
@@ -1470,7 +1470,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1470
1470
|
|
|
1471
1471
|
.ft-radio--box:after {
|
|
1472
1472
|
content: " ";
|
|
1473
|
-
background-color: ${
|
|
1473
|
+
background-color: ${uo.colorPrimary};
|
|
1474
1474
|
|
|
1475
1475
|
border-radius: 50%;
|
|
1476
1476
|
|
|
@@ -1482,7 +1482,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
1484
|
.ft-radio--checked .ft-radio--box {
|
|
1485
|
-
border-color: ${
|
|
1485
|
+
border-color: ${uo.colorPrimary};
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
1488
|
|
|
@@ -1491,12 +1491,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
1493
|
.ft-radio--disabled .ft-radio--box {
|
|
1494
|
-
border-color: ${
|
|
1494
|
+
border-color: ${uo.colorOnSurfaceDisabled};
|
|
1495
1495
|
background-color: transparent;
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
1498
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1499
|
-
background-color: ${
|
|
1499
|
+
background-color: ${uo.colorOnSurfaceDisabled};
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
.ft-radio:has(:focus-visible) {
|
|
@@ -1507,28 +1507,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1507
1507
|
.ft-radio ft-typography {
|
|
1508
1508
|
padding-right: 2px;
|
|
1509
1509
|
}
|
|
1510
|
-
`});var
|
|
1510
|
+
`});var Ur,Ip=p(()=>{"use strict";fs();Lp();Pi();fs();Ur=class extends ht{get typographyVariant(){return Be.body2}};Ur.styles=ib});var nb,kp=p(()=>{"use strict";P();L();ft();nb=A`
|
|
1511
1511
|
* {
|
|
1512
1512
|
box-sizing: border-box;
|
|
1513
|
-
--input-size: calc(${
|
|
1514
|
-
--input-margin: calc(-1 * ${
|
|
1513
|
+
--input-size: calc(${ue.circleSize} + 2 * (${ue.focusOutlineOffset} + ${ue.focusOutlineWidth}));
|
|
1514
|
+
--input-margin: calc(-1 * ${ue.focusOutlineOffset} - ${ue.focusOutlineWidth});
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
1517
|
.ft-radio {
|
|
1518
1518
|
box-sizing: border-box;
|
|
1519
|
-
color: ${
|
|
1519
|
+
color: ${ue.color};
|
|
1520
1520
|
|
|
1521
1521
|
display: inline-flex;
|
|
1522
1522
|
align-items: center;
|
|
1523
|
-
gap: ${
|
|
1523
|
+
gap: ${ue.horizontalGap};
|
|
1524
1524
|
}
|
|
1525
1525
|
|
|
1526
1526
|
.ft-radio--disabled:not(.ft-radio--checked) {
|
|
1527
|
-
opacity: ${
|
|
1527
|
+
opacity: ${ue.unselectedDisabledComponentOpacity}
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
1530
|
.ft-radio--disabled.ft-radio--checked {
|
|
1531
|
-
opacity: ${
|
|
1531
|
+
opacity: ${ue.selectedDisabledComponentOpacity}
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
1534
|
input {
|
|
@@ -1553,49 +1553,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1553
1553
|
|
|
1554
1554
|
.ft-radio ft-ripple {
|
|
1555
1555
|
z-index: 0;
|
|
1556
|
-
${y($.color,
|
|
1557
|
-
${y($.backgroundColor,
|
|
1558
|
-
${y($.opacityContentOnSurfaceHover,
|
|
1559
|
-
${y($.opacityContentOnSurfaceFocused,
|
|
1560
|
-
${y($.opacityContentOnSurfacePressed,
|
|
1556
|
+
${y($.color,ue.unselectedStateLayerColor)};
|
|
1557
|
+
${y($.backgroundColor,ue.unselectedStateLayerColor)};
|
|
1558
|
+
${y($.opacityContentOnSurfaceHover,ue.unselectedHoverStateLayerOpacity)};
|
|
1559
|
+
${y($.opacityContentOnSurfaceFocused,ue.unselectedFocusStateLayerOpacity)};
|
|
1560
|
+
${y($.opacityContentOnSurfacePressed,ue.unselectedActiveStateLayerOpacity)};
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
1563
|
.ft-radio--checked ft-ripple {
|
|
1564
|
-
${y($.color,
|
|
1565
|
-
${y($.backgroundColor,
|
|
1566
|
-
${y($.opacityContentOnSurfaceHover,
|
|
1567
|
-
${y($.opacityContentOnSurfaceFocused,
|
|
1568
|
-
${y($.opacityContentOnSurfacePressed,
|
|
1564
|
+
${y($.color,ue.selectedStateLayerColor)};
|
|
1565
|
+
${y($.backgroundColor,ue.selectedStateLayerColor)};
|
|
1566
|
+
${y($.opacityContentOnSurfaceHover,ue.selectedHoverStateLayerOpacity)};
|
|
1567
|
+
${y($.opacityContentOnSurfaceFocused,ue.selectedFocusStateLayerOpacity)};
|
|
1568
|
+
${y($.opacityContentOnSurfacePressed,ue.selectedActiveStateLayerOpacity)};
|
|
1569
1569
|
}
|
|
1570
1570
|
|
|
1571
1571
|
.ft-radio--box {
|
|
1572
1572
|
z-index: 1;
|
|
1573
|
-
border: 2px solid ${
|
|
1573
|
+
border: 2px solid ${ue.unselectedBorderColor};
|
|
1574
1574
|
border-radius: 50%;
|
|
1575
1575
|
|
|
1576
1576
|
display: flex;
|
|
1577
1577
|
justify-content: center;
|
|
1578
1578
|
align-items: center;
|
|
1579
1579
|
|
|
1580
|
-
width: ${
|
|
1581
|
-
height: ${
|
|
1580
|
+
width: ${ue.circleSize};
|
|
1581
|
+
height: ${ue.circleSize};
|
|
1582
1582
|
}
|
|
1583
1583
|
|
|
1584
1584
|
.ft-radio--box:after {
|
|
1585
1585
|
content: " ";
|
|
1586
|
-
background-color: ${
|
|
1586
|
+
background-color: ${ue.selectedRadioColor};
|
|
1587
1587
|
|
|
1588
1588
|
border-radius: 50%;
|
|
1589
1589
|
|
|
1590
|
-
width: calc(${
|
|
1591
|
-
height: calc(${
|
|
1590
|
+
width: calc(${ue.circleSize} - 8px);
|
|
1591
|
+
height: calc(${ue.circleSize} - 8px);
|
|
1592
1592
|
|
|
1593
1593
|
transform: scale(0);
|
|
1594
1594
|
transition: transform 100ms ease;
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
1597
|
.ft-radio--checked .ft-radio--box {
|
|
1598
|
-
border-color: ${
|
|
1598
|
+
border-color: ${ue.selectedRadioColor};
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
1601
|
|
|
@@ -1608,19 +1608,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
1610
|
.ft-radio:has(:focus-visible) .ft-radio--box {
|
|
1611
|
-
outline: ${
|
|
1612
|
-
outline-offset: ${
|
|
1611
|
+
outline: ${ue.focusOutlineWidth} solid ${ue.focusFocusRingColor};
|
|
1612
|
+
outline-offset: ${ue.focusOutlineOffset};
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
1615
|
.ft-radio ft-typography {
|
|
1616
1616
|
padding-right: 2px;
|
|
1617
1617
|
}
|
|
1618
|
-
`});var
|
|
1618
|
+
`});var Nn,_p=p(()=>{"use strict";fs();Pi();L();kp();ee();Nn=class extends pr(ht){constructor(){super(...arguments),this.family=Rt.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return Be.body2medium}};Nn.styles=[Tr,nb]});var zi,Tt,hs=p(()=>{"use strict";L();Y();P();zi=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},Tt=class extends W{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,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return S`
|
|
1619
1619
|
<slot @slotchange=${this.onSlotChange}
|
|
1620
1620
|
@change=${this.onChange}
|
|
1621
1621
|
@keydown=${this.onKeyDown}
|
|
1622
1622
|
></slot>
|
|
1623
|
-
`}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(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!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":{t=!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()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
1623
|
+
`}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(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!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":{t=!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()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Tt.elementDefinitions={};zi([h()],Tt.prototype,"name",void 0);zi([h({reflect:!0,attribute:"role"})],Tt.prototype,"role",void 0);zi([h({reflect:!0})],Tt.prototype,"tabIndex",void 0);zi([h({reflect:!0,attribute:"aria-labelledby"})],Tt.prototype,"ariaLabelledBy",void 0);zi([js()],Tt.prototype,"assignedElements",void 0);zi([N()],Tt.prototype,"currentSelectedIndex",void 0)});var ab,$p=p(()=>{"use strict";P();ab=A`
|
|
1624
1624
|
:host {
|
|
1625
1625
|
display: block;
|
|
1626
1626
|
}
|
|
@@ -1628,17 +1628,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1628
1628
|
:host(:focus-visible) {
|
|
1629
1629
|
outline: none;
|
|
1630
1630
|
}
|
|
1631
|
-
`});var
|
|
1631
|
+
`});var qo,Tp=p(()=>{"use strict";hs();$p();hs();qo=class extends Tt{};qo.styles=ab});var sb,Pp=p(()=>{"use strict";P();L();sb=A`
|
|
1632
1632
|
:host {
|
|
1633
1633
|
display: flex;
|
|
1634
1634
|
flex-direction: column;
|
|
1635
|
-
gap: ${
|
|
1635
|
+
gap: ${ue.verticalGap}
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
1638
|
:host(:focus-visible) {
|
|
1639
1639
|
outline: none;
|
|
1640
1640
|
}
|
|
1641
|
-
`});var
|
|
1641
|
+
`});var Fn,Np=p(()=>{"use strict";hs();L();Pp();ee();Fn=class extends pr(Tt){constructor(){super(...arguments),this.family=Rt.brand}};Fn.styles=[Tr,sb]});var Fp=p(()=>{"use strict";L();Ip();_p();Tp();Np();Ip();Lp();_p();kp();Tp();$p();Np();Pp();M("ft-radio")(Ur);M("ftds-radio")(Nn);M("ft-radio-group")(qo);M("ftds-radio-group")(Fn)});var Bn,lb,Bp=p(()=>{"use strict";P();L();zo();Ut();Bn={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",w.colorOnSurface),borderRadiusM:o.external(w.borderRadiusM,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorOnPrimary:o.external(w.colorOnPrimary,"Design system"),fontFamily:o.external(je.fontFamily,"Body2 typography"),fontSize:o.external(je.fontSize,"Body2 typography"),fontWeight:o.external(je.fontWeight,"Body2 typography"),letterSpacing:o.external(je.letterSpacing,"Body2 typography"),lineHeight:o.external(je.lineHeight,"Body2 typography"),textTransform:o.external(je.textTransform,"Body2 typography")},lb=A`
|
|
1642
1642
|
.ft-filter-level--container {
|
|
1643
1643
|
display: flex;
|
|
1644
1644
|
flex-direction: column;
|
|
@@ -1652,14 +1652,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1652
1652
|
flex-shrink: 0;
|
|
1653
1653
|
text-decoration: none;
|
|
1654
1654
|
position: relative;
|
|
1655
|
-
border-radius: ${
|
|
1655
|
+
border-radius: ${Bn.borderRadiusM};
|
|
1656
1656
|
overflow: hidden;
|
|
1657
1657
|
display: flex;
|
|
1658
1658
|
align-items: center;
|
|
1659
1659
|
padding: 4px 4px;
|
|
1660
1660
|
gap: 4px;
|
|
1661
1661
|
cursor: pointer;
|
|
1662
|
-
color: ${
|
|
1662
|
+
color: ${Bn.colorOnSurface};
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
.ft-filter-level--go-back:focus {
|
|
@@ -1688,11 +1688,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
ft-button {
|
|
1691
|
-
${y(te.color,
|
|
1691
|
+
${y(te.color,Bn.colorOnSurface)};
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
1694
|
ft-button.ft-filter-level--display-more {
|
|
1695
|
-
${y(te.color,
|
|
1695
|
+
${y(te.color,Bn.buttonMoreColor)};
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
1698
|
ft-radio, ft-checkbox {
|
|
@@ -1706,9 +1706,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1706
1706
|
|
|
1707
1707
|
.ft-filter-level--no-values {
|
|
1708
1708
|
margin: 10px 0;
|
|
1709
|
-
color: ${
|
|
1709
|
+
color: ${Bn.colorOnSurfaceMedium};
|
|
1710
1710
|
}
|
|
1711
|
-
`});var
|
|
1711
|
+
`});var rt,Me,cb=p(()=>{"use strict";P();Y();Yt();L();Ht();ze();ft();zt();ob();Fp();Bp();rr();rt=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 St(ig(W)){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,this.filteredOptions=[],this.ariaNotificationDebouncer=new pe(500)}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,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){if(super.willUpdate(e),e.has("options")||e.has("hideSelectedOptions")||e.has("filter")){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(i=>!i.selected)),this.filter&&(t=t.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase()))),t!=this.filteredOptions&&(this.filteredOptions=t)}}render(){let e=this.filteredOptions.slice(0,this.limit);return S`
|
|
1712
1712
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1713
1713
|
${this.parent==null?null:S`
|
|
1714
1714
|
<div tabindex="0"
|
|
@@ -1721,29 +1721,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1721
1721
|
@click=${this.goBackOnClick}>
|
|
1722
1722
|
<ft-ripple></ft-ripple>
|
|
1723
1723
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1724
|
-
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1724
|
+
<ft-typography variant="${Be.body2}">${this.parent.label}</ft-typography>
|
|
1725
1725
|
</div>
|
|
1726
1726
|
`}
|
|
1727
|
-
${this.
|
|
1728
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1727
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?S`
|
|
1728
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${Be.body2}">
|
|
1729
1729
|
${this.noValuesLabel}
|
|
1730
1730
|
</ft-typography>
|
|
1731
1731
|
`:T}
|
|
1732
|
-
${
|
|
1732
|
+
${Re(e,t=>t.value,t=>{var i;return S`
|
|
1733
1733
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1734
|
-
${this.multivalued?this.buildMultiValuedOption(
|
|
1735
|
-
${this.preventNavigation||
|
|
1734
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1735
|
+
${this.preventNavigation||t.selected||((i=t.subOptions)!==null&&i!==void 0?i:[]).length===0?T:S`
|
|
1736
1736
|
<ft-button icon="thin_arrow_right"
|
|
1737
1737
|
part="controls navigate-hierarchy"
|
|
1738
1738
|
aria-label="Expand node"
|
|
1739
|
-
data-value="${
|
|
1739
|
+
data-value="${t.value}"
|
|
1740
1740
|
?disabled=${this.disabled}
|
|
1741
1741
|
hideTooltip
|
|
1742
|
-
@click=${()=>this.displayLevel(
|
|
1742
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
1743
1743
|
`}
|
|
1744
1744
|
</div>
|
|
1745
1745
|
`})}
|
|
1746
|
-
${
|
|
1746
|
+
${e.length<this.filteredOptions.length?S`
|
|
1747
1747
|
<ft-button
|
|
1748
1748
|
class="ft-filter-level--display-more"
|
|
1749
1749
|
icon="thin_arrow"
|
|
@@ -1760,7 +1760,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1760
1760
|
data-value="${e.value}"
|
|
1761
1761
|
.checked=${e.selected}
|
|
1762
1762
|
.disabled=${this.disabled}
|
|
1763
|
-
.indeterminate=${
|
|
1763
|
+
.indeterminate=${Et((t=e.subOptions)!==null&&t!==void 0?t:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1764
1764
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1765
1765
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1766
1766
|
</ft-checkbox>
|
|
@@ -1775,7 +1775,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1775
1775
|
@change=${t=>this.optionsChanged(t,e)}>
|
|
1776
1776
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1777
1777
|
</ft-radio>
|
|
1778
|
-
`}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};
|
|
1778
|
+
`}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Me.elementDefinitions={"ft-button":De,"ft-ripple":re,"ft-typography":oe,"ft-checkbox":dt,"ft-icon":Ce,"ft-radio":Ur};Me.styles=lb;rt([h({type:String})],Me.prototype,"filterId",void 0);rt([h({type:Object})],Me.prototype,"parent",void 0);rt([h({type:Array,hasChanged:Ar})],Me.prototype,"options",void 0);rt([h({type:Boolean})],Me.prototype,"multivalued",void 0);rt([h({type:Boolean})],Me.prototype,"disabled",void 0);rt([h({type:Boolean})],Me.prototype,"hideSelectedOptions",void 0);rt([h({type:Boolean})],Me.prototype,"displayCount",void 0);rt([h({type:Boolean})],Me.prototype,"preventNavigation",void 0);rt([h({type:String})],Me.prototype,"filter",void 0);rt([h({type:String})],Me.prototype,"moreValuesButtonLabel",void 0);rt([h({type:String})],Me.prototype,"noValuesLabel",void 0);rt([h()],Me.prototype,"filteredOptionsNumberAriaNotification",void 0);rt([Gr()],Me.prototype,"displayedValuesLimit",void 0);rt([H(".ft-filter-level--container")],Me.prototype,"container",void 0);rt([N()],Me.prototype,"radios",void 0);rt([N()],Me.prototype,"displayedPages",void 0);rt([N()],Me.prototype,"filteredOptions",void 0)});var mt,db,ms=p(()=>{"use strict";P();L();zo();mt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",w.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(w.colorSurface,"Design system")},db=A`
|
|
1779
1779
|
.ft-snap-scroll {
|
|
1780
1780
|
box-sizing: border-box;
|
|
1781
1781
|
position: relative;
|
|
@@ -1900,7 +1900,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1900
1900
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1901
1901
|
background-color: ${mt.colorSurface};
|
|
1902
1902
|
}
|
|
1903
|
-
`});var
|
|
1903
|
+
`});var xr,Dp,He,Mp=p(()=>{"use strict";P();Y();L();Ht();ut();ms();xr=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},Dp=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},He=class extends W{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 pe(200),this.updateScrollDebouncer=new pe(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>i)&&this.scrollToElement(t)}}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=be({"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":Mo}),t=this.controls&&this.withScroll;return S`
|
|
1904
1904
|
<div part="container" class="${e}">
|
|
1905
1905
|
<ft-button
|
|
1906
1906
|
class="ft-snap-scroll--previous"
|
|
@@ -1924,7 +1924,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1924
1924
|
@click=${this.next}
|
|
1925
1925
|
></ft-button>
|
|
1926
1926
|
</div>
|
|
1927
|
-
`}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 Dp(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;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,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,i;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.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,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);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 t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};
|
|
1927
|
+
`}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 Dp(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;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,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,i;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.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,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);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 t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};He.elementDefinitions={"ft-button":De};He.styles=db;xr([h({type:Boolean})],He.prototype,"horizontal",void 0);xr([h({type:Boolean})],He.prototype,"hideScrollbar",void 0);xr([h({type:Boolean})],He.prototype,"controls",void 0);xr([h({type:Boolean})],He.prototype,"limitSize",void 0);xr([N()],He.prototype,"elements",void 0);xr([N()],He.prototype,"currentElement",void 0);xr([N()],He.prototype,"withScroll",void 0);xr([N()],He.prototype,"startReached",void 0);xr([N()],He.prototype,"endReached",void 0);xr([H(".ft-snap-scroll--content")],He.prototype,"contentSlot",void 0)});var pb=p(()=>{"use strict"});var gs=p(()=>{"use strict";L();Mp();Mp();ms();pb();M("ft-snap-scroll")(He)});var Ot,ub,ys=p(()=>{"use strict";P();L();Ut();zo();Ot={colorOutline:o.external(w.colorOutline,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),colorSurface:o.external(w.colorSurface,"Design system"),transitionDuration:o.external(w.transitionDuration,"Design system"),transitionTimingFunction:o.external(w.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",w.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",V.fontSize,"16px")},ub=[hr,ko,A`
|
|
1928
1928
|
:host {
|
|
1929
1929
|
display: flex;
|
|
1930
1930
|
max-height: 100%;
|
|
@@ -1964,8 +1964,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1964
1964
|
flex-shrink: 1;
|
|
1965
1965
|
flex-grow: 1;
|
|
1966
1966
|
word-break: break-word;
|
|
1967
|
-
color: ${
|
|
1968
|
-
font-size: ${
|
|
1967
|
+
color: ${Ot.labelColor};
|
|
1968
|
+
font-size: ${Ot.labelFontSize};
|
|
1969
1969
|
${y(V.lineHeight,"22px")};
|
|
1970
1970
|
${y(V.fontWeight,"bold")};
|
|
1971
1971
|
}
|
|
@@ -1978,8 +1978,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1978
1978
|
padding: 0 10px;
|
|
1979
1979
|
overflow: hidden;
|
|
1980
1980
|
height: 32px;
|
|
1981
|
-
transition: height ${
|
|
1982
|
-
margin ${
|
|
1981
|
+
transition: height ${Ot.transitionDuration} ${Ot.transitionTimingFunction},
|
|
1982
|
+
margin ${Ot.transitionDuration} ${Ot.transitionTimingFunction};
|
|
1983
1983
|
transition-delay: 500ms;
|
|
1984
1984
|
}
|
|
1985
1985
|
|
|
@@ -1992,15 +1992,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1992
1992
|
display: block;
|
|
1993
1993
|
width: 100%;
|
|
1994
1994
|
border-radius: 4px;
|
|
1995
|
-
border: 1px solid ${
|
|
1995
|
+
border: 1px solid ${Ot.colorOutline};
|
|
1996
1996
|
padding: 4px;
|
|
1997
|
-
background-color: ${
|
|
1998
|
-
color: ${
|
|
1999
|
-
outline-color: ${
|
|
1997
|
+
background-color: ${Ot.colorSurface};
|
|
1998
|
+
color: ${Ot.colorOnSurface};
|
|
1999
|
+
outline-color: ${Ot.colorPrimary};
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
2002
2002
|
input::placeholder {
|
|
2003
|
-
color: ${
|
|
2003
|
+
color: ${Ot.colorOnSurfaceMedium};
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
input:placeholder-shown {
|
|
@@ -2016,7 +2016,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2016
2016
|
}
|
|
2017
2017
|
|
|
2018
2018
|
.ft-filter--separator {
|
|
2019
|
-
border-top: 1px solid ${
|
|
2019
|
+
border-top: 1px solid ${Ot.colorOutline};
|
|
2020
2020
|
margin: 4px 10px;
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
@@ -2041,14 +2041,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2041
2041
|
slot:not([name]) {
|
|
2042
2042
|
display: none;
|
|
2043
2043
|
}
|
|
2044
|
-
`]});var
|
|
2044
|
+
`]});var Ie,Up,fe,zp=p(()=>{"use strict";P();Y();L();ze();cb();Ht();gs();ys();Ie=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},Up=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fe=class extends W{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 pe(300),this.changeDebouncer=new pe(10),this.lastDispatchedValues=[]}get flatOptions(){return Et(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return Et(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return S`
|
|
2045
2045
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
2046
2046
|
part="container">
|
|
2047
2047
|
${!this.label&&!e?null:S`
|
|
2048
2048
|
|
|
2049
2049
|
<div class="ft-filter--header" part="header">
|
|
2050
2050
|
<div class="filter-label" id="id-group-${this.id}">
|
|
2051
|
-
<ft-typography class="ft-filter--label" variant="overline" part="label">
|
|
2051
|
+
<ft-typography class="ft-filter--label" variant="${Be.overline}" part="label">
|
|
2052
2052
|
${this.label}
|
|
2053
2053
|
</ft-typography>
|
|
2054
2054
|
<slot name="label"></slot>
|
|
@@ -2087,12 +2087,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2087
2087
|
filterId="${this.id}"
|
|
2088
2088
|
?multivalued=${this.multivalued}
|
|
2089
2089
|
?disabled=${this.disabled}
|
|
2090
|
-
?displayCount
|
|
2090
|
+
?displayCount=${this.displayCount}
|
|
2091
2091
|
preventNavigation
|
|
2092
2092
|
.options=${t}
|
|
2093
2093
|
@change=${this.onChange}
|
|
2094
2094
|
part="values selected-values"
|
|
2095
2095
|
.exportpartsPrefixes=${["values","selected-values"]}
|
|
2096
|
+
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
2096
2097
|
></ft-filter-level>
|
|
2097
2098
|
<div class="ft-filter--separator">
|
|
2098
2099
|
`:null}
|
|
@@ -2106,12 +2107,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2106
2107
|
<ft-filter-level
|
|
2107
2108
|
class="${e}"
|
|
2108
2109
|
filterId="${this.id}"
|
|
2109
|
-
.filter
|
|
2110
|
+
.filter=${this.filter}
|
|
2110
2111
|
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
2111
2112
|
?multivalued=${this.multivalued}
|
|
2112
2113
|
?disabled=${this.disabled||e!=="ft-filter--level-center"}
|
|
2113
2114
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
2114
|
-
?displayCount
|
|
2115
|
+
?displayCount=${this.displayCount}
|
|
2115
2116
|
.parent=${i}
|
|
2116
2117
|
.options=${t}
|
|
2117
2118
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
@@ -2121,22 +2122,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2121
2122
|
part="values available-values"
|
|
2122
2123
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
2123
2124
|
noValuesLabel="${this.noValuesLabel}"
|
|
2125
|
+
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
2124
2126
|
></ft-filter-level>
|
|
2125
|
-
`}goBack(e){this.slideOut=e.detail.value,
|
|
2127
|
+
`}goBack(e){this.slideOut=e.detail.value,on(()=>this.slideOut===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,on(()=>this.slideIn===void 0).then(()=>{var t;let i=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){on(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}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 t;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?(t=i.subOptions)===null||t===void 0||t.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(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Ke(this.lastDispatchedValues,e)||(this.dispatchEvent(new Up(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};fe.elementDefinitions={"ft-button":De,"ft-filter-level":Me,"ft-snap-scroll":He,"ft-typography":oe};fe.styles=ub;Ie([h({type:String})],fe.prototype,"id",void 0);Ie([h({type:String})],fe.prototype,"label",void 0);Ie([h({type:String})],fe.prototype,"filterPlaceHolder",void 0);Ie([h({type:String})],fe.prototype,"clearButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ie([h({type:String})],fe.prototype,"noValuesLabel",void 0);Ie([Ee([])],fe.prototype,"options",void 0);Ie([h({type:Boolean})],fe.prototype,"multivalued",void 0);Ie([h({type:Boolean})],fe.prototype,"disabled",void 0);Ie([h({type:Boolean})],fe.prototype,"raiseSelectedOptions",void 0);Ie([h({type:Boolean})],fe.prototype,"displayCount",void 0);Ie([Gr()],fe.prototype,"displayedValuesLimit",void 0);Ie([Ee(void 0)],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ie([h({type:Boolean})],fe.prototype,"hideClearButton",void 0);Ie([H(".ft-filter--slot")],fe.prototype,"slotElement",void 0);Ie([H(".ft-filter--container")],fe.prototype,"container",void 0);Ie([H(".ft-filter--values")],fe.prototype,"valuesContainer",void 0);Ie([H(".ft-filter--levels")],fe.prototype,"levelsContainer",void 0);Ie([N()],fe.prototype,"lastLevelHasHiddenvalues",void 0);Ie([H(".ft-filter--filter input")],fe.prototype,"filterInput",void 0);Ie([Vs(".ft-filter--levels ft-filter-level")],fe.prototype,"levels",void 0);Ie([N()],fe.prototype,"withScroll",void 0);Ie([N()],fe.prototype,"filter",void 0);Ie([N()],fe.prototype,"slideIn",void 0);Ie([N()],fe.prototype,"slideOut",void 0)});var Hi,Pt,Hp=p(()=>{"use strict";L();Y();P();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},Pt=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return S`
|
|
2126
2128
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
2127
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
2129
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Pt.elementDefinitions={};Hi([h({type:String})],Pt.prototype,"label",void 0);Hi([h({type:Object,converter:r=>r})],Pt.prototype,"value",void 0);Hi([h({type:Boolean,reflect:!0})],Pt.prototype,"selected",void 0);Hi([h({type:Object})],Pt.prototype,"subOptions",void 0);Hi([Ee({})],Pt.prototype,"renderOption",void 0);Hi([H(".ft-filter-option--slot")],Pt.prototype,"slotElement",void 0)});var fb=p(()=>{"use strict"});var hb=p(()=>{"use strict"});var mb=p(()=>{"use strict";L();zp();Hp();Bp();zp();ys();fb();Hp();hb();M("ft-filter")(fe);M("ft-filter-option")(Pt)});var gb,Wp=p(()=>{"use strict";P();gb=A`
|
|
2128
2130
|
.ft-accordion {
|
|
2129
2131
|
box-sizing: border-box;
|
|
2130
2132
|
}
|
|
2131
|
-
`});var
|
|
2133
|
+
`});var yb,vr,Vp=p(()=>{"use strict";P();Y();L();Wp();yb=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},vr=class extends W{constructor(){super(...arguments),this.multi=!1}render(){return S`
|
|
2132
2134
|
<div class="ft-accordion">
|
|
2133
2135
|
<slot @activated=${this.onChange}></slot>
|
|
2134
2136
|
</div>
|
|
2135
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};
|
|
2137
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};vr.elementDefinitions={};vr.styles=gb;yb([h({type:Boolean})],vr.prototype,"multi",void 0);yb([H("slot")],vr.prototype,"content",void 0)});var Zo,bb,jp=p(()=>{"use strict";P();L();Zo={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(w.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},bb=A`
|
|
2136
2138
|
.ft-accordion-item {
|
|
2137
2139
|
display: flex;
|
|
2138
2140
|
flex-direction: column;
|
|
2139
|
-
background-color: ${
|
|
2141
|
+
background-color: ${Zo.backgroundColor};
|
|
2140
2142
|
}
|
|
2141
2143
|
|
|
2142
2144
|
.ft-accordion-item--toggle {
|
|
@@ -2146,8 +2148,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2146
2148
|
display: flex;
|
|
2147
2149
|
align-items: center;
|
|
2148
2150
|
cursor: pointer;
|
|
2149
|
-
padding: ${
|
|
2150
|
-
gap: calc(${
|
|
2151
|
+
padding: ${Zo.verticalSpacing} ${Zo.horizontalSpacing};
|
|
2152
|
+
gap: calc(${Zo.horizontalSpacing} / 2);
|
|
2151
2153
|
outline: none;
|
|
2152
2154
|
}
|
|
2153
2155
|
|
|
@@ -2172,13 +2174,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2172
2174
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
2173
2175
|
height: initial;
|
|
2174
2176
|
overflow: visible;
|
|
2175
|
-
padding: ${
|
|
2177
|
+
padding: ${Zo.verticalSpacing} ${Zo.horizontalSpacing};
|
|
2176
2178
|
}
|
|
2177
2179
|
|
|
2178
2180
|
.ft-accordion-item--separator {
|
|
2179
|
-
border-bottom: 1px solid ${
|
|
2181
|
+
border-bottom: 1px solid ${Zo.colorOutline};
|
|
2180
2182
|
}
|
|
2181
|
-
`});var bs,
|
|
2183
|
+
`});var bs,jt,Gp=p(()=>{"use strict";P();Y();L();ft();ze();zt();jp();bs=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},jt=class extends W{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return S`
|
|
2182
2184
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
2183
2185
|
<div class="ft-accordion-item--toggle"
|
|
2184
2186
|
part="toggle"
|
|
@@ -2208,7 +2210,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2208
2210
|
</div>
|
|
2209
2211
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
2210
2212
|
</div>
|
|
2211
|
-
`}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)}};
|
|
2213
|
+
`}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)}};jt.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};jt.styles=bb;bs([h()],jt.prototype,"icon",void 0);bs([h()],jt.prototype,"iconVariant",void 0);bs([h()],jt.prototype,"label",void 0);bs([h({type:Boolean,reflect:!0})],jt.prototype,"active",void 0)});var xb=p(()=>{"use strict"});var vb=p(()=>{"use strict"});var Sb=p(()=>{"use strict";L();Vp();Gp();Vp();Wp();xb();Gp();jp();vb();M("ft-accordion")(vr);M("ft-accordion-item")(jt)});var Cb,ot,Ob,Kp,wb,Eb,qp=p(()=>{"use strict";P();L();Fr();Ut();Uo();Ht();Cb=o.extend("--ft-chip-color","",w.colorOnSurface),ot={backgroundColor:o.extend("--ft-chip-background-color","",w.colorSurface),color:Cb,fontSize:o.extend("--ft-chip-font-size","",je.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",je.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","",Cb),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","",w.colorOutline),opacityDisabled:o.external(w.colorOpacityDisabled,"Design system")},Ob=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",w.colorOnPrimary)),Kp={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",w.colorPrimary)),color:Ob,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Ob)},wb={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Eb=[$r,A`
|
|
2212
2214
|
:host {
|
|
2213
2215
|
display: inline-block;
|
|
2214
2216
|
max-width: 100%;
|
|
@@ -2224,21 +2226,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2224
2226
|
box-sizing: border-box;
|
|
2225
2227
|
pointer-events: auto;
|
|
2226
2228
|
|
|
2227
|
-
--chip-internal-font-size: ${
|
|
2228
|
-
--chip-internal-font-weight: ${
|
|
2229
|
+
--chip-internal-font-size: ${ot.fontSize};
|
|
2230
|
+
--chip-internal-font-weight: ${ot.fontWeight};
|
|
2229
2231
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
2230
|
-
${y(Fe.size,
|
|
2231
|
-
--chip-internal-vertical-padding: ${
|
|
2232
|
-
--chip-internal-horizontal-padding: ${
|
|
2232
|
+
${y(Fe.size,ot.iconSize)};
|
|
2233
|
+
--chip-internal-vertical-padding: ${ot.verticalPadding};
|
|
2234
|
+
--chip-internal-horizontal-padding: ${ot.horizontalPadding};
|
|
2233
2235
|
--chip-internal-icon-padding: 3px;
|
|
2234
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
2236
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${ot.iconSize});
|
|
2235
2237
|
|
|
2236
|
-
border: 1px solid ${
|
|
2237
|
-
color: ${
|
|
2238
|
-
${y($.color,
|
|
2239
|
-
border-radius: var(${
|
|
2238
|
+
border: 1px solid ${ot.borderColor};
|
|
2239
|
+
color: ${ot.color};
|
|
2240
|
+
${y($.color,ot.rippleColor)};
|
|
2241
|
+
border-radius: var(${ir(ot.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
2240
2242
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
2241
|
-
background-color: ${
|
|
2243
|
+
background-color: ${ot.backgroundColor};
|
|
2242
2244
|
line-height: var(--chip-internal-content-height);
|
|
2243
2245
|
}
|
|
2244
2246
|
|
|
@@ -2248,20 +2250,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2248
2250
|
|
|
2249
2251
|
.ft-chip--dense {
|
|
2250
2252
|
--chip-internal-icon-padding: 3px;
|
|
2251
|
-
--chip-internal-vertical-padding: ${
|
|
2252
|
-
--chip-internal-horizontal-padding: ${
|
|
2253
|
+
--chip-internal-vertical-padding: ${wb.verticalPadding};
|
|
2254
|
+
--chip-internal-horizontal-padding: ${wb.horizontalPadding};
|
|
2253
2255
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
2254
2256
|
}
|
|
2255
2257
|
|
|
2256
2258
|
.ft-chip--no-content {
|
|
2257
|
-
--chip-internal-horizontal-padding: ${
|
|
2259
|
+
--chip-internal-horizontal-padding: ${ot.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
|
|
2258
2260
|
}
|
|
2259
2261
|
|
|
2260
2262
|
.ft-chip--disabled {
|
|
2261
2263
|
cursor: default;
|
|
2262
2264
|
pointer-events: none;
|
|
2263
2265
|
filter: grayscale(1);
|
|
2264
|
-
opacity: ${
|
|
2266
|
+
opacity: ${ot.opacityDisabled};
|
|
2265
2267
|
}
|
|
2266
2268
|
|
|
2267
2269
|
.ft-chip--highlighted {
|
|
@@ -2300,7 +2302,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2300
2302
|
}
|
|
2301
2303
|
|
|
2302
2304
|
.ft-chip--icon-button {
|
|
2303
|
-
${y(te.iconSize,
|
|
2305
|
+
${y(te.iconSize,ot.iconSize)};
|
|
2304
2306
|
${y(te.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
2305
2307
|
${y(te.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
2306
2308
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
@@ -2310,9 +2312,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2310
2312
|
vertical-align: bottom;
|
|
2311
2313
|
display: block;
|
|
2312
2314
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
2313
|
-
${y(
|
|
2314
|
-
${y(
|
|
2315
|
-
${y(
|
|
2315
|
+
${y(je.fontSize,"var(--chip-internal-font-size)")};
|
|
2316
|
+
${y(je.fontWeight,"var(--chip-internal-font-weight)")};
|
|
2317
|
+
${y(je.lineHeight,"var(--chip-internal-content-height)")};
|
|
2316
2318
|
}
|
|
2317
2319
|
|
|
2318
2320
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -2348,7 +2350,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2348
2350
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2349
2351
|
order: -1;
|
|
2350
2352
|
}
|
|
2351
|
-
`]});var
|
|
2353
|
+
`]});var wt,xs,Ue,Zp=p(()=>{"use strict";P();Y();ut();L();ft();ze();zt();qp();Ht();wt=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},xs=class extends CustomEvent{constructor(){super("icon-click")}},Ue=class extends W{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.hideIconTooltip=!1,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":Mo};return S`
|
|
2352
2354
|
<div class="${be(e)}"
|
|
2353
2355
|
aria-label="${this.getLabel()}"
|
|
2354
2356
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -2375,7 +2377,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2375
2377
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2376
2378
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
2377
2379
|
</div>
|
|
2378
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xs))}getLabel(){return this.label||this.textContent}get textContent(){return
|
|
2380
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xs))}getLabel(){return this.label||this.textContent}get textContent(){return ai(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Ue.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce,"ft-button":De};Ue.styles=Eb;wt([h({type:Boolean})],Ue.prototype,"highlighted",void 0);wt([h({type:Boolean})],Ue.prototype,"removable",void 0);wt([h({type:Boolean})],Ue.prototype,"disabled",void 0);wt([h({type:Boolean})],Ue.prototype,"clickable",void 0);wt([h({type:Boolean})],Ue.prototype,"iconClickable",void 0);wt([h({type:Boolean})],Ue.prototype,"dense",void 0);wt([h({type:Boolean})],Ue.prototype,"multiLine",void 0);wt([h()],Ue.prototype,"label",void 0);wt([h()],Ue.prototype,"iconLabel",void 0);wt([h({type:Boolean})],Ue.prototype,"hideIconTooltip",void 0);wt([h()],Ue.prototype,"icon",void 0);wt([h()],Ue.prototype,"iconVariant",void 0);wt([h({type:Boolean})],Ue.prototype,"trailingIcon",void 0);wt([H("ft-typography slot")],Ue.prototype,"slottedContent",void 0)});var Rb,Yp=p(()=>{"use strict";P();ee();L();zt();Ht();Rb=[A`
|
|
2379
2381
|
:host {
|
|
2380
2382
|
display: inline-block;
|
|
2381
2383
|
max-width: 100%;
|
|
@@ -2542,7 +2544,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2542
2544
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2543
2545
|
color: ${Z.errorIconColor};
|
|
2544
2546
|
}
|
|
2545
|
-
`]});var
|
|
2547
|
+
`]});var Wi,Qp,Gt,Xp=p(()=>{"use strict";P();Y();ut();L();ze();zt();Yp();ee();Ht();Wi=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},Qp=class extends CustomEvent{constructor(){super("remove")}},Gt=class extends gn{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return S`
|
|
2546
2548
|
<div class="${be(e)}"
|
|
2547
2549
|
aria-label="${this.getLabel()}"
|
|
2548
2550
|
part="chip">
|
|
@@ -2562,13 +2564,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2562
2564
|
@click=${this.dispatchRemoveEvent}
|
|
2563
2565
|
icon=${et.X_MARK}
|
|
2564
2566
|
label=${this.removeButtonLabel}
|
|
2565
|
-
family=${
|
|
2567
|
+
family=${Rt.neutral}
|
|
2566
2568
|
size=${this.resolveButtonSize()}
|
|
2567
2569
|
part="icon-button"
|
|
2568
2570
|
></ftds-button>
|
|
2569
2571
|
`:this.withAction?S`
|
|
2570
2572
|
<slot name="action"></slot>
|
|
2571
|
-
`:T}resolveButtonSize(){switch(this.size){case
|
|
2573
|
+
`:T}resolveButtonSize(){switch(this.size){case qe.large:return qe.medium;case qe.medium:case qe.small:return qe.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&t!==void 0?t:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Qp)}typographyVariant(){switch(this.size){case qe.large:return Be.body2medium;case qe.medium:case qe.small:return Be.caption1medium}}};Gt.elementDefinitions={"ft-typography":oe,"ft-icon":Ce,"ftds-button":er};Gt.styles=Rb;Wi([h({type:Boolean})],Gt.prototype,"withAction",void 0);Wi([h({type:Boolean})],Gt.prototype,"removable",void 0);Wi([h()],Gt.prototype,"removeButtonLabel",void 0);Wi([h()],Gt.prototype,"label",void 0);Wi([h()],Gt.prototype,"icon",void 0);Wi([H("ft-typography slot")],Gt.prototype,"slottedContent",void 0)});var Ab=p(()=>{"use strict"});var Lb=p(()=>{"use strict"});var Jp=p(()=>{"use strict";L();Zp();Xp();Zp();qp();Ab();Xp();Yp();Lb();M("ft-chip")(Ue);M("ftds-chip")(Gt)});var X,Ib,Vi=p(()=>{"use strict";P();L();Ut();X={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","",w.colorOutline),textColor:o.extend("--ft-input-label-text-color","",w.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",w.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",w.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",w.borderRadiusS),colorError:o.external(w.colorError,"Design system")},Ib=A`
|
|
2572
2574
|
.ft-input-label {
|
|
2573
2575
|
position: absolute;
|
|
2574
2576
|
inset: 0;
|
|
@@ -2619,8 +2621,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2619
2621
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2620
2622
|
max-width: calc(${X.labelMaxWidth} - 2 * (${X.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2621
2623
|
text-overflow: ellipsis;
|
|
2622
|
-
${y(
|
|
2623
|
-
${y(
|
|
2624
|
+
${y(Ze.fontSize,X.fontSize)};
|
|
2625
|
+
${y(Ze.lineHeight,X.fontSize)};
|
|
2624
2626
|
}
|
|
2625
2627
|
|
|
2626
2628
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -2640,7 +2642,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2640
2642
|
|
|
2641
2643
|
.ft-input-label--floating-text {
|
|
2642
2644
|
position: absolute;
|
|
2643
|
-
top: calc(50% - ${
|
|
2645
|
+
top: calc(50% - ${Ze.lineHeight} / 2);
|
|
2644
2646
|
transition: top 250ms;
|
|
2645
2647
|
overflow: hidden;
|
|
2646
2648
|
white-space: nowrap;
|
|
@@ -2652,8 +2654,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2652
2654
|
}
|
|
2653
2655
|
|
|
2654
2656
|
.ft-input-label--raised .ft-input-label--text {
|
|
2655
|
-
${y(
|
|
2656
|
-
${y(
|
|
2657
|
+
${y(Ze.fontSize,X.raisedFontSize)};
|
|
2658
|
+
${y(Ze.lineHeight,X.raisedFontSize)};
|
|
2657
2659
|
}
|
|
2658
2660
|
|
|
2659
2661
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -2684,30 +2686,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2684
2686
|
z-index: ${X.raisedZIndex};
|
|
2685
2687
|
background-color: ${X.backgroundColor};
|
|
2686
2688
|
border-radius: ${X.borderRadius};
|
|
2687
|
-
top: calc((${
|
|
2689
|
+
top: calc((${Ze.lineHeight} / -2) + 2px);
|
|
2688
2690
|
}
|
|
2689
2691
|
|
|
2690
2692
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2691
2693
|
border-top: none;
|
|
2692
2694
|
}
|
|
2693
|
-
`});var
|
|
2695
|
+
`});var kb,zr,eu=p(()=>{"use strict";P();Y();_a();ut();L();kb=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},zr=class extends W{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return S`
|
|
2694
2696
|
<div class="${be(this.inputLabelClasses)}">
|
|
2695
|
-
${
|
|
2697
|
+
${Ai(this.text,()=>S`
|
|
2696
2698
|
<div class="ft-input-label--text ft-typography--caption">
|
|
2697
2699
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
2698
2700
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
2699
2701
|
</div>
|
|
2700
2702
|
`)}
|
|
2701
2703
|
</div>
|
|
2702
|
-
`}};
|
|
2704
|
+
`}};zr.elementDefinitions={};kb([h({type:String})],zr.prototype,"text",void 0);kb([h({type:Boolean})],zr.prototype,"raised",void 0)});var tu,or,ru=p(()=>{"use strict";Y();Ut();Vi();eu();tu=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},or=class extends zr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"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}}};or.elementDefinitions={};or.styles=[hr,Ib];tu([h({type:Boolean})],or.prototype,"outlined",void 0);tu([h({type:Boolean})],or.prototype,"error",void 0);tu([h({type:Boolean})],or.prototype,"disabled",void 0)});var pt,_b,ou=p(()=>{"use strict";P();ee();Ut();Vi();L();pt={fontSize:o.extend("--ft-input-label-font-size","",Ro.fontSize),fontSizeRaised:o.extend("--ft-input-label-font-size-raised","",qr.fontSize),lineHeight:o.extend("--ft-input-label-line-height","",qr.lineHeight),color:o.extend("--ft-input-label-color","",u.contentGlobalSubtle),largeFieldHeight:o.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:o.extend("--ft-input-label-large-field-vertical-gap","",c.spacing05),largeFieldHorizontalPadding:o.extend("--ft-input-label-large-field-horizontal-padding","",c.spacing4),mediumFieldHeight:o.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:o.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:o.extend("--ft-input-label-medium-field-horizontal-padding","",c.spacing4),additionalPaddingLeft:o.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:o.create("--ft-input-label-additional-padding-right","","SIZE","0px")},_b=[A`
|
|
2703
2705
|
|
|
2704
2706
|
:root {
|
|
2705
|
-
--field-height: ${
|
|
2706
|
-
--field-vertical-gap: ${
|
|
2707
|
-
--field-horizontal-padding: ${
|
|
2707
|
+
--field-height: ${pt.largeFieldHeight};
|
|
2708
|
+
--field-vertical-gap: ${pt.largeFieldVerticalGap};
|
|
2709
|
+
--field-horizontal-padding: ${pt.largeFieldHorizontalPadding};
|
|
2708
2710
|
|
|
2709
|
-
--typo-caption-height: calc(${
|
|
2710
|
-
--typo-body-height: calc(${
|
|
2711
|
+
--typo-caption-height: calc(${qr.lineHeight} * ${qr.fontSize});
|
|
2712
|
+
--typo-body-height: calc(${Ro.lineHeight} * ${Ro.fontSize});
|
|
2711
2713
|
--caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
|
|
2712
2714
|
--input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
|
|
2713
2715
|
}
|
|
@@ -2722,15 +2724,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2722
2724
|
}
|
|
2723
2725
|
|
|
2724
2726
|
.ft-input-label.ftds--size-large {
|
|
2725
|
-
--field-height: ${
|
|
2726
|
-
--field-vertical-gap: ${
|
|
2727
|
-
--field-horizontal-padding: ${
|
|
2727
|
+
--field-height: ${pt.largeFieldHeight};
|
|
2728
|
+
--field-vertical-gap: ${pt.largeFieldVerticalGap};
|
|
2729
|
+
--field-horizontal-padding: ${pt.largeFieldHorizontalPadding};
|
|
2728
2730
|
}
|
|
2729
2731
|
|
|
2730
2732
|
.ft-input-label.ftds--size-medium {
|
|
2731
|
-
--field-height: ${
|
|
2732
|
-
--field-vertical-gap: ${
|
|
2733
|
-
--field-horizontal-padding: ${
|
|
2733
|
+
--field-height: ${pt.mediumFieldHeight};
|
|
2734
|
+
--field-vertical-gap: ${pt.mediumFieldVerticalGap};
|
|
2735
|
+
--field-horizontal-padding: ${pt.mediumFieldHorizontalPadding};
|
|
2734
2736
|
}
|
|
2735
2737
|
|
|
2736
2738
|
.ft-input-label--text {
|
|
@@ -2741,8 +2743,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2741
2743
|
z-index: 10;
|
|
2742
2744
|
width: 100%;
|
|
2743
2745
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2744
|
-
${y(
|
|
2745
|
-
${y(
|
|
2746
|
+
${y(Ze.fontSize,pt.fontSize)};
|
|
2747
|
+
${y(Ze.lineHeight,pt.lineHeight)};
|
|
2746
2748
|
}
|
|
2747
2749
|
|
|
2748
2750
|
.ft-input-label--hidden-text {
|
|
@@ -2765,23 +2767,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2765
2767
|
|
|
2766
2768
|
padding-top: ${X.verticalSpacing};
|
|
2767
2769
|
padding-bottom: ${X.verticalSpacing};
|
|
2768
|
-
padding-left: calc(var(--field-horizontal-padding) + ${
|
|
2769
|
-
padding-right: calc(var(--field-horizontal-padding) + ${
|
|
2770
|
+
padding-left: calc(var(--field-horizontal-padding) + ${pt.additionalPaddingLeft});
|
|
2771
|
+
padding-right: calc(var(--field-horizontal-padding) + ${pt.additionalPaddingRight});
|
|
2770
2772
|
|
|
2771
2773
|
margin: calc(${X.verticalSpacing} * -1) 0;
|
|
2772
|
-
color: ${
|
|
2774
|
+
color: ${pt.color};
|
|
2773
2775
|
}
|
|
2774
2776
|
|
|
2775
2777
|
.ft-input-label--raised .ft-input-label--text {
|
|
2776
|
-
${y(
|
|
2777
|
-
${y(
|
|
2778
|
+
${y(Ze.fontSize,pt.fontSizeRaised)};
|
|
2779
|
+
${y(Ze.lineHeight,pt.lineHeight)};
|
|
2778
2780
|
}
|
|
2779
2781
|
|
|
2780
2782
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
2781
2783
|
top: var(--input-content-vertical-padding);
|
|
2782
2784
|
}
|
|
2783
2785
|
|
|
2784
|
-
`]});var
|
|
2786
|
+
`]});var Dn,iu=p(()=>{"use strict";eu();L();ou();ze();Dn=class extends pr(zr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Dn.styles=[hr,_b]});var $b=p(()=>{"use strict"});var Tb=p(()=>{"use strict"});var Pb=p(()=>{"use strict";L();ru();iu();ru();Vi();$b();iu();ou();Tb();M("ft-input-label")(or);M("ftds-input-label")(Dn)});var ie,Nb,vs=p(()=>{"use strict";P();L();Vi();Ut();Fr();Uo();ie={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","",w.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",w.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",w.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",w.colorSurface),colorOnSurfaceDisabled:o.external(w.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),borderRadiusS:o.external(w.borderRadiusS,"Design system"),elevation02:o.external(w.elevation02,"Design system"),colorError:o.external(w.colorError,"Design system")},Nb=A`
|
|
2785
2787
|
*:focus {
|
|
2786
2788
|
outline: none;
|
|
2787
2789
|
}
|
|
@@ -2857,8 +2859,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2857
2859
|
overflow: hidden;
|
|
2858
2860
|
white-space: nowrap;
|
|
2859
2861
|
text-overflow: ellipsis;
|
|
2860
|
-
${y(
|
|
2861
|
-
${y(
|
|
2862
|
+
${y(Br.fontSize,ie.selectedOptionSize)};
|
|
2863
|
+
${y(Br.lineHeight,ie.selectedOptionSize)};
|
|
2862
2864
|
}
|
|
2863
2865
|
|
|
2864
2866
|
.ft-select--in-error .ft-select--selected-option {
|
|
@@ -2931,7 +2933,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2931
2933
|
.ft-select--in-error .ft-select--helper-text {
|
|
2932
2934
|
color: ${ie.colorError};
|
|
2933
2935
|
}
|
|
2934
|
-
`});var Pe,
|
|
2936
|
+
`});var Pe,Sr,ye,nu=p(()=>{"use strict";P();Y();ut();Yt();_a();Ba();L();ze();Pb();ft();zt();vs();Pe=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},Sr=class extends W{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return S``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Sr.elementDefinitions={};Pe([h({type:String})],Sr.prototype,"label",void 0);Pe([h({type:Object,converter:r=>r})],Sr.prototype,"value",void 0);Pe([h({type:Boolean,reflect:!0})],Sr.prototype,"selected",void 0);ye=class r extends W{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,t,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=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&i!==void 0?i:"").length>0,f={"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 S`
|
|
2935
2937
|
<div class="${be(f)}" part="container">
|
|
2936
2938
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2937
2939
|
<ft-input-label text="${this.label}"
|
|
@@ -2947,14 +2949,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2947
2949
|
tabindex="${l?"-1":"0"}"
|
|
2948
2950
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2949
2951
|
@keydown=${this.onMainPanelKeyDown}
|
|
2950
|
-
aria-label="${
|
|
2951
|
-
aria-labelledby="${
|
|
2952
|
+
aria-label="${Wo(this.ariaLabel)}"
|
|
2953
|
+
aria-labelledby="${Ai(!this.ariaLabel,()=>"label")}"
|
|
2952
2954
|
aria-haspopup="listbox"
|
|
2953
2955
|
aria-expanded="${s}"
|
|
2954
|
-
aria-activedescendant="${
|
|
2956
|
+
aria-activedescendant="${Wo(this.getOptionId(this.selectedOption))}"
|
|
2955
2957
|
role="combobox">
|
|
2956
2958
|
<ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
|
|
2957
|
-
<ft-typography variant="${
|
|
2959
|
+
<ft-typography variant="${Be.body1}" class="ft-select--selected-option">
|
|
2958
2960
|
${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:""}
|
|
2959
2961
|
</ft-typography>
|
|
2960
2962
|
<ft-icon aria-hidden="true" .value=${s?et.THIN_ARROW_UP:et.THIN_ARROW}></ft-icon>
|
|
@@ -2963,12 +2965,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2963
2965
|
part="options"
|
|
2964
2966
|
@keydown=${this.onOptionsKeyDown}
|
|
2965
2967
|
role="listbox">
|
|
2966
|
-
${
|
|
2968
|
+
${Re(this.options,g=>g.value,(g,m)=>this.renderOption(g,m))}
|
|
2967
2969
|
</div>
|
|
2968
2970
|
</div>
|
|
2969
2971
|
<slot name="helper" part="helper">
|
|
2970
2972
|
${this.helper?S`
|
|
2971
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2973
|
+
<ft-typography class="ft-select--helper-text" variant="${Be.caption}">${this.helper}
|
|
2972
2974
|
</ft-typography>`:T}
|
|
2973
2975
|
</slot>
|
|
2974
2976
|
</div>
|
|
@@ -2987,34 +2989,34 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2987
2989
|
<ft-ripple ?primary=${i} ?activated=${i}></ft-ripple>
|
|
2988
2990
|
<span>${e.label}</span>
|
|
2989
2991
|
</div>
|
|
2990
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t: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"];ac(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",ie.optionsHeight,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 t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.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 t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.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;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){var t,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var d;return((d=l.label)===null||d===void 0?void 0:d.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(t=this.optionsMenu)===null||t===void 0?void 0:t.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let t=this.options.findIndex(i=>
|
|
2992
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t: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"];ac(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",ie.optionsHeight,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 t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.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 t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.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;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(l=this.handleAlphanumericPress(e.key));break}l?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){var t,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(l=>{var d;return((d=l.label)===null||d===void 0?void 0:d.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(t=this.optionsMenu)===null||t===void 0?void 0:t.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let t=this.options.findIndex(i=>Ke(i.value,e.value));if(t!==-1)return`option-${t}`}selectOption(e){var t,i;if(!Ke((t=this.selectedOption)===null||t===void 0?void 0:t.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)}};ye.elementDefinitions={"ft-input-label":or,"ft-typography":oe,"ft-ripple":re,"ft-icon":Ce};ye.searchTimeoutMilliseconds=2e3;ye.styles=[ao,hr,Nb];Pe([h({type:String})],ye.prototype,"label",void 0);Pe([h({type:String})],ye.prototype,"ariaLabel",void 0);Pe([h({type:String})],ye.prototype,"helper",void 0);Pe([h({type:Boolean})],ye.prototype,"outlined",void 0);Pe([h({type:Boolean})],ye.prototype,"disabled",void 0);Pe([h({type:Boolean})],ye.prototype,"error",void 0);Pe([h({type:Boolean})],ye.prototype,"fixedMenuPosition",void 0);Pe([h({type:Array})],ye.prototype,"options",void 0);Pe([N()],ye.prototype,"selectedOption",void 0);Pe([N()],ye.prototype,"optionsDisplayed",void 0);Pe([N()],ye.prototype,"focusOptions",void 0);Pe([N()],ye.prototype,"currentSearch",void 0);Pe([N()],ye.prototype,"lastSearchInputDate",void 0);Pe([H(".ft-select")],ye.prototype,"container",void 0);Pe([H(".ft-select--options")],ye.prototype,"optionsMenu",void 0);Pe([H(".ft-select--input-panel")],ye.prototype,"mainPanel",void 0);Pe([H(".ft-select--option:first-child")],ye.prototype,"firstOption",void 0);Pe([H(".ft-select--option:focus")],ye.prototype,"focusedOption",void 0);Pe([H(".ft-select--option.ft-select--option-selected")],ye.prototype,"selectedOptionElement",void 0);Pe([H(".ft-select--option:last-child")],ye.prototype,"lastOption",void 0);Pe([H("slot:not([name])")],ye.prototype,"optionsSlot",void 0)});var Fb=p(()=>{"use strict"});var Bb=p(()=>{"use strict";L();nu();nu();vs();Fb();M("ft-select")(ye);M("ft-select-option")(Sr)});var it,Db,Ss=p(()=>{"use strict";P();L();it={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(w.borderRadiusM,"Design system")},Db=A`
|
|
2991
2993
|
:host {
|
|
2992
|
-
width: ${
|
|
2993
|
-
height: ${
|
|
2994
|
-
display: ${
|
|
2994
|
+
width: ${it.width};
|
|
2995
|
+
height: ${it.height};
|
|
2996
|
+
display: ${it.display};
|
|
2995
2997
|
overflow: hidden;
|
|
2996
|
-
border-radius: ${
|
|
2998
|
+
border-radius: ${it.borderRadiusM};
|
|
2997
2999
|
background: linear-gradient(
|
|
2998
3000
|
90deg,
|
|
2999
3001
|
transparent,
|
|
3000
|
-
${
|
|
3001
|
-
${
|
|
3002
|
-
transparent ${
|
|
3003
|
-
), ${
|
|
3002
|
+
${it.glareColor} calc(0.45 * ${it.glareWidth}),
|
|
3003
|
+
${it.glareColor} calc(0.55 * ${it.glareWidth}),
|
|
3004
|
+
transparent ${it.glareWidth}
|
|
3005
|
+
), ${it.backgroundColor};
|
|
3004
3006
|
background-repeat: repeat-y;
|
|
3005
3007
|
background-size: 100vw 100vh;
|
|
3006
3008
|
background-attachment: fixed;
|
|
3007
|
-
background-position: calc(${
|
|
3008
|
-
animation: shine ${
|
|
3009
|
+
background-position: calc(${it.glareWidth} * -1) 0;
|
|
3010
|
+
animation: shine ${it.animationDuration} infinite;
|
|
3009
3011
|
animation-timing-function: linear;
|
|
3010
3012
|
}
|
|
3011
3013
|
|
|
3012
3014
|
@keyframes shine {
|
|
3013
3015
|
to {
|
|
3014
|
-
background-position: calc(100vw + ${
|
|
3016
|
+
background-position: calc(100vw + ${it.glareWidth}) 0, calc(${it.glareWidth} * -1) 0;
|
|
3015
3017
|
}
|
|
3016
3018
|
}
|
|
3017
|
-
`});var q,
|
|
3019
|
+
`});var q,Mb,Ub,Cs=p(()=>{"use strict";L();P();zo();Vi();vs();Ss();Pa();ms();ys();Ut();q={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",w.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(w.colorSurface,"Design system"),colorOnSurface:o.external(w.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(w.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(w.colorOutline,"Design system"),colorPrimary:o.external(w.colorPrimary,"Design system"),elevation02:o.external(w.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",w.colorPrimary)},Mb=A`
|
|
3018
3020
|
* {
|
|
3019
3021
|
box-sizing: border-box;
|
|
3020
3022
|
}
|
|
@@ -3062,8 +3064,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3062
3064
|
}
|
|
3063
3065
|
|
|
3064
3066
|
.ft-search-bar--skeleton {
|
|
3065
|
-
${y(
|
|
3066
|
-
${y(
|
|
3067
|
+
${y(it.height,q.height)};
|
|
3068
|
+
${y(it.borderRadiusM,q.borderRadius)};
|
|
3067
3069
|
}
|
|
3068
3070
|
|
|
3069
3071
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
@@ -3117,7 +3119,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3117
3119
|
align-items: center;
|
|
3118
3120
|
height: 100%;
|
|
3119
3121
|
|
|
3120
|
-
${y(
|
|
3122
|
+
${y(gr.zIndex,`calc(${q.floatingZIndex} + 1)`)};
|
|
3121
3123
|
}
|
|
3122
3124
|
|
|
3123
3125
|
.ft-search-bar > ft-button,
|
|
@@ -3179,7 +3181,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3179
3181
|
flex-direction: column;
|
|
3180
3182
|
max-height: 100%;
|
|
3181
3183
|
max-width: 100%;
|
|
3182
|
-
color: ${
|
|
3184
|
+
color: ${Ot.colorOnSurface};
|
|
3183
3185
|
}
|
|
3184
3186
|
|
|
3185
3187
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -3209,7 +3211,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3209
3211
|
${y(V.fontWeight,"bold")};
|
|
3210
3212
|
}
|
|
3211
3213
|
|
|
3212
|
-
`,
|
|
3214
|
+
`,Ub=A`
|
|
3213
3215
|
.ft-search-bar--presets {
|
|
3214
3216
|
min-width: 200px;
|
|
3215
3217
|
}
|
|
@@ -3370,14 +3372,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3370
3372
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
3371
3373
|
margin: 0;
|
|
3372
3374
|
}
|
|
3373
|
-
`});var
|
|
3374
|
-
`}};
|
|
3375
|
+
`});var fo,au=p(()=>{"use strict";P();L();Ss();fo=class extends W{render(){return S`
|
|
3376
|
+
`}};fo.elementDefinitions={};fo.styles=Db});var zb=p(()=>{"use strict"});var Hb=p(()=>{"use strict";L();au();au();Ss();zb();M("ft-skeleton")(fo)});var Cr,Os=p(()=>{"use strict";P();Yt();zt();L();Cs();ft();Cr=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new pe(t)}render(){let e=this.recentSearchesMatchingQuery;return S`
|
|
3375
3377
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
3376
3378
|
id="${this.listboxId}"
|
|
3377
3379
|
role="listbox"
|
|
3378
3380
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
3379
3381
|
part="suggestions-container">
|
|
3380
|
-
${
|
|
3382
|
+
${Re(e.slice(0,5),t=>t,(t,i)=>S`
|
|
3381
3383
|
<div part="suggestion-container"
|
|
3382
3384
|
class=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":T}>
|
|
3383
3385
|
<a href="${this.getRequestWithQuery(t)}"
|
|
@@ -3406,7 +3408,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3406
3408
|
</ft-button>
|
|
3407
3409
|
</div>
|
|
3408
3410
|
`)}
|
|
3409
|
-
${
|
|
3411
|
+
${Re(this.searchBar.suggestions,t=>t.value,(t,i)=>S`
|
|
3410
3412
|
<div part="suggestion-container"
|
|
3411
3413
|
class=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":T}>
|
|
3412
3414
|
<a href="${this.getRequestWithQuery(t.value)}"
|
|
@@ -3426,7 +3428,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3426
3428
|
</div>
|
|
3427
3429
|
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{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()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?et.BOOK:et.ARTICLE;break;case"DOCUMENT":i=Fa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=et.TOPICS;break}return S`
|
|
3428
3430
|
<ft-icon .variant="${t}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3429
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};
|
|
3431
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Cr.styles=[bn,A`
|
|
3430
3432
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
3431
3433
|
flex-grow: 1;
|
|
3432
3434
|
flex-shrink: 1;
|
|
@@ -3516,7 +3518,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3516
3518
|
ft-ripple {
|
|
3517
3519
|
${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
|
|
3518
3520
|
}
|
|
3519
|
-
`]});var
|
|
3521
|
+
`]});var Or,ws=p(()=>{"use strict";P();Yt();Ep();L();gs();Jp();Or=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return S``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=S`
|
|
3520
3522
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?S`
|
|
3521
3523
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
3522
3524
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3527,7 +3529,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3527
3529
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
3528
3530
|
</ft-chip>
|
|
3529
3531
|
`:null}
|
|
3530
|
-
${
|
|
3532
|
+
${Re(this.searchBar.facets,n=>n.key,n=>{let a=eb(n);return Re(a,s=>{let l=n.label+": "+Qy(s),d=n.key.replace(":","-"),f=S`
|
|
3531
3533
|
<ft-chip
|
|
3532
3534
|
part="selected-filters selected-filter-${d}"
|
|
3533
3535
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3540,7 +3542,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3540
3542
|
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(g=>g!==s))}
|
|
3541
3543
|
data-key="${n.key}"
|
|
3542
3544
|
data-value="${s}">
|
|
3543
|
-
${
|
|
3545
|
+
${Yy(s)}
|
|
3544
3546
|
</ft-chip>
|
|
3545
3547
|
`;return t?f:S`
|
|
3546
3548
|
<ft-tooltip inline text="${l}">
|
|
@@ -3566,7 +3568,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3566
3568
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
3567
3569
|
${i}
|
|
3568
3570
|
</div>
|
|
3569
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=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&&t!==void 0?t:e}};
|
|
3571
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=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&&t!==void 0?t:e}};Or.styles=A`
|
|
3570
3572
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
3571
3573
|
flex-shrink: 0;
|
|
3572
3574
|
display: flex;
|
|
@@ -3585,8 +3587,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3585
3587
|
}
|
|
3586
3588
|
|
|
3587
3589
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3588
|
-
${y(
|
|
3589
|
-
${y(
|
|
3590
|
+
${y(ot.iconSize,"17px")};
|
|
3591
|
+
${y(ot.fontSize,"12px")};
|
|
3590
3592
|
}
|
|
3591
3593
|
|
|
3592
3594
|
.ft-search-bar--selected-filters * {
|
|
@@ -3596,7 +3598,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3596
3598
|
.ft-search-bar--selected-filters ft-chip {
|
|
3597
3599
|
flex-grow: 0;
|
|
3598
3600
|
}
|
|
3599
|
-
`});var
|
|
3601
|
+
`});var Mn,Wb=p(()=>{"use strict";P();ws();Os();ut();Mn=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Or(e),this.suggestManager=i??new Cr(e)}render(){var e;let t={"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 S`
|
|
3600
3602
|
<div class="${be(t)}" part="container" tabindex="-1">
|
|
3601
3603
|
<div class="ft-search-bar" role="search">
|
|
3602
3604
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -3653,9 +3655,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3653
3655
|
@click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(t=this.searchBar.input)===null||t===void 0?void 0:t.focus()}}
|
|
3654
3656
|
></ft-button>
|
|
3655
3657
|
</div>
|
|
3656
|
-
`}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};
|
|
3658
|
+
`}onSearchBarKeyDown(e){var t;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}};Mn.styles=A`
|
|
3657
3659
|
|
|
3658
|
-
`});var
|
|
3660
|
+
`});var Un,Vb=p(()=>{"use strict";P();Yt();ws();Os();ut();Un=class{constructor(e,t,i){this.searchBar=e,this.selectedFacetsManager=t??new Or(e),this.suggestManager=i??new Cr(e)}render(){var e;let t={"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};return S`
|
|
3659
3661
|
<div class="${be(t)}" part="container" tabindex="-1">
|
|
3660
3662
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
3661
3663
|
${this.renderSearchBarLeftAction()}
|
|
@@ -3703,7 +3705,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3703
3705
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
3704
3706
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
3705
3707
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
3706
|
-
${
|
|
3708
|
+
${Re(this.searchBar.availableContentLocales,e=>e.lang,e=>S`
|
|
3707
3709
|
<ft-select-option .value=${e.lang}
|
|
3708
3710
|
label="${e.label}"
|
|
3709
3711
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -3732,9 +3734,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3732
3734
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
3733
3735
|
></ft-button>
|
|
3734
3736
|
</div>
|
|
3735
|
-
`}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};
|
|
3737
|
+
`}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Un.styles=A`
|
|
3736
3738
|
|
|
3737
|
-
`});var ae,
|
|
3739
|
+
`});var ae,jb,su,fS,Q,lu=p(()=>{"use strict";P();Y();Yt();L();Zy();ze();Ep();mb();zt();Sb();Ht();Jp();Bb();gs();Na();ft();Cs();Hb();Os();ws();Wb();Vb();Fp();yr();ae=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");jb={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"},su=class extends CustomEvent{constructor(e){super("change",{detail:e})}},fS=()=>{},Q=class extends W{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 Qr(jb,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new no(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Vt.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.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Cr(this),this.selectedFacetsManager=new Or(this),this.desktopSearchBarManager=new Un(this),this.mobileSearchBarManager=new Mn(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new pe(10),this.updateLocalesDebouncer=new pe(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 pe(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},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)))}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===Vt.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 jr(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return S`
|
|
3738
3740
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
3739
3741
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3740
3742
|
${this.renderLiveText()}
|
|
@@ -3762,7 +3764,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3762
3764
|
</div>
|
|
3763
3765
|
</ft-accordion-item>
|
|
3764
3766
|
`:null}
|
|
3765
|
-
${
|
|
3767
|
+
${Re(this.facets,t=>t.key,t=>{let i=wp(t),n=t.key.replace(":","-"),a=Jy(i);return t.rootNodes.length>0?S`
|
|
3766
3768
|
<ft-accordion-item data-facet-key="${t.key}">
|
|
3767
3769
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
3768
3770
|
<ft-typography variant="button">${t.label}</ft-typography>
|
|
@@ -3792,7 +3794,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3792
3794
|
`}getContentLocaleRadioGroup(){var e;return S`
|
|
3793
3795
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
3794
3796
|
@change=${t=>{this.contentLocale=t.detail==="all"?void 0:t.detail,this.clearFilters()}}>
|
|
3795
|
-
${
|
|
3797
|
+
${Re((e=this.availableContentLocales)!==null&&e!==void 0?e:[],t=>t.lang,t=>{var i;return S`
|
|
3796
3798
|
<ft-radio value="${(i=t.lang)!==null&&i!==void 0?i:"all"}"
|
|
3797
3799
|
?checked=${t.lang==this.contentLocale}>
|
|
3798
3800
|
${t.label}
|
|
@@ -3823,7 +3825,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3823
3825
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
3824
3826
|
outlined
|
|
3825
3827
|
@change=${t=>this.selectedPreset=t.detail}>
|
|
3826
|
-
${
|
|
3828
|
+
${Re((e=this.presets)!==null&&e!==void 0?e:[],t=>t.name,t=>S`
|
|
3827
3829
|
<ft-select-option value="${t.name}"
|
|
3828
3830
|
label="${t.name}"
|
|
3829
3831
|
?selected=${t.name===this.selectedPreset}>
|
|
@@ -3855,7 +3857,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3855
3857
|
${this.getContentLocaleRadioGroup()}
|
|
3856
3858
|
</div>
|
|
3857
3859
|
`:T}
|
|
3858
|
-
${
|
|
3860
|
+
${Re(this.facets,e=>e.key,e=>{let t=wp(e),i=t.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 S`
|
|
3859
3861
|
<ft-filter
|
|
3860
3862
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3861
3863
|
part="filters filter filter-${n}"
|
|
@@ -3874,14 +3876,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3874
3876
|
></ft-filter>
|
|
3875
3877
|
`})}
|
|
3876
3878
|
</ft-snap-scroll>
|
|
3877
|
-
`:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new
|
|
3879
|
+
`:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Qr(jb,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(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.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(f=>ps(f)))})),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 su(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 t,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.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 t=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),t.set(n.key,n)})).catch(fS)),this.facets=[];for(let i of this.facetsRequest)t.has(i.id)?this.facets.push(t.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 t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,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("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!En&&this.focusInput(),U.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),U.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Et(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&i.push({key:e,valueFilter:{negative:!1,values:t}}),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(t=>Et(t.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?T:S`
|
|
3878
3880
|
<div class="ft-search-bar--floating-panel"
|
|
3879
3881
|
id="ft-search-bar-floating-panel"
|
|
3880
3882
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3881
3883
|
part="floating-panel"
|
|
3882
3884
|
tabindex="-1">
|
|
3883
3885
|
${this.renderDesktopMenu()}
|
|
3884
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};Q.elementDefinitions={"ft-accordion":
|
|
3886
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};Q.elementDefinitions={"ft-accordion":vr,"ft-accordion-item":jt,"ft-button":De,"ft-chip":Ue,"ft-filter":fe,"ft-filter-option":Pt,"ft-icon":Ce,"ft-ripple":re,"ft-select":ye,"ft-select-option":Sr,"ft-size-watcher":_t,"ft-skeleton":fo,"ft-snap-scroll":He,"ft-tooltip":$e,"ft-typography":oe,"ft-radio-group":qo,"ft-radio":Ur};Q.styles=[ao,ko,Mb,Ub,Or.styles,Cr.styles,Ri];ae([h({type:Boolean})],Q.prototype,"dense",void 0);ae([h()],Q.prototype,"mode",void 0);ae([h({type:Boolean})],Q.prototype,"forceMobileMenuOpen",void 0);ae([h({type:Boolean})],Q.prototype,"forceMenuOpen",void 0);ae([h()],Q.prototype,"baseUrl",void 0);ae([h()],Q.prototype,"apiIntegrationIdentifier",void 0);ae([h()],Q.prototype,"contentLocale",void 0);ae([N()],Q.prototype,"availableContentLocales",void 0);ae([N()],Q.prototype,"availableContentLocalesInitialized",void 0);ae([h()],Q.prototype,"uiLocale",void 0);ae([Ee({})],Q.prototype,"labels",void 0);ae([Ee([])],Q.prototype,"displayedFilters",void 0);ae([Ee([])],Q.prototype,"presets",void 0);ae([h({type:String,reflect:!0})],Q.prototype,"selectedPreset",void 0);ae([Ee([])],Q.prototype,"priors",void 0);ae([h()],Q.prototype,"searchRequestSerializer",void 0);ae([h({type:Boolean})],Q.prototype,"focusOnDisplay",void 0);ae([N()],Q.prototype,"metadataFilters",void 0);ae([N()],Q.prototype,"sizeCategory",void 0);ae([N()],Q.prototype,"displayFacets",void 0);ae([N()],Q.prototype,"mobileMenuOpen",void 0);ae([N()],Q.prototype,"facets",void 0);ae([N()],Q.prototype,"facetsInitialized",void 0);ae([H(".ft-search-bar--container")],Q.prototype,"container",void 0);ae([H(".ft-search-bar--filters-opener")],Q.prototype,"filtersOpener",void 0);ae([H(".ft-search-bar--floating-panel")],Q.prototype,"floatingContainer",void 0);ae([H("ft-snap-scroll.ft-search-bar--filters-container")],Q.prototype,"scrollingFiltersContainer",void 0);ae([H(".ft-search-bar--input")],Q.prototype,"input",void 0);ae([H(".ft-search-bar--launch-search")],Q.prototype,"launchSearchButton",void 0);ae([N()],Q.prototype,"query",void 0);ae([N()],Q.prototype,"suggestions",void 0);ae([N()],Q.prototype,"recentSearches",void 0);ae([N()],Q.prototype,"scrollToFacet",void 0);ae([N()],Q.prototype,"api",void 0);ae([N()],Q.prototype,"displaySuggestListbox",void 0);ae([N()],Q.prototype,"selectedSuggestOptionId",void 0);ae([N()],Q.prototype,"selectedSuggestRemoveRecent",void 0);ae([N()],Q.prototype,"facetsLoaded",void 0)});var Gb=p(()=>{"use strict"});var Kb=p(()=>{"use strict";L();lu();lu();Cs();Gb();M("ft-search-bar")(Q)});var qb,Zb=p(()=>{"use strict";P();Ln();L();ft();Kb();qb=A`
|
|
3885
3887
|
* {
|
|
3886
3888
|
box-sizing: border-box;
|
|
3887
3889
|
}
|
|
@@ -3930,13 +3932,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3930
3932
|
ft-ripple {
|
|
3931
3933
|
${y($.opacityContentOnSurfaceHover,$.opacityContentOnSurfaceSelected)}
|
|
3932
3934
|
}
|
|
3933
|
-
`});var
|
|
3935
|
+
`});var ho,Yb=p(()=>{"use strict";L();P();Zb();Yt();zt();ft();ze();yr();xp();ho=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){let e=Mr.get();return S`
|
|
3934
3936
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3935
3937
|
id="${this.listboxId}"
|
|
3936
3938
|
role="listbox"
|
|
3937
|
-
aria-label="${
|
|
3939
|
+
aria-label="${lo.messages.suggestionsLabel()}"
|
|
3938
3940
|
part="container">
|
|
3939
|
-
${
|
|
3941
|
+
${Re(this.ftSearchInput.suggestResults||[],t=>t.value,(t,i)=>this.renderSuggestion(i,t,e))}
|
|
3940
3942
|
</div>
|
|
3941
3943
|
`}renderSuggestion(e,t,i){let n=`suggestion-${e}`,a=S`
|
|
3942
3944
|
<ft-ripple ?activated=${this.ftSearchInput.selectedSuggestOptionId===n}></ft-ripple>
|
|
@@ -3966,7 +3968,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3966
3968
|
</div>
|
|
3967
3969
|
`}onSuggestSelected(e){this.ftSearchInput.onSuggestionSelected(e)}getIcon(e){let t=e.type==="DOCUMENT"?Ye.file_format:Ye.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?et.BOOK:et.ARTICLE;break;case"DOCUMENT":i=Fa(e.mimeType,e.filenameExtension);break;case"TOPIC":i=et.TOPICS;break}return S`
|
|
3968
3970
|
<ft-icon .variant=${t} .value=${i} part="suggestion-icon"></ft-icon>
|
|
3969
|
-
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};
|
|
3971
|
+
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};ho.elementDefinitions={"ft-ripple":re,"ft-typography":oe,"ft-icon":Ce};ho.styles=[bn,qb]});var Nt,We,cu=p(()=>{"use strict";P();L();Ln();Ko();rr();xp();Y();ut();Yb();Ht();ze();yr();Nt=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},We=class extends St(Wt){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.placeholder=lo.messages.placeholder(),this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ho(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(lo)}render(){var e,t,i;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(t=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,l=Mr.get().serializeToCurrentPageIfPossible(a,s);return S`
|
|
3970
3972
|
<div class="${be(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3971
3973
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3972
3974
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
@@ -3998,7 +4000,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
3998
4000
|
part="clear-query"
|
|
3999
4001
|
icon="close"
|
|
4000
4002
|
round dense
|
|
4001
|
-
label="${
|
|
4003
|
+
label="${lo.messages.clearButton()}"
|
|
4002
4004
|
@click=${()=>this.onClearInput()}
|
|
4003
4005
|
></ft-button>
|
|
4004
4006
|
<div class="ft-search-input--separator"></div>
|
|
@@ -4007,65 +4009,65 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4007
4009
|
part="launch-search-in-input"
|
|
4008
4010
|
icon="search"
|
|
4009
4011
|
round dense
|
|
4010
|
-
label="${
|
|
4012
|
+
label="${lo.messages.searchButton()}"
|
|
4011
4013
|
href="${this.useCustomSearchPath?l:""}"
|
|
4012
4014
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
4013
4015
|
></ft-button>
|
|
4014
4016
|
</div>
|
|
4015
4017
|
</div>
|
|
4016
|
-
`}renderLiveText(){return this.shouldDisplaySuggestions?
|
|
4017
|
-
`});var uu,
|
|
4018
|
+
`}renderLiveText(){return this.shouldDisplaySuggestions?lo.messages.ariaLiveSuggestions(this.suggestResults.length):""}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0;break;case"Escape":this.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPreviousSuggestion();break;case"ArrowLeft":case"ArrowRight":this.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestions.clearSelection());break;case"Enter":{let t=this.suggestions.selectedSuggestOption||this.launchSearchButton;t?.click();break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.displaySuggestListbox=!1,this.suggestions.clearSelection()}get shouldDisplaySuggestions(){var e;return!this.forceCloseSuggestion&&this.displaySuggestListbox&&((e=this.suggestResults)!==null&&e!==void 0?e:[]).length>0}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await jr(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),this.focusOnDisplay&&!En&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox)}};We.elementDefinitions={"ft-button":De,...ho.elementDefinitions};We.styles=[ao,ko,zd,...ho.styles,Ri];Nt([ve()],We.prototype,"request",void 0);Nt([ve()],We.prototype,"liveQuery",void 0);Nt([ve()],We.prototype,"suggestResults",void 0);Nt([N()],We.prototype,"forceCloseSuggestion",void 0);Nt([N()],We.prototype,"displaySuggestListbox",void 0);Nt([N()],We.prototype,"selectedSuggestOptionId",void 0);Nt([h()],We.prototype,"launchSearchPath",void 0);Nt([h()],We.prototype,"placeholder",void 0);Nt([h({type:Boolean})],We.prototype,"useCustomSearchPath",void 0);Nt([h({type:Boolean})],We.prototype,"triggerSearchOnClear",void 0);Nt([h({type:Boolean})],We.prototype,"focusOnDisplay",void 0);Nt([H(".ft-search-input--input")],We.prototype,"input",void 0);Nt([H('[part="launch-search-in-input"]')],We.prototype,"launchSearchButton",void 0)});var Qb=p(()=>{"use strict"});var Xb={};ne(Xb,{FtSearchInput:()=>We,FtSearchInputCssVariables:()=>Oe,styles:()=>zd});var Jb=p(()=>{"use strict";L();cu();Ln();Qb();cu();M("ft-search-input")(We)});var hS,du,pu=p(()=>{"use strict";P();hS={},du=A`
|
|
4019
|
+
`});var uu,ex=p(()=>{"use strict";rr();uu=br.fromGwt("designedActionBlockAriaLabels")});var tx,Hr,fu=p(()=>{"use strict";P();L();pu();Ht();Ko();rr();ex();tx=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},Hr=class extends St(Wt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(uu)}render(){return this.isLastPage?T:S`
|
|
4018
4020
|
<ft-button @click="${this.loadMore}">
|
|
4019
4021
|
${uu.messages.searchPageLoadMore()}
|
|
4020
4022
|
</ft-button>
|
|
4021
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};
|
|
4022
|
-
<ft-typography variant="body1" part="text">${
|
|
4023
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Hr.elementDefinitions={"ft-button":De};Hr.styles=du;tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Hr.prototype,"currentPage",void 0);tx([ve({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Hr.prototype,"isLastPage",void 0)});var rx=p(()=>{"use strict"});var ox={};ne(ox,{FtSearchLoadMoreButton:()=>Hr,FtSearchLoadMoreButtonCssVariables:()=>hS,styles:()=>du});var ix=p(()=>{"use strict";L();fu();pu();rx();fu();M("ft-search-load-more-button")(Hr)});var Es,mu,hu,mS,ji,gu=p(()=>{"use strict";L();Ko();Y();Es=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},mu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},hu=Symbol("registerInterval"),mS=Ne(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[hu]):this.dispatchEvent(new mu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=hu,Es([h({attribute:!1})],t.prototype,"cluster",void 0),Es([h({attribute:!1})],t.prototype,"result",void 0),Es([Gr()],t.prototype,"rank",void 0),Es([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),ji=class extends mS(Wt){}});var Yo,yu=p(()=>{"use strict";P();gu();za();rn();ze();Yo=class extends ji{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?S`
|
|
4024
|
+
<ft-typography variant="body1" part="text">${wo(e)}</ft-typography>
|
|
4023
4025
|
`:S`
|
|
4024
4026
|
<style>
|
|
4025
4027
|
:host {
|
|
4026
4028
|
display: none !important;
|
|
4027
4029
|
}
|
|
4028
4030
|
</style>
|
|
4029
|
-
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};
|
|
4031
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Yo.elementDefinitions={"ft-typography":oe};Yo.styles=Hd});var nx=p(()=>{"use strict"});var ax={};ne(ax,{FtSearchResultAbstract:()=>Yo,FtSearchResultAbstractCssVariables:()=>Ua,styles:()=>Hd});var bu=p(()=>{"use strict";L();yu();za();nx();yu();M("ft-search-result-abstract")(Yo)});var gS,mo,xu=p(()=>{"use strict";P();Y();gu();Wa();ze();rn();cp();pp();gS=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},mo=class extends ji{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():S`
|
|
4030
4032
|
<a href="${ns(this.result)}"
|
|
4031
4033
|
@click=${this.onResultClick}
|
|
4032
4034
|
@auxclick=${t=>this.onAuxClick(t)}
|
|
4033
4035
|
@contextmenu=${this.onContextMenu}
|
|
4034
|
-
target="${
|
|
4036
|
+
target="${By(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
4035
4037
|
part="link">
|
|
4036
4038
|
${this.renderTitle()}
|
|
4037
4039
|
</a>
|
|
4038
4040
|
`:T}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){return S`
|
|
4039
|
-
<ft-typography variant="title" part="text">${
|
|
4040
|
-
`}onResultClick(){this.dispatchEvent(new
|
|
4041
|
+
<ft-typography variant="title" part="text">${wo(this.selectTitle(this.result))}</ft-typography>
|
|
4042
|
+
`}onResultClick(){this.dispatchEvent(new Di(this.result,this.rank))}onContextMenu(){this.dispatchEvent(new Mi(this.result,this.rank))}selectTitle(e){switch(e.type){case"MAP":return e.map.htmlTitle;case"DOCUMENT":return e.document.htmlTitle;case"TOPIC":return e.topic.htmlTitle}return""}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&(!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`))&&(this.elementToFocus={selector:"a"})}};mo.elementDefinitions={"ft-typography":oe};mo.styles=Wd;gS([h({type:Boolean})],mo.prototype,"withoutLink",void 0)});var sx=p(()=>{"use strict"});var lx={};ne(lx,{FtSearchResultTitle:()=>mo,FtSearchResultTitleCssVariables:()=>Ha,styles:()=>Wd});var vu=p(()=>{"use strict";L();xu();Wa();sx();xu();M("ft-search-result-title")(mo)});var yS,Su,Cu=p(()=>{"use strict";P();yS={},Su=A`
|
|
4041
4043
|
[part="no-results-message"] {
|
|
4042
4044
|
text-align: center;
|
|
4043
4045
|
padding: 12px;
|
|
4044
4046
|
}
|
|
4045
|
-
`});var
|
|
4047
|
+
`});var cx,Ou=p(()=>{"use strict";P();cx=A`
|
|
4046
4048
|
a {
|
|
4047
4049
|
color: inherit;
|
|
4048
4050
|
text-decoration: inherit;
|
|
4049
4051
|
}
|
|
4050
|
-
`});var Rs,
|
|
4052
|
+
`});var Rs,dx=p(()=>{"use strict";Rs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var As,wu,wr,Eu=p(()=>{"use strict";P();Y();L();Ou();dx();As=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},wu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},wr=class extends W{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Rs(e=>this.onResultSelected(e))}render(){return S`
|
|
4051
4053
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
4052
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new wu(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};
|
|
4054
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new wu(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};wr.elementDefinitions={};wr.styles=cx;As([h({attribute:!1})],wr.prototype,"cluster",void 0);As([h({attribute:!1,type:Boolean})],wr.prototype,"openResultInNewTab",void 0);As([N()],wr.prototype,"result",void 0);As([h()],wr.prototype,"index",void 0)});var px=p(()=>{"use strict"});var ux=p(()=>{"use strict";L();Eu();Ou();px();Eu();M("ft-search-result-context")(wr)});var Gi,fx,Ru=p(()=>{"use strict";rr();Gi=br.build("searchResultsNumber"),fx={results:"{0} results","results[\\=1]":"1 result"}});var Qo,Ft,Au=p(()=>{"use strict";P();Yt();Y();L();Cu();Ko();ux();vu();bu();rr();Ru();Qo=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},Ft=class extends St(Wt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>S`
|
|
4053
4055
|
<ft-search-result-title></ft-search-result-title>
|
|
4054
4056
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
4055
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(
|
|
4056
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
4057
|
-
`;let e=this.buildClusters();return
|
|
4057
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(Gi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return S`
|
|
4058
|
+
<ft-typography part="no-results-message" variant="body1">${Gi.messages.results(0)}</ft-typography>
|
|
4059
|
+
`;let e=this.buildClusters();return Re(e,t=>t.id,(t,i)=>{var n;return S`
|
|
4058
4060
|
<ft-search-result-context .cluster=${t} index="${i}"
|
|
4059
4061
|
@ft-search-result-cluster-change=${a=>this.onClusterChange(t.id,a.detail)}>
|
|
4060
4062
|
${this.renderResult((n=this.selectedResultByCluster[t.id])!==null&&n!==void 0?n:t.entries[0],i)}
|
|
4061
4063
|
</ft-search-result-context>
|
|
4062
|
-
`})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&Xc.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,i;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};
|
|
4064
|
+
`})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");i&&Xc.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:this.clusterId(i.entries[0]),entries:i.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,i;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):n}clusterId(e){var t,i,n,a,s;return(a=(i=(t=e.map)===null||t===void 0?void 0:t.mapId)!==null&&i!==void 0?i:(n=e.topic)===null||n===void 0?void 0:n.tocId)!==null&&a!==void 0?a:(s=e.document)===null||s===void 0?void 0:s.documentId}};Ft.styles=Su;Qo([h({type:String,attribute:"cluster-policy"})],Ft.prototype,"clusterPolicy",void 0);Qo([h({type:Boolean})],Ft.prototype,"displayNoResultsMessage",void 0);Qo([h({attribute:!1})],Ft.prototype,"renderResult",void 0);Qo([Ee([])],Ft.prototype,"clusterSortCriterion",void 0);Qo([ve({selector:r=>({...r.request,paging:void 0})})],Ft.prototype,"requestWithoutPaging",void 0);Qo([ve({selector:r=>r.request.paging})],Ft.prototype,"paging",void 0);Qo([ve()],Ft.prototype,"results",void 0)});var hx=p(()=>{"use strict"});var mx={};ne(mx,{FtSearchResults:()=>Ft,FtSearchResultsCssVariables:()=>yS,styles:()=>Su});var gx=p(()=>{"use strict";L();Au();Cu();hx();Au();M("ft-search-results")(Ft)});var bS,Lu,Iu=p(()=>{"use strict";P();bS={},Lu=A`
|
|
4063
4065
|
|
|
4064
|
-
`});var
|
|
4066
|
+
`});var xS,go,ku=p(()=>{"use strict";P();L();Iu();Ko();rr();Ru();ze();xS=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},go=class extends St(Wt){constructor(){super(),this.addI18nContext(Gi,fx)}render(){return this.paging==null?T:S`
|
|
4065
4067
|
<ft-typography variant="body1">
|
|
4066
|
-
${
|
|
4068
|
+
${Gi.messages.results(this.paging.totalClustersCount)}
|
|
4067
4069
|
</ft-typography>
|
|
4068
|
-
`}};
|
|
4070
|
+
`}};go.elementDefinitions={"ft-typography":oe};go.styles=Lu;xS([ve()],go.prototype,"paging",void 0)});var yx=p(()=>{"use strict"});var bx={};ne(bx,{FtSearchResultsNumber:()=>go,FtSearchResultsNumberCssVariables:()=>bS,styles:()=>Lu});var xx=p(()=>{"use strict";L();ku();Iu();yx();ku();M("ft-search-results-number")(go)});L();P();L();P();L();P();L();Fr();var xe={padding:o.create("--ft-card-padding","","SIZE","12px"),borderRadius:o.extend("--ft-card-border-radius","",w.borderRadiusM),borderStyle:o.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:o.extend("--ft-card-border-color","",w.colorOutline),hoverBorderColor:o.extend("--ft-card-hover-border-color","",w.colorPrimary),outlineStyle:o.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:o.create("--ft-card-outline-width","","SIZE","0"),outlineColor:o.extend("--ft-card-outline-color","",w.colorPrimary),selectedOutlineStyle:o.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:o.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:o.extend("--ft-card-selected-outline-color","",w.colorPrimary),selectedBorderRadius:o.extend("--ft-card-selected-border-radius","",w.borderRadiusM),colorSurface:o.extend("--ft-card-background-color","",w.colorSurface),colorOnSurfaceMedium:o.extend("--ft-card-content-color","",w.colorOnSurfaceMedium),colorOnSurfaceHigh:o.extend("--ft-card-title-color","",w.colorOnSurfaceHigh),elevation02:o.extend("--ft-card-elevation","",w.elevation02),elevation04:o.extend("--ft-card-selected-elevation","",w.elevation04)},Cg=A`
|
|
4069
4071
|
:host {
|
|
4070
4072
|
display: block;
|
|
4071
4073
|
}
|
|
@@ -4154,7 +4156,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4154
4156
|
#action {
|
|
4155
4157
|
grid-area: actions;
|
|
4156
4158
|
}
|
|
4157
|
-
`;
|
|
4159
|
+
`;Ln();za();Fr();Wa();var st={searchFieldBackgroundColor:o.extend("--ft-rsid-search-field-background-color","",w.colorSurface),searchFieldBorderColor:o.extend("--ft-rsid-search-field-border-color","",w.colorOutline),searchFieldTextColor:o.extend("--ft-rsid-search-field-text-color","",w.colorOnSurface),searchFieldBorderRadius:o.extend("--ft-rsid-search-field-border-radius","",w.borderRadiusS),searchButtonColor:o.extend("--ft-rsid-search-field-button-color","",w.colorPrimary),resultsNumberColor:o.extend("--ft-rsid-results-number-color","",w.colorOnSurfaceMedium),resultBackgroundColor:o.extend("--ft-rsid-result-background-color","",w.colorSurface),resultBorderColor:o.extend("--ft-rsid-result-border-color","",w.colorOutline),resultBorderRadius:o.extend("--ft-rsid-result-border-radius","",w.borderRadiusS),resultTitleTextColor:o.extend("--ft-rsid-result-title-text-color","",w.colorOnSurface),resultBreadcrumbTextColor:o.extend("--ft-rsid-result-breadcrumb-text-color","",w.colorOnSurfaceMedium),resultContentTextColor:o.extend("--ft-rsid-result-content-text-color","",w.colorOnSurface),resultHighlightBackgroundColor:o.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:o.extend("--ft-rsid-result-hover-background-color","",w.colorPrimary),resultHoverBorderColor:o.extend("--ft-rsid-result-hover-border-color","",w.colorPrimary)},ty=A`
|
|
4158
4160
|
.ft-search-in-doc--container {
|
|
4159
4161
|
display: flex;
|
|
4160
4162
|
flex-direction: column;
|
|
@@ -4162,11 +4164,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4162
4164
|
}
|
|
4163
4165
|
|
|
4164
4166
|
ft-search-input {
|
|
4165
|
-
${y(Oe.colorSurface,
|
|
4166
|
-
${y(Oe.colorOutline,
|
|
4167
|
-
${y(Oe.colorOnSurface,
|
|
4168
|
-
${y(Oe.borderRadius,
|
|
4169
|
-
${y(Oe.buttonColor,
|
|
4167
|
+
${y(Oe.colorSurface,st.searchFieldBackgroundColor)};
|
|
4168
|
+
${y(Oe.colorOutline,st.searchFieldBorderColor)};
|
|
4169
|
+
${y(Oe.colorOnSurface,st.searchFieldTextColor)};
|
|
4170
|
+
${y(Oe.borderRadius,st.searchFieldBorderRadius)};
|
|
4171
|
+
${y(Oe.buttonColor,st.searchButtonColor)};
|
|
4170
4172
|
}
|
|
4171
4173
|
|
|
4172
4174
|
ft-search-results-number {
|
|
@@ -4174,41 +4176,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4174
4176
|
}
|
|
4175
4177
|
|
|
4176
4178
|
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
4177
|
-
color: ${
|
|
4179
|
+
color: ${st.resultsNumberColor};
|
|
4178
4180
|
}
|
|
4179
4181
|
|
|
4180
4182
|
ft-search-load-more-button {
|
|
4181
4183
|
margin: auto;
|
|
4182
4184
|
}
|
|
4183
|
-
`,
|
|
4185
|
+
`,ry=A`
|
|
4184
4186
|
ft-card {
|
|
4185
4187
|
margin-bottom: 8px;
|
|
4186
4188
|
${y(xe.elevation04,"none")};
|
|
4187
4189
|
${y(xe.elevation02,"none")};
|
|
4188
4190
|
${y(xe.borderStyle,"solid")};
|
|
4189
4191
|
${y(xe.borderRadius,w.borderRadiusS)};
|
|
4190
|
-
${y(xe.colorSurface,
|
|
4191
|
-
${y(xe.borderColor,
|
|
4192
|
-
${y(xe.borderRadius,
|
|
4192
|
+
${y(xe.colorSurface,st.resultBackgroundColor)};
|
|
4193
|
+
${y(xe.borderColor,st.resultBorderColor)};
|
|
4194
|
+
${y(xe.borderRadius,st.resultBorderRadius)};
|
|
4193
4195
|
}
|
|
4194
4196
|
|
|
4195
4197
|
ft-search-result-title {
|
|
4196
|
-
color: ${
|
|
4197
|
-
${y(Ha.highlightBackgroundColor,
|
|
4198
|
+
color: ${st.resultTitleTextColor};
|
|
4199
|
+
${y(Ha.highlightBackgroundColor,st.resultHighlightBackgroundColor)};
|
|
4198
4200
|
}
|
|
4199
4201
|
|
|
4200
4202
|
.breadcrumb {
|
|
4201
|
-
color: ${
|
|
4203
|
+
color: ${st.resultBreadcrumbTextColor};
|
|
4202
4204
|
}
|
|
4203
4205
|
|
|
4204
4206
|
ft-search-result-abstract {
|
|
4205
|
-
color: ${
|
|
4206
|
-
${y(Ua.highlightBackgroundColor,
|
|
4207
|
+
color: ${st.resultContentTextColor};
|
|
4208
|
+
${y(Ua.highlightBackgroundColor,st.resultHighlightBackgroundColor)};
|
|
4207
4209
|
}
|
|
4208
4210
|
|
|
4209
4211
|
ft-card:hover {
|
|
4210
|
-
${y(xe.hoverBorderColor,
|
|
4211
|
-
${y($.color,
|
|
4212
|
+
${y(xe.hoverBorderColor,st.resultHoverBorderColor)};
|
|
4213
|
+
${y($.color,st.resultHoverBackgroundColor)};
|
|
4212
4214
|
}
|
|
4213
4215
|
|
|
4214
4216
|
.result-container {
|
|
@@ -4221,7 +4223,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4221
4223
|
text-decoration: none;
|
|
4222
4224
|
color: inherit;
|
|
4223
4225
|
}
|
|
4224
|
-
`;
|
|
4226
|
+
`;rr();L();Y();var Py;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change"})(Py||(Py={}));var Ny;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ny||(Ny={}));var aS=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},lp=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},sp=Symbol("registerInterval"),sS=Ne(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[sp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[sp]):this.dispatchEvent(new lp)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sp,aS([N()],t.prototype,"stateManager",void 0),t}),is=class extends sS(Xt){};Y();cp();rr();var dp=br.build("designedReaderSearchInDocument");L();P();Y();L();ft();ze();ut();var Bi=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},Ct=class extends W{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return S`
|
|
4225
4227
|
<div id="container" part="container" class=${be(e)}>
|
|
4226
4228
|
${this.clickable?S`
|
|
4227
4229
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
@@ -4239,8 +4241,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4239
4241
|
</ft-typography>
|
|
4240
4242
|
</div>
|
|
4241
4243
|
</div>
|
|
4242
|
-
`}};
|
|
4243
|
-
<style> ${
|
|
4244
|
+
`}};Ct.elementDefinitions={"ft-ripple":re,"ft-typography":oe};Ct.styles=Cg;Bi([h()],Ct.prototype,"title",void 0);Bi([h({type:Boolean})],Ct.prototype,"clickable",void 0);Bi([h({type:Boolean})],Ct.prototype,"selected",void 0);Bi([h({type:Boolean})],Ct.prototype,"noHeader",void 0);Bi([h({type:Boolean})],Ct.prototype,"noContent",void 0);Bi([h({type:Boolean})],Ct.prototype,"oneLineHeader",void 0);M("ft-card")(Ct);pp();var Wr=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},gt=class r extends St(is){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=tl(6,"search-in-document-"),this.addI18nContext(dp)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var i;return S`
|
|
4245
|
+
<style> ${ry}</style>
|
|
4244
4246
|
<a href="${ns(e)}" @click=${()=>this.onLinkClick(e,t)}
|
|
4245
4247
|
@auxclick=${n=>this.onAuxClick(n,e,t)}
|
|
4246
4248
|
@contextmenu=${()=>this.onContextMenu(e,t)}>
|
|
@@ -4257,7 +4259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4257
4259
|
</div>
|
|
4258
4260
|
</ft-card>
|
|
4259
4261
|
</a>
|
|
4260
|
-
`}onAuxClick(e,t,i){e.button==1&&this.onLinkClick(t,i)}onContextMenu(e,t){this.dispatchEvent(new
|
|
4262
|
+
`}onAuxClick(e,t,i){e.button==1&&this.onLinkClick(t,i)}onContextMenu(e,t){this.dispatchEvent(new Mi(e,t))}render(){return this.map?S`
|
|
4261
4263
|
<ft-search-context id="${this.uniqueId}"
|
|
4262
4264
|
part="search-context"
|
|
4263
4265
|
contentLocale="${this.map.lang}"
|
|
@@ -4281,7 +4283,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
4281
4283
|
</slot>
|
|
4282
4284
|
</div>
|
|
4283
4285
|
</ft-search-context>
|
|
4284
|
-
`:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){
|
|
4286
|
+
`:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){jr(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new Di(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Ky(),Gy)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Jb(),Xb)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(ix(),ox)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(bu(),ax)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(vu(),lx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(gx(),mx)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(xx(),bx)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};gt.elementDefinitions={"ft-card":Ct};gt.styles=ty;Wr([ve()],gt.prototype,"map",void 0);Wr([ve()],gt.prototype,"searchInDocumentQuery",void 0);Wr([H("ft-search-results")],gt.prototype,"searchResults",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultTitle",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultBreadcrumb",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultAbstract",void 0);Wr([h({type:Boolean})],gt.prototype,"hideResultsNumber",void 0);Wr([h({type:Boolean})],gt.prototype,"emptyResultOnClear",void 0);Wr([H('[part="search-context"]')],gt.prototype,"searchContext",void 0);M("ft-reader-search-in-document")(gt);})();
|
|
4285
4287
|
/*! Bundled license information:
|
|
4286
4288
|
|
|
4287
4289
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|