@fluid-topics/ft-search-input 2.2.47 → 2.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.light.js +461 -461
- package/build/ft-search-input.min.js +334 -334
- package/package.json +13 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var cf=Object.defineProperty;var q=(t,e)=>{for(var r in e)cf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,s=new WeakMap,a=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(x,b){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(b)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=b.prototype.attributeChangedCallback,I=new Set(b.observedAttributes||[]);g(b,I,C);let V={elementClass:b,connectedCallback:b.prototype.connectedCallback,disconnectedCallback:b.prototype.disconnectedCallback,adoptedCallback:b.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:b.formAssociated,formAssociatedCallback:b.prototype.formAssociatedCallback,formDisabledCallback:b.prototype.formDisabledCallback,formResetCallback:b.prototype.formResetCallback,formStateRestoreCallback:b.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,V),this._definitionsByClass.set(b,V);let ee=r.call(i,x);ee||(ee=f(x),e.call(i,x,ee)),this===window.customElements&&(a.set(b,V),V.standInClass=ee);let pe=this._awaitingUpgrade.get(x);if(pe){this._awaitingUpgrade.delete(x);for(let Q of pe)s.delete(Q),E(Q,V,!0)}let $=this._whenDefinedPromises.get(x);return $!==void 0&&($.resolve(b),this._whenDefinedPromises.delete(x)),b}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let b=this._getDefinition(x);if(b!==void 0)return Promise.resolve(b.elementClass);let C=this._whenDefinedPromises.get(x);return C===void 0&&(C={},C.promise=new Promise(I=>C.resolve=I),this._whenDefinedPromises.set(x,C)),C.promise}_upgradeWhenDefined(x,b,C){let I=this._awaitingUpgrade.get(b);I||this._awaitingUpgrade.set(b,I=new Set),C?I.add(x):I.delete(x)}};let d;window.HTMLElement=function(){let b=d;if(b)return d=void 0,b;let C=a.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return b=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(b,this.constructor.prototype),n.set(b,C),b},window.HTMLElement.prototype=t.prototype;let p=x=>x===document||x instanceof ShadowRoot,m=x=>{let b=x.getRootNode();if(!p(b)){let C=R[R.length-1];if(C instanceof CustomElementRegistry)return C;b=C.getRootNode(),p(b)||(b=l.get(b)?.getRootNode()||document)}return b.customElements},f=x=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let I=m(C)||window.customElements,V=I._getDefinition(x);return V?E(C,V):s.set(C,I),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(x,b,C)=>{if(b.size===0||C===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(pe,$){let Q=pe.toLowerCase();if(b.has(Q)){let Ce=this.getAttribute(Q);I.call(this,Q,$),C.call(this,Q,Ce,$)}else I.call(this,Q,$)});let V=x.prototype.removeAttribute;V&&(x.prototype.removeAttribute=function(pe){let $=pe.toLowerCase();if(b.has($)){let Q=this.getAttribute($);V.call(this,$),C.call(this,$,Q,null)}else V.call(this,$)});let ee=x.prototype.toggleAttribute;ee&&(x.prototype.toggleAttribute=function(pe,$){let Q=pe.toLowerCase();if(b.has(Q)){let Ce=this.getAttribute(Q);ee.call(this,Q,$);let Ct=this.getAttribute(Q);C.call(this,Q,Ce,Ct)}else ee.call(this,Q,$)})},v=x=>{let b=Object.getPrototypeOf(x);if(b!==window.HTMLElement)return b===t?Object.setPrototypeOf(x,window.HTMLElement):v(b)},E=(x,b,C=!1)=>{Object.setPrototypeOf(x,b.elementClass.prototype),n.set(x,b),d=x;try{new b.elementClass}catch{v(b.elementClass),new b.elementClass}b.attributeChangedCallback&&b.observedAttributes.forEach(I=>{x.hasAttribute(I)&&b.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),C&&b.connectedCallback&&x.isConnected&&b.connectedCallback.call(x)},T=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let b=T.apply(this,arguments);return x.customElements&&(b.customElements=x.customElements),b};let R=[document],N=(x,b,C=void 0)=>{let I=(C?Object.getPrototypeOf(C):x.prototype)[b];x.prototype[b]=function(){R.push(this);let V=I.apply(C||this,arguments);return V!==void 0&&l.set(V,this),R.pop(),V}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let M=(x,b)=>{let C=Object.getOwnPropertyDescriptor(x.prototype,b);Object.defineProperty(x.prototype,b,{...C,set(I){R.push(this),C.set.call(this,I),R.pop()}})};if(M(Element,"innerHTML"),M(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let x=new WeakMap,b=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...pe){let $=b.call(this,...pe);return x.set($,this),$},C.forEach(pe=>{let $=window.ElementInternals.prototype,Q=$[pe];$[pe]=function(...Ce){let Ct=x.get(this);if(n.get(Ct).formAssociated===!0)return Q?.call(this,...Ce);throw new DOMException(`Failed to execute ${Q} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor($){super(...$),this._elements=$}get value(){return this._elements.find($=>$.checked===!0)?.value||""}}class V{constructor($){let Q=new Map;$.forEach((Ce,Ct)=>{let Nn=Ce.getAttribute("name"),Al=Q.get(Nn)||[];this[+Ct]=Ce,Al.push(Ce),Q.set(Nn,Al)}),this.length=$.length,Q.forEach((Ce,Ct)=>{Ce&&(Ce.length===1?this[Ct]=Ce[0]:this[Ct]=new I(Ce))})}namedItem($){return this[$]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let pe=ee.get.call(this,[]),$=[];for(let Q of pe){let Ce=n.get(Q);(!Ce||Ce.formAssociated===!0)&&$.push(Q)}return new V($)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var s;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){!((s=a.message)===null||s===void 0)&&s.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,a)}}}var Kn={};q(Kn,{CSSResult:()=>Yr,LitElement:()=>dt,ReactiveElement:()=>ot,_$LE:()=>Sf,_$LH:()=>Wn,adoptStyles:()=>ko,css:()=>O,defaultConverter:()=>Qr,getCompatibleStyle:()=>Si,html:()=>y,isServer:()=>Zg,mathml:()=>Hn,noChange:()=>Ee,notEqual:()=>Io,nothing:()=>_,render:()=>Gn,supportsAdoptingStyleSheets:()=>_o,svg:()=>Vn,unsafeCSS:()=>pr});var vi=globalThis,_o=vi.ShadowRoot&&(vi.ShadyCSS===void 0||vi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Dn=Symbol(),Rl=new WeakMap,Yr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Dn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(_o&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Rl.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Rl.set(r,e))}return e}toString(){return this.cssText}},pr=t=>new Yr(typeof t=="string"?t:t+"",void 0,Dn),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Yr(r,t,Dn)},ko=(t,e)=>{if(_o)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=vi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Si=_o?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return pr(r)})(t):t;var{is:df,defineProperty:uf,getOwnPropertyDescriptor:pf,getOwnPropertyNames:ff,getOwnPropertySymbols:hf,getPrototypeOf:mf}=Object,Ci=globalThis,_l=Ci.trustedTypes,gf=_l?_l.emptyScript:"",yf=Ci.reactiveElementPolyfillSupport,Lo=(t,e)=>t,Qr={toAttribute(t,e){switch(e){case Boolean:t=t?gf:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Io=(t,e)=>!df(t,e),kl={attribute:!0,type:String,converter:Qr,reflect:!1,useDefault:!1,hasChanged:Io};Symbol.metadata??=Symbol("metadata"),Ci.litPropertyMetadata??=new WeakMap;var ot=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=kl){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&uf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=pf(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:n,set(a){let l=n?.call(this);s?.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??kl}static _$Ei(){if(this.hasOwnProperty(Lo("elementProperties")))return;let e=mf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Lo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lo("properties"))){let r=this.properties,i=[...ff(r),...hf(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Si(n))}else e!==void 0&&r.push(Si(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ko(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:Qr).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Qr;this._$Em=n;let l=a.fromAttribute(r,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let a=this.constructor;if(n===!1&&(s=this[e]),i??=a.getPropertyOptions(e),!((i.hasChanged??Io)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[Lo("elementProperties")]=new Map,ot[Lo("finalized")]=new Map,yf?.({ReactiveElement:ot}),(Ci.reactiveElementVersions??=[]).push("2.1.2");var $n=globalThis,Ll=t=>t,Ei=$n.trustedTypes,Il=Ei?Ei.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mn="$lit$",Ft=`lit$${Math.random().toFixed(9).slice(2)}$`,Bn="?"+Ft,bf=`<${Bn}>`,mr=document,Po=()=>mr.createComment(""),No=t=>t===null||typeof t!="object"&&typeof t!="function",Un=Array.isArray,$l=t=>Un(t)||typeof t?.[Symbol.iterator]=="function",Fn=`[
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nl=/'/g,Dl=/"/g,Ml=/^(?:script|style|textarea|title)$/i,zn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),y=zn(1),Vn=zn(2),Hn=zn(3),Ee=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Fl=new WeakMap,hr=mr.createTreeWalker(mr,129);function Bl(t,e){if(!Un(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Il!==void 0?Il.createHTML(e):e}var Ul=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",a=To;for(let l=0;l<r;l++){let d=t[l],p,m,f=-1,g=0;for(;g<d.length&&(a.lastIndex=g,m=a.exec(d),m!==null);)g=a.lastIndex,a===To?m[1]==="!--"?a=Tl:m[1]!==void 0?a=Pl:m[2]!==void 0?(Ml.test(m[2])&&(n=RegExp("</"+m[2],"g")),a=fr):m[3]!==void 0&&(a=fr):a===fr?m[0]===">"?(a=n??To,f=-1):m[1]===void 0?f=-2:(f=a.lastIndex-m[2].length,p=m[1],a=m[3]===void 0?fr:m[3]==='"'?Dl:Nl):a===Dl||a===Nl?a=fr:a===Tl||a===Pl?a=To:(a=fr,n=void 0);let v=a===fr&&t[l+1].startsWith("/>")?" ":"";s+=a===To?d+bf:f>=0?(i.push(p),d.slice(0,f)+Mn+d.slice(f)+Ft+v):d+Ft+(f===-2?l:v)}return[Bl(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Do=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,l=e.length-1,d=this.parts,[p,m]=Ul(e,r);if(this.el=t.createElement(p,i),hr.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=hr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Mn)){let g=m[a++],v=n.getAttribute(f).split(Ft),E=/([.?@])?(.*)/.exec(g);d.push({type:1,index:s,name:E[2],strings:v,ctor:E[1]==="."?wi:E[1]==="?"?Ai:E[1]==="@"?Ri:yr}),n.removeAttribute(f)}else f.startsWith(Ft)&&(d.push({type:6,index:s}),n.removeAttribute(f));if(Ml.test(n.tagName)){let f=n.textContent.split(Ft),g=f.length-1;if(g>0){n.textContent=Ei?Ei.emptyScript:"";for(let v=0;v<g;v++)n.append(f[v],Po()),hr.nextNode(),d.push({type:2,index:++s});n.append(f[g],Po())}}}else if(n.nodeType===8)if(n.data===Bn)d.push({type:2,index:s});else{let f=-1;for(;(f=n.data.indexOf(Ft,f+1))!==-1;)d.push({type:7,index:s}),f+=Ft.length-1}s++}}static createElement(e,r){let i=mr.createElement("template");return i.innerHTML=e,i}};function gr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=No(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=gr(t,n._$AS(t,e.values),n,i)),e}var Oi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??mr).importNode(r,!0);hr.currentNode=n;let s=hr.nextNode(),a=0,l=0,d=i[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new Xr(s,s.nextSibling,this,e):d.type===1?p=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(p=new _i(s,this,e)),this._$AV.push(p),d=i[++l]}a!==d?.index&&(s=hr.nextNode(),a++)}return hr.currentNode=mr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Xr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=gr(this,e,r),No(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$l(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!==_&&No(this._$AH)?this._$AA.nextSibling.data=e:this.T(mr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Do.createElement(Bl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Oi(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Fl.get(e.strings);return r===void 0&&Fl.set(e.strings,r=new Do(e)),r}k(e){Un(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Po()),this.O(Po()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ll(e).nextSibling;Ll(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=gr(this,e,r,0),a=!No(e)||e!==this._$AH&&e!==Ee,a&&(this._$AH=e);else{let l=e,d,p;for(e=s[0],d=0;d<s.length-1;d++)p=gr(this,l[i+d],r,d),p===Ee&&(p=this._$AH[d]),a||=!No(p)||p!==this._$AH[d],p===_?e=_:e!==_&&(e+=(p??"")+s[d+1]),this._$AH[d]=p}a&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wi=class extends yr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},Ai=class extends yr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Ri=class extends yr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=gr(this,e,r,0)??_)===Ee)return;let i=this._$AH,n=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==_&&(i===_||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},_i=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){gr(this,e)}},Wn={M:Mn,P:Ft,A:Bn,C:1,L:Ul,R:Oi,D:$l,V:gr,I:Xr,H:yr,N:Ai,U:Ri,B:wi,F:_i},xf=$n.litHtmlPolyfillSupport;xf?.(Do,Xr),($n.litHtmlVersions??=[]).push("3.3.3");var Gn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new Xr(e.insertBefore(Po(),s),s,void 0,r??{})}return n._$AI(t),n};var jn=globalThis,dt=class extends ot{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Gn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};dt._$litElement$=!0,dt.finalized=!0,jn.litElementHydrateSupport?.({LitElement:dt});var vf=jn.litElementPolyfillSupport;vf?.({LitElement:dt});var Sf={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(jn.litElementVersions??=[]).push("4.2.2");var Zg=!1;var Qn={};q(Qn,{customElement:()=>Cf,eventOptions:()=>Of,property:()=>h,query:()=>P,queryAll:()=>qn,queryAssignedElements:()=>Zn,queryAssignedNodes:()=>Yn,queryAsync:()=>Af,standardProperty:()=>zl,state:()=>A});var Cf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Ef={attribute:!0,type:String,converter:Qr,reflect:!1,hasChanged:Io},zl=(t=Ef,e,r)=>{let{kind:i,metadata:n}=r,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),i==="accessor"){let{name:a}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,d,t,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,t,l),l}}}if(i==="setter"){let{name:a}=r;return function(l){let d=this[a];e.call(this,l),this.requestUpdate(a,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function h(t){return(e,r)=>typeof r=="object"?zl(t,e,r):((i,n,s)=>{let a=n.hasOwnProperty(s);return n.constructor.createProperty(s,i),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}function A(t){return h({...t,state:!0,attribute:!1})}function Of(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var ut=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function P(t,e){return(r,i,n)=>{let s=a=>a.renderRoot?.querySelector(t)??null;if(e){let{get:a,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ut(r,i,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ut(r,i,{get(){return s(this)}})}}var wf;function qn(t){return(e,r)=>ut(e,r,{get(){return(this.renderRoot??(wf??=document.createDocumentFragment())).querySelectorAll(t)}})}function Af(t){return(e,r)=>ut(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Zn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){let a=this.renderRoot?.querySelector(s),l=a?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Yn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Xn={};q(Xn,{repeat:()=>ae});var Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ze=t=>(...e)=>({_$litDirective$:t,values:e}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Rf}=Wn,Vl=t=>t;var Wl=t=>t.strings===void 0,Hl=()=>document.createComment(""),Jr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(Hl(),n),a=i.insertBefore(Hl(),n);r=new Rf(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==a._$AU&&r._$AP(d)}if(s!==n||l){let d=r._$AA;for(;d!==s;){let p=Vl(d).nextSibling;Vl(i).insertBefore(d,n),d=p}}}return r},Gt=(t,e,r=t)=>(t._$AI(e,r),t),_f={},Gl=(t,e=_f)=>t._$AH=e,jl=t=>t._$AH,ki=t=>{t._$AR(),t._$AA.remove()};var Kl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},ae=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let l of t)n[a]=i?i(l,a):a,s[a]=r(l,a),a++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=jl(t),{values:s,keys:a}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=a,s;let l=this.ut??=[],d=[],p,m,f=0,g=n.length-1,v=0,E=s.length-1;for(;f<=g&&v<=E;)if(n[f]===null)f++;else if(n[g]===null)g--;else if(l[f]===a[v])d[v]=Gt(n[f],s[v]),f++,v++;else if(l[g]===a[E])d[E]=Gt(n[g],s[E]),g--,E--;else if(l[f]===a[E])d[E]=Gt(n[f],s[E]),Jr(t,d[E+1],n[f]),f++,E--;else if(l[g]===a[v])d[v]=Gt(n[g],s[v]),Jr(t,n[f],n[g]),g--,v++;else if(p===void 0&&(p=Kl(a,v,E),m=Kl(l,f,g)),p.has(l[f]))if(p.has(l[g])){let T=m.get(a[v]),R=T!==void 0?n[T]:null;if(R===null){let N=Jr(t,n[f]);Gt(N,s[v]),d[v]=N}else d[v]=Gt(R,s[v]),Jr(t,n[f],R),n[T]=null;v++}else ki(n[g]),g--;else ki(n[f]),f++;for(;v<=E;){let T=Jr(t,d[E+1]);Gt(T,s[v]),d[v++]=T}for(;f<=g;){let T=n[f++];T!==null&&ki(T)}return this.ut=a,Gl(t,d),Ee}});var Jn={};q(Jn,{classMap:()=>oe});var oe=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var es={};q(es,{styleMap:()=>Lf});var ql="important",kf=" !"+ql,Lf=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let s=typeof n=="string"&&n.endsWith(kf);i.includes("-")||s?r.setProperty(i,s?n.slice(0,-11):n,s?ql:""):r[i]=n}}return Ee}});var rs={};q(rs,{UnsafeHTMLDirective:()=>eo,unsafeHTML:()=>ts});var eo=class extends it{constructor(e){if(super(e),this.it=_,e.type!==Et.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};eo.directiveName="unsafeHTML",eo.resultType=1;var ts=Ze(eo);var os={};q(os,{splitBreadcrumbForMenu:()=>If});function If(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var ps={};q(ps,{CacheRegistry:()=>Ot,ClearCacheEvent:()=>Uo});var is={};q(is,{CancelablePromise:()=>Li,CanceledPromiseError:()=>jt,cancelable:()=>Ii});var jt=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Li=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new jt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new jt("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ii=t=>new Li((e,r)=>t.then(e).catch(r));var us={};q(us,{FtContextRegistrationEvent:()=>Bo,FtNotificationEvent:()=>Mo,PostResizeEvent:()=>ds,PreResizeEvent:()=>cs,WithEventBus:()=>$t,withEventBus:()=>Di});var ls={};q(ls,{AbstractRegistry:()=>to,applyMixinOnce:()=>Oe,customElements:()=>G,dateReviver:()=>Df,deepCopy:()=>nt,deepEqual:()=>he,delay:()=>Ti,eventPathContainsMatchingElement:()=>ss,everyDeep:()=>Nf,flatDeep:()=>Ye,forEachDeep:()=>Ql,getComposedPathTo:()=>Zt,groupBy:()=>Mf,hasChanged:()=>He,ignoreComposingEvents:()=>Yt,last:()=>as,minmax:()=>qt,parseDate:()=>Jl,randomId:()=>$f,someDeep:()=>Xl,unslotText:()=>Ni,waitFor:()=>Pi,waitUntil:()=>$o});var ns={};q(ns,{customElement:()=>Fo,dateProperty:()=>Pf,isNumber:()=>Yl,jsonProperty:()=>le,jsonPropertyConverter:()=>Zl,numberProperty:()=>Kt,optionalNumberProperty:()=>Tf});var Fo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Zl=t=>({fromAttribute:e=>{if(e==null)return nt(t);try{return JSON.parse(e)}catch{return nt(t)}},toAttribute:e=>JSON.stringify(e)});function le(t,e){return h({type:Object,converter:Zl(t),hasChanged:He,...e??{}})}function Tf(t){return Kt(t)}function Kt(t){return h({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,s=(i=t?.max)!==null&&i!==void 0?i:1/0;return Yl(e)?qt(n,+e,s):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Yl(t){return!isNaN(parseFloat(t))}function Pf(t){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Ti=t=>new Promise(e=>setTimeout(e,t));async function $o(t,e=10,r=2e4){await Pi(async()=>await t()||void 0,e,r)}async function Pi(t,e=10,r=2e4){let i=await t(),n=performance.now(),s=n;for(;i==null&&(!r||s-n<r);)await Ti(e),i=await t(),s=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ye(t,e){return t.flatMap(r=>[r,...Ye(e(r),e)])}function Ql(t,e,r){let i=(n,s)=>{var a;for(let l=0;l<n.length;l++){let d=n[l];if(!(((a=r(d,l,n,s))!==null&&a!==void 0?a:!0)&&i(e(d),[...s,d])))return!1}return!0};i(t,[])}function Xl(t,e,r){let i=!1;return Ql(t,e,(n,s,a,l)=>(i=!!r(n,s,a,l),!i)),i}function Nf(t,e,r){return!Xl(t,e,(i,n,s,a)=>!r(i,n,s,a))}function Df(...t){return(e,r)=>t.includes(e)?Jl(r):r}function Jl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function Ff(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!he(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!he(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=a=>Object.keys(a).filter(l=>a[l]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let a=s[i];if(!he(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return Ff(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function ss(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(s=>n.matches(s)))return!0}}return!1}function qt(t,e,r){return Math.min(Math.max(t,e),r)}function as(t){return t[t.length-1]}function Ni(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Ni(e)).join(""):t?.textContent||""}function Zt(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function nt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function $f(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Oe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Yt(){return function(t,e,r){let i=r.value;r.value=function(n,...s){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(s))}}}function G(t){for(let[e,r]of Object.entries(t))Fo(e)(r)}function Mf(t,e){var r,i;let n=typeof e=="function"?e:a=>a[e],s={};for(let a of t)((r=s[i=n(a)])!==null&&r!==void 0?r:s[i]=[]).push(a);return s}var to=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var Mo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},cs=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ds=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Di=Oe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),$t=class extends Di(Object){},Bo=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var Uo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ot=class extends $t{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let s=this.content[e],a=(n=s?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...s,loader:r,final:i,status:a}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Uo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Uo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.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,r,i=!1){this.forceClear(e);let n=async()=>r,s="RESOLVED";this.content[e]={loader:n,final:i,status:s,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Ii(r()),n.promise.then(s=>(n.status="RESOLVED",n.value=s,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),s)).catch(s=>{var a;throw!((a=n.promise)===null||a===void 0)&&a.isCanceled||(n.status="ERROR",n.error=s),s})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.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 r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Ss={};q(Ss,{ClusteringHelper:()=>vs,formatHierarchicalValues:()=>xs});var bs={};q(bs,{accessBreadcrumb:()=>Kf,accessResult:()=>ys,accessResultId:()=>Gf,accessResultUrl:()=>jf,enrichReaderUrl:()=>gs});var ms={};q(ms,{SearchPlaceConverter:()=>pt,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>Vc,serializeRequest:()=>Hf});var Bf=t=>typeof t=="object"&&t!=null;var Uf=t=>typeof t=="number",Fi=t=>typeof t=="string",hs=t=>Bf(t)&&Fi(t.endpoint)&&Fi(t.method)&&Fi(t.statusText)&&Fi(t.body)&&Uf(t.status),ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ec||(ec={}));var tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tc||(tc={}));var rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rc||(rc={}));var oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(oc||(oc={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var nc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(nc||(nc={}));var sc;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(sc||(sc={}));var ac;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(ac||(ac={}));var lc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(lc||(lc={}));var cc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(cc||(cc={}));var dc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(dc||(dc={}));var uc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(uc||(uc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var fc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(fc||(fc={}));var hc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(hc||(hc={}));var mc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(mc||(mc={}));var gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(gc||(gc={}));var br;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(br||(br={}));var yc;(function(t){t.ASC="ASC",t.DESC="DESC"})(yc||(yc={}));var bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bc||(bc={}));var $i;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($i||($i={}));var wc=t=>Object.keys($i).includes(t);var xc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(xc||(xc={}));var vc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(vc||(vc={}));var Sc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var ro;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ro||(ro={}));var Ac=t=>Object.keys(ro).includes(t);var Cc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Cc||(Cc={}));var fs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fs||(fs={}));var Ec;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ec||(Ec={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(me||(me={}));var st;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(st||(st={}));var Oc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Oc||(Oc={}));var Rc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rc||(Rc={}));var _c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(_c||(_c={}));var kc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kc||(kc={}));var Lc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lc||(Lc={}));var Ic;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Ic||(Ic={}));var Tc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Tc||(Tc={}));var Pc;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Pc||(Pc={}));var Nc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Nc||(Nc={}));var Dc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Dc||(Dc={}));var Fc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Fc||(Fc={}));var $c;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})($c||($c={}));var Mc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Mc||(Mc={}));var zf={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function Bc(t,e){return t===e||(zf[t]??[]).some(r=>Bc(r,e))}function Mi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Bc(i,e))}function Uc(t,...e){return t==null?!1:e.some(r=>Mi(t,r))}function Vf(t){return`"${t}"`}function zc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Hf(t,e){return new pt(t).serialize(e)}var H;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match",t.STICKY_FILTER="sticky-filters"})(H||(H={}));var Wf=new Set(Object.values(H));function Vc(t){return Wf.has(t)}var pt=class t{constructor(e,r=20,i=!1,n,s=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.availableContentLocales=s,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.defaultContentLocale===void 0&&!this.allLanguagesAllowed&&(this.defaultContentLocale="en-US")}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,s,a,l,d,p,m,f;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(H.LOCALE,e.contentLocale):g.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(H.QUERY,e.query);let v=t.serializeValueFilters(e.metadataFilters);v&&g.append(H.VALUE_FILTERS,v);let E=t.serializeNegativeValueFilters(e.metadataFilters);E&&g.append(H.NEGATIVE_VALUE_FILTERS,E);let T=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(x=>x.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let x=T.map(b=>{var C;return`${b.key}~${(C=b.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(H.DATE_FILTERS,x)}let R=(p=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.rangeFilter))!==null&&p!==void 0?p:[];if(R.length>0){let x=R.map(b=>{var C,I;return`${b.key}~${(C=b.rangeFilter)===null||C===void 0?void 0:C.from}_${(I=b.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");g.append(H.RANGE_FILTERS,x)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(H.SORT,e.sortId),!((a=e.paging)===null||a===void 0)&&a.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let x in N)g.append(x,N[x]);let M=new Array;return g.forEach((x,b)=>{M.push(this.encodeQueryString(b)+"="+this.encodeQueryString(x))}),encodeURI(M.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),s=i[0].split("/search/")[1];return s==null?n:{...n,scope:(r=this.scopeMapping[s])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,s,a,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(M){console.warn("Could not decode search request query params, fallback on raw value",M)}let p=new URLSearchParams(e),m=(i=p.get(H.LOCALE))!==null&&i!==void 0?i:void 0,f=((n=p.get(H.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=p.get(H.SORT))===null||r===void 0?void 0:r.toLowerCase(),v=(s=p.get(H.SCOPE))!==null&&s!==void 0?s:"default",E=+((a=p.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),T=p.get(H.KEYWORD_MATCH),R=T?T.toUpperCase()===br.MANDATORY?br.MANDATORY:br.OPTIONAL:void 0,N={};for(let M of p.keys())Vc(M)||(N[M]=p.get(M));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some(M=>M.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=p.get(H.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[v])!==null&&d!==void 0?d:"DEFAULT",virtualField:wc(f)?f:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:qt(1,isNaN(E)?this.defaultPerPage:E,1e3)},keywordMatch:R,otherQueryParams:N}}parseCompatFilters(e){var r,i,n,s,a,l,d;let p=[];return e.has(H.FILTERS)&&(p=t.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(H.PERIOD))!==null&&i!==void 0&&i&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...t.parseValueFilters((s=e.get(H.VALUE_FILTERS))!==null&&s!==void 0?s:""),...t.parseValueFilters((a=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&a!==void 0?a:"",!0),...this.parseDateFilters((l=e.get(H.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(H.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(zc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:ro[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Ac(e))return[{key:"ft:lastEdition",dateFilter:{type:ro[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(s=>t.escapeFilters(s)).map(s=>Vf(zc(s))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[H.LOCALE,H.FILTERS,H.VALUE_FILTERS,H.NEGATIVE_VALUE_FILTERS,H.DATE_FILTERS,H.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(H.LOCALE),r!==void 0&&i.searchParams.append(H.LOCALE,r),i.toString()}};pt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function ys(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function Gf(t){var e,r,i,n,s,a,l,d,p;return(p=(d=(l=(a=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&a!==void 0?a:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&p!==void 0?p:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.contentId}function jf(t,e){var r,i,n,s,a,l,d,p,m;return(m=(p=(d=(l=gs((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:gs((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&p!==void 0?p:(s=t?.htmlPackage)===null||s===void 0?void 0:s.viewerUrl)!==null&&m!==void 0?m:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.viewerUrl}function Kf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function gs(t,e,r){if(e&&t){let i=URL.parse(t),n=pt.serializeValueFilters(e);if(n&&i?.searchParams.append(H.VALUE_FILTERS,n),r&&i?.searchParams.append(H.STICKY_FILTER,r),i)return i.toString()}return t}function xs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var vs=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var s;return((s=this.extractResultMetadata({result:n}).find(a=>a.key==r))===null||s===void 0?void 0:s.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=ys(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(s=>s.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(s=>t.flattenMetadata(s,r,i)).filter(s=>s!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let s=[],a=[];return e.hierarchicalValues.forEach(l=>{s.push(xs(l)),a.push(xs(l,r))}),{key:e.key,label:e.label,value:s.join(", "),displayValue:a.join(", "),displayTooltipValue:s.join(", ")}}else{let s=e.values.join(", "),a=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:s,displayValue:a,displayTooltipValue:a}}}computeClustersItemsForMetadata(e,r,i="No value",n,s){var a,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:s}),p=(l=d?.label)!==null&&l!==void 0?l:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:s})).map(f=>f??{key:e,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,g,v)=>v.findIndex(E=>E.value===f.value)===g).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,g)=>this.compareMetadata(f.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let s=this.getMetadataDescriptor(i),a=s?.sortRule||"NONE",l=s?.reverseSort||!1;if(a=="ALPHABET"||a=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),s=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],a,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,s);if(p>l&&(l=p,a=d,p===s.length))break}return a}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Cs={};q(Cs,{Debouncer:()=>J});var J=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of i)try{await a()}catch(l){n(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var As={};q(As,{designSystemVariables:()=>S});var ws={};q(ws,{DesignSystemFamily:()=>zo,DesignSystemSize:()=>Vo,FtCssVariableFactory:()=>o,badge:()=>dh,banner:()=>ch,button:()=>Yf,card:()=>Xf,chart:()=>Ah,checkbox:()=>rh,chip:()=>sh,chipChoice:()=>nh,chipGroup:()=>ah,collapsible:()=>Oh,combobox:()=>Ch,dateRangePicker:()=>Ih,drawer:()=>yh,eventCard:()=>Jf,floatingMenu:()=>Sh,foundation:()=>c,link:()=>lh,modal:()=>mh,notice:()=>_h,notification:()=>kh,pageDesigner:()=>Rh,pageFooter:()=>fh,pageHeader:()=>ph,pageLayout:()=>hh,popover:()=>Eh,radio:()=>oh,reorderableList:()=>gh,resolveFamilyClass:()=>Es,resolveSizeClass:()=>Os,semantic:()=>u,setVariable:()=>w,switch_:()=>wh,table:()=>ih,tabs:()=>bh,textArea:()=>vh,textInput:()=>xh,titleBreadcrumb:()=>uh,toc:()=>th,toggle:()=>Qf,tooltip:()=>Lh,treeList:()=>eh,typographies:()=>qf,typographyBody1Medium:()=>qc,typographyBody1Regular:()=>Kc,typographyBody1Semibold:()=>Zc,typographyBody2Medium:()=>Qc,typographyBody2MediumUnderline:()=>Xc,typographyBody2Regular:()=>Yc,typographyBody2Semibold:()=>Jc,typographyCaption1Medium:()=>ed,typographyCaption1Semibold:()=>td,typographyCaption2Bold:()=>id,typographyCaption2Medium:()=>rd,typographyCaption2Semibold:()=>od,typographyDisplay:()=>Hc,typographyTitle1:()=>Wc,typographyTitle2:()=>Gc,typographyTitle3:()=>jc,typographyVariants:()=>Zf});var Qt=t=>typeof t=="string"?pr(t):t,o=class{static create(e,r,i,n){let s=l=>Qt(l??n),a=O`var(${Qt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Qt(e)}, ${s(l)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>n,a}static extend(e,r,i,n){let s=l=>i.get(l??n),a=O`var(${Qt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i.category,a.fallbackVariable=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>w(a,l??s(n)),a.get=l=>O`var(${Qt(e)}, ${s(l)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),a}static external(e,r){let i=s=>e.defaultCssValue(s),n=O`var(${Qt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=s=>e.set(s),n.get=s=>O`var(${Qt(e.name)}, ${i(s)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function w(t,e){return Qt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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)")},Hc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Kc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Zc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Yc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Qc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Xc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Jc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},ed={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},td={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},rd={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},od={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},id={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},qf={display:Hc,"title-1":Wc,"title-2":Gc,"title-3":jc,"body-1-regular":Kc,"body-1-medium":qc,"body-1-semibold":Zc,"body-2-regular":Yc,"body-2-medium":Qc,"body-2-medium-underline":Xc,"body-2-semibold":Jc,"caption-1-medium":ed,"caption-1-semibold":td,"caption-2-medium":rd,"caption-2-semibold":od,"caption-2-bold":id},Zf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Yf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Qf={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var Xf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Jf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var eh={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var th={titleColor:o.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:o.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:o.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:o.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:o.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:o.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:o.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:o.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:o.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:o.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:o.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:o.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:o.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var rh={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var oh={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var ih={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var nh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var sh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var ah={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var lh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var ch={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var dh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var uh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var ph={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var fh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var hh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var mh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var gh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var yh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var bh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var xh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),prefixValueColor:o.extend("--ftds-text-input-prefix-value-color","",u.contentGlobalSecondary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var vh={fieldPaddingLeft:o.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:o.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:o.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:o.extend("--ftds-text-area-resize-right","",c.spacing05)};var Sh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Ch={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Eh={backgroundColor:o.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Oh={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var wh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Ah={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var Rh={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var _h={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var kh={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Lh={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var Ih={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var zo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(zo||(zo={}));var Vo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Vo||(Vo={}));function Es(t){return`ftds--family-${t}`}function Os(t){return`ftds--size-${t}`}var S={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","","SHADOW","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","","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)"),elevation02:o.create("--ft-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)"),elevation03:o.create("--ft-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)"),elevation04:o.create("--ft-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)"),elevation06:o.create("--ft-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)"),elevation08:o.create("--ft-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)"),elevation12:o.create("--ft-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)"),elevation16:o.create("--ft-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)"),elevation24:o.create("--ft-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)"),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 Rs={};q(Rs,{DynamicImporter:()=>Bi,dynamicImporter:()=>Th});var Bi=class{async import(e){if(e)return import(e)}},Th=new Bi;var zs={};q(zs,{computeOffsetAutoPosition:()=>Us,computeOffsetPosition:()=>Bs});var sd=["top","right","bottom","left"],nd=["start","end"],ks=sd.reduce((t,e)=>t.concat(e,e+"-"+nd[0],e+"-"+nd[1]),[]),xr=Math.min,wt=Math.max,Ho=Math.round;var At=t=>({x:t,y:t}),Ph={left:"right",right:"left",bottom:"top",top:"bottom"};function ad(t,e,r){return wt(t,xr(e,r))}function oo(t,e){return typeof t=="function"?t(e):t}function vr(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function Ls(t){return t==="x"?"y":"x"}function Is(t){return t==="y"?"height":"width"}function io(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ts(t){return Ls(io(t))}function ld(t,e,r){r===void 0&&(r=!1);let i=Rt(t),n=Ts(t),s=Is(n),a=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=_s(a)),[a,_s(a)]}function cd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function _s(t){let e=vr(t);return Ph[e]+t.slice(e.length)}function Nh(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function dd(t){return typeof t!="number"?Nh(t):{top:t,right:t,bottom:t,left:t}}function Sr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ud(t,e,r){let{reference:i,floating:n}=t,s=io(e),a=Ts(e),l=Is(a),d=vr(e),p=s==="y",m=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}let E=Rt(e);return E&&(v[a]+=g*(E==="end"?1:-1)*(r&&p?-1:1)),v}async function pd(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:a,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:g=!1,padding:v=0}=oo(e,t),E=dd(v),R=l[g?f==="floating"?"reference":"floating":f],N=Sr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(R)))==null||r?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),M=f==="floating"?{x:i,y:n,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},C=Sr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:M,offsetParent:x,strategy:d}):M);return{top:(N.top-C.top+E.top)/b.y,bottom:(C.bottom-N.bottom+E.bottom)/b.y,left:(N.left-C.left+E.left)/b.x,right:(C.right-N.right+E.right)/b.x}}var Dh=50,fd=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,l=a.detectOverflow?a:{...a,detectOverflow:pd},d=await(a.isRTL==null?void 0:a.isRTL(e)),p=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:f}=ud(p,i,d),g=i,v=0,E={};for(let T=0;T<s.length;T++){let R=s[T];if(!R)continue;let{name:N,fn:M}=R,{x,y:b,data:C,reset:I}=await M({x:m,y:f,initialPlacement:i,placement:g,strategy:n,middlewareData:E,rects:p,platform:l,elements:{reference:t,floating:e}});m=x??m,f=b??f,E[N]={...E[N],...C},I&&v<Dh&&(v++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(p=I.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:n}):I.rects),{x:m,y:f}=ud(p,g,d)),T=-1)}return{x:m,y:f,placement:g,strategy:n,middlewareData:E}};function Fh(t,e,r){return(t?[...r.filter(n=>Rt(n)===t),...r.filter(n=>Rt(n)!==t)]:r.filter(n=>vr(n)===n)).filter(n=>t?Rt(n)===t||(e?cd(n)!==n:!1):!0)}var hd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:a,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:f,allowedPlacements:g=ks,autoAlignment:v=!0,...E}=oo(t,e),T=f!==void 0||g===ks?Fh(f||null,v,g):g,R=((r=a.autoPlacement)==null?void 0:r.index)||0,N=T[R];if(N==null)return{};if(l!==N)return{reset:{placement:T[0]}};let M=await d.detectOverflow(e,E),x=ld(N,s,await(d.isRTL==null?void 0:d.isRTL(p.floating))),b=[M[vr(N)],M[x[0]],M[x[1]]],C=[...((i=a.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:b}],I=T[R+1];if(I)return{data:{index:R+1,overflows:C},reset:{placement:I}};let V=C.map($=>{let Q=Rt($.placement);return[$.placement,Q&&m?$.overflows.slice(0,2).reduce((Ce,Ct)=>Ce+Ct,0):$.overflows[0],$.overflows]}).sort(($,Q)=>$[1]-Q[1]),pe=((n=V.filter($=>$[2].slice(0,Rt($[0])?2:3).every(Q=>Q<=0))[0])==null?void 0:n[0])||V[0][0];return pe!==l?{data:{index:R+1,overflows:C},reset:{placement:pe}}:{}}}};var $h=new Set(["left","top"]);async function Mh(t,e){let{placement:r,platform:i,elements:n}=t,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),a=vr(r),l=Rt(r),d=io(r)==="y",p=$h.has(a)?-1:1,m=s&&d?-1:1,f=oo(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof E=="number"&&(v=l==="end"?E*-1:E),d?{x:v*m,y:g*p}:{x:g*p,y:v*m}}var md=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:s,placement:a,middlewareData:l}=e,d=await Mh(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:s+d.y,data:{...d,placement:a}}}}},gd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:M=>{let{x,y:b}=M;return{x,y:b}}},...p}=oo(t,e),m={x:r,y:i},f=await s.detectOverflow(e,p),g=io(n),v=Ls(g),E=m[v],T=m[g],R=(M,x)=>ad(x+f[M==="y"?"top":"left"],x,x-f[M==="y"?"bottom":"right"]);a&&(E=R(v,E)),l&&(T=R(g,T));let N=d.fn({...e,[v]:E,[g]:T});return{...N,data:{x:N.x-r,y:N.y-i,enabled:{[v]:a,[g]:l}}}}}};var yd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:s}=e,{apply:a=()=>{},...l}=oo(t,e),d=await n.detectOverflow(e,l),p=vr(r),m=Rt(r),f=io(r)==="y",{width:g,height:v}=i.floating,E,T;p==="top"||p==="bottom"?(E=p,T=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(T=p,E=m==="end"?"top":"bottom");let R=v-d.top-d.bottom,N=g-d.left-d.right,M=xr(v-d[E],R),x=xr(g-d[T],N),b=e.middlewareData.shift,C=!b,I=M,V=x;b!=null&&b.enabled.x&&(V=N),b!=null&&b.enabled.y&&(I=R),C&&!m&&(f?V=g-2*wt(d.left,d.right):I=v-2*wt(d.top,d.bottom)),await a({...e,availableWidth:V,availableHeight:I});let ee=await n.getDimensions(s.floating);return g!==ee.width||v!==ee.height?{reset:{rects:!0}}:{}}}};function zi(){return typeof window<"u"}function Er(t){return xd(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mt(t){var e;return(e=(xd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xd(t){return zi()?t instanceof Node||t instanceof We(t).Node:!1}function ft(t){return zi()?t instanceof Element||t instanceof We(t).Element:!1}function Bt(t){return zi()?t instanceof HTMLElement||t instanceof We(t).HTMLElement:!1}function bd(t){return!zi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Wo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function vd(t){return/^(table|td|th)$/.test(Er(t))}function Go(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Bh=/transform|translate|scale|rotate|perspective|filter/,Uh=/paint|layout|strict|content/,Cr=t=>!!t&&t!=="none",Ps;function no(t){let e=ft(t)?ht(t):t;return Cr(e.transform)||Cr(e.translate)||Cr(e.scale)||Cr(e.rotate)||Cr(e.perspective)||!Vi()&&(Cr(e.backdropFilter)||Cr(e.filter))||Bh.test(e.willChange||"")||Uh.test(e.contain||"")}function Sd(t){let e=Xt(t);for(;Bt(e)&&!so(e);){if(no(e))return e;if(Go(e))return null;e=Xt(e)}return null}function Vi(){return Ps==null&&(Ps=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ps}function so(t){return/^(html|body|#document)$/.test(Er(t))}function ht(t){return We(t).getComputedStyle(t)}function jo(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Xt(t){if(Er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bd(t)&&t.host||Mt(t);return bd(e)?e.host:e}function Cd(t){let e=Xt(t);return so(e)?(t.ownerDocument||t).body:Bt(e)&&Wo(e)?e:Cd(e)}function Ui(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Cd(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),a=We(n);if(s){let l=Hi(a);return e.concat(a,a.visualViewport||[],Wo(n)?n:[],l&&r?Ui(l):[])}else return e.concat(n,Ui(n,[],r))}function Hi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wd(t){let e=ht(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),s=n?t.offsetWidth:r,a=n?t.offsetHeight:i,l=Ho(r)!==s||Ho(i)!==a;return l&&(r=s,i=a),{width:r,height:i,$:l}}function Ad(t){return ft(t)?t:t.contextElement}function ao(t){let e=Ad(t);if(!Bt(e))return At(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=wd(e),a=(s?Ho(r.width):r.width)/i,l=(s?Ho(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var zh=At(0);function Rd(t){let e=We(t);return!Vi()||!e.visualViewport?zh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===We(t)}function Ko(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Ad(t),a=At(1);e&&(i?ft(i)&&(a=ao(i)):a=ao(t));let l=Vh(s,r,i)?Rd(s):At(0),d=(n.left+l.x)/a.x,p=(n.top+l.y)/a.y,m=n.width/a.x,f=n.height/a.y;if(s&&i){let g=We(s),v=ft(i)?We(i):i,E=g,T=Hi(E);for(;T&&v!==E;){let R=ao(T),N=T.getBoundingClientRect(),M=ht(T),x=N.left+(T.clientLeft+parseFloat(M.paddingLeft))*R.x,b=N.top+(T.clientTop+parseFloat(M.paddingTop))*R.y;d*=R.x,p*=R.y,m*=R.x,f*=R.y,d+=x,p+=b,E=We(T),T=Hi(E)}}return Sr({width:m,height:f,x:d,y:p})}function Wi(t,e){let r=jo(t).scrollLeft;return e?e.left+r:Ko(Mt(t)).left+r}function _d(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Wi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Hh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",a=Mt(i),l=e?Go(e.floating):!1;if(i===a||l&&s)return r;let d={scrollLeft:0,scrollTop:0},p=At(1),m=At(0),f=Bt(i);if((f||!s)&&((Er(i)!=="body"||Wo(a))&&(d=jo(i)),f)){let v=Ko(i);p=ao(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=a&&!f&&!s?_d(a,d):At(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function Wh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Gh(t){let e=jo(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Wi(t),a=-e.scrollTop;return ht(r).direction==="rtl"&&(s+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}var jh=25;function Kh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=We(t),s=Mt(t),a=n.visualViewport,l=s.clientWidth,d=s.clientHeight,p=0,m=0;if(a){let g=!Vi()||e==="fixed";i?g||(p=-a.offsetLeft,m=-a.offsetTop):(l=a.width,d=a.height,g&&(p=a.offsetLeft,m=a.offsetTop))}if(Wi(s)<=0){let g=s.ownerDocument,v=g.body,E=getComputedStyle(v),T=g.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,R=Math.abs(s.clientWidth-v.clientWidth-T),N=getComputedStyle(s).scrollbarGutter==="stable both-edges"?R/2:R;N<=jh&&(l-=N)}return{width:l,height:d,x:p,y:m}}function qh(t,e){let r=Ko(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ao(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,d=n*s.x,p=i*s.y;return{width:a,height:l,x:d,y:p}}function Ed(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Kh(t,r,e);else if(e==="document")i=Gh(Mt(t));else if(ft(e))i=qh(e,r);else{let n=Rd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Sr(i)}function Zh(t,e){let r=e.get(t);if(r)return r;let i=Ui(t,[],!1).filter(l=>ft(l)&&Er(l)!=="body"),n=null,s=ht(t).position==="fixed",a=s?Xt(t):t;for(;ft(a)&&!so(a);){let l=ht(a),d=no(a),p=n?n.position:s?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?i=i.filter(f=>f!==a):n=l,a=Xt(a)}return e.set(t,i),i}function Yh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,a=[...r==="clippingAncestors"?Go(e)?[]:Zh(e,this._c):[].concat(r),i],l=Ed(e,a[0],n),d=l.top,p=l.right,m=l.bottom,f=l.left;for(let g=1;g<a.length;g++){let v=Ed(e,a[g],n);d=wt(v.top,d),p=xr(v.right,p),m=xr(v.bottom,m),f=wt(v.left,f)}return{width:p-f,height:m-d,x:f,y:d}}function Qh(t){let{width:e,height:r}=wd(t);return{width:e,height:r}}function Xh(t,e,r){let i=Bt(e),n=Mt(e),s=r==="fixed",a=Ko(t,!0,s,e),l={scrollLeft:0,scrollTop:0},d=At(0);if((i||!s)&&((Er(e)!=="body"||Wo(n))&&(l=jo(e)),i)){let g=Ko(e,!0,s,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Wi(n));let p=n&&!i&&!s?_d(n,l):At(0),m=a.left+l.scrollLeft-d.x-p.x,f=a.top+l.scrollTop-d.y-p.y;return{x:m,y:f,width:a.width,height:a.height}}function Ns(t){return ht(t).position==="static"}function Od(t,e){if(!Bt(t)||ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Mt(t)===r&&(r=r.ownerDocument.body),r}function kd(t,e){let r=We(t);if(Go(t))return r;if(!Bt(t)){let n=Xt(t);for(;n&&!so(n);){if(ft(n)&&!Ns(n))return n;n=Xt(n)}return r}let i=Od(t,e);for(;i&&vd(i)&&Ns(i);)i=Od(i,e);return i&&so(i)&&Ns(i)&&!no(i)?r:i||Sd(t)||r}var Jh=async function(t){let e=this.getOffsetParent||kd,r=this.getDimensions,i=await r(t.floating);return{reference:Xh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function em(t){return ht(t).direction==="rtl"}var lo={convertOffsetParentRelativeRectToViewportRelativeRect:Hh,getDocumentElement:Mt,getClippingRect:Yh,getOffsetParent:kd,getElementRects:Jh,getClientRects:Wh,getDimensions:Qh,getScale:ao,isElement:ft,isRTL:em};var Ld=md,Ds=hd,Id=gd;var Td=yd;var Fs=(t,e,r)=>{let i=new Map,n=r??{},s={...lo,...n.platform,_c:i};return fd(t,e,{...n,platform:s})};function Ms(t){return tm(t)}function $s(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function tm(t){for(let e=t;e;e=$s(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=$s(t);e;e=$s(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||no(r)||e.tagName==="BODY"))return e}return null}async function Bs(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Fs(t,e,{strategy:i.strategy,platform:{...lo,getOffsetParent:n=>lo.getOffsetParent(n,Ms)},middleware:[Id({crossAxis:!0}),Ds({allowedPlacements:[i.placement]})]})}async function Us(t,e,r,i,n,s,a){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,s=r.maxHeightCssVariable,d=r.maxWidthCssVariable,a=r.offsetValue):l=r,Fs(t,e,{placement:l,strategy:n,platform:{...lo,getOffsetParent:p=>lo.getOffsetParent(p,Ms)},middleware:[Ld(a??4),Ds({allowedPlacements:i}),Td({apply({availableHeight:p,availableWidth:m,elements:f}){typeof s=="string"&&(s=`var(${s})`),s?f.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${s})`:f.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?f.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:f.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Vs={};q(Vs,{isSlotEmptyOrWithoutContent:()=>qo});var qo=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var qs={};q(qs,{FtdsBase:()=>Ks,toFtdsBase:()=>Bd});var js={};q(js,{ExportpartsUpdatedEvent:()=>Or,FtLitElement:()=>D});var Hs={};q(Hs,{ScopedRegistryLitElement:()=>Zo});var Zo=class extends dt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return ko(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Fo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var Gs={};q(Gs,{shadowQuerySelector:()=>Ws,shadowQuerySelectorAll:()=>rm});function Ws(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}function rm(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(s=>{var a,l;return[...(l=(a=s.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var co=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Fd,Pd=Symbol("constructorPrototype"),Nd=Symbol("constructorName"),$d=Symbol("exportpartsDebouncer"),Dd=Symbol("dynamicDependenciesLoaded"),Or=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Or.eventName="exportparts-updated";var D=class extends Zo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fd]=new J(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[$d].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Nd]=this.constructor.name,this[Pd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nd]&&Object.setPrototypeOf(this,this[Pd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Dd]||(r[Dd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Or.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Or.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Or)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Ws(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,a,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],E=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(R=>R.split(":")[1]))!==null&&l!==void 0?l:[],T=[...v,...E].filter(d).map(R=>R.trim());for(let R of T)m.add(R)}if(m.size===0){this.exportparts=void 0;return}let f=[...m.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...f].join(", ")}};Fd=$d;co([h()],D.prototype,"exportpartsPrefix",void 0);co([le([])],D.prototype,"exportpartsPrefixes",void 0);co([h({reflect:!0})],D.prototype,"exportparts",void 0);co([h()],D.prototype,"customStylesheet",void 0);co([h()],D.prototype,"elementToFocus",void 0);co([A()],D.prototype,"useAdoptedStyleSheets",void 0);var Md=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Bd=Oe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Vo.medium,this.family=zo.neutral}getDesignSystemBaseClasses(){return{[Es(this.family)]:!0,[Os(this.size)]:!0}}}return Md([h()],e.prototype,"size",void 0),Md([h()],e.prototype,"family",void 0),e}),Ks=class extends Bd(D){};var Ud={};var Qs={};q(Qs,{highlightHtml:()=>Ys,highlightHtmlColorCssVariable:()=>zd,highlightHtmlStyles:()=>im});var wr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let s=!1;return i.every(a=>n.call(e,a)?(s=!0,!1):!0),s}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(s=>s.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let s=e.contentWindow;if(n=s.document,!s||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,s=null,a=()=>{if(!n){n=!0,clearTimeout(s);try{this.isIframeBlank(e)||(e.removeEventListener("load",a),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",a),s=setTimeout(a,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let s=e.querySelectorAll("iframe"),a=s.length,l=0;s=Array.prototype.slice.call(s);let d=()=>{--a<=0&&n(l)};a||d(),s.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),s=Node.DOCUMENT_POSITION_PRECEDING;if(n&s)if(r!==null){let a=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(a&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let s=!1,a=!1;return n.forEach((l,d)=>{l.val===i&&(s=d,a=l.handled)}),this.compareNodeIframe(e,r,i)?(s===!1&&!a?n.push({val:i,handled:!0}):s!==!1&&!a&&(n[s].handled=!0),!0):(s===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(s=>{s.handled||this.getIframeContents(s.val,a=>{this.createInstanceOnIframe(a).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,s){let a=this.createIterator(r,e,n),l=[],d=[],p,m,f=()=>({prevNode:m,node:p}=this.getIteratorNode(a),p);for(;f();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),s()}forEachNode(e,r,i,n=()=>{}){let s=this.getContexts(),a=s.length;a||n(),s.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--a<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Yo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new wr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in r)if(r.hasOwnProperty(s)){let a=r[s],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let s=n.charAt(i+1);return/[(|)\\]/.test(s)||s===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(s=>{i.every(a=>{if(a.indexOf(s)!==-1){if(n.indexOf(a)>-1)return!1;e=e.replace(new RegExp(`[${a}]`,`gm${r}`),`[${a}]`),n.push(a)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,s=typeof i=="string"?[]:i.limiters,a="";switch(s.forEach(l=>{a+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return a="\\s"+(a||this.escapeStr(r)),`()([^${a}]*${e}[^${a}]*)`;case"exactly":return`(^|\\s${a})(${e})(?=$|\\s${a})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.sort((n,s)=>n.start-s.start).forEach(n=>{let{start:s,end:a,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=s,n.length=a-s,r.push(n),i=a)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,s=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?s=!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:s}}checkWhitespaceRanges(e,r,i){let n,s=!0,a=i.length,l=r-a,d=parseInt(e.start,10)-l;return d=d>a?a:d,n=d+parseInt(e.length,10),n>a&&(n=a,this.log(`End range automatically set to the max value of ${a}`)),d<0||n-d<0||d>a||n>a?(s=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:s}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return wr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",s=e.splitText(r),a=s.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=s.textContent,s.parentNode.replaceChild(l,s),a}wrapRangeInMappedTextNode(e,r,i,n,s){e.nodes.every((a,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(a.node))return!1;let p=r-a.start,m=(i>a.end?a.end:i)-a.start,f=e.value.substr(0,a.start),g=e.value.substr(m+a.start);if(a.node=this.wrapRangeInTextNode(a.node,p,m),e.value=f+g,e.nodes.forEach((v,E)=>{E>=l&&(e.nodes[E].start>0&&E!==l&&(e.nodes[E].start-=m),e.nodes[E].end-=m)}),i-=m,s(a.node.previousSibling,a.start),i>a.end)r=a.end;else return!1}return!0})}wrapMatches(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[a]!=="";){if(!i(p[a],d))continue;let m=p.index;if(a!==0)for(let f=1;f<a;f++)m+=p[f].length;d=this.wrapRangeInTextNode(d,m,m+p[a].length),n(d.previousSibling),e.lastIndex=0}}),s()})}wrapMatchesAcrossElements(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[a]!=="";){let p=d.index;if(a!==0)for(let f=1;f<a;f++)p+=d[f].length;let m=p+d[a].length;this.wrapRangeInMappedTextNode(l,p,m,f=>i(d[a],f),(f,g)=>{e.lastIndex=g,n(f)})}s()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(s=>{let a=s.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:f}=this.checkWhitespaceRanges(l,a,s.value);f&&this.wrapRangeInMappedTextNode(s,p,m,g=>r(g,l,s.value.substring(p,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",s=a=>{i++,this.opt.each(a)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(a,l)=>this.opt.filter(l,a,i),s,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:s,length:a}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,p,i,f),g=>{f++,i++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(p),s[a-1]===p?this.opt.done(i):d(s[s.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),a===0?this.opt.done(i):d(s[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(s,a,l,d)=>this.opt.filter(s,a,l,d),(s,a)=>{i++,this.opt.each(s,a)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=wr.matches(i,r),s=this.matchesExclude(i);return!n||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Zs(t){let e=new Yo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var om=Zs,zd=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),im=O`
|
|
1
|
+
"use strict";(()=>{var nf=Object.defineProperty;var K=(t,e)=>{for(var r in e)nf(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=window.customElements,n=new WeakMap,s=new WeakMap,a=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(b,x){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=x.prototype.attributeChangedCallback,N=new Set(x.observedAttributes||[]);g(x,N,C);let Z={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:N};this._definitionsByTag.set(b,Z),this._definitionsByClass.set(x,Z);let ee=r.call(i,b);ee||(ee=f(b),e.call(i,b,ee)),this===window.customElements&&(a.set(x,Z),Z.standInClass=ee);let pe=this._awaitingUpgrade.get(b);if(pe){this._awaitingUpgrade.delete(b);for(let Q of pe)s.delete(Q),w(Q,Z,!0)}let $=this._whenDefinedPromises.get(b);return $!==void 0&&($.resolve(x),this._whenDefinedPromises.delete(b)),x}upgrade(){k.push(this),i.upgrade.apply(i,arguments),k.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let x=this._getDefinition(b);if(x!==void 0)return Promise.resolve(x.elementClass);let C=this._whenDefinedPromises.get(b);return C===void 0&&(C={},C.promise=new Promise(N=>C.resolve=N),this._whenDefinedPromises.set(b,C)),C.promise}_upgradeWhenDefined(b,x,C){let N=this._awaitingUpgrade.get(x);N||this._awaitingUpgrade.set(x,N=new Set),C?N.add(b):N.delete(b)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let C=a.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],C.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,C),x},window.HTMLElement.prototype=t.prototype;let p=b=>b===document||b instanceof ShadowRoot,m=b=>{let x=b.getRootNode();if(!p(x)){let C=k[k.length-1];if(C instanceof CustomElementRegistry)return C;x=C.getRootNode(),p(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},f=b=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let N=m(C)||window.customElements,Z=N._getDefinition(b);return Z?w(C,Z):s.set(C,N),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},g=(b,x,C)=>{if(x.size===0||C===void 0)return;let N=b.prototype.setAttribute;N&&(b.prototype.setAttribute=function(pe,$){let Q=pe.toLowerCase();if(x.has(Q)){let Ce=this.getAttribute(Q);N.call(this,Q,$),C.call(this,Q,Ce,$)}else N.call(this,Q,$)});let Z=b.prototype.removeAttribute;Z&&(b.prototype.removeAttribute=function(pe){let $=pe.toLowerCase();if(x.has($)){let Q=this.getAttribute($);Z.call(this,$),C.call(this,$,Q,null)}else Z.call(this,$)});let ee=b.prototype.toggleAttribute;ee&&(b.prototype.toggleAttribute=function(pe,$){let Q=pe.toLowerCase();if(x.has(Q)){let Ce=this.getAttribute(Q);ee.call(this,Q,$);let Ct=this.getAttribute(Q);C.call(this,Q,Ce,Ct)}else ee.call(this,Q,$)})},S=b=>{let x=Object.getPrototypeOf(b);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(b,window.HTMLElement):S(x)},w=(b,x,C=!1)=>{Object.setPrototypeOf(b,x.elementClass.prototype),n.set(b,x),d=b;try{new x.elementClass}catch{S(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(N=>{b.hasAttribute(N)&&x.attributeChangedCallback.call(b,N,null,b.getAttribute(N))}),C&&x.connectedCallback&&b.isConnected&&x.connectedCallback.call(b)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let x=I.apply(this,arguments);return b.customElements&&(x.customElements=b.customElements),x};let k=[document],D=(b,x,C=void 0)=>{let N=(C?Object.getPrototypeOf(C):b.prototype)[x];b.prototype[x]=function(){k.push(this);let Z=N.apply(C||this,arguments);return Z!==void 0&&l.set(Z,this),k.pop(),Z}};D(ShadowRoot,"createElement",document),D(ShadowRoot,"importNode",document),D(Element,"insertAdjacentHTML");let z=(b,x)=>{let C=Object.getOwnPropertyDescriptor(b.prototype,x);Object.defineProperty(b.prototype,x,{...C,set(N){k.push(this),C.set.call(this,N),k.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 b=new WeakMap,x=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...pe){let $=x.call(this,...pe);return b.set($,this),$},C.forEach(pe=>{let $=window.ElementInternals.prototype,Q=$[pe];$[pe]=function(...Ce){let Ct=b.get(this);if(n.get(Ct).formAssociated===!0)return Q?.call(this,...Ce);throw new DOMException(`Failed to execute ${Q} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class N extends Array{constructor($){super(...$),this._elements=$}get value(){return this._elements.find($=>$.checked===!0)?.value||""}}class Z{constructor($){let Q=new Map;$.forEach((Ce,Ct)=>{let Dn=Ce.getAttribute("name"),wl=Q.get(Dn)||[];this[+Ct]=Ce,wl.push(Ce),Q.set(Dn,wl)}),this.length=$.length,Q.forEach((Ce,Ct)=>{Ce&&(Ce.length===1?this[Ct]=Ce[0]:this[Ct]=new N(Ce))})}namedItem($){return this[$]}}let ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let pe=ee.get.call(this,[]),$=[];for(let Q of pe){let Ce=n.get(Q);(!Ce||Ce.formAssociated===!0)&&$.push(Q)}return new Z($)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var s;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){!((s=a.message)===null||s===void 0)&&s.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,a)}}}var qn={};K(qn,{CSSResult:()=>Zr,LitElement:()=>dt,ReactiveElement:()=>ot,_$LE:()=>yf,_$LH:()=>Gn,adoptStyles:()=>_o,css:()=>E,defaultConverter:()=>Yr,getCompatibleStyle:()=>Ci,html:()=>y,isServer:()=>Fg,mathml:()=>Wn,noChange:()=>Ee,notEqual:()=>Lo,nothing:()=>R,render:()=>jn,supportsAdoptingStyleSheets:()=>Ro,svg:()=>Hn,unsafeCSS:()=>ur});var Si=globalThis,Ro=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fn=Symbol(),Al=new WeakMap,Zr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Fn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ro&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Al.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Al.set(r,e))}return e}toString(){return this.cssText}},ur=t=>new Zr(typeof t=="string"?t:t+"",void 0,Fn),E=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Zr(r,t,Fn)},_o=(t,e)=>{if(Ro)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Ci=Ro?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return ur(r)})(t):t;var{is:sf,defineProperty:af,getOwnPropertyDescriptor:lf,getOwnPropertyNames:cf,getOwnPropertySymbols:df,getPrototypeOf:uf}=Object,Ei=globalThis,Rl=Ei.trustedTypes,pf=Rl?Rl.emptyScript:"",ff=Ei.reactiveElementPolyfillSupport,ko=(t,e)=>t,Yr={toAttribute(t,e){switch(e){case Boolean:t=t?pf:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Lo=(t,e)=>!sf(t,e),_l={attribute:!0,type:String,converter:Yr,reflect:!1,useDefault:!1,hasChanged:Lo};Symbol.metadata??=Symbol("metadata"),Ei.litPropertyMetadata??=new WeakMap;var ot=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=_l){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&af(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=lf(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get:n,set(a){let l=n?.call(this);s?.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??_l}static _$Ei(){if(this.hasOwnProperty(ko("elementProperties")))return;let e=uf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ko("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ko("properties"))){let r=this.properties,i=[...cf(r),...df(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Ci(n))}else e!==void 0&&r.push(Ci(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _o(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:Yr).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Yr;this._$Em=n;let l=a.fromAttribute(r,s.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){let a=this.constructor;if(n===!1&&(s=this[e]),i??=a.getPropertyOptions(e),!((i.hasChanged??Lo)(s,r)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:s},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i){let{wrapped:a}=s,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,s,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[ko("elementProperties")]=new Map,ot[ko("finalized")]=new Map,ff?.({ReactiveElement:ot}),(Ei.reactiveElementVersions??=[]).push("2.1.2");var Mn=globalThis,kl=t=>t,Oi=Mn.trustedTypes,Ll=Oi?Oi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Bn="$lit$",Ft=`lit$${Math.random().toFixed(9).slice(2)}$`,Un="?"+Ft,hf=`<${Un}>`,hr=document,To=()=>hr.createComment(""),Po=t=>t===null||typeof t!="object"&&typeof t!="function",zn=Array.isArray,Fl=t=>zn(t)||typeof t?.[Symbol.iterator]=="function",$n=`[
|
|
2
|
+
\f\r]`,Io=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Il=/-->/g,Tl=/>/g,pr=RegExp(`>|${$n}(?:([^\\s"'>=/]+)(${$n}*=${$n}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pl=/'/g,Nl=/"/g,$l=/^(?:script|style|textarea|title)$/i,Vn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),y=Vn(1),Hn=Vn(2),Wn=Vn(3),Ee=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Dl=new WeakMap,fr=hr.createTreeWalker(hr,129);function Ml(t,e){if(!zn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ll!==void 0?Ll.createHTML(e):e}var Bl=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",a=Io;for(let l=0;l<r;l++){let d=t[l],p,m,f=-1,g=0;for(;g<d.length&&(a.lastIndex=g,m=a.exec(d),m!==null);)g=a.lastIndex,a===Io?m[1]==="!--"?a=Il:m[1]!==void 0?a=Tl:m[2]!==void 0?($l.test(m[2])&&(n=RegExp("</"+m[2],"g")),a=pr):m[3]!==void 0&&(a=pr):a===pr?m[0]===">"?(a=n??Io,f=-1):m[1]===void 0?f=-2:(f=a.lastIndex-m[2].length,p=m[1],a=m[3]===void 0?pr:m[3]==='"'?Nl:Pl):a===Nl||a===Pl?a=pr:a===Il||a===Tl?a=Io:(a=pr,n=void 0);let S=a===pr&&t[l+1].startsWith("/>")?" ":"";s+=a===Io?d+hf:f>=0?(i.push(p),d.slice(0,f)+Bn+d.slice(f)+Ft+S):d+Ft+(f===-2?l:S)}return[Ml(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},No=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,l=e.length-1,d=this.parts,[p,m]=Bl(e,r);if(this.el=t.createElement(p,i),fr.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=fr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Bn)){let g=m[a++],S=n.getAttribute(f).split(Ft),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:s,name:w[2],strings:S,ctor:w[1]==="."?Ai:w[1]==="?"?Ri:w[1]==="@"?_i:gr}),n.removeAttribute(f)}else f.startsWith(Ft)&&(d.push({type:6,index:s}),n.removeAttribute(f));if($l.test(n.tagName)){let f=n.textContent.split(Ft),g=f.length-1;if(g>0){n.textContent=Oi?Oi.emptyScript:"";for(let S=0;S<g;S++)n.append(f[S],To()),fr.nextNode(),d.push({type:2,index:++s});n.append(f[g],To())}}}else if(n.nodeType===8)if(n.data===Un)d.push({type:2,index:s});else{let f=-1;for(;(f=n.data.indexOf(Ft,f+1))!==-1;)d.push({type:7,index:s}),f+=Ft.length-1}s++}}static createElement(e,r){let i=hr.createElement("template");return i.innerHTML=e,i}};function mr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Po(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=mr(t,n._$AS(t,e.values),n,i)),e}var wi=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??hr).importNode(r,!0);fr.currentNode=n;let s=fr.nextNode(),a=0,l=0,d=i[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new Qr(s,s.nextSibling,this,e):d.type===1?p=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(p=new ki(s,this,e)),this._$AV.push(p),d=i[++l]}a!==d?.index&&(s=fr.nextNode(),a++)}return fr.currentNode=hr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Qr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=mr(this,e,r),Po(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Fl(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!==R&&Po(this._$AH)?this._$AA.nextSibling.data=e:this.T(hr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=No.createElement(Ml(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new wi(n,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Dl.get(e.strings);return r===void 0&&Dl.set(e.strings,r=new No(e)),r}k(e){zn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(To()),this.O(To()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=kl(e).nextSibling;kl(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=mr(this,e,r,0),a=!Po(e)||e!==this._$AH&&e!==Ee,a&&(this._$AH=e);else{let l=e,d,p;for(e=s[0],d=0;d<s.length-1;d++)p=mr(this,l[i+d],r,d),p===Ee&&(p=this._$AH[d]),a||=!Po(p)||p!==this._$AH[d],p===R?e=R:e!==R&&(e+=(p??"")+s[d+1]),this._$AH[d]=p}a&&!n&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ai=class extends gr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},Ri=class extends gr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},_i=class extends gr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=mr(this,e,r,0)??R)===Ee)return;let i=this._$AH,n=e===R&&i!==R||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==R&&(i===R||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},ki=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){mr(this,e)}},Gn={M:Bn,P:Ft,A:Un,C:1,L:Bl,R:wi,D:Fl,V:mr,I:Qr,H:gr,N:Ri,U:_i,B:Ai,F:ki},mf=Mn.litHtmlPolyfillSupport;mf?.(No,Qr),(Mn.litHtmlVersions??=[]).push("3.3.3");var jn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new Qr(e.insertBefore(To(),s),s,void 0,r??{})}return n._$AI(t),n};var Kn=globalThis,dt=class extends ot{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=jn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};dt._$litElement$=!0,dt.finalized=!0,Kn.litElementHydrateSupport?.({LitElement:dt});var gf=Kn.litElementPolyfillSupport;gf?.({LitElement:dt});var yf={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Kn.litElementVersions??=[]).push("4.2.2");var Fg=!1;var Xn={};K(Xn,{customElement:()=>bf,eventOptions:()=>vf,property:()=>h,query:()=>T,queryAll:()=>Zn,queryAssignedElements:()=>Yn,queryAssignedNodes:()=>Qn,queryAsync:()=>Cf,standardProperty:()=>Ul,state:()=>A});var bf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var xf={attribute:!0,type:String,converter:Yr,reflect:!1,hasChanged:Lo},Ul=(t=xf,e,r)=>{let{kind:i,metadata:n}=r,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),i==="accessor"){let{name:a}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,d,t,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,t,l),l}}}if(i==="setter"){let{name:a}=r;return function(l){let d=this[a];e.call(this,l),this.requestUpdate(a,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function h(t){return(e,r)=>typeof r=="object"?Ul(t,e,r):((i,n,s)=>{let a=n.hasOwnProperty(s);return n.constructor.createProperty(s,i),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,r)}function A(t){return h({...t,state:!0,attribute:!1})}function vf(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var ut=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function T(t,e){return(r,i,n)=>{let s=a=>a.renderRoot?.querySelector(t)??null;if(e){let{get:a,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ut(r,i,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ut(r,i,{get(){return s(this)}})}}var Sf;function Zn(t){return(e,r)=>ut(e,r,{get(){return(this.renderRoot??(Sf??=document.createDocumentFragment())).querySelectorAll(t)}})}function Cf(t){return(e,r)=>ut(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Yn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},s="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){let a=this.renderRoot?.querySelector(s),l=a?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Qn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ut(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Jn={};K(Jn,{repeat:()=>ae});var Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ze=t=>(...e)=>({_$litDirective$:t,values:e}),it=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Ef}=Gn,zl=t=>t;var Hl=t=>t.strings===void 0,Vl=()=>document.createComment(""),Xr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(Vl(),n),a=i.insertBefore(Vl(),n);r=new Ef(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==a._$AU&&r._$AP(d)}if(s!==n||l){let d=r._$AA;for(;d!==s;){let p=zl(d).nextSibling;zl(i).insertBefore(d,n),d=p}}}return r},jt=(t,e,r=t)=>(t._$AI(e,r),t),Of={},Wl=(t,e=Of)=>t._$AH=e,Gl=t=>t._$AH,Li=t=>{t._$AR(),t._$AA.remove()};var jl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},ae=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let l of t)n[a]=i?i(l,a):a,s[a]=r(l,a),a++;return{values:s,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Gl(t),{values:s,keys:a}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=a,s;let l=this.ut??=[],d=[],p,m,f=0,g=n.length-1,S=0,w=s.length-1;for(;f<=g&&S<=w;)if(n[f]===null)f++;else if(n[g]===null)g--;else if(l[f]===a[S])d[S]=jt(n[f],s[S]),f++,S++;else if(l[g]===a[w])d[w]=jt(n[g],s[w]),g--,w--;else if(l[f]===a[w])d[w]=jt(n[f],s[w]),Xr(t,d[w+1],n[f]),f++,w--;else if(l[g]===a[S])d[S]=jt(n[g],s[S]),Xr(t,n[f],n[g]),g--,S++;else if(p===void 0&&(p=jl(a,S,w),m=jl(l,f,g)),p.has(l[f]))if(p.has(l[g])){let I=m.get(a[S]),k=I!==void 0?n[I]:null;if(k===null){let D=Xr(t,n[f]);jt(D,s[S]),d[S]=D}else d[S]=jt(k,s[S]),Xr(t,n[f],k),n[I]=null;S++}else Li(n[g]),g--;else Li(n[f]),f++;for(;S<=w;){let I=Xr(t,d[w+1]);jt(I,s[S]),d[S++]=I}for(;f<=g;){let I=n[f++];I!==null&&Li(I)}return this.ut=a,Wl(t,d),Ee}});var es={};K(es,{classMap:()=>oe});var oe=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Ee}});var ts={};K(ts,{styleMap:()=>Af});var Kl="important",wf=" !"+Kl,Af=Ze(class extends it{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let s=typeof n=="string"&&n.endsWith(wf);i.includes("-")||s?r.setProperty(i,s?n.slice(0,-11):n,s?Kl:""):r[i]=n}}return Ee}});var os={};K(os,{UnsafeHTMLDirective:()=>Jr,unsafeHTML:()=>rs});var Jr=class extends it{constructor(e){if(super(e),this.it=R,e.type!==Et.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||e==null)return this._t=void 0,this.it=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Jr.directiveName="unsafeHTML",Jr.resultType=1;var rs=Ze(Jr);var is={};K(is,{splitBreadcrumbForMenu:()=>Rf});function Rf(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let i=Math.max(r,1),n=t.slice(i*-1);return e+i>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-n.length),afterMenu:n}}var fs={};K(fs,{CacheRegistry:()=>Ot,ClearCacheEvent:()=>Bo});var ns={};K(ns,{CancelablePromise:()=>Ii,CanceledPromiseError:()=>Kt,cancelable:()=>Ti});var Kt=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Ii=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new Kt("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new Kt("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ti=t=>new Ii((e,r)=>t.then(e).catch(r));var ps={};K(ps,{FtContextRegistrationEvent:()=>Mo,FtNotificationEvent:()=>$o,PostResizeEvent:()=>us,PreResizeEvent:()=>ds,WithEventBus:()=>$t,withEventBus:()=>Fi});var cs={};K(cs,{AbstractRegistry:()=>eo,applyMixinOnce:()=>Oe,customElements:()=>W,dateReviver:()=>If,deepCopy:()=>nt,deepEqual:()=>he,delay:()=>Pi,eventPathContainsMatchingElement:()=>as,everyDeep:()=>Lf,flatDeep:()=>Ye,forEachDeep:()=>Yl,getComposedPathTo:()=>Yt,groupBy:()=>Nf,hasChanged:()=>He,ignoreComposingEvents:()=>Qt,last:()=>ls,minmax:()=>Zt,parseDate:()=>Xl,randomId:()=>Pf,someDeep:()=>Ql,unslotText:()=>Di,waitFor:()=>Ni,waitUntil:()=>Fo});var ss={};K(ss,{customElement:()=>Do,dateProperty:()=>kf,isNumber:()=>Zl,jsonProperty:()=>le,jsonPropertyConverter:()=>ql,numberProperty:()=>qt,optionalNumberProperty:()=>_f});var Do=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},ql=t=>({fromAttribute:e=>{if(e==null)return nt(t);try{return JSON.parse(e)}catch{return nt(t)}},toAttribute:e=>JSON.stringify(e)});function le(t,e){return h({type:Object,converter:ql(t),hasChanged:He,...e??{}})}function _f(t){return qt(t)}function qt(t){return h({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,s=(i=t?.max)!==null&&i!==void 0?i:1/0;return Zl(e)?Zt(n,+e,s):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Zl(t){return!isNaN(parseFloat(t))}function kf(t){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var Pi=t=>new Promise(e=>setTimeout(e,t));async function Fo(t,e=10,r=2e4){await Ni(async()=>await t()||void 0,e,r)}async function Ni(t,e=10,r=2e4){let i=await t(),n=performance.now(),s=n;for(;i==null&&(!r||s-n<r);)await Pi(e),i=await t(),s=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ye(t,e){return t.flatMap(r=>[r,...Ye(e(r),e)])}function Yl(t,e,r){let i=(n,s)=>{var a;for(let l=0;l<n.length;l++){let d=n[l];if(!(((a=r(d,l,n,s))!==null&&a!==void 0?a:!0)&&i(e(d),[...s,d])))return!1}return!0};i(t,[])}function Ql(t,e,r){let i=!1;return Yl(t,e,(n,s,a,l)=>(i=!!r(n,s,a,l),!i)),i}function Lf(t,e,r){return!Ql(t,e,(i,n,s,a)=>!r(i,n,s,a))}function If(...t){return(e,r)=>t.includes(e)?Xl(r):r}function Xl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function Tf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!he(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!he(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=a=>Object.keys(a).filter(l=>a[l]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let a=s[i];if(!he(t[a],e[a]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function he(t,e){try{return Tf(t,e)}catch{return!1}}function He(t,e){return!he(t,e)}function as(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(s=>n.matches(s)))return!0}}return!1}function Zt(t,e,r){return Math.min(Math.max(t,e),r)}function ls(t){return t[t.length-1]}function Di(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Di(e)).join(""):t?.textContent||""}function Yt(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function nt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Pf(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Oe(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Qt(){return function(t,e,r){let i=r.value;r.value=function(n,...s){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(s))}}}function W(t){for(let[e,r]of Object.entries(t))Do(e)(r)}function Nf(t,e){var r,i;let n=typeof e=="function"?e:a=>a[e],s={};for(let a of t)((r=s[i=n(a)])!==null&&r!==void 0?r:s[i]=[]).push(a);return s}var eo=class{constructor(){this.knownElements=new Set}register(e){this.knownElements.add(e)}unregister(e){this.knownElements.delete(e)}list(){return Array.from(this.knownElements)}};var $o=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ds=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},us=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Fi=Oe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),$t=class extends Fi(Object){},Mo=class extends CustomEvent{constructor(e,r){super(e,{composed:!0,bubbles:!0,detail:r})}};var Bo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Ot=class extends $t{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let s=this.content[e],a=(n=s?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...s,loader:r,final:i,status:a}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Bo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Bo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.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,r,i=!1){this.forceClear(e);let n=async()=>r,s="RESOLVED";this.content[e]={loader:n,final:i,status:s,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Ti(r()),n.promise.then(s=>(n.status="RESOLVED",n.value=s,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),s)).catch(s=>{var a;throw!((a=n.promise)===null||a===void 0)&&a.isCanceled||(n.status="ERROR",n.error=s),s})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.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 r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Cs={};K(Cs,{ClusteringHelper:()=>Ss,formatHierarchicalValues:()=>vs});var xs={};K(xs,{accessBreadcrumb:()=>Hf,accessResult:()=>bs,accessResultId:()=>zf,accessResultUrl:()=>Vf,enrichReaderUrl:()=>ys});var gs={};K(gs,{SearchPlaceConverter:()=>pt,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>zc,serializeRequest:()=>Bf});var Df=t=>typeof t=="object"&&t!=null;var Ff=t=>typeof t=="number",$i=t=>typeof t=="string",ms=t=>Df(t)&&$i(t.endpoint)&&$i(t.method)&&$i(t.statusText)&&$i(t.body)&&Ff(t.status),Jl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Jl||(Jl={}));var ec;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ec||(ec={}));var tc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(tc||(tc={}));var rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rc||(rc={}));var oc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(oc||(oc={}));var ic;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ic||(ic={}));var nc;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(nc||(nc={}));var sc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(sc||(sc={}));var ac;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ac||(ac={}));var lc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(lc||(lc={}));var cc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(cc||(cc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dc||(dc={}));var uc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(uc||(uc={}));var pc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pc||(pc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(mc||(mc={}));var yr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yr||(yr={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var Mi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Mi||(Mi={}));var Oc=t=>Object.keys(Mi).includes(t);var bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bc||(bc={}));var xc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var to;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(to||(to={}));var wc=t=>Object.keys(to).includes(t);var Sc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Sc||(Sc={}));var hs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(hs||(hs={}));var Cc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Cc||(Cc={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(me||(me={}));var st;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(st||(st={}));var Ec;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ec||(Ec={}));var Ac;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ac||(Ac={}));var Rc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rc||(Rc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var kc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kc||(kc={}));var Lc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Lc||(Lc={}));var Ic;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ic||(Ic={}));var Tc;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Tc||(Tc={}));var Pc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Pc||(Pc={}));var Nc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Nc||(Nc={}));var Dc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Dc||(Dc={}));var Fc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Fc||(Fc={}));var $c;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})($c||($c={}));var $f={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function Mc(t,e){return t===e||($f[t]??[]).some(r=>Mc(r,e))}function Bi(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Mc(i,e))}function Bc(t,...e){return t==null?!1:e.some(r=>Bi(t,r))}function Mf(t){return`"${t}"`}function Uc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Bf(t,e){return new pt(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match",t.STICKY_FILTER="sticky-filters"})(V||(V={}));var Uf=new Set(Object.values(V));function zc(t){return Uf.has(t)}var pt=class t{constructor(e,r=20,i=!1,n,s=[]){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.availableContentLocales=s,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.defaultContentLocale===void 0&&!this.allLanguagesAllowed&&(this.defaultContentLocale="en-US")}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,s,a,l,d,p,m,f;let g=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&g.append(V.LOCALE,e.contentLocale):g.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&g.append(V.QUERY,e.query);let S=t.serializeValueFilters(e.metadataFilters);S&&g.append(V.VALUE_FILTERS,S);let w=t.serializeNegativeValueFilters(e.metadataFilters);w&&g.append(V.NEGATIVE_VALUE_FILTERS,w);let I=(d=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(b=>b.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let b=I.map(x=>{var C;return`${x.key}~${(C=x.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");g.append(V.DATE_FILTERS,b)}let k=(p=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(k.length>0){let b=k.map(x=>{var C,N;return`${x.key}~${(C=x.rangeFilter)===null||C===void 0?void 0:C.from}_${(N=x.rangeFilter)===null||N===void 0?void 0:N.to}`}).join("*");g.append(V.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(V.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(V.SORT,e.sortId),!((a=e.paging)===null||a===void 0)&&a.perPage&&((m=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&g.append(V.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(V.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let D=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let b in D)g.append(b,D[b]);let z=new Array;return g.forEach((b,x)=>{z.push(this.encodeQueryString(x)+"="+this.encodeQueryString(b))}),encodeURI(z.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),s=i[0].split("/search/")[1];return s==null?n:{...n,scope:(r=this.scopeMapping[s])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,s,a,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(z){console.warn("Could not decode search request query params, fallback on raw value",z)}let p=new URLSearchParams(e),m=(i=p.get(V.LOCALE))!==null&&i!==void 0?i:void 0,f=((n=p.get(V.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),g=(r=p.get(V.SORT))===null||r===void 0?void 0:r.toLowerCase(),S=(s=p.get(V.SCOPE))!==null&&s!==void 0?s:"default",w=+((a=p.get(V.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),I=p.get(V.KEYWORD_MATCH),k=I?I.toUpperCase()===yr.MANDATORY?yr.MANDATORY:yr.OPTIONAL:void 0,D={};for(let z of p.keys())zc(z)||(D[z]=p.get(z));return m==="all"?m=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!m||this.availableContentLocales.length>0&&!this.availableContentLocales.some(z=>z.lang===m))&&(m=this.defaultContentLocale),{contentLocale:m,query:(l=p.get(V.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[S])!==null&&d!==void 0?d:"DEFAULT",virtualField:Oc(f)?f:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:Zt(1,isNaN(w)?this.defaultPerPage:w,1e3)},keywordMatch:k,otherQueryParams:D}}parseCompatFilters(e){var r,i,n,s,a,l,d;let p=[];return e.has(V.FILTERS)&&(p=t.parseValueFilters((r=e.get(V.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(V.PERIOD))!==null&&i!==void 0&&i&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(V.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...t.parseValueFilters((s=e.get(V.VALUE_FILTERS))!==null&&s!==void 0?s:""),...t.parseValueFilters((a=e.get(V.NEGATIVE_VALUE_FILTERS))!==null&&a!==void 0?a:"",!0),...this.parseDateFilters((l=e.get(V.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(V.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(Uc).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:to[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}static superEscapeFilters(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(i,n);return e}static unescapeFilterValue(e){for(let[r,i,n]of t.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(wc(e))return[{key:"ft:lastEdition",dateFilter:{type:to[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static serializeValueFilter(e){var r,i;let n=((i=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&i!==void 0?i:[]).map(s=>t.escapeFilters(s)).map(s=>Mf(Uc(s))).join("_");return`${e.key}~${n}`}static serializeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&!n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let i=(r=e?.filter(n=>n.valueFilter&&n.valueFilter.negative))!==null&&r!==void 0?r:[];if(i.length>0)return i.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[V.LOCALE,V.FILTERS,V.VALUE_FILTERS,V.NEGATIVE_VALUE_FILTERS,V.DATE_FILTERS,V.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(V.LOCALE),r!==void 0&&i.searchParams.append(V.LOCALE,r),i.toString()}};pt.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function bs(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function zf(t){var e,r,i,n,s,a,l,d,p;return(p=(d=(l=(a=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&a!==void 0?a:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(i=t?.document)===null||i===void 0?void 0:i.documentId)!==null&&d!==void 0?d:(n=t?.htmlPackage)===null||n===void 0?void 0:n.packageId)!==null&&p!==void 0?p:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.contentId}function Vf(t,e){var r,i,n,s,a,l,d,p,m;return(m=(p=(d=(l=ys((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:ys((i=t?.topic)===null||i===void 0?void 0:i.readerUrl,e))!==null&&d!==void 0?d:(n=t?.document)===null||n===void 0?void 0:n.viewerUrl)!==null&&p!==void 0?p:(s=t?.htmlPackage)===null||s===void 0?void 0:s.viewerUrl)!==null&&m!==void 0?m:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.viewerUrl}function Hf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function ys(t,e,r){if(e&&t){let i=URL.parse(t),n=pt.serializeValueFilters(e);if(n&&i?.searchParams.append(V.VALUE_FILTERS,n),r&&i?.searchParams.append(V.STICKY_FILTER,r),i)return i.toString()}return t}function vs(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var Ss=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var s;return((s=this.extractResultMetadata({result:n}).find(a=>a.key==r))===null||s===void 0?void 0:s.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=bs(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(s=>s.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(s=>t.flattenMetadata(s,r,i)).filter(s=>s!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let s=[],a=[];return e.hierarchicalValues.forEach(l=>{s.push(vs(l)),a.push(vs(l,r))}),{key:e.key,label:e.label,value:s.join(", "),displayValue:a.join(", "),displayTooltipValue:s.join(", ")}}else{let s=e.values.join(", "),a=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:s,displayValue:a,displayTooltipValue:a}}}computeClustersItemsForMetadata(e,r,i="No value",n,s){var a,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:s}),p=(l=d?.label)!==null&&l!==void 0?l:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:s})).map(f=>f??{key:e,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,g,S)=>S.findIndex(w=>w.value===f.value)===g).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,g)=>this.compareMetadata(f.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let s=this.getMetadataDescriptor(i),a=s?.sortRule||"NONE",l=s?.reverseSort||!1;if(a=="ALPHABET"||a=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),s=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],a,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,s);if(p>l&&(l=p,a=d,p===s.length))break}return a}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Es={};K(Es,{Debouncer:()=>J});var J=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of i)try{await a()}catch(l){n(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Rs={};K(Rs,{designSystemVariables:()=>v});var As={};K(As,{DesignSystemFamily:()=>Uo,DesignSystemSize:()=>zo,FtCssVariableFactory:()=>o,badge:()=>sh,banner:()=>nh,button:()=>jf,card:()=>qf,chart:()=>Ch,checkbox:()=>Xf,chip:()=>rh,chipChoice:()=>th,chipGroup:()=>oh,collapsible:()=>vh,combobox:()=>bh,dateRangePicker:()=>Rh,drawer:()=>fh,eventCard:()=>Zf,floatingMenu:()=>yh,foundation:()=>c,link:()=>ih,modal:()=>uh,notice:()=>Oh,notification:()=>wh,pageDesigner:()=>Eh,pageFooter:()=>ch,pageHeader:()=>lh,pageLayout:()=>dh,popover:()=>xh,radio:()=>Jf,reorderableList:()=>ph,resolveFamilyClass:()=>Os,resolveSizeClass:()=>ws,semantic:()=>u,setVariable:()=>O,switch_:()=>Sh,table:()=>eh,tabs:()=>hh,textArea:()=>gh,textInput:()=>mh,titleBreadcrumb:()=>ah,toc:()=>Qf,toggle:()=>Kf,tooltip:()=>Ah,treeList:()=>Yf,typographies:()=>Wf,typographyBody1Medium:()=>Kc,typographyBody1Regular:()=>jc,typographyBody1Semibold:()=>qc,typographyBody2Medium:()=>Yc,typographyBody2MediumUnderline:()=>Qc,typographyBody2Regular:()=>Zc,typographyBody2Semibold:()=>Xc,typographyCaption1Medium:()=>Jc,typographyCaption1Semibold:()=>ed,typographyCaption2Bold:()=>od,typographyCaption2Medium:()=>td,typographyCaption2Semibold:()=>rd,typographyDisplay:()=>Vc,typographyTitle1:()=>Hc,typographyTitle2:()=>Wc,typographyTitle3:()=>Gc,typographyVariants:()=>Gf});var Xt=t=>typeof t=="string"?ur(t):t,o=class{static create(e,r,i,n){let s=l=>Xt(l??n),a=E`var(${Xt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>O(a,l??s(n)),a.get=l=>E`var(${Xt(e)}, ${s(l)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>n,a}static extend(e,r,i,n){let s=l=>i.get(l??n),a=E`var(${Xt(e)}, ${s(n)})`;return a.name=e,a.description=r,a.category=i.category,a.fallbackVariable=i,a.defaultValue=n,a.defaultCssValue=s,a.set=l=>O(a,l??s(n)),a.get=l=>E`var(${Xt(e)}, ${s(l)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),a}static external(e,r){let i=s=>e.defaultCssValue(s),n=E`var(${Xt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=s=>e.set(s),n.get=s=>E`var(${Xt(e.name)}, ${i(s)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function O(t,e){return Xt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Vc={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Hc={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Wc={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Gc={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},jc={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Kc={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},qc={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Zc={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Yc={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Qc={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Xc={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Jc={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},ed={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},td={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},rd={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},od={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Wf={display:Vc,"title-1":Hc,"title-2":Wc,"title-3":Gc,"body-1-regular":jc,"body-1-medium":Kc,"body-1-semibold":qc,"body-2-regular":Zc,"body-2-medium":Yc,"body-2-medium-underline":Qc,"body-2-semibold":Xc,"caption-1-medium":Jc,"caption-1-semibold":ed,"caption-2-medium":td,"caption-2-semibold":rd,"caption-2-bold":od},Gf=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var jf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Kf={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var qf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Zf={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Yf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Qf={titleColor:o.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:o.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:o.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:o.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:o.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:o.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:o.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:o.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:o.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:o.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:o.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:o.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:o.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var Xf={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:o.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Jf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var eh={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var th={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var rh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var oh={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var ih={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var nh={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var sh={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var ah={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var lh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var ch={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var dh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var uh={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var ph={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var fh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var hh={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var mh={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),prefixValueColor:o.extend("--ftds-text-input-prefix-value-color","",u.contentGlobalSecondary),suffixValueColor:o.extend("--ftds-text-input-suffix-value-color","",u.contentGlobalSecondary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var gh={fieldPaddingLeft:o.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:o.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:o.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:o.extend("--ftds-text-area-resize-right","",c.spacing05)};var yh={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var bh={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var xh={backgroundColor:o.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var vh={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Sh={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Ch={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var Eh={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Oh={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var wh={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Ah={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var Rh={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Uo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Uo||(Uo={}));var zo;(function(t){t.large="large",t.medium="medium",t.small="small"})(zo||(zo={}));function Os(t){return`ftds--family-${t}`}function ws(t){return`ftds--size-${t}`}var v={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","","SHADOW","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","","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)"),elevation02:o.create("--ft-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)"),elevation03:o.create("--ft-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)"),elevation04:o.create("--ft-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)"),elevation06:o.create("--ft-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)"),elevation08:o.create("--ft-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)"),elevation12:o.create("--ft-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)"),elevation16:o.create("--ft-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)"),elevation24:o.create("--ft-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)"),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 _s={};K(_s,{DynamicImporter:()=>Ui,dynamicImporter:()=>_h});var Ui=class{async import(e){if(e)return import(e)}},_h=new Ui;var Vs={};K(Vs,{computeOffsetAutoPosition:()=>zs,computeOffsetPosition:()=>Us});var nd=["top","right","bottom","left"],id=["start","end"],Ls=nd.reduce((t,e)=>t.concat(e,e+"-"+id[0],e+"-"+id[1]),[]),br=Math.min,wt=Math.max,Vo=Math.round;var At=t=>({x:t,y:t}),kh={left:"right",right:"left",bottom:"top",top:"bottom"};function sd(t,e,r){return wt(t,br(e,r))}function ro(t,e){return typeof t=="function"?t(e):t}function xr(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function Is(t){return t==="x"?"y":"x"}function Ts(t){return t==="y"?"height":"width"}function oo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ps(t){return Is(oo(t))}function ad(t,e,r){r===void 0&&(r=!1);let i=Rt(t),n=Ps(t),s=Ts(n),a=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=ks(a)),[a,ks(a)]}function ld(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ks(t){let e=xr(t);return kh[e]+t.slice(e.length)}function Lh(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function cd(t){return typeof t!="number"?Lh(t):{top:t,right:t,bottom:t,left:t}}function vr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function dd(t,e,r){let{reference:i,floating:n}=t,s=oo(e),a=Ps(e),l=Ts(a),d=xr(e),p=s==="y",m=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,S;switch(d){case"top":S={x:m,y:i.y-n.height};break;case"bottom":S={x:m,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:f};break;case"left":S={x:i.x-n.width,y:f};break;default:S={x:i.x,y:i.y}}let w=Rt(e);return w&&(S[a]+=g*(w==="end"?1:-1)*(r&&p?-1:1)),S}async function ud(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:a,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:g=!1,padding:S=0}=ro(e,t),w=cd(S),k=l[g?f==="floating"?"reference":"floating":f],D=vr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(k)))==null||r?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),z=f==="floating"?{x:i,y:n,width:a.floating.width,height:a.floating.height}:a.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},C=vr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:b,strategy:d}):z);return{top:(D.top-C.top+w.top)/x.y,bottom:(C.bottom-D.bottom+w.bottom)/x.y,left:(D.left-C.left+w.left)/x.x,right:(C.right-D.right+w.right)/x.x}}var Ih=50,pd=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:a}=r,l=a.detectOverflow?a:{...a,detectOverflow:ud},d=await(a.isRTL==null?void 0:a.isRTL(e)),p=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:f}=dd(p,i,d),g=i,S=0,w={};for(let I=0;I<s.length;I++){let k=s[I];if(!k)continue;let{name:D,fn:z}=k,{x:b,y:x,data:C,reset:N}=await z({x:m,y:f,initialPlacement:i,placement:g,strategy:n,middlewareData:w,rects:p,platform:l,elements:{reference:t,floating:e}});m=b??m,f=x??f,w[D]={...w[D],...C},N&&S<Ih&&(S++,typeof N=="object"&&(N.placement&&(g=N.placement),N.rects&&(p=N.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:n}):N.rects),{x:m,y:f}=dd(p,g,d)),I=-1)}return{x:m,y:f,placement:g,strategy:n,middlewareData:w}};function Th(t,e,r){return(t?[...r.filter(n=>Rt(n)===t),...r.filter(n=>Rt(n)!==t)]:r.filter(n=>xr(n)===n)).filter(n=>t?Rt(n)===t||(e?ld(n)!==n:!1):!0)}var fd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:a,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:f,allowedPlacements:g=Ls,autoAlignment:S=!0,...w}=ro(t,e),I=f!==void 0||g===Ls?Th(f||null,S,g):g,k=((r=a.autoPlacement)==null?void 0:r.index)||0,D=I[k];if(D==null)return{};if(l!==D)return{reset:{placement:I[0]}};let z=await d.detectOverflow(e,w),b=ad(D,s,await(d.isRTL==null?void 0:d.isRTL(p.floating))),x=[z[xr(D)],z[b[0]],z[b[1]]],C=[...((i=a.autoPlacement)==null?void 0:i.overflows)||[],{placement:D,overflows:x}],N=I[k+1];if(N)return{data:{index:k+1,overflows:C},reset:{placement:N}};let Z=C.map($=>{let Q=Rt($.placement);return[$.placement,Q&&m?$.overflows.slice(0,2).reduce((Ce,Ct)=>Ce+Ct,0):$.overflows[0],$.overflows]}).sort(($,Q)=>$[1]-Q[1]),pe=((n=Z.filter($=>$[2].slice(0,Rt($[0])?2:3).every(Q=>Q<=0))[0])==null?void 0:n[0])||Z[0][0];return pe!==l?{data:{index:k+1,overflows:C},reset:{placement:pe}}:{}}}};var Ph=new Set(["left","top"]);async function Nh(t,e){let{placement:r,platform:i,elements:n}=t,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),a=xr(r),l=Rt(r),d=oo(r)==="y",p=Ph.has(a)?-1:1,m=s&&d?-1:1,f=ro(e,t),{mainAxis:g,crossAxis:S,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof w=="number"&&(S=l==="end"?w*-1:w),d?{x:S*m,y:g*p}:{x:g*p,y:S*m}}var hd=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:s,placement:a,middlewareData:l}=e,d=await Nh(e,t);return a===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:s+d.y,data:{...d,placement:a}}}}},md=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:z=>{let{x:b,y:x}=z;return{x:b,y:x}}},...p}=ro(t,e),m={x:r,y:i},f=await s.detectOverflow(e,p),g=oo(n),S=Is(g),w=m[S],I=m[g],k=(z,b)=>sd(b+f[z==="y"?"top":"left"],b,b-f[z==="y"?"bottom":"right"]);a&&(w=k(S,w)),l&&(I=k(g,I));let D=d.fn({...e,[S]:w,[g]:I});return{...D,data:{x:D.x-r,y:D.y-i,enabled:{[S]:a,[g]:l}}}}}};var gd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:s}=e,{apply:a=()=>{},...l}=ro(t,e),d=await n.detectOverflow(e,l),p=xr(r),m=Rt(r),f=oo(r)==="y",{width:g,height:S}=i.floating,w,I;p==="top"||p==="bottom"?(w=p,I=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(I=p,w=m==="end"?"top":"bottom");let k=S-d.top-d.bottom,D=g-d.left-d.right,z=br(S-d[w],k),b=br(g-d[I],D),x=e.middlewareData.shift,C=!x,N=z,Z=b;x!=null&&x.enabled.x&&(Z=D),x!=null&&x.enabled.y&&(N=k),C&&!m&&(f?Z=g-2*wt(d.left,d.right):N=S-2*wt(d.top,d.bottom)),await a({...e,availableWidth:Z,availableHeight:N});let ee=await n.getDimensions(s.floating);return g!==ee.width||S!==ee.height?{reset:{rects:!0}}:{}}}};function Vi(){return typeof window<"u"}function Cr(t){return bd(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Mt(t){var e;return(e=(bd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bd(t){return Vi()?t instanceof Node||t instanceof We(t).Node:!1}function ft(t){return Vi()?t instanceof Element||t instanceof We(t).Element:!1}function Bt(t){return Vi()?t instanceof HTMLElement||t instanceof We(t).HTMLElement:!1}function yd(t){return!Vi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Ho(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function xd(t){return/^(table|td|th)$/.test(Cr(t))}function Wo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dh=/transform|translate|scale|rotate|perspective|filter/,Fh=/paint|layout|strict|content/,Sr=t=>!!t&&t!=="none",Ns;function io(t){let e=ft(t)?ht(t):t;return Sr(e.transform)||Sr(e.translate)||Sr(e.scale)||Sr(e.rotate)||Sr(e.perspective)||!Hi()&&(Sr(e.backdropFilter)||Sr(e.filter))||Dh.test(e.willChange||"")||Fh.test(e.contain||"")}function vd(t){let e=Jt(t);for(;Bt(e)&&!no(e);){if(io(e))return e;if(Wo(e))return null;e=Jt(e)}return null}function Hi(){return Ns==null&&(Ns=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ns}function no(t){return/^(html|body|#document)$/.test(Cr(t))}function ht(t){return We(t).getComputedStyle(t)}function Go(t){return ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Jt(t){if(Cr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||yd(t)&&t.host||Mt(t);return yd(e)?e.host:e}function Sd(t){let e=Jt(t);return no(e)?(t.ownerDocument||t).body:Bt(e)&&Ho(e)?e:Sd(e)}function zi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Sd(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),a=We(n);if(s){let l=Wi(a);return e.concat(a,a.visualViewport||[],Ho(n)?n:[],l&&r?zi(l):[])}else return e.concat(n,zi(n,[],r))}function Wi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Od(t){let e=ht(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),s=n?t.offsetWidth:r,a=n?t.offsetHeight:i,l=Vo(r)!==s||Vo(i)!==a;return l&&(r=s,i=a),{width:r,height:i,$:l}}function wd(t){return ft(t)?t:t.contextElement}function so(t){let e=wd(t);if(!Bt(e))return At(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Od(e),a=(s?Vo(r.width):r.width)/i,l=(s?Vo(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}var $h=At(0);function Ad(t){let e=We(t);return!Hi()||!e.visualViewport?$h:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===We(t)}function jo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=wd(t),a=At(1);e&&(i?ft(i)&&(a=so(i)):a=so(t));let l=Mh(s,r,i)?Ad(s):At(0),d=(n.left+l.x)/a.x,p=(n.top+l.y)/a.y,m=n.width/a.x,f=n.height/a.y;if(s&&i){let g=We(s),S=ft(i)?We(i):i,w=g,I=Wi(w);for(;I&&S!==w;){let k=so(I),D=I.getBoundingClientRect(),z=ht(I),b=D.left+(I.clientLeft+parseFloat(z.paddingLeft))*k.x,x=D.top+(I.clientTop+parseFloat(z.paddingTop))*k.y;d*=k.x,p*=k.y,m*=k.x,f*=k.y,d+=b,p+=x,w=We(I),I=Wi(w)}}return vr({width:m,height:f,x:d,y:p})}function Gi(t,e){let r=Go(t).scrollLeft;return e?e.left+r:jo(Mt(t)).left+r}function Rd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Gi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Bh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",a=Mt(i),l=e?Wo(e.floating):!1;if(i===a||l&&s)return r;let d={scrollLeft:0,scrollTop:0},p=At(1),m=At(0),f=Bt(i);if((f||!s)&&((Cr(i)!=="body"||Ho(a))&&(d=Go(i)),f)){let S=jo(i);p=so(i),m.x=S.x+i.clientLeft,m.y=S.y+i.clientTop}let g=a&&!f&&!s?Rd(a,d):At(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+g.x,y:r.y*p.y-d.scrollTop*p.y+m.y+g.y}}function Uh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function zh(t){let e=Go(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Gi(t),a=-e.scrollTop;return ht(r).direction==="rtl"&&(s+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}var Vh=25;function Hh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=We(t),s=Mt(t),a=n.visualViewport,l=s.clientWidth,d=s.clientHeight,p=0,m=0;if(a){let g=!Hi()||e==="fixed";i?g||(p=-a.offsetLeft,m=-a.offsetTop):(l=a.width,d=a.height,g&&(p=a.offsetLeft,m=a.offsetTop))}if(Gi(s)<=0){let g=s.ownerDocument,S=g.body,w=getComputedStyle(S),I=g.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,k=Math.abs(s.clientWidth-S.clientWidth-I),D=getComputedStyle(s).scrollbarGutter==="stable both-edges"?k/2:k;D<=Vh&&(l-=D)}return{width:l,height:d,x:p,y:m}}function Wh(t,e){let r=jo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=so(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,d=n*s.x,p=i*s.y;return{width:a,height:l,x:d,y:p}}function Cd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Hh(t,r,e);else if(e==="document")i=zh(Mt(t));else if(ft(e))i=Wh(e,r);else{let n=Ad(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return vr(i)}function Gh(t,e){let r=e.get(t);if(r)return r;let i=zi(t,[],!1).filter(l=>ft(l)&&Cr(l)!=="body"),n=null,s=ht(t).position==="fixed",a=s?Jt(t):t;for(;ft(a)&&!no(a);){let l=ht(a),d=io(a),p=n?n.position:s?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?i=i.filter(f=>f!==a):n=l,a=Jt(a)}return e.set(t,i),i}function jh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,a=[...r==="clippingAncestors"?Wo(e)?[]:Gh(e,this._c):[].concat(r),i],l=Cd(e,a[0],n),d=l.top,p=l.right,m=l.bottom,f=l.left;for(let g=1;g<a.length;g++){let S=Cd(e,a[g],n);d=wt(S.top,d),p=br(S.right,p),m=br(S.bottom,m),f=wt(S.left,f)}return{width:p-f,height:m-d,x:f,y:d}}function Kh(t){let{width:e,height:r}=Od(t);return{width:e,height:r}}function qh(t,e,r){let i=Bt(e),n=Mt(e),s=r==="fixed",a=jo(t,!0,s,e),l={scrollLeft:0,scrollTop:0},d=At(0);if((i||!s)&&((Cr(e)!=="body"||Ho(n))&&(l=Go(e)),i)){let g=jo(e,!0,s,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Gi(n));let p=n&&!i&&!s?Rd(n,l):At(0),m=a.left+l.scrollLeft-d.x-p.x,f=a.top+l.scrollTop-d.y-p.y;return{x:m,y:f,width:a.width,height:a.height}}function Ds(t){return ht(t).position==="static"}function Ed(t,e){if(!Bt(t)||ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Mt(t)===r&&(r=r.ownerDocument.body),r}function _d(t,e){let r=We(t);if(Wo(t))return r;if(!Bt(t)){let n=Jt(t);for(;n&&!no(n);){if(ft(n)&&!Ds(n))return n;n=Jt(n)}return r}let i=Ed(t,e);for(;i&&xd(i)&&Ds(i);)i=Ed(i,e);return i&&no(i)&&Ds(i)&&!io(i)?r:i||vd(t)||r}var Zh=async function(t){let e=this.getOffsetParent||_d,r=this.getDimensions,i=await r(t.floating);return{reference:qh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Yh(t){return ht(t).direction==="rtl"}var ao={convertOffsetParentRelativeRectToViewportRelativeRect:Bh,getDocumentElement:Mt,getClippingRect:jh,getOffsetParent:_d,getElementRects:Zh,getClientRects:Uh,getDimensions:Kh,getScale:so,isElement:ft,isRTL:Yh};var kd=hd,Fs=fd,Ld=md;var Id=gd;var $s=(t,e,r)=>{let i=new Map,n=r??{},s={...ao,...n.platform,_c:i};return pd(t,e,{...n,platform:s})};function Bs(t){return Qh(t)}function Ms(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Qh(t){for(let e=t;e;e=Ms(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ms(t);e;e=Ms(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||io(r)||e.tagName==="BODY"))return e}return null}async function Us(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},$s(t,e,{strategy:i.strategy,platform:{...ao,getOffsetParent:n=>ao.getOffsetParent(n,Bs)},middleware:[Ld({crossAxis:!0}),Fs({allowedPlacements:[i.placement]})]})}async function zs(t,e,r,i,n,s,a){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,s=r.maxHeightCssVariable,d=r.maxWidthCssVariable,a=r.offsetValue):l=r,$s(t,e,{placement:l,strategy:n,platform:{...ao,getOffsetParent:p=>ao.getOffsetParent(p,Bs)},middleware:[kd(a??4),Fs({allowedPlacements:i}),Id({apply({availableHeight:p,availableWidth:m,elements:f}){typeof s=="string"&&(s=`var(${s})`),s?f.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${s})`:f.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?f.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:f.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Hs={};K(Hs,{isSlotEmptyOrWithoutContent:()=>Ko});var Ko=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Zs={};K(Zs,{FtdsBase:()=>qs,toFtdsBase:()=>Md});var Ks={};K(Ks,{ExportpartsUpdatedEvent:()=>Er,FtLitElement:()=>P});var Ws={};K(Ws,{ScopedRegistryLitElement:()=>qo});var qo=class extends dt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return _o(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Do(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var js={};K(js,{shadowQuerySelector:()=>Gs,shadowQuerySelectorAll:()=>Xh});function Gs(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}function Xh(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(s=>{var a,l;return[...(l=(a=s.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var lo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Dd,Td=Symbol("constructorPrototype"),Pd=Symbol("constructorName"),Fd=Symbol("exportpartsDebouncer"),Nd=Symbol("dynamicDependenciesLoaded"),Er=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Er.eventName="exportparts-updated";var P=class extends qo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dd]=new J(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Fd].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pd]=this.constructor.name,this[Td]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pd]&&Object.setPrototypeOf(this,this[Td])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Nd]||(r[Nd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Er.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Er)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Gs(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,a,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let S=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],w=(l=(n=g.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(k=>k.split(":")[1]))!==null&&l!==void 0?l:[],I=[...S,...w].filter(d).map(k=>k.trim());for(let k of I)m.add(k)}if(m.size===0){this.exportparts=void 0;return}let f=[...m.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.exportparts=[...this.part,...f].join(", ")}};Dd=Fd;lo([h()],P.prototype,"exportpartsPrefix",void 0);lo([le([])],P.prototype,"exportpartsPrefixes",void 0);lo([h({reflect:!0})],P.prototype,"exportparts",void 0);lo([h()],P.prototype,"customStylesheet",void 0);lo([h()],P.prototype,"elementToFocus",void 0);lo([A()],P.prototype,"useAdoptedStyleSheets",void 0);var $d=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Md=Oe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=zo.medium,this.family=Uo.neutral}getDesignSystemBaseClasses(){return{[Os(this.family)]:!0,[ws(this.size)]:!0}}}return $d([h()],e.prototype,"size",void 0),$d([h()],e.prototype,"family",void 0),e}),qs=class extends Md(P){};var Bd={};var Xs={};K(Xs,{highlightHtml:()=>Qs,highlightHtmlColorCssVariable:()=>Ud,highlightHtmlStyles:()=>em});var Or=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let s=!1;return i.every(a=>n.call(e,a)?(s=!0,!1):!0),s}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(s=>s.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let s=e.contentWindow;if(n=s.document,!s||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,s=null,a=()=>{if(!n){n=!0,clearTimeout(s);try{this.isIframeBlank(e)||(e.removeEventListener("load",a),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",a),s=setTimeout(a,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let s=e.querySelectorAll("iframe"),a=s.length,l=0;s=Array.prototype.slice.call(s);let d=()=>{--a<=0&&n(l)};a||d(),s.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),s=Node.DOCUMENT_POSITION_PRECEDING;if(n&s)if(r!==null){let a=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(a&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let s=!1,a=!1;return n.forEach((l,d)=>{l.val===i&&(s=d,a=l.handled)}),this.compareNodeIframe(e,r,i)?(s===!1&&!a?n.push({val:i,handled:!0}):s!==!1&&!a&&(n[s].handled=!0),!0):(s===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(s=>{s.handled||this.getIframeContents(s.val,a=>{this.createInstanceOnIframe(a).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,s){let a=this.createIterator(r,e,n),l=[],d=[],p,m,f=()=>({prevNode:m,node:p}=this.getIteratorNode(a),p);for(;f();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,S=>d.push(S),n)}),d.push(p);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),s()}forEachNode(e,r,i,n=()=>{}){let s=this.getContexts(),a=s.length;a||n(),s.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--a<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Zo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Or(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in r)if(r.hasOwnProperty(s)){let a=r[s],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let s=n.charAt(i+1);return/[(|)\\]/.test(s)||s===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(s=>{i.every(a=>{if(a.indexOf(s)!==-1){if(n.indexOf(a)>-1)return!1;e=e.replace(new RegExp(`[${a}]`,`gm${r}`),`[${a}]`),n.push(a)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,s=typeof i=="string"?[]:i.limiters,a="";switch(s.forEach(l=>{a+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return a="\\s"+(a||this.escapeStr(r)),`()([^${a}]*${e}[^${a}]*)`;case"exactly":return`(^|\\s${a})(${e})(?=$|\\s${a})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.sort((n,s)=>n.start-s.start).forEach(n=>{let{start:s,end:a,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=s,n.length=a-s,r.push(n),i=a)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,s=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?s=!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:s}}checkWhitespaceRanges(e,r,i){let n,s=!0,a=i.length,l=r-a,d=parseInt(e.start,10)-l;return d=d>a?a:d,n=d+parseInt(e.length,10),n>a&&(n=a,this.log(`End range automatically set to the max value of ${a}`)),d<0||n-d<0||d>a||n>a?(s=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:s}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return Or.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",s=e.splitText(r),a=s.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=s.textContent,s.parentNode.replaceChild(l,s),a}wrapRangeInMappedTextNode(e,r,i,n,s){e.nodes.every((a,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(a.node))return!1;let p=r-a.start,m=(i>a.end?a.end:i)-a.start,f=e.value.substr(0,a.start),g=e.value.substr(m+a.start);if(a.node=this.wrapRangeInTextNode(a.node,p,m),e.value=f+g,e.nodes.forEach((S,w)=>{w>=l&&(e.nodes[w].start>0&&w!==l&&(e.nodes[w].start-=m),e.nodes[w].end-=m)}),i-=m,s(a.node.previousSibling,a.start),i>a.end)r=a.end;else return!1}return!0})}wrapMatches(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[a]!=="";){if(!i(p[a],d))continue;let m=p.index;if(a!==0)for(let f=1;f<a;f++)m+=p[f].length;d=this.wrapRangeInTextNode(d,m,m+p[a].length),n(d.previousSibling),e.lastIndex=0}}),s()})}wrapMatchesAcrossElements(e,r,i,n,s){let a=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[a]!=="";){let p=d.index;if(a!==0)for(let f=1;f<a;f++)p+=d[f].length;let m=p+d[a].length;this.wrapRangeInMappedTextNode(l,p,m,f=>i(d[a],f),(f,g)=>{e.lastIndex=g,n(f)})}s()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(s=>{let a=s.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:f}=this.checkWhitespaceRanges(l,a,s.value);f&&this.wrapRangeInMappedTextNode(s,p,m,g=>r(g,l,s.value.substring(p,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",s=a=>{i++,this.opt.each(a)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(a,l)=>this.opt.filter(l,a,i),s,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:s,length:a}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,S)=>this.opt.filter(S,p,i,f),g=>{f++,i++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(p),s[a-1]===p?this.opt.done(i):d(s[s.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),a===0?this.opt.done(i):d(s[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(s,a,l,d)=>this.opt.filter(s,a,l,d),(s,a)=>{i++,this.opt.each(s,a)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Or.matches(i,r),s=this.matchesExclude(i);return!n||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ys(t){let e=new Zo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var Jh=Ys,Ud=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),em=E`
|
|
5
5
|
.highlight-html-match {
|
|
6
|
-
background: ${
|
|
6
|
+
background: ${Ud};
|
|
7
7
|
}
|
|
8
|
-
`;function
|
|
8
|
+
`;function Qs(t,e,r){var i,n;let s=t.getAttribute("data-highlight-html-query");if((s??"")!==(e??"")){let a=new Jh(t);if(a.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),a.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>a.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var ea={};K(ea,{noTextInputDefaultClearButton:()=>Ar,noTextSelect:()=>wr,safariEllipsisFix:()=>Js,wordWrap:()=>Yo});var wr=E`
|
|
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("--ftds-con
|
|
|
14
14
|
-ms-user-select: none;
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Yo=E`
|
|
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("--ftds-con
|
|
|
26
26
|
-webkit-hyphens: auto;
|
|
27
27
|
hyphens: auto
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,Js=E`
|
|
30
30
|
.ft-safari-ellipsis-fix {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
|
|
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
width: 0;
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,Ar=E`
|
|
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 Vd={};var ea={};q(ea,{ParametrizedLabelResolver:()=>Jt});var Jt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let s=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(s,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(s,a)=>t.formatValue(i,a))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var va={};q(va,{FtCommandQueue:()=>Xo,FtLitElementRedux:()=>Ut,FtReduxStore:()=>rr,FtStateManager:()=>ho,ReduxWatcher:()=>ai,clearAllStores:()=>tg,isFtReduxStore:()=>uo,redux:()=>mt,reduxEventListener:()=>sm,reduxReactive:()=>nm,watch:()=>rg,withRedux:()=>Hd});var nm=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},mt=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:He,attribute:!1,...e};h(s)(r,i);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},sm=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Xo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function uo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jo=Symbol("internalReduxEventsUnsubscribers"),er=Symbol("internalStoresUnsubscribers"),_r=Symbol("internalStores"),Hd=Oe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(l=>a.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_r].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[_r].get(a)}addStore(a,l){var d;l=(d=l??a.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[_r].set(l,a),this.subscribeToStore(l,a),this.updateFromStores()}removeStore(a){let l=typeof a=="string"?a:a.name;this.unsubscribeFromStore(l),this[_r].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_r].forEach((a,l)=>this.subscribeToStore(l,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(a.store);p&&(a.store?this[er].has(a.store):this[er].size>0)&&(this[l]=a.selector(p.getState(),this))}})}subscribeToStore(a,l){var d,p;this[er].set(a,l.subscribe(()=>this.updateFromStores())),this[Jo].set(a,[]),uo(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,f)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(f)&&console.warn("Element",this,"is subscribed to deprecated key",f,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((m,f)=>{if(typeof this[f]=="function"&&(!m.store||l.name===m.store)){let g=v=>this[f](v);l.addEventListener(m.eventName,g),this[Jo].get(a).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(a)}unsubscribeFromStores(){this[er].forEach((a,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(a){var l;this[er].has(a)&&this[er].get(a)(),this[er].delete(a),(l=this[Jo].get(a))===null||l===void 0||l.forEach(d=>d()),this[Jo].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=er,r=_r,i=Jo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ut=class extends Hd(D){};function Ie(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var am=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wd=am,ta=()=>Math.random().toString(36).substring(7).split("").join("."),lm={INIT:`@@redux/INIT${ta()}`,REPLACE:`@@redux/REPLACE${ta()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ta()}`},Gi=lm;function ji(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function ra(t,e,r){if(typeof t!="function")throw new Error(Ie(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ie(1));return r(ra)(t,e)}let i=t,n=e,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((R,N)=>{a.set(N,R)}))}function m(){if(d)throw new Error(Ie(3));return n}function f(R){if(typeof R!="function")throw new Error(Ie(4));if(d)throw new Error(Ie(5));let N=!0;p();let M=l++;return a.set(M,R),function(){if(N){if(d)throw new Error(Ie(6));N=!1,p(),a.delete(M),s=null}}}function g(R){if(!ji(R))throw new Error(Ie(7));if(typeof R.type>"u")throw new Error(Ie(8));if(typeof R.type!="string")throw new Error(Ie(17));if(d)throw new Error(Ie(9));try{d=!0,n=i(n,R)}finally{d=!1}return(s=a).forEach(M=>{M()}),R}function v(R){if(typeof R!="function")throw new Error(Ie(10));i=R,g({type:Gi.REPLACE})}function E(){let R=f;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(Ie(11));function M(){let b=N;b.next&&b.next(m())}return M(),{unsubscribe:R(M)}},[Wd](){return this}}}return g({type:Gi.INIT}),{dispatch:g,subscribe:f,getState:m,replaceReducer:v,[Wd]:E}}function cm(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Gi.INIT})>"u")throw new Error(Ie(12));if(typeof r(void 0,{type:Gi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function oa(t){let e=Object.keys(t),r={};for(let a=0;a<e.length;a++){let l=e[a];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,s;try{cm(r)}catch(a){s=a}return function(l={},d){if(s)throw s;let p=!1,m={};for(let f=0;f<i.length;f++){let g=i[f],v=r[g],E=l[g],T=v(E,d);if(typeof T>"u"){let R=d&&d.type;throw new Error(Ie(14))}m[g]=T,p=p||T!==E}return p=p||i.length!==Object.keys(l).length,p?m:l}}function ei(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Gd(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Ie(15))},a={getState:n.getState,dispatch:(d,...p)=>s(d,...p)},l=t.map(d=>d(a));return s=ei(...l)(n.dispatch),{...n,dispatch:s}}}function jd(t){return ji(t)&&"type"in t&&typeof t.type=="string"}var tu=Symbol.for("immer-nothing"),Kd=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function gt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Qe=Object,fo=Qe.getPrototypeOf,Yi="constructor",rn="prototype",aa="configurable",Qi="enumerable",qi="writable",ti="value",_t=t=>!!t&&!!t[De];function Xe(t){return t?ru(t)||nn(t)||!!t[Kd]||!!t[Yi]?.[Kd]||sn(t)||ni(t):!1}var dm=Qe[rn][Yi].toString(),qd=new WeakMap;function ru(t){if(!t||!ma(t))return!1;let e=fo(t);if(e===null||e===Qe[rn])return!0;let r=Qe.hasOwnProperty.call(e,Yi)&&e[Yi];if(r===Object)return!0;if(!po(r))return!1;let i=qd.get(r);return i===void 0&&(i=Function.toString.call(r),qd.set(r,i)),i===dm}function on(t,e,r=!0){ii(t)===0?(r?Reflect.ownKeys(t):Qe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function ii(t){let e=t[De];return e?e.type_:nn(t)?1:sn(t)?2:ni(t)?3:0}var ia=(t,e,r=ii(t))=>r===2?t.has(e):Qe[rn].hasOwnProperty.call(t,e),la=(t,e,r=ii(t))=>r===2?t.get(e):t[e],Xi=(t,e,r,i=ii(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function um(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var nn=Array.isArray,sn=t=>t instanceof Map,ni=t=>t instanceof Set,ma=t=>typeof t=="object",po=t=>typeof t=="function",na=t=>typeof t=="boolean";function pm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var zt=t=>t.copy_||t.base_;var ga=t=>t.modified_?t.copy_:t.base_;function ca(t,e){if(sn(t))return new Map(t);if(ni(t))return new Set(t);if(nn(t))return Array[rn].slice.call(t);let r=ru(t);if(e===!0||e==="class_only"&&!r){let i=Qe.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let a=n[s],l=i[a];l[qi]===!1&&(l[qi]=!0,l[aa]=!0),(l.get||l.set)&&(i[a]={[aa]:!0,[qi]:!0,[Qi]:l[Qi],[ti]:t[a]})}return Qe.create(fo(t),i)}else{let i=fo(t);if(i!==null&&r)return{...t};let n=Qe.create(i);return Qe.assign(n,t)}}function an(t,e=!1){return ln(t)||_t(t)||!Xe(t)||(ii(t)>1&&Qe.defineProperties(t,{set:Ki,add:Ki,clear:Ki,delete:Ki}),Qe.freeze(t),e&&on(t,(r,i)=>{an(i,!0)},!1)),t}function fm(){gt(2)}var Ki={[ti]:fm};function ln(t){return t===null||!ma(t)?!0:Qe.isFrozen(t)}var Ji="MapSet",da="Patches",Zd="ArrayMethods",ou={};function kr(t){let e=ou[t];return e||gt(0,t),e}var Yd=t=>!!ou[t];var ri,iu=()=>ri,hm=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Yd(Ji)?kr(Ji):void 0,arrayMethodsPlugin_:Yd(Zd)?kr(Zd):void 0});function Qd(t,e){e&&(t.patchPlugin_=kr(da),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ua(t){pa(t),t.drafts_.forEach(mm),t.drafts_=null}function pa(t){t===ri&&(ri=t.parent_)}var Xd=t=>ri=hm(ri,t);function mm(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Jd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(ua(e),gt(4)),Xe(t)&&(t=eu(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=eu(e,r);return gm(e,t,!0),ua(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==tu?t:void 0}function eu(t,e){if(ln(e))return e;let r=e[De];if(!r)return en(e,t.handledSet_,t);if(!cn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);au(r,t)}return r.copy_}function gm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&an(e,r)}function nu(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var cn=(t,e)=>t.scope_===e,ym=[];function su(t,e,r,i){let n=zt(t),s=t.type_;if(i!==void 0&&la(n,i,s)===e){Xi(n,i,r,s);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;on(n,(d,p)=>{if(_t(p)){let m=l.get(p)||[];m.push(d),l.set(p,m)}})}let a=t.draftLocations_.get(e)??ym;for(let l of a)Xi(n,l,r,s)}function bm(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!cn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let a=ga(s);su(t,s.draft_??s,a,r),au(s,n)})}function au(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}nu(t)}}function xm(t,e,r){let{scope_:i}=t;if(_t(r)){let n=r[De];cn(n,i)&&n.callbacks_.push(function(){Zi(t);let a=ga(n);su(t,r,a,e)})}else Xe(r)&&t.callbacks_.push(function(){let s=zt(t);t.type_===3?s.has(r)&&en(r,i.handledSet_,i):la(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&en(la(t.copy_,e,t.type_),i.handledSet_,i)})}function en(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_t(t)||e.has(t)||!Xe(t)||ln(t)||(e.add(t),on(t,(i,n)=>{if(_t(n)){let s=n[De];if(cn(s,r)){let a=ga(s);Xi(t,i,a,t.type_),nu(s)}}else Xe(n)&&en(n,e,r)})),t}function vm(t,e){let r=nn(t),i={type_:r?1:0,scope_:e?e.scope_:iu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=tn;r&&(n=[i],s=oi);let{revoke:a,proxy:l}=Proxy.revocable(n,s);return i.draft_=l,i.revoke_=a,[l,i]}var tn={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=zt(t);if(!ia(n,e,t.type_))return Cm(t,n,e);let s=n[e];if(t.finalized_||!Xe(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&pm(e))return s;if(s===sa(t.base_,e)||Sm(t,e,s)){Zi(t);let a=t.type_===1?+e:e,l=ha(t.scope_,s,t,a);return t.copy_[a]=l}return s},has(t,e){return e in zt(t)},ownKeys(t){return Reflect.ownKeys(zt(t))},set(t,e,r){let i=lu(zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=sa(zt(t),e),s=n?.[De];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(um(r,n)&&(r!==void 0||ia(t.base_,e,t.type_)))return!0;Zi(t),fa(t)}return t.copy_[e]===r&&(r!==void 0||ia(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),xm(t,e,r)),!0},deleteProperty(t,e){return Zi(t),sa(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),fa(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[qi]:!0,[aa]:t.type_!==1||e!=="length",[Qi]:i[Qi],[ti]:r[e]}},defineProperty(){gt(11)},getPrototypeOf(t){return fo(t.base_)},setPrototypeOf(){gt(12)}},oi={};for(let t in tn){let e=tn[t];oi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}oi.deleteProperty=function(t,e){return oi.set.call(this,t,e,void 0)};oi.set=function(t,e,r){return tn.set.call(this,t[0],e,r,t[0])};function sa(t,e){let r=t[De];return(r?zt(r):t)[e]}function Sm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Xe(r)||r[De]?!1:t.baseRefs_.has(r)}function Cm(t,e,r){let i=lu(e,r);return i?ti in i?i[ti]:i.get?.call(t.draft_):void 0}function lu(t,e){if(!(e in t))return;let r=fo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=fo(r)}}function fa(t){t.modified_||(t.modified_=!0,t.parent_&&fa(t.parent_))}function Zi(t){t.copy_||(t.assigned_=new Map,t.copy_=ca(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Em=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(po(e)&&!po(r)){let s=r;r=e;let a=this;return function(d=s,...p){return a.produce(d,m=>r.call(this,m,...p))}}po(r)||gt(6),i!==void 0&&!po(i)&>(7);let n;if(Xe(e)){let s=Xd(this),a=ha(s,e,void 0),l=!0;try{n=r(a),l=!1}finally{l?ua(s):pa(s)}return Qd(s,i),Jd(n,s)}else if(!e||!ma(e)){if(n=r(e),n===void 0&&(n=e),n===tu&&(n=void 0),this.autoFreeze_&&an(n,!0),i){let s=[],a=[];kr(da).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:a}),i(s,a)}return n}else gt(1,e)},this.produceWithPatches=(e,r)=>{if(po(e))return(a,...l)=>this.produceWithPatches(a,d=>e(d,...l));let i,n;return[this.produce(e,r,(a,l)=>{i=a,n=l}),i,n]},na(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),na(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),na(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Xe(t)||gt(8),_t(t)&&(t=cu(t));let e=Xd(this),r=ha(e,t,void 0);return r[De].isManual_=!0,pa(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&>(9);let{scope_:i}=r;return Qd(i,e),Jd(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=kr(da).applyPatches_;return _t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ha(t,e,r,i){let[n,s]=sn(e)?kr(Ji).proxyMap_(e,r):ni(e)?kr(Ji).proxySet_(e,r):vm(e,r);return(r?.scope_??iu()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?bm(r,s,i):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),n}function cu(t){return _t(t)||gt(10,t),du(t)}function du(t){if(!Xe(t)||ln(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ca(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ca(t,!0);let n=r;return ni(r)&&(r=new Set),on(n,(s,a)=>{Xi(r,s,du(a))},i),e&&(e.finalized_=!1),r}var Om=globalThis.Iterator,YS=typeof Om?.from=="function";var wm=new Em,ya=wm.produce;function uu(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var pu=uu(),fu=uu;var Am=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ei:ei.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Rm=t=>t&&typeof t.match=="function";function tr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(kt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>jd(i)&&i.type===t,r}var bu=class si extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,si.prototype)}static get[Symbol.species](){return si}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new si(...e[0].concat(this)):new si(...e.concat(this))}};function hu(t){return Xe(t)?ya(t,()=>{}):t}function dn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function _m(t){return typeof t=="boolean"}var km=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},a=new bu;return r&&(_m(r)?a.push(pu):a.push(fu(r.extraArgument))),a},Lm="RTK_autoBatch";var mu=t=>e=>{setTimeout(e,t)},Im=(t,e)=>r=>{let i=!1,n,s,a=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(a),s=setTimeout(a,e)},Tm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,a=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Im(window.requestAnimationFrame,100):mu(10):t.type==="callback"?t.queueNotification:mu(t.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let f=()=>n&&m(),g=i.subscribe(f);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[Lm],s=!n,s&&(a||(a=!0,d(p))),i.dispatch(m)}finally{n=!0}}})},Pm=t=>function(r){let{autoBatch:i=!0}=r??{},n=new bu(t);return i&&n.push(Tm(typeof i=="object"?i:void 0)),n};function xu(t){let e=km(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(ji(r))d=oa(r);else throw new Error(kt(1));let p;typeof i=="function"?p=i(e):p=e();let m=ei;n&&(m=Am({trace:!1,...typeof n=="object"&&n}));let f=Gd(...p),g=Pm(f),v=typeof l=="function"?l(g):g(),E=m(...v);return ra(d,a,E)}function vu(t){let e={},r=[],i,n={addCase(s,a){let l=typeof s=="string"?s:s.type;if(!l)throw new Error(kt(28));if(l in e)throw new Error(kt(29));return e[l]=a,n},addAsyncThunk(s,a){return a.pending&&(e[s.pending.type]=a.pending),a.rejected&&(e[s.rejected.type]=a.rejected),a.fulfilled&&(e[s.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:s.settled,reducer:a.settled}),n},addMatcher(s,a){return r.push({matcher:s,reducer:a}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function Nm(t){return typeof t=="function"}function Dm(t,e){let[r,i,n]=vu(e),s;if(Nm(t))s=()=>hu(t());else{let l=hu(t);s=()=>l}function a(l=s(),d){let p=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return p.filter(m=>!!m).length===0&&(p=[n]),p.reduce((m,f)=>{if(f)if(_t(m)){let g=f(m,d);return g===void 0?m:g}else{if(Xe(m))return ya(m,g=>f(g,d));{let g=f(m,d);if(g===void 0){if(m===null)return m;throw new Error(kt(9))}return g}}return m},l)}return a.getInitialState=s,a}var Fm=(t,e)=>Rm(t)?t.match(e):t(e);function $m(...t){return e=>t.some(r=>Fm(r,e))}var Mm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bm=(t=21)=>{let e="",r=t;for(;r--;)e+=Mm[Math.random()*64|0];return e},Um=["name","message","stack","code"],ba=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},gu=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},zm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Um)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},yu="External signal was aborted",Vm=(()=>{function t(e,r,i){let n=tr(e+"/fulfilled",(d,p,m,f)=>({payload:d,meta:{...f||{},arg:m,requestId:p,requestStatus:"fulfilled"}})),s=tr(e+"/pending",(d,p,m)=>({payload:void 0,meta:{...m||{},arg:p,requestId:d,requestStatus:"pending"}})),a=tr(e+"/rejected",(d,p,m,f,g)=>({payload:f,error:(i&&i.serializeError||zm)(d||"Rejected"),meta:{...g||{},arg:m,requestId:p,rejectedWithValue:f!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(m,f,g)=>{let v=i?.idGenerator?i.idGenerator(d):Bm(),E=new AbortController,T,R;function N(x){R=x,E.abort()}p&&(p.aborted?N(yu):p.addEventListener("abort",()=>N(yu),{once:!0}));let M=(async function(){let x;try{let b=i?.condition?.(d,{getState:f,extra:g});if(Wm(b)&&(b=await b),b===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(E.signal.aborted)throw{name:"AbortError",message:R||"Aborted"};let C=new Promise((I,V)=>{T=()=>{V({name:"AbortError",message:R||"Aborted"})},E.signal.addEventListener("abort",T,{once:!0})});m(s(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:f,extra:g}))),x=await Promise.race([C,Promise.resolve(r(d,{dispatch:m,getState:f,extra:g,requestId:v,signal:E.signal,abort:N,rejectWithValue:((I,V)=>new ba(I,V)),fulfillWithValue:((I,V)=>new gu(I,V))})).then(I=>{if(I instanceof ba)throw I;return I instanceof gu?n(I.payload,v,d,I.meta):n(I,v,d)})])}catch(b){x=b instanceof ba?a(null,v,d,b.payload,b.meta):a(b,v,d)}finally{T&&E.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&a.match(x)&&x.meta.condition||m(x),x})();return Object.assign(M,{abort:N,requestId:v,arg:d,unwrap(){return M.then(Hm)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:n,settled:$m(a,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Hm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Su=Symbol.for("rtk-slice-createasyncthunk"),iC={[Su]:Vm};function Gm(t,e){return`${t}/${e}`}function jm({creators:t}={}){let e=t?.asyncThunk?.[Su];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(kt(11));typeof process<"u";let a=(typeof i.reducers=="function"?i.reducers(qm()):i.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(x,b){let C=typeof x=="string"?x:x.type;if(!C)throw new Error(kt(12));if(C in d.sliceCaseReducersByType)throw new Error(kt(13));return d.sliceCaseReducersByType[C]=b,p},addMatcher(x,b){return d.sliceMatchers.push({matcher:x,reducer:b}),p},exposeAction(x,b){return d.actionCreators[x]=b,p},exposeCaseReducer(x,b){return d.sliceCaseReducersByName[x]=b,p}};l.forEach(x=>{let b=a[x],C={reducerName:x,type:Gm(n,x),createNotation:typeof i.reducers=="function"};Ym(b)?Xm(C,b,p,e):Zm(C,b,p)});function m(){let[x={},b=[],C=void 0]=typeof i.extraReducers=="function"?vu(i.extraReducers):[i.extraReducers],I={...x,...d.sliceCaseReducersByType};return Dm(i.initialState,V=>{for(let ee in I)V.addCase(ee,I[ee]);for(let ee of d.sliceMatchers)V.addMatcher(ee.matcher,ee.reducer);for(let ee of b)V.addMatcher(ee.matcher,ee.reducer);C&&V.addDefaultCase(C)})}let f=x=>x,g=new Map,v=new WeakMap,E;function T(x,b){return E||(E=m()),E(x,b)}function R(){return E||(E=m()),E.getInitialState()}function N(x,b=!1){function C(V){let ee=V[x];return typeof ee>"u"&&b&&(ee=dn(v,C,R)),ee}function I(V=f){return dn(dn(g,b,()=>new WeakMap),V,()=>{let ee={};for(let[pe,$]of Object.entries(i.selectors??{}))ee[pe]=Km($,V,()=>dn(v,V,R),b);return ee})}return{reducerPath:x,getSelectors:I,get selectors(){return I(C)},selectSlice:C}}let M={name:n,reducer:T,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:R,...N(s),injectInto(x,{reducerPath:b,...C}={}){let I=b??s;return x.inject({reducerPath:I,reducer:T},C),{...M,...N(I,!0)}}};return M}}function Km(t,e,r,i){function n(s,...a){let l=e(s);return typeof l>"u"&&i&&(l=r()),t(l,...a)}return n.unwrapped=t,n}var Cu=jm();function qm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Zm({type:t,reducerName:e,createNotation:r},i,n){let s,a;if("reducer"in i){if(r&&!Qm(i))throw new Error(kt(17));s=i.reducer,a=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?tr(t,a):tr(t))}function Ym(t){return t._reducerDefinitionType==="asyncThunk"}function Qm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Xm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(kt(18));let{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:m}=r,f=n(t,s,m);i.exposeAction(e,f),a&&i.addCase(f.fulfilled,a),l&&i.addCase(f.pending,l),d&&i.addCase(f.rejected,d),p&&i.addMatcher(f.settled,p),i.exposeCaseReducer(e,{fulfilled:a||un,pending:l||un,rejected:d||un,settled:p||un})}function un(){}var Eu="listener",Ou="completed",wu="cancelled",nC=`task-${wu}`,sC=`task-${Ou}`,aC=`${Eu}-${wu}`,lC=`${Eu}-${Ou}`;var{assign:Au}=Object;var xa="listenerMiddleware";var Jm=Au(tr(`${xa}/add`),{withTypes:()=>Jm}),cC=tr(`${xa}/removeAll`),eg=Au(tr(`${xa}/remove`),{withTypes:()=>eg});function kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var rr=class t extends $t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(uo(s))return s;if(n==null)return;let a=Cu({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=xu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=nt(a.getInitialState());for(let f of p.keeping)m[f]=(d??m)[f];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return a.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(a,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Xo,this.injectInto=(a,l)=>this.reduxSlice.injectInto(a,l),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let s=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,l,d)=>{let p=l,m=a[p];return m?(...f)=>{let g=m(...f.map(s));return this.reduxStore.dispatch(g),g}:f=>{let g=p,v=this.getState()[g];he(v,f)||this.setState({[g]:s(f)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function tg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))uo(e)&&e.clear()}var ai=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function rg(t,e,r){return new ai(t,e,r).watch()}var ho=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ea={};q(Ea,{scrollHelper:()=>og});var Sa,pn=new Map,Ca=class{lock(e,r){if(r){let i=pn.get(r);if(i==null||i===e)return pn.set(r,e),r}}release(e,r){r&&pn.get(r)===e&&pn.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let s of Zt(e)){let a=s,l=this.elementCanScroll(a);if(l&&a.clientHeight&&a.clientHeight<a.scrollHeight){i=a;break}else l&&n==null&&(n=a)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let s=0;for(;r&&r.offsetParent!==e.offsetParent;)s+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return s+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),s=n-i.clientHeight+e.clientHeight,a=n,l=qt(0,(a-i.scrollTop)/(a-s),1),d=this.computeTopOffsetRatio(r?.position,l)*(s-a)+a;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Sa=window.FluidTopicsScrollHelper)!==null&&Sa!==void 0?Sa:new Ca;var og=window.FluidTopicsScrollHelper;var Aa={};q(Aa,{toFtFormComponent:()=>wa});var Oa=Symbol("elementInternals"),wa=Oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Oa].form}constructor(...i){super(i),this[Oa]=this.attachInternals()}setFormValue(i){this[Oa].setFormValue(i)}}return e});var Ra={};q(Ra,{DateFormatter:()=>Lr});var Lr=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let a=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ka={};q(ka,{ALL_KEYS_VALUE:()=>_a,SameWindowStorageEvent:()=>mo});var _a="__all__",mo=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==_a}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new mo(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new mo(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new mo(_a))}});var Ia={};q(Ia,{FocusMainContentEvent:()=>La});var La=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ru={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function ig(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function ng(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",ig);document.addEventListener("click",ng);var go=O`
|
|
47
|
+
`;var zd={};var ta={};K(ta,{ParametrizedLabelResolver:()=>er});var er=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let s=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(s,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(s,a)=>t.formatValue(i,a))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var va={};K(va,{FtCommandQueue:()=>Qo,FtLitElementRedux:()=>Ut,FtReduxStore:()=>rr,FtStateManager:()=>fo,ReduxWatcher:()=>ai,clearAllStores:()=>Vm,isFtReduxStore:()=>co,redux:()=>mt,reduxEventListener:()=>rm,reduxReactive:()=>tm,watch:()=>Hm,withRedux:()=>Vd});var tm=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},mt=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:He,attribute:!1,...e};h(s)(r,i);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},rm=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Qo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function co(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xo=Symbol("internalReduxEventsUnsubscribers"),tr=Symbol("internalStoresUnsubscribers"),Rr=Symbol("internalStores"),Vd=Oe(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(l=>a.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Rr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rr].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[Rr].get(a)}addStore(a,l){var d;l=(d=l??a.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Rr].set(l,a),this.subscribeToStore(l,a),this.updateFromStores()}removeStore(a){let l=typeof a=="string"?a:a.name;this.unsubscribeFromStore(l),this[Rr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Rr].forEach((a,l)=>this.subscribeToStore(l,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(a.store);p&&(a.store?this[tr].has(a.store):this[tr].size>0)&&(this[l]=a.selector(p.getState(),this))}})}subscribeToStore(a,l){var d,p;this[tr].set(a,l.subscribe(()=>this.updateFromStores())),this[Xo].set(a,[]),co(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((m,f)=>{this.getStore(m.store)===l&&l.deprecatedKeys.includes(f)&&console.warn("Element",this,"is subscribed to deprecated key",f,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((m,f)=>{if(typeof this[f]=="function"&&(!m.store||l.name===m.store)){let g=S=>this[f](S);l.addEventListener(m.eventName,g),this[Xo].get(a).push(()=>l.removeEventListener(m.eventName,g))}}))),this.onStoreAvailable(a)}unsubscribeFromStores(){this[tr].forEach((a,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(a){var l;this[tr].has(a)&&this[tr].get(a)(),this[tr].delete(a),(l=this[Xo].get(a))===null||l===void 0||l.forEach(d=>d()),this[Xo].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=tr,r=Rr,i=Xo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ut=class extends Vd(P){};function Ie(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var om=typeof Symbol=="function"&&Symbol.observable||"@@observable",Hd=om,ra=()=>Math.random().toString(36).substring(7).split("").join("."),im={INIT:`@@redux/INIT${ra()}`,REPLACE:`@@redux/REPLACE${ra()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ra()}`},ji=im;function Ki(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function oa(t,e,r){if(typeof t!="function")throw new Error(Ie(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ie(1));return r(oa)(t,e)}let i=t,n=e,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((k,D)=>{a.set(D,k)}))}function m(){if(d)throw new Error(Ie(3));return n}function f(k){if(typeof k!="function")throw new Error(Ie(4));if(d)throw new Error(Ie(5));let D=!0;p();let z=l++;return a.set(z,k),function(){if(D){if(d)throw new Error(Ie(6));D=!1,p(),a.delete(z),s=null}}}function g(k){if(!Ki(k))throw new Error(Ie(7));if(typeof k.type>"u")throw new Error(Ie(8));if(typeof k.type!="string")throw new Error(Ie(17));if(d)throw new Error(Ie(9));try{d=!0,n=i(n,k)}finally{d=!1}return(s=a).forEach(z=>{z()}),k}function S(k){if(typeof k!="function")throw new Error(Ie(10));i=k,g({type:ji.REPLACE})}function w(){let k=f;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(Ie(11));function z(){let x=D;x.next&&x.next(m())}return z(),{unsubscribe:k(z)}},[Hd](){return this}}}return g({type:ji.INIT}),{dispatch:g,subscribe:f,getState:m,replaceReducer:S,[Hd]:w}}function nm(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:ji.INIT})>"u")throw new Error(Ie(12));if(typeof r(void 0,{type:ji.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function ia(t){let e=Object.keys(t),r={};for(let a=0;a<e.length;a++){let l=e[a];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,s;try{nm(r)}catch(a){s=a}return function(l={},d){if(s)throw s;let p=!1,m={};for(let f=0;f<i.length;f++){let g=i[f],S=r[g],w=l[g],I=S(w,d);if(typeof I>"u"){let k=d&&d.type;throw new Error(Ie(14))}m[g]=I,p=p||I!==w}return p=p||i.length!==Object.keys(l).length,p?m:l}}function Jo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Wd(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Ie(15))},a={getState:n.getState,dispatch:(d,...p)=>s(d,...p)},l=t.map(d=>d(a));return s=Jo(...l)(n.dispatch),{...n,dispatch:s}}}function Gd(t){return Ki(t)&&"type"in t&&typeof t.type=="string"}var eu=Symbol.for("immer-nothing"),jd=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function gt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Qe=Object,po=Qe.getPrototypeOf,Qi="constructor",on="prototype",la="configurable",Xi="enumerable",Zi="writable",ei="value",_t=t=>!!t&&!!t[De];function Xe(t){return t?tu(t)||sn(t)||!!t[jd]||!!t[Qi]?.[jd]||an(t)||ii(t):!1}var sm=Qe[on][Qi].toString(),Kd=new WeakMap;function tu(t){if(!t||!ga(t))return!1;let e=po(t);if(e===null||e===Qe[on])return!0;let r=Qe.hasOwnProperty.call(e,Qi)&&e[Qi];if(r===Object)return!0;if(!uo(r))return!1;let i=Kd.get(r);return i===void 0&&(i=Function.toString.call(r),Kd.set(r,i)),i===sm}function nn(t,e,r=!0){oi(t)===0?(r?Reflect.ownKeys(t):Qe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function oi(t){let e=t[De];return e?e.type_:sn(t)?1:an(t)?2:ii(t)?3:0}var na=(t,e,r=oi(t))=>r===2?t.has(e):Qe[on].hasOwnProperty.call(t,e),ca=(t,e,r=oi(t))=>r===2?t.get(e):t[e],Ji=(t,e,r,i=oi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function am(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var sn=Array.isArray,an=t=>t instanceof Map,ii=t=>t instanceof Set,ga=t=>typeof t=="object",uo=t=>typeof t=="function",sa=t=>typeof t=="boolean";function lm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var zt=t=>t.copy_||t.base_;var ya=t=>t.modified_?t.copy_:t.base_;function da(t,e){if(an(t))return new Map(t);if(ii(t))return new Set(t);if(sn(t))return Array[on].slice.call(t);let r=tu(t);if(e===!0||e==="class_only"&&!r){let i=Qe.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let a=n[s],l=i[a];l[Zi]===!1&&(l[Zi]=!0,l[la]=!0),(l.get||l.set)&&(i[a]={[la]:!0,[Zi]:!0,[Xi]:l[Xi],[ei]:t[a]})}return Qe.create(po(t),i)}else{let i=po(t);if(i!==null&&r)return{...t};let n=Qe.create(i);return Qe.assign(n,t)}}function ln(t,e=!1){return cn(t)||_t(t)||!Xe(t)||(oi(t)>1&&Qe.defineProperties(t,{set:qi,add:qi,clear:qi,delete:qi}),Qe.freeze(t),e&&nn(t,(r,i)=>{ln(i,!0)},!1)),t}function cm(){gt(2)}var qi={[ei]:cm};function cn(t){return t===null||!ga(t)?!0:Qe.isFrozen(t)}var en="MapSet",ua="Patches",qd="ArrayMethods",ru={};function _r(t){let e=ru[t];return e||gt(0,t),e}var Zd=t=>!!ru[t];var ti,ou=()=>ti,dm=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Zd(en)?_r(en):void 0,arrayMethodsPlugin_:Zd(qd)?_r(qd):void 0});function Yd(t,e){e&&(t.patchPlugin_=_r(ua),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function pa(t){fa(t),t.drafts_.forEach(um),t.drafts_=null}function fa(t){t===ti&&(ti=t.parent_)}var Qd=t=>ti=dm(ti,t);function um(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Xd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(pa(e),gt(4)),Xe(t)&&(t=Jd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Jd(e,r);return pm(e,t,!0),pa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==eu?t:void 0}function Jd(t,e){if(cn(e))return e;let r=e[De];if(!r)return tn(e,t.handledSet_,t);if(!dn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);su(r,t)}return r.copy_}function pm(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ln(e,r)}function iu(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var dn=(t,e)=>t.scope_===e,fm=[];function nu(t,e,r,i){let n=zt(t),s=t.type_;if(i!==void 0&&ca(n,i,s)===e){Ji(n,i,r,s);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;nn(n,(d,p)=>{if(_t(p)){let m=l.get(p)||[];m.push(d),l.set(p,m)}})}let a=t.draftLocations_.get(e)??fm;for(let l of a)Ji(n,l,r,s)}function hm(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!dn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let a=ya(s);nu(t,s.draft_??s,a,r),su(s,n)})}function su(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}iu(t)}}function mm(t,e,r){let{scope_:i}=t;if(_t(r)){let n=r[De];dn(n,i)&&n.callbacks_.push(function(){Yi(t);let a=ya(n);nu(t,r,a,e)})}else Xe(r)&&t.callbacks_.push(function(){let s=zt(t);t.type_===3?s.has(r)&&tn(r,i.handledSet_,i):ca(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&tn(ca(t.copy_,e,t.type_),i.handledSet_,i)})}function tn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||_t(t)||e.has(t)||!Xe(t)||cn(t)||(e.add(t),nn(t,(i,n)=>{if(_t(n)){let s=n[De];if(dn(s,r)){let a=ya(s);Ji(t,i,a,t.type_),iu(s)}}else Xe(n)&&tn(n,e,r)})),t}function gm(t,e){let r=sn(t),i={type_:r?1:0,scope_:e?e.scope_:ou(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=rn;r&&(n=[i],s=ri);let{revoke:a,proxy:l}=Proxy.revocable(n,s);return i.draft_=l,i.revoke_=a,[l,i]}var rn={get(t,e){if(e===De)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=zt(t);if(!na(n,e,t.type_))return bm(t,n,e);let s=n[e];if(t.finalized_||!Xe(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&lm(e))return s;if(s===aa(t.base_,e)||ym(t,e,s)){Yi(t);let a=t.type_===1?+e:e,l=ma(t.scope_,s,t,a);return t.copy_[a]=l}return s},has(t,e){return e in zt(t)},ownKeys(t){return Reflect.ownKeys(zt(t))},set(t,e,r){let i=au(zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=aa(zt(t),e),s=n?.[De];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(am(r,n)&&(r!==void 0||na(t.base_,e,t.type_)))return!0;Yi(t),ha(t)}return t.copy_[e]===r&&(r!==void 0||na(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),mm(t,e,r)),!0},deleteProperty(t,e){return Yi(t),aa(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ha(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Zi]:!0,[la]:t.type_!==1||e!=="length",[Xi]:i[Xi],[ei]:r[e]}},defineProperty(){gt(11)},getPrototypeOf(t){return po(t.base_)},setPrototypeOf(){gt(12)}},ri={};for(let t in rn){let e=rn[t];ri[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ri.deleteProperty=function(t,e){return ri.set.call(this,t,e,void 0)};ri.set=function(t,e,r){return rn.set.call(this,t[0],e,r,t[0])};function aa(t,e){let r=t[De];return(r?zt(r):t)[e]}function ym(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Xe(r)||r[De]?!1:t.baseRefs_.has(r)}function bm(t,e,r){let i=au(e,r);return i?ei in i?i[ei]:i.get?.call(t.draft_):void 0}function au(t,e){if(!(e in t))return;let r=po(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=po(r)}}function ha(t){t.modified_||(t.modified_=!0,t.parent_&&ha(t.parent_))}function Yi(t){t.copy_||(t.assigned_=new Map,t.copy_=da(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var xm=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(uo(e)&&!uo(r)){let s=r;r=e;let a=this;return function(d=s,...p){return a.produce(d,m=>r.call(this,m,...p))}}uo(r)||gt(6),i!==void 0&&!uo(i)&>(7);let n;if(Xe(e)){let s=Qd(this),a=ma(s,e,void 0),l=!0;try{n=r(a),l=!1}finally{l?pa(s):fa(s)}return Yd(s,i),Xd(n,s)}else if(!e||!ga(e)){if(n=r(e),n===void 0&&(n=e),n===eu&&(n=void 0),this.autoFreeze_&&ln(n,!0),i){let s=[],a=[];_r(ua).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:a}),i(s,a)}return n}else gt(1,e)},this.produceWithPatches=(e,r)=>{if(uo(e))return(a,...l)=>this.produceWithPatches(a,d=>e(d,...l));let i,n;return[this.produce(e,r,(a,l)=>{i=a,n=l}),i,n]},sa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),sa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),sa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Xe(t)||gt(8),_t(t)&&(t=lu(t));let e=Qd(this),r=ma(e,t,void 0);return r[De].isManual_=!0,fa(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&>(9);let{scope_:i}=r;return Yd(i,e),Xd(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=_r(ua).applyPatches_;return _t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ma(t,e,r,i){let[n,s]=an(e)?_r(en).proxyMap_(e,r):ii(e)?_r(en).proxySet_(e,r):gm(e,r);return(r?.scope_??ou()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?hm(r,s,i):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),n}function lu(t){return _t(t)||gt(10,t),cu(t)}function cu(t){if(!Xe(t)||cn(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=da(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=da(t,!0);let n=r;return ii(r)&&(r=new Set),nn(n,(s,a)=>{Ji(r,s,cu(a))},i),e&&(e.finalized_=!1),r}var vm=globalThis.Iterator,$S=typeof vm?.from=="function";var Sm=new xm,ba=Sm.produce;function du(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var uu=du(),pu=du;var Cm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jo:Jo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function si(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(kt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>i!=null&&i.type===t&&Gd(i),r}var mu=class ni extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ni.prototype)}static get[Symbol.species](){return ni}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ni(...e[0].concat(this)):new ni(...e.concat(this))}};function fu(t){return Xe(t)?ba(t,()=>{}):t}function un(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Em(t){return typeof t=="boolean"}var Om=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},a=new mu;return r&&(Em(r)?a.push(uu):a.push(pu(r.extraArgument))),a},wm="RTK_autoBatch";var hu=t=>e=>{setTimeout(e,t)},Am=(t,e,r)=>i=>{let n=!1,s,a,l=()=>{n||(n=!0,e?.(s),clearTimeout(a),i())};s=t(l),a=setTimeout(l,r)},Rm=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,a=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Am(window.requestAnimationFrame,window.cancelAnimationFrame,100):hu(10):t.type==="callback"?t.queueNotification:hu(t.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let f=()=>n&&m(),g=i.subscribe(f);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[wm],s=!n,s&&(a||(a=!0,d(p))),i.dispatch(m)}finally{n=!0}}})},_m=t=>function(r){let{autoBatch:i=!0}=r??{},n=new mu(t);return i&&n.push(Rm(typeof i=="object"?i:void 0)),n};function gu(t){let e=Om(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(Ki(r))d=ia(r);else throw new Error(kt(1));let p;typeof i=="function"?p=i(e):p=e();let m=Jo;n&&(m=Cm({trace:!1,...typeof n=="object"&&n}));let f=Wd(...p),g=_m(f),S=typeof l=="function"?l(g):g(),w=m(...S);return oa(d,a,w)}function yu(t){let e={},r=[],i,n={addCase(s,a){let l=typeof s=="string"?s:s.type;if(!l)throw new Error(kt(28));if(l in e)throw new Error(kt(29));return e[l]=a,n},addAsyncThunk(s,a){return a.pending&&(e[s.pending.type]=a.pending),a.rejected&&(e[s.rejected.type]=a.rejected),a.fulfilled&&(e[s.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:s.settled,reducer:a.settled}),n},addMatcher(s,a){return r.push({matcher:s,reducer:a}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function km(t){return typeof t=="function"}function Lm(t,e){let[r,i,n]=yu(e),s;if(km(t))s=()=>fu(t());else{let d=fu(t);s=()=>d}function a(d,p,m){if(_t(d)){let f=p(d,m);return f===void 0?d:f}else{if(Xe(d))return ba(d,f=>p(f,m));{let f=p(d,m);if(f===void 0){if(d===null)return d;throw new Error(kt(9))}return f}}}function l(d=s(),p){let m=r[p.type],f;for(let{matcher:g,reducer:S}of i)g(p)&&S&&(f??=[]).push(S);if(!m&&!f)return n?a(d,n,p):d;if(m&&(d=a(d,m,p)),f)for(let g of f)d=a(d,g,p);return d}return l.getInitialState=s,l}var Im=Symbol.for("rtk-slice-createasyncthunk");function Tm(t,e){return`${t}/${e}`}function Pm({creators:t}={}){let e=t?.asyncThunk?.[Im];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(kt(11));typeof process<"u";let a=(typeof i.reducers=="function"?i.reducers(Dm()):i.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(b,x){let C=typeof b=="string"?b:b.type;if(!C)throw new Error(kt(12));if(C in d.sliceCaseReducersByType)throw new Error(kt(13));return d.sliceCaseReducersByType[C]=x,p},addMatcher(b,x){return d.sliceMatchers.push({matcher:b,reducer:x}),p},exposeAction(b,x){return d.actionCreators[b]=x,p},exposeCaseReducer(b,x){return d.sliceCaseReducersByName[b]=x,p}};l.forEach(b=>{let x=a[b],C={reducerName:b,type:Tm(n,b),createNotation:typeof i.reducers=="function"};$m(x)?Bm(C,x,p,e):Fm(C,x,p)});function m(){let[b={},x=[],C=void 0]=typeof i.extraReducers=="function"?yu(i.extraReducers):[i.extraReducers],N={...b,...d.sliceCaseReducersByType};return Lm(i.initialState,Z=>{for(let ee in N)Z.addCase(ee,N[ee]);for(let ee of d.sliceMatchers)Z.addMatcher(ee.matcher,ee.reducer);for(let ee of x)Z.addMatcher(ee.matcher,ee.reducer);C&&Z.addDefaultCase(C)})}let f=b=>b,g=new Map,S=new WeakMap,w;function I(b,x){return w||(w=m()),w(b,x)}function k(){return w||(w=m()),w.getInitialState()}function D(b,x=!1){function C(Z){let ee=Z[b];return typeof ee>"u"&&x&&(ee=un(S,C,k)),ee}function N(Z=f){return un(un(g,x,()=>new WeakMap),Z,()=>{let ee={};for(let[pe,$]of Object.entries(i.selectors??{}))ee[pe]=Nm($,Z,()=>un(S,Z,k),x);return ee})}return{reducerPath:b,getSelectors:N,get selectors(){return N(C)},selectSlice:C}}let z={name:n,reducer:I,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:k,...D(s),injectInto(b,{reducerPath:x,...C}={}){let N=x??s;return b.inject({reducerPath:N,reducer:I},C),{...z,...D(N,!0)}}};return z}}function Nm(t,e,r,i){function n(s,...a){let l=e(s);return typeof l>"u"&&i&&(l=r()),t(l,...a)}return n.unwrapped=t,n}var bu=Pm();function Dm(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Fm({type:t,reducerName:e,createNotation:r},i,n){let s,a;if("reducer"in i){if(r&&!Mm(i))throw new Error(kt(17));s=i.reducer,a=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?si(t,a):si(t))}function $m(t){return t._reducerDefinitionType==="asyncThunk"}function Mm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Bm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(kt(18));let{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:m}=r,f=n(t,s,m);i.exposeAction(e,f),a&&i.addCase(f.fulfilled,a),l&&i.addCase(f.pending,l),d&&i.addCase(f.rejected,d),p&&i.addMatcher(f.settled,p),i.exposeCaseReducer(e,{fulfilled:a||pn,pending:l||pn,rejected:d||pn,settled:p||pn})}function pn(){}var xu="listener",vu="completed",Su="cancelled",GS=`task-${Su}`,jS=`task-${vu}`,KS=`${xu}-${Su}`,qS=`${xu}-${vu}`;var{assign:Cu}=Object;var xa="listenerMiddleware";var Um=Cu(si(`${xa}/add`),{withTypes:()=>Um}),ZS=si(`${xa}/removeAll`),zm=Cu(si(`${xa}/remove`),{withTypes:()=>zm});function kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var rr=class t extends $t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(co(s))return s;if(n==null)return;let a=bu({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=gu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=nt(a.getInitialState());for(let f of p.keeping)m[f]=(d??m)[f];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return a.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(a,l,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Qo,this.injectInto=(a,l)=>this.reduxSlice.injectInto(a,l),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let s=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,l,d)=>{let p=l,m=a[p];return m?(...f)=>{let g=m(...f.map(s));return this.reduxStore.dispatch(g),g}:f=>{let g=p,S=this.getState()[g];he(S,f)||this.setState({[g]:s(f)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Vm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))co(e)&&e.clear()}var ai=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);He(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Hm(t,e,r){return new ai(t,e,r).watch()}var fo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ea={};K(Ea,{scrollHelper:()=>Wm});var Sa,fn=new Map,Ca=class{lock(e,r){if(r){let i=fn.get(r);if(i==null||i===e)return fn.set(r,e),r}}release(e,r){r&&fn.get(r)===e&&fn.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let s of Yt(e)){let a=s,l=this.elementCanScroll(a);if(l&&a.clientHeight&&a.clientHeight<a.scrollHeight){i=a;break}else l&&n==null&&(n=a)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let s=0;for(;r&&r.offsetParent!==e.offsetParent;)s+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return s+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),s=n-i.clientHeight+e.clientHeight,a=n,l=Zt(0,(a-i.scrollTop)/(a-s),1),d=this.computeTopOffsetRatio(r?.position,l)*(s-a)+a;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Sa=window.FluidTopicsScrollHelper)!==null&&Sa!==void 0?Sa:new Ca;var Wm=window.FluidTopicsScrollHelper;var Aa={};K(Aa,{toFtFormComponent:()=>wa});var Oa=Symbol("elementInternals"),wa=Oe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Oa].form}constructor(...i){super(i),this[Oa]=this.attachInternals()}setFormValue(i){this[Oa].setFormValue(i)}}return e});var Ra={};K(Ra,{DateFormatter:()=>kr});var kr=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let a=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return s?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ka={};K(ka,{ALL_KEYS_VALUE:()=>_a,SameWindowStorageEvent:()=>ho});var _a="__all__",ho=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==_a}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new ho(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new ho(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new ho(_a))}});var Ia={};K(Ia,{FocusMainContentEvent:()=>La});var La=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Eu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Gm(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function jm(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Gm);document.addEventListener("click",jm);var mo=E`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
|
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
68
68
|
width:auto;
|
|
69
69
|
height:auto;
|
|
70
70
|
}
|
|
71
|
-
`;var Pa={};
|
|
71
|
+
`;var Pa={};K(Pa,{withAriaNotification:()=>Ta});var Km={checkVisibility:!0},Ta=Oe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:s}={...Km,...n};setTimeout(()=>{(!s||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new $o({type:"aria",message:i})))},20)}}return e});var Na={};K(Na,{withConditionalVisibility:()=>qm});var Ou=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};function qm(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let s=document.createElement("style");s.classList.add("conditional-visibility-style"),s.innerHTML=n,this.shadowRoot.append(s)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Ou([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Ou([A()],e.prototype,"isVisible",void 0),e}var Fa={};K(Fa,{FormController:()=>Da});function Zm(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Da=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Zm(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let s=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);s!==void 0&&this.errors.set(e,s)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(s){let a=ms(s)?s:void 0;if(!this.checkValidity(a)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,a)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Ma={};K(Ma,{MetadataValueLocalizer:()=>$a});var $a=class{constructor(e){this.contentLocales=e}localize(e){var r,i;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(i=this.findLocaleValue(e))!==null&&i!==void 0?i:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(i=>i.lang===e.value))===null||r===void 0?void 0:r.label}};function Ba(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Lr(t,e,r){return t?e(t):r?.(t)}var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ir;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Ir||(Ir={}));var Vt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Vt||(Vt={}));var li=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var TC=Oe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ir.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Vt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.externalErrorMessages=[],this.ruleErrorMessages=[]}willUpdate(i){super.willUpdate(i),i.has("externalErrorMessages")&&(this.errorMessages=[...this.externalErrorMessages,...this.ruleErrorMessages],this.status=this.resolveStatus(),this.dispatchEvent(new li(this.status)))}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ir.blur||this.validateOn===Ir.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.externalErrorMessages.length>0&&(this.externalErrorMessages=[]),(this.status!==Vt.default&&this.validateOn===Ir.blurWithStatusResolutionOnInput||this.validateOn===Ir.input)&&this.triggerValidation()}triggerValidation(){this.ruleErrorMessages=Ba(this.value,[...this.errorRules,...this.additionalErrorRules]),this.errorMessages=[...this.externalErrorMessages,...this.ruleErrorMessages],this.warningMessages=Ba(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new li(this.status))}resetValidation(){this.externalErrorMessages=[],this.ruleErrorMessages=[],this.errorMessages=[],this.warningMessages=[],this.status=this.resolveStatus(),this.dispatchEvent(new li(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return y`
|
|
72
72
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
73
73
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
74
74
|
${ae(this.errorMessages,i=>y`
|
|
@@ -77,11 +77,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
77
77
|
${ae(this.warningMessages,i=>y`
|
|
78
78
|
<li>${i}</li>
|
|
79
79
|
`)}
|
|
80
|
-
${
|
|
80
|
+
${Lr(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>y`
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?or.error:this.warningMessages.length?or.warning:or.default}}return Ae([h()],e.prototype,"warningRules",void 0),Ae([h()],e.prototype,"errorRules",void 0),Ae([h()],e.prototype,"validateOn",void 0),Ae([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Ae([h()],e.prototype,"label",void 0),Ae([h({type:Boolean})],e.prototype,"hideLabel",void 0),Ae([h()],e.prototype,"name",void 0),Ae([h({type:Boolean})],e.prototype,"disabled",void 0),Ae([h()],e.prototype,"helperText",void 0),Ae([h()],e.prototype,"forceStatus",void 0),Ae([h({reflect:!0})],e.prototype,"value",void 0),Ae([A()],e.prototype,"errorMessages",void 0),Ae([A()],e.prototype,"warningMessages",void 0),Ae([A()],e.prototype,"status",void 0),Ae([A()],e.prototype,"focused",void 0),Ae([A()],e.prototype,"additionalWarningRules",void 0),Ae([A()],e.prototype,"additionalErrorRules",void 0),Ae([A()],e.prototype,"forceErrorMessages",void 0),e});var li=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),li(i,e);return!0},fn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ku=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),pg(e)}};function dg(t){this._$AN!==void 0?(fn(this),this._$AM=t,ku(this)):this._$AM=t}function ug(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let s=r;s<i.length;s++)li(i[s],!1),fn(i[s]);else i!=null&&(li(i,!1),fn(i));else li(this,t)}var pg=t=>{t.type==Et.CHILD&&(t._$AP??=ug,t._$AQ??=dg)},yo=class extends it{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),ku(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(li(this,e),fn(this))}setValue(e){if(Wl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var za=class extends yo{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),Ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ot&&await e.updateComplete}isInsideElement(e,r){return Zt(e).includes(r)}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},OE=Ze(za);var Lu;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Lu||(Lu={}));var fg={sm:640,md:768,lg:1024,xl:1280},Va=class extends yo{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),s=i??(()=>_);return this.size>n?r():s()}resolveThreshold(e){return typeof e=="number"?e:fg[e]}},_E=Ze(Va);var hg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ha=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function hn(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,s){var a,l;let d=(l=(a=this.configuredAnalyticsActions)===null||a===void 0?void 0:a[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new Ha({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:s}))}}return r.analyticsActions=e,hg([le({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Wa,Pr=class{static compareDeepPosition(e,r){if(e===r)return 0;let i=Zt(e).reverse(),n=Zt(r).reverse();if(i[0]!==n[0])return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;let s=0;for(;(i[s]||n[s])&&i[s]===n[s];)s++;return i[s]==null?Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING:n[s]==null?Node.DOCUMENT_POSITION_CONTAINS|Node.DOCUMENT_POSITION_PRECEDING:i[s].compareDocumentPosition(n[s])}static compareDocumentPosition(e,r){let i=Wa.compareDeepPosition(e,r);return{equal:i===0,disconnected:(i&Node.DOCUMENT_POSITION_DISCONNECTED)!==0,implementationSpecific:(i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)!==0,preceding:(i&Node.DOCUMENT_POSITION_PRECEDING)!==0,following:(i&Node.DOCUMENT_POSITION_FOLLOWING)!==0,contains:(i&Node.DOCUMENT_POSITION_CONTAINS)!==0,containedBy:(i&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}}static findFirstInDOM(e){let r=0;for(let i=1;i<e.length;i++)this.domOrderSorter(e[r],e[i])>0&&(r=i);return e[r]}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};Wa=Pr;Pr.domOrderSorter=(t,e)=>{if(t===e||!t?.isConnected&&!e?.isConnected)return 0;if(!e?.isConnected)return-1;if(!t?.isConnected)return 1;let{preceding:r,following:i,contains:n,containedBy:s}=Wa.compareDocumentPosition(t,e);return r||n?1:i||s?-1:0};var Nr=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Ga)return!1;let r=Pr.getDeepActiveElement();if(!r)return!0;let i=Pr.compareDocumentPosition(r,e);return i.disconnected||i.implementationSpecific?!1:i.preceding&&!i.contains||i.containedBy}};window.FluidTopicsFocusHelper=Nr;var ja,Ka,qa,Za,Dr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((qa=(Ka=(ja=window.safari)===null||ja===void 0?void 0:ja.pushNotification)===null||Ka===void 0?void 0:Ka.toString())!==null&&qa!==void 0?qa:"")==="[object SafariRemoteNotification]",Ga="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Za=window.ftGlobals)!==null&&Za!==void 0?Za:{lit:Kn,litDecorators:Qn,litRepeat:Xn,litClassMap:Jn,litStyleMap:es,litUnsafeHTML:rs,wcUtils:{...os,...ps,...is,...Ss,...Ra,...Cs,...ns,...As,...us,...zs,...Ia,...Ru,...Ea,...Vs,...ws,...qs,...Aa,...js,...Pa,...Na,...Ud,...ls,...Qs,...Ma,...Rs,...Js,...go,...Vd,...ea,...va,...ka,...Hs,...Gs,...ms,...bs,...Fa,isSafari:Dr,isTouchScreen:Ga,setVariable:w}};var Iu=o.extend("--ft-ripple-color","",S.colorContent),X={color:Iu,backgroundColor:o.extend("--ft-ripple-background-color","",Iu),opacityContentOnSurfacePressed:o.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Tu=o.extend("--ft-ripple-color","",S.colorPrimary),Pu={color:Tu,backgroundColor:o.extend("--ft-ripple-background-color","",Tu)},Nu=o.extend("--ft-ripple-color","",S.colorSecondary),Du={color:Nu,backgroundColor:o.extend("--ft-ripple-background-color","",Nu)},Fu=O`
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vt.error:this.warningMessages.length?Vt.warning:Vt.default}}return Ae([h()],e.prototype,"warningRules",void 0),Ae([h()],e.prototype,"errorRules",void 0),Ae([h()],e.prototype,"validateOn",void 0),Ae([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Ae([h()],e.prototype,"label",void 0),Ae([h({type:Boolean})],e.prototype,"hideLabel",void 0),Ae([h()],e.prototype,"name",void 0),Ae([h({type:Boolean})],e.prototype,"disabled",void 0),Ae([h()],e.prototype,"helperText",void 0),Ae([h()],e.prototype,"forceStatus",void 0),Ae([h({reflect:!0})],e.prototype,"value",void 0),Ae([A()],e.prototype,"errorMessages",void 0),Ae([A()],e.prototype,"warningMessages",void 0),Ae([A()],e.prototype,"status",void 0),Ae([A()],e.prototype,"focused",void 0),Ae([A()],e.prototype,"additionalWarningRules",void 0),Ae([A()],e.prototype,"additionalErrorRules",void 0),Ae([A()],e.prototype,"externalErrorMessages",void 0),e});var ci=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),ci(i,e);return!0},hn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},wu=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Jm(e)}};function Qm(t){this._$AN!==void 0?(hn(this),this._$AM=t,wu(this)):this._$AM=t}function Xm(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let s=r;s<i.length;s++)ci(i[s],!1),hn(i[s]);else i!=null&&(ci(i,!1),hn(i));else ci(this,t)}var Jm=t=>{t.type==Et.CHILD&&(t._$AP??=Xm,t._$AQ??=Qm)},go=class extends it{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),wu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(ci(this,e),hn(this))}setValue(e){if(Hl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Ua=class extends go{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),Ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ot&&await e.updateComplete}isInsideElement(e,r){return Yt(e).includes(r)}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},lE=Ze(Ua);var Au;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Au||(Au={}));var eg={sm:640,md:768,lg:1024,xl:1280},za=class extends go{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),s=i??(()=>R);return this.size>n?r():s()}resolveThreshold(e){return typeof e=="number"?e:eg[e]}},pE=Ze(za);var tg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Va=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function mn(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,s){var a,l;let d=(l=(a=this.configuredAnalyticsActions)===null||a===void 0?void 0:a[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new Va({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:s}))}}return r.analyticsActions=e,tg([le({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Ha,Tr=class{static compareDeepPosition(e,r){if(e===r)return 0;let i=Yt(e).reverse(),n=Yt(r).reverse();if(i[0]!==n[0])return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;let s=0;for(;(i[s]||n[s])&&i[s]===n[s];)s++;return i[s]==null?Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING:n[s]==null?Node.DOCUMENT_POSITION_CONTAINS|Node.DOCUMENT_POSITION_PRECEDING:i[s].compareDocumentPosition(n[s])}static compareDocumentPosition(e,r){let i=Ha.compareDeepPosition(e,r);return{equal:i===0,disconnected:(i&Node.DOCUMENT_POSITION_DISCONNECTED)!==0,implementationSpecific:(i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)!==0,preceding:(i&Node.DOCUMENT_POSITION_PRECEDING)!==0,following:(i&Node.DOCUMENT_POSITION_FOLLOWING)!==0,contains:(i&Node.DOCUMENT_POSITION_CONTAINS)!==0,containedBy:(i&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}}static findFirstInDOM(e){let r=0;for(let i=1;i<e.length;i++)this.domOrderSorter(e[r],e[i])>0&&(r=i);return e[r]}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};Ha=Tr;Tr.domOrderSorter=(t,e)=>{if(t===e||!t?.isConnected&&!e?.isConnected)return 0;if(!e?.isConnected)return-1;if(!t?.isConnected)return 1;let{preceding:r,following:i,contains:n,containedBy:s}=Ha.compareDocumentPosition(t,e);return r||n?1:i||s?-1:0};var Pr=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Wa)return!1;let r=Tr.getDeepActiveElement();if(!r)return!0;let i=Tr.compareDocumentPosition(r,e);return i.disconnected||i.implementationSpecific?!1:i.preceding&&!i.contains||i.containedBy}};window.FluidTopicsFocusHelper=Pr;var Ga,ja,Ka,qa,Nr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ka=(ja=(Ga=window.safari)===null||Ga===void 0?void 0:Ga.pushNotification)===null||ja===void 0?void 0:ja.toString())!==null&&Ka!==void 0?Ka:"")==="[object SafariRemoteNotification]",Wa="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(qa=window.ftGlobals)!==null&&qa!==void 0?qa:{lit:qn,litDecorators:Xn,litRepeat:Jn,litClassMap:es,litStyleMap:ts,litUnsafeHTML:os,wcUtils:{...is,...fs,...ns,...Cs,...Ra,...Es,...ss,...Rs,...ps,...Vs,...Ia,...Eu,...Ea,...Hs,...As,...Zs,...Aa,...Ks,...Pa,...Na,...Bd,...cs,...Xs,...Ma,..._s,...ea,...mo,...zd,...ta,...va,...ka,...Ws,...js,...gs,...xs,...Fa,isSafari:Nr,isTouchScreen:Wa,setVariable:O}};var Ru=o.extend("--ft-ripple-color","",v.colorContent),X={color:Ru,backgroundColor:o.extend("--ft-ripple-background-color","",Ru),opacityContentOnSurfacePressed:o.external(v.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(v.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(v.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(v.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},_u=o.extend("--ft-ripple-color","",v.colorPrimary),ku={color:_u,backgroundColor:o.extend("--ft-ripple-background-color","",_u)},Lu=o.extend("--ft-ripple-color","",v.colorSecondary),Iu={color:Lu,backgroundColor:o.extend("--ft-ripple-background-color","",Lu)},Tu=E`
|
|
85
85
|
:host {
|
|
86
86
|
display: contents;
|
|
87
87
|
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
@@ -138,19 +138,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
141
|
-
background-color: ${
|
|
141
|
+
background-color: ${Iu.backgroundColor};
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
145
|
-
background-color: ${
|
|
145
|
+
background-color: ${Iu.color};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
149
|
-
background-color: ${
|
|
149
|
+
background-color: ${ku.backgroundColor};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
153
|
-
background-color: ${
|
|
153
|
+
background-color: ${ku.color};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ft-ripple .ft-ripple--background {
|
|
@@ -195,7 +195,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
195
195
|
opacity: ${X.opacityContentOnSurfacePressed};
|
|
196
196
|
transform: translate(-50%, -50%) scale(1);
|
|
197
197
|
}
|
|
198
|
-
`;var Ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
198
|
+
`;var Ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},G=class extends P{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 J(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 J(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),a=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-a.x:a.width/2),this.originY=Math.round(s!=null?s-a.y:a.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 y`
|
|
199
199
|
<style>
|
|
200
200
|
.ft-ripple .ft-ripple--effect {
|
|
201
201
|
left: ${this.originX}px;
|
|
@@ -206,8 +206,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
206
206
|
<div class="ft-ripple--background"></div>
|
|
207
207
|
<div class="ft-ripple--effect"></div>
|
|
208
208
|
</div>
|
|
209
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},a={passive:!0};e.addEventListener("mouseover",this.startHover,a),e.addEventListener("mousemove",this.moveRipple,a),e.addEventListener("mouseleave",this.endHover,a),e.addEventListener("mousedown",i,a),e.addEventListener("touchstart",n,a),e.addEventListener("touchmove",this.moveRipple,a),e.addEventListener("keydown",s,a),e.addEventListener("focus",this.startFocus,a),e.addEventListener("blur",this.endFocus,a),e.addEventListener("focusin",this.startFocus,a),e.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,a),e.removeEventListener("mousemove",this.moveRipple,a),e.removeEventListener("mouseleave",this.endHover,a),e.removeEventListener("mousedown",i,a),e.removeEventListener("touchstart",n,a),e.removeEventListener("touchmove",this.moveRipple,a),e.removeEventListener("keydown",s,a),e.removeEventListener("focus",this.startFocus,a),e.removeEventListener("blur",this.endFocus,a),e.removeEventListener("focusin",this.startFocus,a),e.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Fu;Ge([h({type:Boolean})],j.prototype,"primary",void 0);Ge([h({type:Boolean})],j.prototype,"secondary",void 0);Ge([h({type:Boolean})],j.prototype,"unbounded",void 0);Ge([h({type:Boolean})],j.prototype,"activated",void 0);Ge([h({type:Boolean})],j.prototype,"selected",void 0);Ge([h({type:Boolean})],j.prototype,"disabled",void 0);Ge([A()],j.prototype,"hovered",void 0);Ge([A()],j.prototype,"focused",void 0);Ge([A()],j.prototype,"pressed",void 0);Ge([A()],j.prototype,"rippling",void 0);Ge([A()],j.prototype,"originX",void 0);Ge([A()],j.prototype,"originY",void 0);Ge([P(".ft-ripple")],j.prototype,"ripple",void 0);Ge([P(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);var $u={"ft-ripple":j};G($u);var Bu=Symbol.for(""),mg=t=>{if(t?.r===Bu)return t?._$litStatic$},Ya=t=>({_$litStatic$:t,r:Bu});var Mu=new Map,Qa=t=>(e,...r)=>{let i=r.length,n,s,a=[],l=[],d,p=0,m=!1;for(;p<i;){for(d=e[p];p<i&&(s=r[p],(n=mg(s))!==void 0);)d+=n+e[++p],m=!0;p!==i&&l.push(s),a.push(d),p++}if(p===i&&a.push(e[i]),m){let f=a.join("$$lit$$");(e=Mu.get(f))===void 0&&(a.raw=a,Mu.set(f,e=a)),r=l}return t(e,...r)},Xa=Qa(y),JO=Qa(Vn),ew=Qa(Hn);var fe;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(fe||(fe={}));var Uu=o.extend("--ft-typography-font-family","",S.titleFont),Vt=o.extend("--ft-typography-font-family","",S.contentFont),L={fontFamily:Vt,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"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Fr={fontFamily:o.extend("--ft-typography-title-font-family","",Uu),fontSize:o.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",L.textDecoration,"inherit")},$r={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Uu),fontSize:o.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",L.textDecoration,"inherit")},Mr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",L.textDecoration,"inherit")},Br={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",L.textDecoration,"inherit")},Lt={fontFamily:o.extend("--ft-typography-body1-font-family","",Vt),fontSize:o.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",L.textDecoration,"inherit")},xe={fontFamily:o.extend("--ft-typography-body2-font-family","",Vt),fontSize:o.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",L.textDecoration,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Vt),fontSize:o.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",L.textDecoration,"inherit")},Ur={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",L.textDecoration,"inherit")},zr={fontFamily:o.extend("--ft-typography-overline-font-family","",Vt),fontSize:o.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",L.textDecoration,"inherit")},yt={fontFamily:o.extend("--ft-typography-button-font-family","",Vt),fontSize:o.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",L.textDecoration,"inherit")},zu=O`
|
|
209
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},a={passive:!0};e.addEventListener("mouseover",this.startHover,a),e.addEventListener("mousemove",this.moveRipple,a),e.addEventListener("mouseleave",this.endHover,a),e.addEventListener("mousedown",i,a),e.addEventListener("touchstart",n,a),e.addEventListener("touchmove",this.moveRipple,a),e.addEventListener("keydown",s,a),e.addEventListener("focus",this.startFocus,a),e.addEventListener("blur",this.endFocus,a),e.addEventListener("focusin",this.startFocus,a),e.addEventListener("focusout",this.endFocus,a),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,a),e.removeEventListener("mousemove",this.moveRipple,a),e.removeEventListener("mouseleave",this.endHover,a),e.removeEventListener("mousedown",i,a),e.removeEventListener("touchstart",n,a),e.removeEventListener("touchmove",this.moveRipple,a),e.removeEventListener("keydown",s,a),e.removeEventListener("focus",this.startFocus,a),e.removeEventListener("blur",this.endFocus,a),e.removeEventListener("focusin",this.startFocus,a),e.removeEventListener("focusout",this.endFocus,a),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};G.elementDefinitions={};G.styles=Tu;Ge([h({type:Boolean})],G.prototype,"primary",void 0);Ge([h({type:Boolean})],G.prototype,"secondary",void 0);Ge([h({type:Boolean})],G.prototype,"unbounded",void 0);Ge([h({type:Boolean})],G.prototype,"activated",void 0);Ge([h({type:Boolean})],G.prototype,"selected",void 0);Ge([h({type:Boolean})],G.prototype,"disabled",void 0);Ge([A()],G.prototype,"hovered",void 0);Ge([A()],G.prototype,"focused",void 0);Ge([A()],G.prototype,"pressed",void 0);Ge([A()],G.prototype,"rippling",void 0);Ge([A()],G.prototype,"originX",void 0);Ge([A()],G.prototype,"originY",void 0);Ge([T(".ft-ripple")],G.prototype,"ripple",void 0);Ge([T(".ft-ripple--effect")],G.prototype,"rippleEffect",void 0);var Pu={"ft-ripple":G};W(Pu);var Du=Symbol.for(""),rg=t=>{if(t?.r===Du)return t?._$litStatic$},Za=t=>({_$litStatic$:t,r:Du});var Nu=new Map,Ya=t=>(e,...r)=>{let i=r.length,n,s,a=[],l=[],d,p=0,m=!1;for(;p<i;){for(d=e[p];p<i&&(s=r[p],(n=rg(s))!==void 0);)d+=n+e[++p],m=!0;p!==i&&l.push(s),a.push(d),p++}if(p===i&&a.push(e[i]),m){let f=a.join("$$lit$$");(e=Nu.get(f))===void 0&&(a.raw=a,Nu.set(f,e=a)),r=l}return t(e,...r)},Qa=Ya(y),$O=Ya(Hn),MO=Ya(Wn);var fe;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(fe||(fe={}));var Fu=o.extend("--ft-typography-font-family","",v.titleFont),Ht=o.extend("--ft-typography-font-family","",v.contentFont),L={fontFamily:Ht,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"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Dr={fontFamily:o.extend("--ft-typography-title-font-family","",Fu),fontSize:o.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",L.textDecoration,"inherit")},Fr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Fu),fontSize:o.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",L.textDecoration,"inherit")},$r={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Ht),fontSize:o.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",L.textDecoration,"inherit")},Mr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Ht),fontSize:o.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",L.textDecoration,"inherit")},Lt={fontFamily:o.extend("--ft-typography-body1-font-family","",Ht),fontSize:o.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",L.textDecoration,"inherit")},xe={fontFamily:o.extend("--ft-typography-body2-font-family","",Ht),fontSize:o.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",L.textDecoration,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Ht),fontSize:o.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",L.textDecoration,"inherit")},Br={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Ht),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",L.textDecoration,"inherit")},Ur={fontFamily:o.extend("--ft-typography-overline-font-family","",Ht),fontSize:o.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",L.textDecoration,"inherit")},yt={fontFamily:o.extend("--ft-typography-button-font-family","",Ht),fontSize:o.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",L.textDecoration,"inherit")},$u=E`
|
|
210
210
|
.ft-typography--title {
|
|
211
|
+
font-family: ${Dr.fontFamily};
|
|
212
|
+
font-size: ${Dr.fontSize};
|
|
213
|
+
font-weight: ${Dr.fontWeight};
|
|
214
|
+
letter-spacing: ${Dr.letterSpacing};
|
|
215
|
+
line-height: ${Dr.lineHeight};
|
|
216
|
+
text-transform: ${Dr.textTransform};
|
|
217
|
+
text-decoration: ${Dr.textDecoration};
|
|
218
|
+
}
|
|
219
|
+
`,Mu=E`
|
|
220
|
+
.ft-typography--title-dense {
|
|
211
221
|
font-family: ${Fr.fontFamily};
|
|
212
222
|
font-size: ${Fr.fontSize};
|
|
213
223
|
font-weight: ${Fr.fontWeight};
|
|
@@ -216,8 +226,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
216
226
|
text-transform: ${Fr.textTransform};
|
|
217
227
|
text-decoration: ${Fr.textDecoration};
|
|
218
228
|
}
|
|
219
|
-
`,
|
|
220
|
-
.ft-typography--
|
|
229
|
+
`,Bu=E`
|
|
230
|
+
.ft-typography--subtitle1 {
|
|
221
231
|
font-family: ${$r.fontFamily};
|
|
222
232
|
font-size: ${$r.fontSize};
|
|
223
233
|
font-weight: ${$r.fontWeight};
|
|
@@ -226,8 +236,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
226
236
|
text-transform: ${$r.textTransform};
|
|
227
237
|
text-decoration: ${$r.textDecoration};
|
|
228
238
|
}
|
|
229
|
-
`,
|
|
230
|
-
.ft-typography--
|
|
239
|
+
`,Uu=E`
|
|
240
|
+
.ft-typography--subtitle2 {
|
|
231
241
|
font-family: ${Mr.fontFamily};
|
|
232
242
|
font-size: ${Mr.fontSize};
|
|
233
243
|
font-weight: ${Mr.fontWeight};
|
|
@@ -236,18 +246,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
236
246
|
text-transform: ${Mr.textTransform};
|
|
237
247
|
text-decoration: ${Mr.textDecoration};
|
|
238
248
|
}
|
|
239
|
-
`,Wu=O`
|
|
240
|
-
.ft-typography--subtitle2 {
|
|
241
|
-
font-family: ${Br.fontFamily};
|
|
242
|
-
font-size: ${Br.fontSize};
|
|
243
|
-
font-weight: ${Br.fontWeight};
|
|
244
|
-
letter-spacing: ${Br.letterSpacing};
|
|
245
|
-
line-height: ${Br.lineHeight};
|
|
246
|
-
text-transform: ${Br.textTransform};
|
|
247
|
-
text-decoration: ${Br.textDecoration};
|
|
248
|
-
}
|
|
249
249
|
|
|
250
|
-
`,
|
|
250
|
+
`,zu=E`
|
|
251
251
|
.ft-typography--body1 {
|
|
252
252
|
font-family: ${Lt.fontFamily};
|
|
253
253
|
font-size: ${Lt.fontSize};
|
|
@@ -257,7 +257,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
257
257
|
text-transform: ${Lt.textTransform};
|
|
258
258
|
text-decoration: ${Lt.textDecoration};
|
|
259
259
|
}
|
|
260
|
-
`,
|
|
260
|
+
`,or=E`
|
|
261
261
|
.ft-typography--body2 {
|
|
262
262
|
font-family: ${xe.fontFamily};
|
|
263
263
|
font-size: ${xe.fontSize};
|
|
@@ -267,7 +267,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
267
267
|
text-transform: ${xe.textTransform};
|
|
268
268
|
text-decoration: ${xe.textDecoration};
|
|
269
269
|
}
|
|
270
|
-
`,
|
|
270
|
+
`,ir=E`
|
|
271
271
|
.ft-typography--caption {
|
|
272
272
|
font-family: ${je.fontFamily};
|
|
273
273
|
font-size: ${je.fontSize};
|
|
@@ -277,8 +277,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
277
277
|
text-transform: ${je.textTransform};
|
|
278
278
|
text-decoration: ${je.textDecoration};
|
|
279
279
|
}
|
|
280
|
-
`,
|
|
280
|
+
`,Vu=E`
|
|
281
281
|
.ft-typography--breadcrumb {
|
|
282
|
+
font-family: ${Br.fontFamily};
|
|
283
|
+
font-size: ${Br.fontSize};
|
|
284
|
+
font-weight: ${Br.fontWeight};
|
|
285
|
+
letter-spacing: ${Br.letterSpacing};
|
|
286
|
+
line-height: ${Br.lineHeight};
|
|
287
|
+
text-transform: ${Br.textTransform};
|
|
288
|
+
text-decoration: ${Br.textDecoration};
|
|
289
|
+
}
|
|
290
|
+
`,Hu=E`
|
|
291
|
+
.ft-typography--overline {
|
|
282
292
|
font-family: ${Ur.fontFamily};
|
|
283
293
|
font-size: ${Ur.fontSize};
|
|
284
294
|
font-weight: ${Ur.fontWeight};
|
|
@@ -287,17 +297,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
287
297
|
text-transform: ${Ur.textTransform};
|
|
288
298
|
text-decoration: ${Ur.textDecoration};
|
|
289
299
|
}
|
|
290
|
-
`,
|
|
291
|
-
.ft-typography--overline {
|
|
292
|
-
font-family: ${zr.fontFamily};
|
|
293
|
-
font-size: ${zr.fontSize};
|
|
294
|
-
font-weight: ${zr.fontWeight};
|
|
295
|
-
letter-spacing: ${zr.letterSpacing};
|
|
296
|
-
line-height: ${zr.lineHeight};
|
|
297
|
-
text-transform: ${zr.textTransform};
|
|
298
|
-
text-decoration: ${zr.textDecoration};
|
|
299
|
-
}
|
|
300
|
-
`,qu=O`
|
|
300
|
+
`,Wu=E`
|
|
301
301
|
.ft-typography--button {
|
|
302
302
|
font-family: ${yt.fontFamily};
|
|
303
303
|
font-size: ${yt.fontSize};
|
|
@@ -307,19 +307,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
307
307
|
text-transform: ${yt.textTransform};
|
|
308
308
|
text-decoration: ${yt.textDecoration};
|
|
309
309
|
}
|
|
310
|
-
`,
|
|
310
|
+
`,Gu=E`
|
|
311
311
|
.ft-typography {
|
|
312
312
|
vertical-align: inherit;
|
|
313
313
|
}
|
|
314
|
-
`;var
|
|
315
|
-
<${
|
|
314
|
+
`;var ju=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},te=class extends P{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?Qa`
|
|
315
|
+
<${Za(this.element)}
|
|
316
316
|
part="text"
|
|
317
317
|
class="ft-typography ft-typography--${this.variant}">
|
|
318
318
|
<slot></slot>
|
|
319
|
-
</${
|
|
320
|
-
`:
|
|
319
|
+
</${Za(this.element)}>
|
|
320
|
+
`:Qa`
|
|
321
321
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
322
|
-
`}};te.styles=[
|
|
322
|
+
`}};te.styles=[$u,Mu,Bu,Uu,zu,or,ir,Vu,Hu,Wu,Gu];ju([h()],te.prototype,"element",void 0);ju([h()],te.prototype,"variant",void 0);var Ku={"ft-typography":te};W(Ku);var di={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"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",v.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},qu=E`
|
|
323
323
|
.ft-tooltip--container {
|
|
324
324
|
display: block;
|
|
325
325
|
}
|
|
@@ -337,28 +337,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
337
337
|
box-sizing: border-box;
|
|
338
338
|
overflow: hidden;
|
|
339
339
|
width: max-content;
|
|
340
|
-
max-width: ${
|
|
340
|
+
max-width: ${di.maxWidth};
|
|
341
341
|
text-align: center;
|
|
342
|
-
padding: ${
|
|
342
|
+
padding: ${di.distance};
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
.ft-tooltip--content {
|
|
346
346
|
padding: 4px 8px;
|
|
347
|
-
border-radius: ${
|
|
348
|
-
background-color: ${
|
|
349
|
-
color: ${
|
|
347
|
+
border-radius: ${di.borderRadiusS};
|
|
348
|
+
background-color: ${di.backgroundColor};
|
|
349
|
+
color: ${di.color};
|
|
350
350
|
position: relative;
|
|
351
351
|
word-break: break-word;
|
|
352
352
|
}
|
|
353
|
-
`;var gg="ft-app-info",sr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};sr.eventName="authentication-change";var di=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};di.eventName="ui-locale-changed";var yg={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new sr(e.payload)),0))}},U=rr.get({name:gg,reducers:yg,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var mn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pw=Oe(Symbol("withDateFormat"),function(t){class e extends t{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,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>Lr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return mn([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),mn([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),mn([mt({store:U.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),mn([mt({store:U.name})],e.prototype,"uiLocale",void 0),e});var Vr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=U.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=U.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var bo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Vr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Vr.await()}};var Ke=class extends bo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ot,this.cache=e?n.commonCache:new Ot}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var gn=class extends Ke{async listMySearches(){let{session:e}=U.getState();return Mi(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var yn=class extends Ke{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var bn=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*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 xn=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*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 bg="ft-user-assets",xg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(st).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;el(t,r,[...Ja(t,r),n]),Ju(t,r,1,i),ep(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;el(t,r,Ja(t,r).map(n=>n.id===i.id?i:n)),ep(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;el(t,r,Ja(t,r).filter(s=>s.id!==n)),Ju(t,r,-1,i)}},tp={[st.SEARCHES]:"savedSearches",[st.BOOKMARKS]:"bookmarks",[st.BOOKS]:void 0,[st.COLLECTIONS]:void 0},Ja=(t,e)=>{var r;let i=tp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},el=(t,e,r)=>{let i=tp[e];i&&(t[i]=r)},Ju=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===st.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},ep=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Me=rr.get({name:bg,reducers:xg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(st).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),tl=class{constructor(e=new bn,r=new xn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yn,this.savedSearchesService=new gn,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Me.getState().assetCounts.allAsset[e]!==r.count&&Me.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Me.getState().assetCounts.bookmarkByMap[e]!==r.count&&Me.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===st.BOOKMARKS&&r&&Me.actions.clearBookmarkCountByMap(),Me.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Me.actions.bookmarks(r)}}},vg=new tl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=vg);var rl=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rl;var rp,xo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Sg=Symbol("clearAfterUnitTest"),vn=class extends Di(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[rp]=()=>{this.defaultMessages={},this.cache=new Ot,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 r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};he(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new Jt((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof jt)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new xo({loadedContexts:e})),this.dispatchEvent(new xo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new xo({loadedContexts:[e]})),this.dispatchEvent(new xo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Ti(0).then(()=>i()).catch(()=>null)))}};rp=Sg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var vo=window.FluidTopicsI18nService,Sn=window.FluidTopicsCustomI18nService;var ol=class{highlightHtml(e,r,i){Ys(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ol;var il=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,a;if(e==null)return"";try{return Lr.format(e,(i=r?.locale)!==null&&i!==void 0?i:U.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new il;var Ht=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=U.getState()){var a;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new pt(i,e??20,n?.allLanguagesAllowed,r,s)}};var nl=class{urlToSearchRequest(e){return Ht.get().parse(e)}searchRequestToUrl(e){return Ht.get().serialize(e)}};window.FluidTopicsUrlService=new nl;var Hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Hr.eventName="before-location-change";var Wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Wr.eventName="change";var sl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},op=new sl;var Cn=class t extends $t{static build(){return new t(window.history,op,()=>window.location,!1)}constructor(e,r,i,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&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),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Wr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,a,l])=>{let d=new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),p=new Hr(d);this.dispatchEvent(p);let m=r(),f={...m===this.currentIndex?this.currentState:void 0,...s,index:m,href:p.detail.nextLocation.href};i.apply(n,[f,a,f.href]),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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Hr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Hr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Wr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Wr.eventName,e)}currentItem(){return nt(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 nt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return nt(r.find(i=>e(i)))}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 nt(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var ip=O`
|
|
354
|
-
`;function
|
|
353
|
+
`;var og="ft-app-info",nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nr.eventName="authentication-change";var ui=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ui.eventName="ui-locale-changed";var ig={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>B.dispatchEvent(new nr(e.payload)),0))}},B=rr.get({name:og,reducers:ig,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var gn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},yw=Oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(B)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>kr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gn([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),gn([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),gn([mt({store:B.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),gn([mt({store:B.name})],e.prototype,"uiLocale",void 0),e});var zr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=B.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=B.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var yo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:zr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):zr.await()}};var Ke=class extends yo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ot,this.cache=e?n.commonCache:new Ot}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var yn=class extends Ke{async listMySearches(){let{session:e}=B.getState();return Bi(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var bn=class extends Ke{async listMyBookmarks(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var xn=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/api/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(`/api/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var vn=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/api/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var ng="ft-user-assets",sg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(st).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Ja(t,r,[...Xa(t,r),n]),Zu(t,r,1,i),Yu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ja(t,r,Xa(t,r).map(n=>n.id===i.id?i:n)),Yu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ja(t,r,Xa(t,r).filter(s=>s.id!==n)),Zu(t,r,-1,i)}},Qu={[st.SEARCHES]:"savedSearches",[st.BOOKMARKS]:"bookmarks",[st.BOOKS]:void 0,[st.COLLECTIONS]:void 0},Xa=(t,e)=>{var r;let i=Qu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ja=(t,e,r)=>{let i=Qu[e];i&&(t[i]=r)},Zu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===st.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Yu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Me=rr.get({name:ng,reducers:sg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(st).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),el=class{constructor(e=new xn,r=new vn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=B.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bn,this.savedSearchesService=new yn,B.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=B.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Me.getState().assetCounts.allAsset[e]!==r.count&&Me.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Me.getState().assetCounts.bookmarkByMap[e]!==r.count&&Me.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===st.BOOKMARKS&&r&&Me.actions.clearBookmarkCountByMap(),Me.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Me.actions.bookmarks(r)}}},ag=new el;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ag);var tl=class{addCommand(e,r=!1){B.commands.add(e,r)}consumeCommand(e){return B.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new tl;var Xu,bo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},lg=Symbol("clearAfterUnitTest"),Sn=class extends Fi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xu]=()=>{this.defaultMessages={},this.cache=new Ot,this.listeners={}},this.currentUiLocale=B.getState().uiLocale,B.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=B.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};he(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new er((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Kt)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new bo({loadedContexts:e})),this.dispatchEvent(new bo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new bo({loadedContexts:[e]})),this.dispatchEvent(new bo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Pi(0).then(()=>i()).catch(()=>null)))}};Xu=lg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Sn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var xo=window.FluidTopicsI18nService,Cn=window.FluidTopicsCustomI18nService;var rl=class{highlightHtml(e,r,i){Qs(e,r,i)}};window.FluidTopicsHighlightHtmlService=new rl;var ol=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=B.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,a;if(e==null)return"";try{return kr.format(e,(i=r?.locale)!==null&&i!==void 0?i:B.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new ol;var Wt=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=B.getState()){var a;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new pt(i,e??20,n?.allLanguagesAllowed,r,s)}};var il=class{urlToSearchRequest(e){return Wt.get().parse(e)}searchRequestToUrl(e){return Wt.get().serialize(e)}};window.FluidTopicsUrlService=new il;var Vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Vr.eventName="before-location-change";var Hr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Hr.eventName="change";var nl=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ju=new nl;var En=class t extends $t{static build(){return new t(window.history,Ju,()=>window.location,!1)}constructor(e,r,i,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&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),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Hr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,a,l])=>{let d=new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),p=new Vr(d);this.dispatchEvent(p);let m=r(),f={...m===this.currentIndex?this.currentState:void 0,...s,index:m,href:p.detail.nextLocation.href};i.apply(n,[f,a,f.href]),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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Vr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Vr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Hr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Hr.eventName,e)}currentItem(){return nt(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 nt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return nt(r.find(i=>e(i)))}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 nt(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=En.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var ep=E`
|
|
354
|
+
`;function tp(t,e){let{authenticationRequired:r,session:i}=B.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var On=class extends yo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var sl=class t extends fo{static build(e){return new t(B,e)}constructor(e,r){super(),this.store=e,this.cache=new Ot,this.withManualResources=!0,this.userLocaleService=new On,this.knownContexts=new eo,this.knownCustomComponents=new eo,this.cleanSessionDebouncer=new J,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new J(500),this.apiProvider=r??(()=>zr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>tp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ui(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return Bc(B.getState().session,...e)}},al=sl.build();var Wr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var pi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let a=n.deref(),l=s.deref();a===void 0||l===void 0||a.dispatchEvent(new Wr(e.context,a,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Re=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ce=class extends Ut{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=al,this.contextRoot=new pi}render(){return y`
|
|
355
355
|
<slot></slot>
|
|
356
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>
|
|
357
|
-
`;var
|
|
356
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>xo.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ce.elementDefinitions={};ce.styles=ep;Re([h()],ce.prototype,"baseUrl",void 0);Re([h()],ce.prototype,"tenantId",void 0);Re([h()],ce.prototype,"apiIntegrationIdentifier",void 0);Re([h()],ce.prototype,"apiIntegrationAppVersion",void 0);Re([h()],ce.prototype,"uiLocale",void 0);Re([le(null)],ce.prototype,"availableUiLocales",void 0);Re([le(null)],ce.prototype,"metadataConfiguration",void 0);Re([h({type:Boolean})],ce.prototype,"editorMode",void 0);Re([h({type:Boolean})],ce.prototype,"noCustom",void 0);Re([h({type:Boolean})],ce.prototype,"openExternalDocumentInNewTab",void 0);Re([h({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ce.prototype,"noCustomComponent",void 0);Re([h({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ce.prototype,"noCustomCode",void 0);Re([h({type:Boolean})],ce.prototype,"withManualResources",void 0);Re([h({type:Boolean})],ce.prototype,"navigatorOnline",void 0);Re([h({type:Boolean})],ce.prototype,"forcedOffline",void 0);Re([h({type:Boolean})],ce.prototype,"authenticationRequired",void 0);Re([le([])],ce.prototype,"messageContexts",void 0);Re([le(void 0)],ce.prototype,"session",void 0);var rp={"ft-app-context":ce};W(rp);var ll=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[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},vo=new ll;var ug=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},hi=Symbol("i18nAttributes"),op=Symbol("i18nListAttributes"),ip=Symbol("i18nProperties"),wn=Symbol("i18nContexts"),fi=Symbol("i18nUnsubs"),So=Oe(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Cn:xo}i18n(s){let{context:a,key:l,message:d}=s,{custom:p,args:m,argsProvider:f}=s;if(a&&l){this.hasI18nContext(a)||this.addI18nContext(a,void 0,p);let g=m??(f?f(this):[]);return this.getI18nService(p).resolveMessage(a,l,...g)}return d}async awaitI18n(s){let{context:a,custom:l}=s;return a&&await this.getI18nService(l).prepareContext(a),this.i18n(s)}customI18n(s,a){if(vo.isI18nKey(s)){let[l,d]=s.split(".");return this.i18n({custom:!0,context:l,key:d,...a})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((a,l,d)=>s.has(l)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((a,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(a=>a.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var a,l;let d=this,p=(m,f,g)=>g?.context&&g.key&&s(m,f,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(a=this[hi])===null||a===void 0||a.forEach((m,f)=>d[f]=p(m,f,d[f])),(l=this[op])===null||l===void 0||l.forEach((m,f)=>{var g;return d[f]=(g=d[f])===null||g===void 0?void 0:g.map(S=>p(m,f,S))})}updateI18nProperties(s){var a;(a=this[ip])===null||a===void 0||a.forEach((l,d)=>{s(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(s,a,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,a,l)}addI18nContext(s,a,l){let d=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[wn].set(d,{isCustomContext:l}),this[fi].has(d)||this[fi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,a)}hasI18nContext(s){return this[wn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[wn].forEach((s,a)=>this.addI18nContext(a,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fi].forEach(s=>s()),this[fi].clear()}}return e=wn,r=fi,ug([h({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),An=class extends So(P){},Rn=class extends So(Ut){};var cl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?vo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},pg=new cl;var mi=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:He,converter:vo,...e}),r[hi]=(n=r[hi])!==null&&n!==void 0?n:new Map,r[hi].set(i,t??{})};var Co=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Cn:xo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),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 np=E`
|
|
357
|
+
`;var Eo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends Rn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(B)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:R:y`
|
|
358
358
|
<span class="ft-i18n">
|
|
359
359
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
360
360
|
</span>
|
|
361
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};at.elementDefinitions={};at.styles=
|
|
361
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};at.elementDefinitions={};at.styles=np;Eo([mt()],at.prototype,"editorMode",void 0);Eo([h()],at.prototype,"context",void 0);Eo([h()],at.prototype,"key",void 0);Eo([le([])],at.prototype,"args",void 0);Eo([h()],at.prototype,"defaultMessage",void 0);Eo([A()],at.prototype,"editorMessage",void 0);var sp={"ft-i18n":at};W(sp);var bt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ge=class extends An{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new J,this.revealDebouncer=new J,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return y`
|
|
362
362
|
<div part="container"
|
|
363
363
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
364
364
|
<slot part="slot"></slot>
|
|
@@ -373,7 +373,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
373
373
|
</div>
|
|
374
374
|
</div>
|
|
375
375
|
</div>
|
|
376
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&
|
|
376
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Us(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${v.transitionDuration}, left ${v.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return as(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ge.elementDefinitions={"ft-typography":te};ge.styles=qu;bt([mi()],ge.prototype,"text",void 0);bt([h({type:Boolean})],ge.prototype,"manual",void 0);bt([h({type:Boolean})],ge.prototype,"inline",void 0);bt([qt()],ge.prototype,"delay",void 0);bt([h()],ge.prototype,"position",void 0);bt([le([])],ge.prototype,"ignoreMatchingElements",void 0);bt([Qn()],ge.prototype,"slotNodes",void 0);bt([T(".ft-tooltip--container")],ge.prototype,"container",void 0);bt([T(".ft-tooltip")],ge.prototype,"tooltip",void 0);bt([T(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0);bt([A()],ge.prototype,"visible",void 0);var ap={"ft-tooltip":ge};W(ap);var Be={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},lp=[E`
|
|
377
377
|
:host, i.ft-icon {
|
|
378
378
|
display: inline-flex;
|
|
379
379
|
align-items: center;
|
|
@@ -421,12 +421,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
421
421
|
.ft-icon--material {
|
|
422
422
|
font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
|
|
423
423
|
}
|
|
424
|
-
`,Ar];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var ve;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ve||(ve={}));var k;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(k||(k={}));var ul=new Map([...["abw"].map(t=>[t,k.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,k.AUDIO]),...["avi"].map(t=>[t,k.AVI]),...["chm","xhs"].map(t=>[t,k.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,k.CODE]),...["csv"].map(t=>[t,k.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,k.DITA]),...["epub"].map(t=>[t,k.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,k.EXCEL]),...["flac"].map(t=>[t,k.FLAC]),...["gif"].map(t=>[t,k.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,k.GZIP]),...["html","htm","xhtml"].map(t=>[t,k.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,k.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,k.JPEG]),...["json"].map(t=>[t,k.JSON]),...["m4a","m4p"].map(t=>[t,k.M4A]),...["mov","qt"].map(t=>[t,k.MOV]),...["mp3"].map(t=>[t,k.MP3]),...["mp4","m4v"].map(t=>[t,k.MP4]),...["ogg","oga"].map(t=>[t,k.OGG]),...["pdf","ps"].map(t=>[t,k.PDF]),...["png"].map(t=>[t,k.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,k.POWERPOINT]),...["rar"].map(t=>[t,k.RAR]),...["stp"].map(t=>[t,k.STP]),...["txt","rtf","md","mdown"].map(t=>[t,k.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,k.VIDEO]),...["wav"].map(t=>[t,k.WAV]),...["wma"].map(t=>[t,k.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,k.WORD]),...["xml","xsl","rdf"].map(t=>[t,k.XML]),...["yaml","yml","x-yaml"].map(t=>[t,k.YAML]),...["zip"].map(t=>[t,k.ZIP])]),Ag=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Rn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[a,l]=(((r=Ag.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=ul.get(l))!==null&&i!==void 0?i:ul.get(e))!==null&&n!==void 0?n:ul.get(a))!==null&&s!==void 0?s:k.UNKNOWN}var mk={[k.ABW]:"#91ABC6",[k.AUDIO]:"#1795E3",[k.AVI]:"#E63324",[k.CHM]:"#71C3EB",[k.CODE]:"#71C3EB",[k.CSV]:"#1F7345",[k.DITA]:"#71C3EB",[k.EPUB]:"#85B926",[k.EXCEL]:"#1F7345",[k.FLAC]:"#1795E3",[k.GIF]:"#59B031",[k.GZIP]:"#F8AB36",[k.HTML]:"#71C3EB",[k.IMAGE]:"#59B031",[k.JPEG]:"#59B031",[k.JSON]:"#71C3EB",[k.M4A]:"#1795E3",[k.MOV]:"#E63324",[k.MP3]:"#1795E3",[k.MP4]:"#E63324",[k.OGG]:"#1795E3",[k.PDF]:"#E44948",[k.PNG]:"#59B031",[k.POWERPOINT]:"#B54A2B",[k.RAR]:"#F8AB36",[k.STP]:"#3764B1",[k.TEXT]:"#3162AB",[k.UNKNOWN]:"#999999",[k.VIDEO]:"#E63324",[k.WAV]:"#1795E3",[k.WMA]:"#1795E3",[k.WORD]:"#3162AB",[k.XML]:"#71C3EB",[k.YAML]:"#71C3EB",[k.ZIP]:"#F8AB36"};var mi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},se=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return y`
|
|
424
|
+
`,wr];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var ve;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ve||(ve={}));var _;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(_||(_={}));var dl=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]),fg=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function _n(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[a,l]=(((r=fg.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=dl.get(l))!==null&&i!==void 0?i:dl.get(e))!==null&&n!==void 0?n:dl.get(a))!==null&&s!==void 0?s:_.UNKNOWN}var J_={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},se=class extends P{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=R}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return y`
|
|
425
425
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
426
|
-
${
|
|
426
|
+
${rs(this.resolvedIcon)}
|
|
427
427
|
<slot ?hidden=${r}></slot>
|
|
428
428
|
</i>
|
|
429
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=
|
|
429
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=_[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||R;break;default:this.resolvedIcon=(r=ve[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};se.elementDefinitions={};se.styles=lp;gi([h()],se.prototype,"variant",void 0);gi([h()],se.prototype,"value",void 0);gi([h({reflect:!0,attribute:"aria-hidden"})],se.prototype,"ariaHidden",void 0);gi([A()],se.prototype,"resolvedIcon",void 0);gi([T("slot")],se.prototype,"slottedContent",void 0);var cp={"ft-icon":se};W(cp);var Gr={color:o.extend("--ft-loader-color","",v.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},dp=E`
|
|
430
430
|
:host {
|
|
431
431
|
line-height: 0;
|
|
432
432
|
}
|
|
@@ -435,8 +435,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
435
435
|
display: inline-block;
|
|
436
436
|
position: relative;
|
|
437
437
|
|
|
438
|
-
width: ${
|
|
439
|
-
height: ${
|
|
438
|
+
width: ${Gr.size};
|
|
439
|
+
height: ${Gr.size};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.ft-loader div {
|
|
@@ -445,7 +445,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
445
445
|
width: 25%;
|
|
446
446
|
height: 25%;
|
|
447
447
|
border-radius: 50%;
|
|
448
|
-
background: ${
|
|
448
|
+
background: ${Gr.color};
|
|
449
449
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
450
450
|
}
|
|
451
451
|
|
|
@@ -492,17 +492,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
492
492
|
transform: translate(0, 0);
|
|
493
493
|
}
|
|
494
494
|
100% {
|
|
495
|
-
transform: translate(calc(0.35 * ${
|
|
495
|
+
transform: translate(calc(0.35 * ${Gr.size}), 0);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
`;var
|
|
498
|
+
`;var jr=class extends P{render(){return y`
|
|
499
499
|
<div class="ft-loader">
|
|
500
500
|
<div></div>
|
|
501
501
|
<div></div>
|
|
502
502
|
<div></div>
|
|
503
503
|
<div></div>
|
|
504
504
|
</div>
|
|
505
|
-
`}};
|
|
505
|
+
`}};jr.styles=dp;var up={"ft-loader":jr};W(up);var xt=t=>t??R;var pp=o.extend("--ft-button-color","",v.colorPrimary),H={backgroundColor:o.extend("--ft-button-background-color","",v.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",v.borderRadiusL),color:pp,fontSize:o.extend("--ft-button-font-size","",yt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",pp),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(v.colorOpacityDisabled,"Design system")},fp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",v.colorOnPrimary)),ul={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",v.colorPrimary)),color:fp,rippleColor:o.extend("--ft-button-primary-ripple-color","",fp)},vt={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",v.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")},hp=E`
|
|
506
506
|
:host {
|
|
507
507
|
display: inline-block;
|
|
508
508
|
max-width: 100%;
|
|
@@ -512,7 +512,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
512
512
|
.ft-button {
|
|
513
513
|
box-shadow: 0px 0px 0px transparent;
|
|
514
514
|
text-shadow: 0px 0px 0px transparent;
|
|
515
|
-
font-size: ${
|
|
515
|
+
font-size: ${H.fontSize};
|
|
516
516
|
text-decoration: none;
|
|
517
517
|
position: relative;
|
|
518
518
|
display: flex;
|
|
@@ -523,15 +523,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
523
523
|
border: none;
|
|
524
524
|
pointer-events: auto;
|
|
525
525
|
|
|
526
|
-
--button-internal-line-height: max(calc(${
|
|
527
|
-
--button-internal-color: ${
|
|
528
|
-
${
|
|
529
|
-
${
|
|
530
|
-
${
|
|
526
|
+
--button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
|
|
527
|
+
--button-internal-color: ${H.color};
|
|
528
|
+
${O(Be.size,H.iconSize)};
|
|
529
|
+
${O(X.color,H.rippleColor)};
|
|
530
|
+
${O(X.borderRadius,H.borderRadius)};
|
|
531
531
|
|
|
532
|
-
border-radius: ${
|
|
533
|
-
padding: ${
|
|
534
|
-
background-color: ${
|
|
532
|
+
border-radius: ${H.borderRadius};
|
|
533
|
+
padding: ${H.verticalPadding} ${H.horizontalPadding};
|
|
534
|
+
background-color: ${H.backgroundColor};
|
|
535
535
|
color: var(--button-internal-color);
|
|
536
536
|
|
|
537
537
|
.ft-button--label {
|
|
@@ -540,9 +540,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
540
540
|
white-space: nowrap;
|
|
541
541
|
text-overflow: ellipsis;
|
|
542
542
|
display: block;
|
|
543
|
-
margin: 0 ${
|
|
544
|
-
${
|
|
545
|
-
${
|
|
543
|
+
margin: 0 ${H.iconPadding};
|
|
544
|
+
${O(yt.fontSize,"1em")};
|
|
545
|
+
${O(yt.lineHeight,"var(--button-internal-line-height)")};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
[part="icon"] {
|
|
@@ -571,30 +571,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
&:focus-visible {
|
|
574
|
-
outline: 2px solid ${
|
|
574
|
+
outline: 2px solid ${v.colorPrimary};
|
|
575
575
|
outline-offset: 2px;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
&[disabled] {
|
|
579
579
|
filter: grayscale(1);
|
|
580
|
-
opacity: ${
|
|
580
|
+
opacity: ${H.opacityDisabled};
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
&.ft-button--primary {
|
|
584
|
-
background-color: ${
|
|
585
|
-
--button-internal-color: ${
|
|
586
|
-
${
|
|
584
|
+
background-color: ${ul.backgroundColor};
|
|
585
|
+
--button-internal-color: ${ul.color};
|
|
586
|
+
${O(X.color,ul.rippleColor)};
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
&.ft-button--outlined {
|
|
590
590
|
border: 1px solid var(--button-internal-color);
|
|
591
|
-
padding: calc(${
|
|
591
|
+
padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
&.ft-button--dense {
|
|
595
595
|
padding: ${vt.verticalPadding} ${vt.horizontalPadding};
|
|
596
596
|
border-radius: ${vt.borderRadius};
|
|
597
|
-
${
|
|
597
|
+
${O(X.borderRadius,vt.borderRadius)};
|
|
598
598
|
|
|
599
599
|
.ft-button--label {
|
|
600
600
|
margin: 0 ${vt.iconPadding};
|
|
@@ -606,13 +606,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
&.ft-button--round {
|
|
609
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
610
|
-
${
|
|
609
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding});
|
|
610
|
+
${O(X.borderRadius,E`calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding})`)};
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
&.ft-button--round.ft-button--dense {
|
|
614
614
|
border-radius: calc(var(--button-internal-line-height) / 2 + ${vt.verticalPadding});
|
|
615
|
-
${
|
|
615
|
+
${O(X.borderRadius,E`calc(var(--button-internal-line-height) / 2 + ${vt.verticalPadding})`)};
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
&.ft-button--no-text {
|
|
@@ -620,14 +620,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
620
620
|
margin: 0;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
padding: ${
|
|
623
|
+
padding: ${H.verticalPadding};
|
|
624
624
|
|
|
625
625
|
&.ft-button--dense {
|
|
626
626
|
padding: ${vt.verticalPadding};
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
&.ft-button--outlined {
|
|
630
|
-
padding: calc(${
|
|
630
|
+
padding: calc(${H.verticalPadding} - 1px);
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
&.ft-button--outlined.ft-button--dense {
|
|
@@ -641,10 +641,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
ft-loader {
|
|
644
|
-
${
|
|
645
|
-
${
|
|
644
|
+
${O(Gr.size,H.iconSize)};
|
|
645
|
+
${O(Gr.color,"var(--button-internal-color)")};
|
|
646
646
|
}
|
|
647
|
-
`;var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},F=class t extends wa(
|
|
647
|
+
`;var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},F=class t extends wa(P){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-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Nr},s=y`
|
|
648
648
|
<ft-ripple part="ripple"
|
|
649
649
|
?disabled=${this.isDisabled()}
|
|
650
650
|
?activated=${this.activated}
|
|
@@ -686,11 +686,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
686
686
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
687
687
|
`:y`
|
|
688
688
|
<slot part="icon" name="icon"></slot>
|
|
689
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};F.elementDefinitions={"ft-ripple":
|
|
689
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};F.elementDefinitions={"ft-ripple":G,"ft-tooltip":ge,"ft-icon":se,"ft-loader":jr,"ft-typography":te};F.styles=[Js,hp,wr];F.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:F.labelsObserver.unobserve(e.target)}});ie([h({type:Boolean})],F.prototype,"primary",void 0);ie([h({type:Boolean})],F.prototype,"outlined",void 0);ie([h({type:Boolean})],F.prototype,"dense",void 0);ie([h({type:Boolean})],F.prototype,"round",void 0);ie([h({type:Boolean})],F.prototype,"disabled",void 0);ie([h()],F.prototype,"icon",void 0);ie([h()],F.prototype,"iconVariant",void 0);ie([h({type:Boolean})],F.prototype,"trailingIcon",void 0);ie([h()],F.prototype,"label",void 0);ie([h()],F.prototype,"type",void 0);ie([h()],F.prototype,"href",void 0);ie([h()],F.prototype,"target",void 0);ie([h({type:Boolean})],F.prototype,"loading",void 0);ie([h({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);ie([h()],F.prototype,"ariaHasPopup",void 0);ie([h({attribute:"aria-pressed"})],F.prototype,"ariaPressed",void 0);ie([h({attribute:"aria-expanded"})],F.prototype,"ariaExpanded",void 0);ie([h()],F.prototype,"tooltipPosition",void 0);ie([h({type:Boolean})],F.prototype,"hideTooltip",void 0);ie([h({type:Boolean})],F.prototype,"forceTooltip",void 0);ie([h({type:Boolean})],F.prototype,"activated",void 0);ie([T(".ft-button")],F.prototype,"button",void 0);ie([T(".ft-button--label")],F.prototype,"labelContainer",void 0);ie([A()],F.prototype,"hasTextContent",void 0);ie([T(".ft-button--label slot")],F.prototype,"slottedContent",void 0);ie([T("[part=tooltip]")],F.prototype,"tooltip",void 0);var mp={"ft-button":F};W(mp);var we={height:o.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-input-border-radius","",v.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","",v.colorSurface),colorOnSurface:o.extend("--ft-search-input-color","",v.colorOnSurface),colorOnSurfaceMedium:o.extend("--ft-search-input-placeholder-color","",v.colorOnSurfaceMedium),colorOutline:o.extend("--ft-search-input-outline-color","",v.colorOutline),elevation02:o.extend("--ft-search-input-elevation","",v.elevation02),focusOutlineColor:o.extend("--ft-search-input-focused-outline-color","",v.colorPrimary),buttonColor:o.extend("--ft-search-input-button-color","",v.colorPrimary),buttonRippleColor:o.extend("--ft-search-input-button-ripple-color","",v.colorPrimary)},gp=E`
|
|
690
690
|
* {
|
|
691
691
|
box-sizing: border-box;
|
|
692
|
-
${
|
|
693
|
-
${
|
|
692
|
+
${O(H.color,we.buttonColor)};
|
|
693
|
+
${O(H.rippleColor,we.buttonRippleColor)};
|
|
694
694
|
}
|
|
695
695
|
|
|
696
696
|
.ft-search-input {
|
|
@@ -748,7 +748,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
748
748
|
.ft-search-input > ft-button,
|
|
749
749
|
.ft-search-input--actions ft-button {
|
|
750
750
|
flex-shrink: 0;
|
|
751
|
-
${
|
|
751
|
+
${O(H.backgroundColor,"transparent")};
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -760,7 +760,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
760
760
|
height: 20px;
|
|
761
761
|
border-right: 1px solid ${we.colorOutline};
|
|
762
762
|
}
|
|
763
|
-
`;var
|
|
763
|
+
`;var pl;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(pl||(pl={}));var kn=class t extends Event{constructor(){super(t.eventName)}};kn.eventName="search-context-clear-all-filters";var fl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ml=class extends Mo{constructor(e){super("register-ft-search-component",e)}},yp=Symbol("registerInterval"),hl=Symbol("registerAttempts"),hg=40,mg=Oe(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,a;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[hl]=0,this.tryToRegisterToContext(),this[yp]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[hl]>hg?window.clearInterval(this[yp]):(this[hl]++,this.dispatchEvent(new ml({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return fl([A()],e.prototype,"stateManager",void 0),fl([A({hasChanged:He})],e.prototype,"neededSearchRequests",void 0),fl([h()],e.prototype,"searchRegistrationId",void 0),e}),Ln=class extends mg(Ut){};var Gt=Co.build("designedSearchInput");var lt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(lt||(lt={}));var bp=E`
|
|
764
764
|
.ft-size-watcher--pixel {
|
|
765
765
|
width: 0;
|
|
766
766
|
height: 0;
|
|
@@ -779,11 +779,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
779
779
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
780
780
|
width: 100%;
|
|
781
781
|
}
|
|
782
|
-
`;var
|
|
782
|
+
`;var yi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},gl=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Je=class extends P{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=lt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new J}render(){return y`
|
|
783
783
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
784
784
|
<div class="ft-size-watcher--watcher"></div>
|
|
785
785
|
</div>
|
|
786
|
-
`}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=lt.S:this.size<976?this.category=lt.M:this.size<1024?this.category=lt.L:this.size<1440?this.category=lt.XL:this.category=lt.XXL,this.dispatchEvent(new
|
|
786
|
+
`}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=lt.S:this.size<976?this.category=lt.M:this.size<1024?this.category=lt.L:this.size<1440?this.category=lt.XL:this.category=lt.XXL,this.dispatchEvent(new gl(this.size,this.category)))},this.debounceTimeout)}};Je.elementDefinitions={};Je.styles=bp;yi([h({type:Number})],Je.prototype,"debounceTimeout",void 0);yi([h({type:Boolean})],Je.prototype,"local",void 0);yi([h({type:Number,reflect:!0})],Je.prototype,"size",void 0);yi([h({type:String,reflect:!0})],Je.prototype,"category",void 0);yi([T(".ft-size-watcher--watcher")],Je.prototype,"watcher",void 0);var xp={"ft-size-watcher":Je};W(xp);function In(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function vp(t){return In(t).split("|").pop()}function Sp(t){return In(t).split("|").join(" > ")}function Cp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Cp(r,t.selected)),value:t.value}}function Ep(t){return Ye(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function yl(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Cp(e,!1))}}function Op(t){return Ye(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var bi={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",v.colorOnSurface),borderRadiusM:o.external(v.borderRadiusM,"Design system"),colorOutline:o.external(v.colorOutline,"Design system"),colorOnSurface:o.external(v.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(v.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(v.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(v.colorPrimary,"Design system"),colorOnPrimary:o.external(v.colorOnPrimary,"Design system"),fontFamily:o.external(xe.fontFamily,"Body2 typography"),fontSize:o.external(xe.fontSize,"Body2 typography"),fontWeight:o.external(xe.fontWeight,"Body2 typography"),letterSpacing:o.external(xe.letterSpacing,"Body2 typography"),lineHeight:o.external(xe.lineHeight,"Body2 typography"),textTransform:o.external(xe.textTransform,"Body2 typography")},wp=E`
|
|
787
787
|
.ft-filter-level--container {
|
|
788
788
|
display: flex;
|
|
789
789
|
flex-direction: column;
|
|
@@ -798,14 +798,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
798
798
|
flex-shrink: 0;
|
|
799
799
|
text-decoration: none;
|
|
800
800
|
position: relative;
|
|
801
|
-
border-radius: ${
|
|
801
|
+
border-radius: ${bi.borderRadiusM};
|
|
802
802
|
overflow: hidden;
|
|
803
803
|
display: flex;
|
|
804
804
|
align-items: center;
|
|
805
805
|
padding: 4px 4px;
|
|
806
806
|
gap: 4px;
|
|
807
807
|
cursor: pointer;
|
|
808
|
-
color: ${
|
|
808
|
+
color: ${bi.colorOnSurface};
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
.ft-filter-level--go-back:focus {
|
|
@@ -834,7 +834,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
ft-button {
|
|
837
|
-
${
|
|
837
|
+
${O(H.color,bi.colorOnSurface)};
|
|
838
838
|
}
|
|
839
839
|
|
|
840
840
|
.ft-filter-level--display-buttons {
|
|
@@ -846,7 +846,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
846
846
|
ft-button.ft-filter-level--display-less {
|
|
847
847
|
flex: 1 1 0;
|
|
848
848
|
min-width: 0;
|
|
849
|
-
${
|
|
849
|
+
${O(H.color,bi.buttonMoreColor)};
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
ft-radio, ft-checkbox {
|
|
@@ -860,9 +860,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
860
860
|
|
|
861
861
|
.ft-filter-level--no-values {
|
|
862
862
|
margin: 10px 0;
|
|
863
|
-
color: ${
|
|
863
|
+
color: ${bi.colorOnSurfaceMedium};
|
|
864
864
|
}
|
|
865
|
-
`;var et={textColor:o.extend("--ft-checkbox-text-color","",
|
|
865
|
+
`;var et={textColor:o.extend("--ft-checkbox-text-color","",v.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",v.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",v.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",v.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",v.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",v.colorError)},Ap=E`
|
|
866
866
|
* {
|
|
867
867
|
box-sizing: border-box;
|
|
868
868
|
}
|
|
@@ -943,7 +943,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
943
943
|
|
|
944
944
|
.ft-checkbox.ft-checkbox--error {
|
|
945
945
|
color: ${et.errorColor};
|
|
946
|
-
${
|
|
946
|
+
${O(X.color,et.errorColor)};
|
|
947
947
|
|
|
948
948
|
.ft-checkbox--box {
|
|
949
949
|
border-color: ${et.errorColor};
|
|
@@ -957,14 +957,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
.ft-checkbox:has(:focus-visible) {
|
|
960
|
-
outline: 2px solid ${
|
|
960
|
+
outline: 2px solid ${v.colorPrimary};
|
|
961
961
|
outline-offset: -2px;
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
.ft-checkbox ft-typography {
|
|
965
965
|
padding-right: 2px;
|
|
966
966
|
}
|
|
967
|
-
`;var It=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
967
|
+
`;var It=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},bl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},_e=class extends P{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return y`
|
|
968
968
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
969
969
|
<ft-ripple part="checkbox-ripple"
|
|
970
970
|
?disabled=${this.disabled}
|
|
@@ -999,15 +999,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
999
999
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
1000
1000
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
1001
1001
|
</svg>
|
|
1002
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new
|
|
1002
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new bl(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};_e.elementDefinitions={"ft-ripple":G,"ft-typography":te};_e.styles=Ap;It([h()],_e.prototype,"name",void 0);It([h()],_e.prototype,"value",void 0);It([h({type:Boolean,reflect:!0})],_e.prototype,"checked",void 0);It([h({type:Boolean})],_e.prototype,"indeterminate",void 0);It([h({type:Boolean})],_e.prototype,"disabled",void 0);It([h({type:Boolean})],_e.prototype,"error",void 0);It([h({attribute:"aria-label"})],_e.prototype,"ariaLabel",void 0);It([T(".ft-checkbox")],_e.prototype,"container",void 0);It([T("ft-ripple")],_e.prototype,"ripple",void 0);It([T("input")],_e.prototype,"input",void 0);var Rp={"ft-checkbox":_e};W(Rp);var sr={textColor:o.extend("--ft-radio-text-color","",v.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",L.fontSize),colorPrimary:o.external(v.colorPrimary,"Design system"),colorOnPrimary:o.external(v.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",v.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(v.colorOnSurfaceDisabled,"Design system")},_p=E`
|
|
1003
1003
|
* {
|
|
1004
1004
|
box-sizing: border-box;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
.ft-radio {
|
|
1008
1008
|
box-sizing: border-box;
|
|
1009
|
-
color: ${
|
|
1010
|
-
font-size: ${
|
|
1009
|
+
color: ${sr.textColor};
|
|
1010
|
+
font-size: ${sr.fontSize};
|
|
1011
1011
|
|
|
1012
1012
|
display: inline-flex;
|
|
1013
1013
|
align-items: center;
|
|
@@ -1015,7 +1015,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
.ft-radio--disabled {
|
|
1018
|
-
color: ${
|
|
1018
|
+
color: ${sr.colorOnSurfaceDisabled};
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
1021
|
input {
|
|
@@ -1038,7 +1038,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
.ft-radio--box {
|
|
1041
|
-
border: 2px solid ${
|
|
1041
|
+
border: 2px solid ${sr.borderColor};
|
|
1042
1042
|
border-radius: 50%;
|
|
1043
1043
|
|
|
1044
1044
|
display: flex;
|
|
@@ -1051,7 +1051,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1051
1051
|
|
|
1052
1052
|
.ft-radio--box:after {
|
|
1053
1053
|
content: " ";
|
|
1054
|
-
background-color: ${
|
|
1054
|
+
background-color: ${sr.colorPrimary};
|
|
1055
1055
|
|
|
1056
1056
|
border-radius: 50%;
|
|
1057
1057
|
|
|
@@ -1063,7 +1063,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
.ft-radio--checked .ft-radio--box {
|
|
1066
|
-
border-color: ${
|
|
1066
|
+
border-color: ${sr.colorPrimary};
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
1069
|
|
|
@@ -1072,23 +1072,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
1074
|
.ft-radio--disabled .ft-radio--box {
|
|
1075
|
-
border-color: ${
|
|
1075
|
+
border-color: ${sr.colorOnSurfaceDisabled};
|
|
1076
1076
|
background-color: transparent;
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1080
|
-
background-color: ${
|
|
1080
|
+
background-color: ${sr.colorOnSurfaceDisabled};
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
1083
|
.ft-radio:has(:focus-visible) {
|
|
1084
|
-
outline: 2px solid ${
|
|
1084
|
+
outline: 2px solid ${v.colorPrimary};
|
|
1085
1085
|
outline-offset: -2px;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
.ft-radio ft-typography {
|
|
1089
1089
|
padding-right: 2px;
|
|
1090
1090
|
}
|
|
1091
|
-
`;var
|
|
1091
|
+
`;var ar=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Tn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ke=class extends P{constructor(){super(...arguments),this.name="",this.value="",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}}render(){return y`
|
|
1092
1092
|
<div class="${oe(this.radioClasses)}"
|
|
1093
1093
|
@click=${this.onClick}>
|
|
1094
1094
|
<div class="ft-radio--box-container">
|
|
@@ -1114,7 +1114,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1114
1114
|
</ft-typography>
|
|
1115
1115
|
</label>
|
|
1116
1116
|
</div>
|
|
1117
|
-
`}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
|
|
1117
|
+
`}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 Tn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Tn(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 r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ke.elementDefinitions={"ft-ripple":G,"ft-typography":te};ke.styles=_p;ar([h()],ke.prototype,"name",void 0);ar([h()],ke.prototype,"value",void 0);ar([h({type:Boolean,reflect:!0})],ke.prototype,"checked",void 0);ar([h({attribute:"aria-checked",reflect:!0})],ke.prototype,"ariaChecked",void 0);ar([h({type:Boolean})],ke.prototype,"disabled",void 0);ar([T(".ft-radio")],ke.prototype,"container",void 0);ar([T("ft-ripple")],ke.prototype,"ripple",void 0);ar([T("input")],ke.prototype,"input",void 0);var kp=E`
|
|
1118
1118
|
:host {
|
|
1119
1119
|
display: block;
|
|
1120
1120
|
}
|
|
@@ -1122,12 +1122,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1122
1122
|
:host(:focus-visible) {
|
|
1123
1123
|
outline: none;
|
|
1124
1124
|
}
|
|
1125
|
-
`;var
|
|
1125
|
+
`;var xi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends P{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(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&&r!==void 0?r:[]}render(){return y`
|
|
1126
1126
|
<slot @slotchange=${this.onSlotChange}
|
|
1127
1127
|
@change=${this.onChange}
|
|
1128
1128
|
@keydown=${this.onKeyDown}
|
|
1129
1129
|
></slot>
|
|
1130
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};tt.elementDefinitions={};tt.styles=
|
|
1130
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};tt.elementDefinitions={};tt.styles=kp;xi([h()],tt.prototype,"name",void 0);xi([h({reflect:!0,attribute:"role"})],tt.prototype,"role",void 0);xi([h({reflect:!0,attribute:"aria-labelledby"})],tt.prototype,"ariaLabelledBy",void 0);xi([Yn()],tt.prototype,"assignedElements",void 0);xi([A()],tt.prototype,"currentSelectedIndex",void 0);var Lp={"ft-radio":ke,"ft-radio-group":tt};W(Lp);var lr=Co.build("designedFilterComponent");var ze=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xl={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},ye=class extends mn(So(Ta(P)),xl){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new J(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}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){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return y`
|
|
1131
1131
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1132
1132
|
${this.parent==null?null:y`
|
|
1133
1133
|
<div tabindex="0"
|
|
@@ -1145,13 +1145,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1145
1145
|
`}
|
|
1146
1146
|
${this.filteredOptions.length===0?y`
|
|
1147
1147
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${fe.body2}">
|
|
1148
|
-
${
|
|
1148
|
+
${lr.messages.noFilterValuesAvailable()}
|
|
1149
1149
|
</ft-typography>
|
|
1150
|
-
`:
|
|
1150
|
+
`:R}
|
|
1151
1151
|
${ae(e,n=>n.value,n=>{var s;return y`
|
|
1152
1152
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1153
1153
|
${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
|
|
1154
|
-
${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?
|
|
1154
|
+
${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?R:y`
|
|
1155
1155
|
<ft-button icon="thin_arrow_right"
|
|
1156
1156
|
part="controls navigate-hierarchy"
|
|
1157
1157
|
aria-label="Expand node"
|
|
@@ -1171,9 +1171,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1171
1171
|
dense trailingIcon
|
|
1172
1172
|
part="controls display-less"
|
|
1173
1173
|
@click=${()=>{this.emitAnalyticsAction("less-filters-button-pressed",{}),this.displayLess()}}>
|
|
1174
|
-
${
|
|
1174
|
+
${lr.messages.displayLessFilterValuesButton()}
|
|
1175
1175
|
</ft-button>
|
|
1176
|
-
`:
|
|
1176
|
+
`:R}
|
|
1177
1177
|
${r?y`
|
|
1178
1178
|
<ft-button
|
|
1179
1179
|
class="ft-filter-level--display-more"
|
|
@@ -1181,11 +1181,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1181
1181
|
dense trailingIcon
|
|
1182
1182
|
part="controls display-more"
|
|
1183
1183
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1184
|
-
${
|
|
1184
|
+
${lr.messages.displayMoreFilterValuesButton()}
|
|
1185
1185
|
</ft-button>
|
|
1186
|
-
`:
|
|
1186
|
+
`:R}
|
|
1187
1187
|
</div>
|
|
1188
|
-
`:
|
|
1188
|
+
`:R}
|
|
1189
1189
|
</div>
|
|
1190
1190
|
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return y`
|
|
1191
1191
|
<ft-checkbox name="${this.filterId}"
|
|
@@ -1209,7 +1209,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1209
1209
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1210
1210
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1211
1211
|
</ft-radio>
|
|
1212
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ye.elementDefinitions={"ft-button":F,"ft-ripple":
|
|
1212
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ye.elementDefinitions={"ft-button":F,"ft-ripple":G,"ft-typography":te,"ft-checkbox":_e,"ft-icon":se,"ft-radio":ke};ye.styles=wp;ze([h({type:String})],ye.prototype,"filterId",void 0);ze([h({type:Object})],ye.prototype,"parent",void 0);ze([h({type:Array,hasChanged:He})],ye.prototype,"options",void 0);ze([h({type:Boolean})],ye.prototype,"multivalued",void 0);ze([h({type:Boolean})],ye.prototype,"disabled",void 0);ze([h({type:Boolean})],ye.prototype,"hideSelectedOptions",void 0);ze([h({type:Boolean})],ye.prototype,"displayCount",void 0);ze([h({type:Boolean})],ye.prototype,"preventNavigation",void 0);ze([h({type:String})],ye.prototype,"filter",void 0);ze([h()],ye.prototype,"filteredOptionsNumberAriaNotification",void 0);ze([qt()],ye.prototype,"displayedValuesMinimum",void 0);ze([T(".ft-filter-level--container")],ye.prototype,"container",void 0);ze([A()],ye.prototype,"radios",void 0);ze([A()],ye.prototype,"displayedPages",void 0);ze([A()],ye.prototype,"filteredOptions",void 0);var Ve={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",v.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(v.colorSurface,"Design system")},Ip=E`
|
|
1213
1213
|
.ft-snap-scroll {
|
|
1214
1214
|
box-sizing: border-box;
|
|
1215
1215
|
position: relative;
|
|
@@ -1290,8 +1290,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1290
1290
|
z-index: ${Ve.buttonsZIndex};
|
|
1291
1291
|
opacity: 1;
|
|
1292
1292
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1293
|
-
${
|
|
1294
|
-
${
|
|
1293
|
+
${O(H.backgroundColor,"transparent")};
|
|
1294
|
+
${O(H.color,Ve.buttonsColor)};
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1334,7 +1334,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1334
1334
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1335
1335
|
background-color: ${Ve.colorSurface};
|
|
1336
1336
|
}
|
|
1337
|
-
`;var Tt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
1337
|
+
`;var Tt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},vl=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Se=class extends P{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 J(200),this.updateScrollDebouncer=new J(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=oe({"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":Nr}),r=this.controls&&this.withScroll;return y`
|
|
1338
1338
|
<div part="container" class="${e}">
|
|
1339
1339
|
<ft-button
|
|
1340
1340
|
class="ft-snap-scroll--previous"
|
|
@@ -1358,7 +1358,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1358
1358
|
@click=${this.next}
|
|
1359
1359
|
></ft-button>
|
|
1360
1360
|
</div>
|
|
1361
|
-
`}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
|
|
1361
|
+
`}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 vl(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};Se.elementDefinitions={"ft-button":F};Se.styles=Ip;Tt([h({type:Boolean})],Se.prototype,"horizontal",void 0);Tt([h({type:Boolean})],Se.prototype,"hideScrollbar",void 0);Tt([h({type:Boolean})],Se.prototype,"controls",void 0);Tt([h({type:Boolean})],Se.prototype,"limitSize",void 0);Tt([A()],Se.prototype,"elements",void 0);Tt([A()],Se.prototype,"currentElement",void 0);Tt([A()],Se.prototype,"withScroll",void 0);Tt([A()],Se.prototype,"startReached",void 0);Tt([A()],Se.prototype,"endReached",void 0);Tt([T(".ft-snap-scroll--content")],Se.prototype,"contentSlot",void 0);var Tp={"ft-snap-scroll":Se};W(Tp);var qe={colorOutline:o.external(v.colorOutline,"Design system"),colorOnSurface:o.external(v.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(v.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(v.colorPrimary,"Design system"),colorSurface:o.external(v.colorSurface,"Design system"),transitionDuration:o.external(v.transitionDuration,"Design system"),transitionTimingFunction:o.external(v.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",v.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},Pp=[ir,Ar,E`
|
|
1362
1362
|
:host {
|
|
1363
1363
|
display: flex;
|
|
1364
1364
|
max-height: 100%;
|
|
@@ -1386,7 +1386,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1386
1386
|
.ft-filter--header ft-button {
|
|
1387
1387
|
flex-shrink: 0;
|
|
1388
1388
|
margin-left: auto;
|
|
1389
|
-
${
|
|
1389
|
+
${O(H.iconSize,"18px")};
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
1392
|
.filter-label {
|
|
@@ -1400,8 +1400,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1400
1400
|
word-break: break-word;
|
|
1401
1401
|
color: ${qe.labelColor};
|
|
1402
1402
|
font-size: ${qe.labelFontSize};
|
|
1403
|
-
${
|
|
1404
|
-
${
|
|
1403
|
+
${O(L.lineHeight,"22px")};
|
|
1404
|
+
${O(L.fontWeight,"bold")};
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
1407
|
.ft-filter--filter {
|
|
@@ -1475,7 +1475,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1475
1475
|
slot:not([name]) {
|
|
1476
1476
|
display: none;
|
|
1477
1477
|
}
|
|
1478
|
-
`];var be=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
1478
|
+
`];var be=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Sl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},re=class extends mn(P,xl){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new J(300),this.changeDebouncer=new J(10),this.lastDispatchedValues=[]}get flatOptions(){return Ye(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ye(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=lr.messages.filterInputPlaceHolder(this.label);return y`
|
|
1479
1479
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1480
1480
|
part="container">
|
|
1481
1481
|
${!this.label&&!e?null:y`
|
|
@@ -1489,11 +1489,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1489
1489
|
</div>
|
|
1490
1490
|
${e&&!this.hideClearButton?y`
|
|
1491
1491
|
<ft-button icon="close"
|
|
1492
|
-
aria-label="${
|
|
1492
|
+
aria-label="${lr.messages.clearFilterButton()+" "+this.label}"
|
|
1493
1493
|
dense
|
|
1494
1494
|
@click=${()=>{this.clear(),this.focusOnFirstOption()}}
|
|
1495
1495
|
part="clear-button">
|
|
1496
|
-
${
|
|
1496
|
+
${lr.messages.clearFilterButton()}
|
|
1497
1497
|
</ft-button>
|
|
1498
1498
|
`:null}
|
|
1499
1499
|
</div>
|
|
@@ -1558,21 +1558,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1558
1558
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1559
1559
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1560
1560
|
></ft-filter-level>
|
|
1561
|
-
`}goBack(e){this.slideOut=e.detail.value
|
|
1561
|
+
`}goBack(e){this.slideOut=e.detail.value,Fo(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Fo(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){Fo(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.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 r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var a;s!==i&&(s.selected=!1),(a=s.subOptions)===null||a===void 0||a.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;he(this.lastDispatchedValues,e)||(this.dispatchEvent(new Sl(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};re.elementDefinitions={"ft-button":F,"ft-filter-level":ye,"ft-snap-scroll":Se,"ft-typography":te};re.styles=Pp;be([h({type:String})],re.prototype,"id",void 0);be([h({type:String})],re.prototype,"label",void 0);be([le([])],re.prototype,"options",void 0);be([h({type:Boolean})],re.prototype,"multivalued",void 0);be([h({type:Boolean})],re.prototype,"disabled",void 0);be([h({type:Boolean})],re.prototype,"raiseSelectedOptions",void 0);be([h({type:Boolean})],re.prototype,"displayCount",void 0);be([qt()],re.prototype,"displayedValuesMinimum",void 0);be([le(void 0)],re.prototype,"filteredOptionsNumberAriaNotification",void 0);be([h({type:Boolean})],re.prototype,"hideClearButton",void 0);be([T(".ft-filter--slot")],re.prototype,"slotElement",void 0);be([T(".ft-filter--container")],re.prototype,"container",void 0);be([T(".ft-filter--values")],re.prototype,"valuesContainer",void 0);be([T(".ft-filter--levels")],re.prototype,"levelsContainer",void 0);be([A()],re.prototype,"lastLevelHasHiddenvalues",void 0);be([T(".ft-filter--filter input")],re.prototype,"filterInput",void 0);be([Zn(".ft-filter--levels ft-filter-level")],re.prototype,"levels",void 0);be([A()],re.prototype,"withScroll",void 0);be([A()],re.prototype,"filter",void 0);be([A()],re.prototype,"slideIn",void 0);be([A()],re.prototype,"slideOut",void 0);var Oo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},rt=class extends P{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return y`
|
|
1562
1562
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1563
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rt.elementDefinitions={};
|
|
1563
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rt.elementDefinitions={};Oo([h({type:String})],rt.prototype,"label",void 0);Oo([h({type:Object,converter:t=>t})],rt.prototype,"value",void 0);Oo([h({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);Oo([h({type:Object})],rt.prototype,"subOptions",void 0);Oo([le({})],rt.prototype,"renderOption",void 0);Oo([T(".ft-filter-option--slot")],rt.prototype,"slotElement",void 0);var Np={"ft-filter":re,"ft-filter-option":rt};W(Np);var Dp=E`
|
|
1564
1564
|
.ft-accordion {
|
|
1565
1565
|
box-sizing: border-box;
|
|
1566
1566
|
}
|
|
1567
|
-
`;var
|
|
1567
|
+
`;var Fp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Pt=class extends P{constructor(){super(...arguments),this.multi=!1}render(){return y`
|
|
1568
1568
|
<div class="ft-accordion">
|
|
1569
1569
|
<slot @activated=${this.onChange}></slot>
|
|
1570
1570
|
</div>
|
|
1571
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Pt.elementDefinitions={};Pt.styles=
|
|
1571
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Pt.elementDefinitions={};Pt.styles=Dp;Fp([h({type:Boolean})],Pt.prototype,"multi",void 0);Fp([T("slot")],Pt.prototype,"content",void 0);var Kr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(v.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},$p=E`
|
|
1572
1572
|
.ft-accordion-item {
|
|
1573
1573
|
display: flex;
|
|
1574
1574
|
flex-direction: column;
|
|
1575
|
-
background-color: ${
|
|
1575
|
+
background-color: ${Kr.backgroundColor};
|
|
1576
1576
|
}
|
|
1577
1577
|
|
|
1578
1578
|
.ft-accordion-item--toggle {
|
|
@@ -1582,8 +1582,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1582
1582
|
display: flex;
|
|
1583
1583
|
align-items: center;
|
|
1584
1584
|
cursor: pointer;
|
|
1585
|
-
padding: ${
|
|
1586
|
-
gap: calc(${
|
|
1585
|
+
padding: ${Kr.verticalSpacing} ${Kr.horizontalSpacing};
|
|
1586
|
+
gap: calc(${Kr.horizontalSpacing} / 2);
|
|
1587
1587
|
outline: none;
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
@@ -1608,13 +1608,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1608
1608
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1609
1609
|
height: initial;
|
|
1610
1610
|
overflow: visible;
|
|
1611
|
-
padding: ${
|
|
1611
|
+
padding: ${Kr.verticalSpacing} ${Kr.horizontalSpacing};
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
1614
|
.ft-accordion-item--separator {
|
|
1615
|
-
border-bottom: 1px solid ${
|
|
1615
|
+
border-bottom: 1px solid ${Kr.colorOutline};
|
|
1616
1616
|
}
|
|
1617
|
-
`;var
|
|
1617
|
+
`;var Pn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ct=class extends P{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return y`
|
|
1618
1618
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1619
1619
|
<div class="ft-accordion-item--toggle"
|
|
1620
1620
|
part="toggle"
|
|
@@ -1644,7 +1644,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1644
1644
|
</div>
|
|
1645
1645
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1646
1646
|
</div>
|
|
1647
|
-
`}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)}};ct.elementDefinitions={"ft-ripple":
|
|
1647
|
+
`}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)}};ct.elementDefinitions={"ft-ripple":G,"ft-typography":te,"ft-icon":se};ct.styles=$p;Pn([h()],ct.prototype,"icon",void 0);Pn([h()],ct.prototype,"iconVariant",void 0);Pn([h()],ct.prototype,"label",void 0);Pn([h({type:Boolean,reflect:!0})],ct.prototype,"active",void 0);var Mp={"ft-accordion":Pt,"ft-accordion-item":ct};W(Mp);var Bp=o.extend("--ft-chip-color","",v.colorOnSurface),Te={backgroundColor:o.extend("--ft-chip-background-color","",v.colorSurface),color:Bp,fontSize:o.extend("--ft-chip-font-size","",xe.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",xe.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","",Bp),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","",v.colorOutline),opacityDisabled:o.external(v.colorOpacityDisabled,"Design system")},Up=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",v.colorOnPrimary)),Cl={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",v.colorPrimary)),color:Up,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Up)},zp={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Vp=[wr,E`
|
|
1648
1648
|
:host {
|
|
1649
1649
|
display: inline-block;
|
|
1650
1650
|
max-width: 100%;
|
|
@@ -1663,7 +1663,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1663
1663
|
--chip-internal-font-size: ${Te.fontSize};
|
|
1664
1664
|
--chip-internal-font-weight: ${Te.fontWeight};
|
|
1665
1665
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1666
|
-
${
|
|
1666
|
+
${O(Be.size,Te.iconSize)};
|
|
1667
1667
|
--chip-internal-vertical-padding: ${Te.verticalPadding};
|
|
1668
1668
|
--chip-internal-horizontal-padding: ${Te.horizontalPadding};
|
|
1669
1669
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1671,8 +1671,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1671
1671
|
|
|
1672
1672
|
border: 1px solid ${Te.borderColor};
|
|
1673
1673
|
color: ${Te.color};
|
|
1674
|
-
${
|
|
1675
|
-
border-radius: var(${
|
|
1674
|
+
${O(X.color,Te.rippleColor)};
|
|
1675
|
+
border-radius: var(${ur(Te.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1676
1676
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1677
1677
|
background-color: ${Te.backgroundColor};
|
|
1678
1678
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1684,13 +1684,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1684
1684
|
|
|
1685
1685
|
.ft-chip--dense {
|
|
1686
1686
|
--chip-internal-icon-padding: 3px;
|
|
1687
|
-
--chip-internal-vertical-padding: ${
|
|
1688
|
-
--chip-internal-horizontal-padding: ${
|
|
1687
|
+
--chip-internal-vertical-padding: ${zp.verticalPadding};
|
|
1688
|
+
--chip-internal-horizontal-padding: ${zp.horizontalPadding};
|
|
1689
1689
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
1692
|
.ft-chip--no-content {
|
|
1693
|
-
--chip-internal-horizontal-padding: ${Te.horizontalPadding.get(
|
|
1693
|
+
--chip-internal-horizontal-padding: ${Te.horizontalPadding.get(E`var(--chip-internal-vertical-padding)`)};
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
1696
|
.ft-chip--disabled {
|
|
@@ -1703,9 +1703,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1703
1703
|
.ft-chip--highlighted {
|
|
1704
1704
|
border: none;
|
|
1705
1705
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1706
|
-
background-color: ${
|
|
1707
|
-
${
|
|
1708
|
-
color: ${
|
|
1706
|
+
background-color: ${Cl.backgroundColor};
|
|
1707
|
+
${O(X.color,Cl.rippleColor)};
|
|
1708
|
+
color: ${Cl.color};
|
|
1709
1709
|
}
|
|
1710
1710
|
|
|
1711
1711
|
.ft-chip--clickable {
|
|
@@ -1714,7 +1714,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
1716
|
.ft-chip:focus {
|
|
1717
|
-
outline: 2px solid ${
|
|
1717
|
+
outline: 2px solid ${v.colorPrimary};
|
|
1718
1718
|
outline-offset: 2px;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
@@ -1736,9 +1736,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
.ft-chip--icon-button {
|
|
1739
|
-
${
|
|
1740
|
-
${
|
|
1741
|
-
${
|
|
1739
|
+
${O(H.iconSize,Te.iconSize)};
|
|
1740
|
+
${O(H.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1741
|
+
${O(H.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1742
1742
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1743
1743
|
}
|
|
1744
1744
|
|
|
@@ -1746,9 +1746,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1746
1746
|
vertical-align: bottom;
|
|
1747
1747
|
display: block;
|
|
1748
1748
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1749
|
-
${
|
|
1750
|
-
${
|
|
1751
|
-
${
|
|
1749
|
+
${O(xe.fontSize,"var(--chip-internal-font-size)")};
|
|
1750
|
+
${O(xe.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1751
|
+
${O(xe.lineHeight,"var(--chip-internal-content-height)")};
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1784,15 +1784,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1784
1784
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1785
1785
|
order: -1;
|
|
1786
1786
|
}
|
|
1787
|
-
`];var Fe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},
|
|
1787
|
+
`];var Fe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Nn=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends P{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.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"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":Nr};return y`
|
|
1788
1788
|
<div class="${oe(r)}"
|
|
1789
|
-
aria-label="${this.labelOnIconOnly?
|
|
1789
|
+
aria-label="${this.labelOnIconOnly?R:this.getLabel()}"
|
|
1790
1790
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1791
1791
|
@keyup=${this.onKeyUp}
|
|
1792
1792
|
part="chip">
|
|
1793
1793
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
1794
1794
|
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1795
|
-
aria-hidden="${this.labelOnIconOnly?"true":
|
|
1795
|
+
aria-hidden="${this.labelOnIconOnly?"true":R}">
|
|
1796
1796
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1797
1797
|
</ft-typography>
|
|
1798
1798
|
${this.internalIcon?this.renderIcon():null}
|
|
@@ -1812,7 +1812,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1812
1812
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1813
1813
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1814
1814
|
</div>
|
|
1815
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1815
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Nn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Nn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Di(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":G,"ft-typography":te,"ft-icon":se,"ft-button":F};de.styles=Vp;Fe([h({type:Boolean})],de.prototype,"highlighted",void 0);Fe([h({type:Boolean})],de.prototype,"removable",void 0);Fe([h({type:Boolean})],de.prototype,"disabled",void 0);Fe([h({type:Boolean})],de.prototype,"clickable",void 0);Fe([h({type:Boolean})],de.prototype,"iconClickable",void 0);Fe([h({type:Boolean})],de.prototype,"dense",void 0);Fe([h({type:Boolean})],de.prototype,"multiLine",void 0);Fe([h()],de.prototype,"label",void 0);Fe([h()],de.prototype,"iconLabel",void 0);Fe([h({type:Boolean})],de.prototype,"hideIconTooltip",void 0);Fe([h({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);Fe([h()],de.prototype,"icon",void 0);Fe([h()],de.prototype,"iconVariant",void 0);Fe([h({type:Boolean})],de.prototype,"trailingIcon",void 0);Fe([h()],de.prototype,"typographyVariant",void 0);Fe([T("ft-typography slot")],de.prototype,"slottedContent",void 0);var Hp={"ft-chip":de};W(Hp);var Y={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",v.colorOutline),textColor:o.extend("--ft-input-label-text-color","",v.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",v.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",v.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",v.borderRadiusS),colorError:o.external(v.colorError,"Design system")},Wp=E`
|
|
1816
1816
|
.ft-input-label {
|
|
1817
1817
|
position: absolute;
|
|
1818
1818
|
inset: 0;
|
|
@@ -1858,8 +1858,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1858
1858
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1859
1859
|
max-width: calc(${Y.labelMaxWidth} - 2 * (${Y.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1860
1860
|
text-overflow: ellipsis;
|
|
1861
|
-
${
|
|
1862
|
-
${
|
|
1861
|
+
${O(je.fontSize,Y.fontSize)};
|
|
1862
|
+
${O(je.lineHeight,Y.fontSize)};
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
1865
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -1891,8 +1891,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
.ft-input-label--raised .ft-input-label--text {
|
|
1894
|
-
${
|
|
1895
|
-
${
|
|
1894
|
+
${O(je.fontSize,Y.raisedFontSize)};
|
|
1895
|
+
${O(je.lineHeight,Y.raisedFontSize)};
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
1898
1898
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -1906,16 +1906,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1906
1906
|
border-radius: ${Y.borderRadius};
|
|
1907
1907
|
top: calc((${je.lineHeight} / -2) + 2px);
|
|
1908
1908
|
}
|
|
1909
|
-
`;var
|
|
1909
|
+
`;var Gp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},qr=class extends P{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return y`
|
|
1910
1910
|
<div class="${oe(this.inputLabelClasses)}">
|
|
1911
|
-
${
|
|
1911
|
+
${Lr(this.text,()=>y`
|
|
1912
1912
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1913
1913
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1914
1914
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1915
1915
|
</div>
|
|
1916
1916
|
`)}
|
|
1917
1917
|
</div>
|
|
1918
|
-
`}};
|
|
1918
|
+
`}};qr.elementDefinitions={};Gp([h({type:String})],qr.prototype,"text",void 0);Gp([h({type:Boolean})],qr.prototype,"raised",void 0);var El=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},St=class extends qr{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}}};St.elementDefinitions={};St.styles=[ir,Wp];El([h({type:Boolean})],St.prototype,"outlined",void 0);El([h({type:Boolean})],St.prototype,"error",void 0);El([h({type:Boolean})],St.prototype,"disabled",void 0);var jp={"ft-input-label":St};W(jp);var j={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","",v.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",v.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",v.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",v.colorSurface),colorOnSurfaceDisabled:o.external(v.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(v.colorPrimary,"Design system"),borderRadiusS:o.external(v.borderRadiusS,"Design system"),elevation02:o.external(v.elevation02,"Design system"),colorError:o.external(v.colorError,"Design system")},Kp=E`
|
|
1919
1919
|
*:focus {
|
|
1920
1920
|
outline: none;
|
|
1921
1921
|
}
|
|
@@ -1930,7 +1930,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1930
1930
|
.ft-select--main-panel {
|
|
1931
1931
|
position: relative;
|
|
1932
1932
|
display: flex;
|
|
1933
|
-
height: calc(4 * ${
|
|
1933
|
+
height: calc(4 * ${j.verticalSpacing} + ${j.labelSize} + ${j.selectedOptionSize});
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
1936
|
.ft-select--input-panel {
|
|
@@ -1939,17 +1939,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1939
1939
|
display: flex;
|
|
1940
1940
|
align-items: center;
|
|
1941
1941
|
overflow: hidden;
|
|
1942
|
-
padding-left: ${
|
|
1943
|
-
padding-right: ${
|
|
1942
|
+
padding-left: ${j.horizontalSpacing};
|
|
1943
|
+
padding-right: ${j.horizontalSpacing};
|
|
1944
1944
|
gap: 8px;
|
|
1945
|
-
color: ${
|
|
1946
|
-
${
|
|
1945
|
+
color: ${j.selectedOptionColor};
|
|
1946
|
+
${O(X.color,j.selectedOptionColor)};
|
|
1947
1947
|
}
|
|
1948
1948
|
|
|
1949
1949
|
.ft-select--input-panel,
|
|
1950
1950
|
.ft-select--options {
|
|
1951
|
-
${
|
|
1952
|
-
${
|
|
1951
|
+
${O(X.opacityContentOnSurfaceHover,"0.08")};
|
|
1952
|
+
${O(X.opacityContentOnSurfacePressed,"0.04")};
|
|
1953
1953
|
}
|
|
1954
1954
|
|
|
1955
1955
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1958,7 +1958,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1958
1958
|
|
|
1959
1959
|
.ft-select--disabled .ft-select--input-panel,
|
|
1960
1960
|
.ft-select--disabled .ft-select--options {
|
|
1961
|
-
color: ${
|
|
1961
|
+
color: ${j.colorOnSurfaceDisabled};
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
1964
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1967,21 +1967,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
1969
|
ft-input-label {
|
|
1970
|
-
${
|
|
1971
|
-
${
|
|
1972
|
-
${
|
|
1973
|
-
${
|
|
1974
|
-
${
|
|
1975
|
-
${
|
|
1970
|
+
${O(Y.fontSize,j.selectedOptionSize)};
|
|
1971
|
+
${O(Y.raisedFontSize,j.labelSize)};
|
|
1972
|
+
${O(Y.verticalSpacing,j.verticalSpacing)};
|
|
1973
|
+
${O(Y.horizontalSpacing,j.horizontalSpacing)};
|
|
1974
|
+
${O(Y.backgroundColor,j.backgroundColor)};
|
|
1975
|
+
${O(Y.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
|
|
1976
1976
|
}
|
|
1977
1977
|
|
|
1978
1978
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1979
|
-
color: ${
|
|
1979
|
+
color: ${j.colorPrimary};
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
1982
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1983
|
-
${
|
|
1984
|
-
${
|
|
1983
|
+
${O(Y.borderColor,j.colorPrimary)};
|
|
1984
|
+
${O(Y.textColor,j.colorPrimary)};
|
|
1985
1985
|
}
|
|
1986
1986
|
|
|
1987
1987
|
.ft-select--selected-option {
|
|
@@ -1991,12 +1991,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1991
1991
|
overflow: hidden;
|
|
1992
1992
|
white-space: nowrap;
|
|
1993
1993
|
text-overflow: ellipsis;
|
|
1994
|
-
${
|
|
1995
|
-
${
|
|
1994
|
+
${O(Lt.fontSize,j.selectedOptionSize)};
|
|
1995
|
+
${O(Lt.lineHeight,j.selectedOptionSize)};
|
|
1996
1996
|
}
|
|
1997
1997
|
|
|
1998
1998
|
.ft-select--in-error .ft-select--selected-option {
|
|
1999
|
-
color: ${
|
|
1999
|
+
color: ${j.colorError};
|
|
2000
2000
|
}
|
|
2001
2001
|
|
|
2002
2002
|
ft-icon {
|
|
@@ -2006,26 +2006,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2006
2006
|
|
|
2007
2007
|
|
|
2008
2008
|
.ft-select--filled .ft-select--input-panel {
|
|
2009
|
-
border-radius: ${
|
|
2009
|
+
border-radius: ${j.borderRadiusS} ${j.borderRadiusS} 0 0;
|
|
2010
2010
|
}
|
|
2011
2011
|
|
|
2012
2012
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
2013
2013
|
align-self: stretch;
|
|
2014
|
-
padding-top: calc(${
|
|
2014
|
+
padding-top: calc(${j.labelSize} + 2 * ${j.verticalSpacing});
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
2017
|
.ft-select--outlined .ft-select--input-panel {
|
|
2018
|
-
border-radius: ${
|
|
2018
|
+
border-radius: ${j.borderRadiusS};
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
2021
|
.ft-select--options {
|
|
2022
2022
|
display: none;
|
|
2023
2023
|
position: absolute;
|
|
2024
2024
|
top: 100%;
|
|
2025
|
-
color: ${
|
|
2026
|
-
background: ${
|
|
2027
|
-
z-index: ${
|
|
2028
|
-
box-shadow: ${
|
|
2025
|
+
color: ${j.optionsColor};
|
|
2026
|
+
background: ${j.backgroundColor};
|
|
2027
|
+
z-index: ${j.optionsZIndex};
|
|
2028
|
+
box-shadow: ${j.elevation02};
|
|
2029
2029
|
width: max-content;
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
@@ -2035,26 +2035,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2035
2035
|
|
|
2036
2036
|
.ft-select--options-displayed .ft-select--options {
|
|
2037
2037
|
display: block;
|
|
2038
|
-
max-height: ${
|
|
2038
|
+
max-height: ${j.optionsHeight};
|
|
2039
2039
|
overflow-y: auto;
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
2042
|
.ft-select--helper-text {
|
|
2043
|
-
padding: 0 ${
|
|
2044
|
-
color: ${
|
|
2043
|
+
padding: 0 ${j.horizontalSpacing};
|
|
2044
|
+
color: ${j.helperColor};
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
2047
|
.ft-select--in-error .ft-select--helper-text {
|
|
2048
|
-
color: ${
|
|
2048
|
+
color: ${j.colorError};
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
2051
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
2052
2052
|
opacity: 0;
|
|
2053
2053
|
}
|
|
2054
|
-
`;var
|
|
2054
|
+
`;var qp=E`
|
|
2055
2055
|
.ft-select--option {
|
|
2056
|
-
${
|
|
2057
|
-
${
|
|
2056
|
+
${O(X.opacityContentOnSurfaceHover,"0.08")};
|
|
2057
|
+
${O(X.opacityContentOnSurfacePressed,"0.04")};
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
2060
2060
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -2063,14 +2063,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2063
2063
|
|
|
2064
2064
|
.ft-select--option {
|
|
2065
2065
|
position: relative;
|
|
2066
|
-
padding: 4px ${
|
|
2066
|
+
padding: 4px ${j.horizontalSpacing};
|
|
2067
2067
|
min-height: 32px;
|
|
2068
2068
|
display: flex;
|
|
2069
2069
|
align-items: center;
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
.ft-select--option:hover {
|
|
2073
|
-
border-left: 2px ${
|
|
2073
|
+
border-left: 2px ${j.colorPrimary} solid;
|
|
2074
2074
|
}
|
|
2075
2075
|
|
|
2076
2076
|
.ft-select--option span {
|
|
@@ -2078,7 +2078,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2078
2078
|
overflow: hidden;
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
`;var
|
|
2081
|
+
`;var vi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},$e=class extends P{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return y`
|
|
2082
2082
|
<div class="${oe(i)}"
|
|
2083
2083
|
part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
|
|
2084
2084
|
tabindex="0"
|
|
@@ -2090,7 +2090,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2090
2090
|
</slot>
|
|
2091
2091
|
${this.isSlotEmpty?y`<span>${this.label}</span>`:y``}
|
|
2092
2092
|
</div>
|
|
2093
|
-
`}onSlotChange(){this.isSlotEmpty=
|
|
2093
|
+
`}onSlotChange(){this.isSlotEmpty=Ko(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};$e.elementDefinitions={"ft-ripple":G};$e.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};$e.styles=[qp,or];vi([h({type:String})],$e.prototype,"label",void 0);vi([h({type:Object,converter:t=>t})],$e.prototype,"value",void 0);vi([h({type:Boolean,reflect:!0})],$e.prototype,"selected",void 0);vi([T("slot")],$e.prototype,"slotElement",void 0);vi([A()],$e.prototype,"isSlotEmpty",void 0);var Pe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var ne=class t extends P{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.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return ls(this.optionsList)}render(){var e,r,i,n,s;let a=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":a,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return y`
|
|
2094
2094
|
<div class="${oe(p)}" part="container">
|
|
2095
2095
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2096
2096
|
<ft-input-label text="${this.label}"
|
|
@@ -2107,7 +2107,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2107
2107
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2108
2108
|
@keydown=${this.onMainPanelKeyDown}
|
|
2109
2109
|
aria-label="${xt(this.ariaLabel)}"
|
|
2110
|
-
aria-labelledby="${
|
|
2110
|
+
aria-labelledby="${Lr(!this.ariaLabel,()=>"label")}"
|
|
2111
2111
|
aria-haspopup="listbox"
|
|
2112
2112
|
aria-expanded="${a}"
|
|
2113
2113
|
aria-activedescendant="${xt(this.getOptionId(this.selectedOption))}"
|
|
@@ -2131,13 +2131,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2131
2131
|
@option-change=${this.updateOptionsFromSlot}
|
|
2132
2132
|
>
|
|
2133
2133
|
</slot>
|
|
2134
|
-
${
|
|
2134
|
+
${Lr(this.isSlotEmpty,()=>ae(this.options,m=>m.value,m=>this.renderOption(m)))}
|
|
2135
2135
|
</div>
|
|
2136
2136
|
</div>
|
|
2137
2137
|
<slot name="helper" part="helper">
|
|
2138
2138
|
${this.helper?y`
|
|
2139
2139
|
<ft-typography class="ft-select--helper-text" variant="${fe.caption}">${this.helper}
|
|
2140
|
-
</ft-typography>`:
|
|
2140
|
+
</ft-typography>`:R}
|
|
2141
2141
|
</slot>
|
|
2142
2142
|
</div>
|
|
2143
2143
|
`}renderOption(e){let r=this.selectedOption===e;return y`
|
|
@@ -2146,7 +2146,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2146
2146
|
label="${e.label}"
|
|
2147
2147
|
.value=${e.value}
|
|
2148
2148
|
></ft-select-option>
|
|
2149
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];
|
|
2149
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];zs(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",j.optionsHeight,0).then(({x:s,y:a})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${a}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=Ko(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let n,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var s;return((s=n.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>he(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>he(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!he((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":St,"ft-typography":te,"ft-ripple":G,"ft-icon":se,"ft-select-option":$e};ne.searchTimeoutMilliseconds=2e3;ne.styles=[ir,Kp];Pe([h({type:String})],ne.prototype,"label",void 0);Pe([h({type:String})],ne.prototype,"ariaLabel",void 0);Pe([h({type:String})],ne.prototype,"helper",void 0);Pe([h({type:Boolean})],ne.prototype,"outlined",void 0);Pe([h({type:Boolean})],ne.prototype,"disabled",void 0);Pe([h({type:Boolean})],ne.prototype,"error",void 0);Pe([h({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Pe([h({type:Array})],ne.prototype,"options",void 0);Pe([A()],ne.prototype,"selectedOption",void 0);Pe([A()],ne.prototype,"optionsDisplayed",void 0);Pe([A()],ne.prototype,"focusOptions",void 0);Pe([A()],ne.prototype,"currentSearch",void 0);Pe([A()],ne.prototype,"lastSearchInputDate",void 0);Pe([T(".ft-select")],ne.prototype,"container",void 0);Pe([T(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Pe([T(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Pe([T("slot:not([name])")],ne.prototype,"optionsSlot",void 0);var Zp={"ft-select":ne,"ft-select-option":$e};W(Zp);var Ne={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(v.borderRadiusM,"Design system")},Yp=E`
|
|
2150
2150
|
:host {
|
|
2151
2151
|
width: ${Ne.width};
|
|
2152
2152
|
height: ${Ne.height};
|
|
@@ -2173,7 +2173,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2173
2173
|
background-position: calc(100vw + ${Ne.glareWidth}) 0, calc(${Ne.glareWidth} * -1) 0;
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
|
-
`;var
|
|
2176
|
+
`;var M={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",v.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(v.colorSurface,"Design system"),colorOnSurface:o.external(v.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(v.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(v.colorOutline,"Design system"),colorPrimary:o.external(v.colorPrimary,"Design system"),elevation02:o.external(v.elevation02,"Design system"),buttonColor:o.external(H.color,"Button"),buttonRippleColor:o.external(H.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",v.colorPrimary)},Qp=E`
|
|
2177
2177
|
* {
|
|
2178
2178
|
box-sizing: border-box;
|
|
2179
2179
|
}
|
|
@@ -2182,7 +2182,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2182
2182
|
display: flex;
|
|
2183
2183
|
flex-direction: column;
|
|
2184
2184
|
gap: 8px;
|
|
2185
|
-
color: ${
|
|
2185
|
+
color: ${M.colorOnSurface};
|
|
2186
2186
|
outline: none;
|
|
2187
2187
|
}
|
|
2188
2188
|
|
|
@@ -2191,21 +2191,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
.ft-search-bar--mobile-menu-open {
|
|
2194
|
-
position: ${
|
|
2195
|
-
top: ${
|
|
2196
|
-
bottom: ${
|
|
2197
|
-
left: ${
|
|
2198
|
-
right: ${
|
|
2199
|
-
z-index: ${
|
|
2194
|
+
position: ${M.mobileOpenPosition};
|
|
2195
|
+
top: ${M.mobileOpenTop};
|
|
2196
|
+
bottom: ${M.mobileOpenBottom};
|
|
2197
|
+
left: ${M.mobileOpenLeft};
|
|
2198
|
+
right: ${M.mobileOpenRight};
|
|
2199
|
+
z-index: ${M.floatingZIndex};
|
|
2200
2200
|
padding: 16px;
|
|
2201
2201
|
}
|
|
2202
2202
|
|
|
2203
2203
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2204
|
-
background: ${
|
|
2204
|
+
background: ${M.colorSurface};
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
2207
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2208
|
-
position: ${
|
|
2208
|
+
position: ${M.mobileOpenPosition.get("static")};
|
|
2209
2209
|
}
|
|
2210
2210
|
|
|
2211
2211
|
.ft-search-bar {
|
|
@@ -2213,20 +2213,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2213
2213
|
display: flex;
|
|
2214
2214
|
flex-direction: row;
|
|
2215
2215
|
align-items: center;
|
|
2216
|
-
height: ${
|
|
2216
|
+
height: ${M.height};
|
|
2217
2217
|
|
|
2218
|
-
background: ${
|
|
2219
|
-
border: 1px solid ${
|
|
2220
|
-
border-radius: ${
|
|
2218
|
+
background: ${M.colorSurface};
|
|
2219
|
+
border: 1px solid ${M.colorOutline};
|
|
2220
|
+
border-radius: ${M.borderRadius};
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
2223
2223
|
.ft-search-bar--skeleton {
|
|
2224
|
-
${
|
|
2225
|
-
${
|
|
2224
|
+
${O(Ne.height,M.height)};
|
|
2225
|
+
${O(Ne.borderRadiusM,M.borderRadius)};
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
2228
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2229
|
-
border-radius: ${
|
|
2229
|
+
border-radius: ${M.borderRadius} ${M.borderRadius} 0 0;
|
|
2230
2230
|
}
|
|
2231
2231
|
|
|
2232
2232
|
.ft-search-bar--input-container {
|
|
@@ -2244,7 +2244,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2244
2244
|
align-self: stretch;
|
|
2245
2245
|
display: grid;
|
|
2246
2246
|
padding: 0 8px;
|
|
2247
|
-
border-radius: ${
|
|
2247
|
+
border-radius: ${M.borderRadius};
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2253,7 +2253,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2253
2253
|
}
|
|
2254
2254
|
|
|
2255
2255
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2256
|
-
outline: 2px solid ${
|
|
2256
|
+
outline: 2px solid ${M.colorPrimary};
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
2259
|
.ft-search-bar--input {
|
|
@@ -2261,12 +2261,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2261
2261
|
flex-grow: 1;
|
|
2262
2262
|
border: none;
|
|
2263
2263
|
background-color: transparent;
|
|
2264
|
-
color: ${
|
|
2264
|
+
color: ${M.colorOnSurface};
|
|
2265
2265
|
outline: none;
|
|
2266
2266
|
}
|
|
2267
2267
|
|
|
2268
2268
|
.ft-search-bar--input::placeholder {
|
|
2269
|
-
color: ${
|
|
2269
|
+
color: ${M.colorOnSurfaceMedium};
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
2272
|
.ft-search-bar--actions {
|
|
@@ -2280,12 +2280,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2280
2280
|
.ft-search-bar > ft-button,
|
|
2281
2281
|
.ft-search-bar--actions ft-button {
|
|
2282
2282
|
flex-shrink: 0;
|
|
2283
|
-
${
|
|
2283
|
+
${O(H.backgroundColor,"transparent")};
|
|
2284
2284
|
}
|
|
2285
2285
|
|
|
2286
2286
|
.ft-search-bar--left-action {
|
|
2287
|
-
${
|
|
2288
|
-
border-right: 1px solid ${
|
|
2287
|
+
${O(H.borderRadius,`calc(${M.borderRadius} - 1px) 0 0 calc(${M.borderRadius} - 1px)`)};
|
|
2288
|
+
border-right: 1px solid ${M.colorOutline};
|
|
2289
2289
|
height: 100%;
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
@@ -2294,7 +2294,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2294
2294
|
}
|
|
2295
2295
|
|
|
2296
2296
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2297
|
-
${
|
|
2297
|
+
${O(H.borderRadius,`calc(${M.borderRadius} - 1px) 0 0 0`)};
|
|
2298
2298
|
}
|
|
2299
2299
|
|
|
2300
2300
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2304,13 +2304,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2304
2304
|
|
|
2305
2305
|
.ft-search-bar--separator {
|
|
2306
2306
|
height: 20px;
|
|
2307
|
-
border-right: 1px solid ${
|
|
2307
|
+
border-right: 1px solid ${M.colorOutline};
|
|
2308
2308
|
}
|
|
2309
2309
|
|
|
2310
2310
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2311
|
-
${
|
|
2312
|
-
${
|
|
2313
|
-
${
|
|
2311
|
+
${O(Y.borderColor,"transparent")};
|
|
2312
|
+
${O(Y.borderRadius,`calc(${M.borderRadius} - 1px)`)};
|
|
2313
|
+
${O(j.selectedOptionColor,M.buttonColor)};
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
2316
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2327,7 +2327,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
2329
2329
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2330
|
-
border-radius: calc(${
|
|
2330
|
+
border-radius: calc(${M.borderRadius} - 1px) 0 0 calc(${M.borderRadius} - 1px);
|
|
2331
2331
|
}
|
|
2332
2332
|
|
|
2333
2333
|
[part="content-locale-selector"] {
|
|
@@ -2354,7 +2354,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2354
2354
|
flex-shrink: 0;
|
|
2355
2355
|
padding: 0 10px;
|
|
2356
2356
|
margin-bottom: 8px;
|
|
2357
|
-
${
|
|
2357
|
+
${O(L.fontSize,"14px")};
|
|
2358
2358
|
}
|
|
2359
2359
|
|
|
2360
2360
|
[part="content-locale-selector-label"] {
|
|
@@ -2362,18 +2362,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2362
2362
|
flex-shrink: 1;
|
|
2363
2363
|
flex-grow: 1;
|
|
2364
2364
|
word-break: break-word;
|
|
2365
|
-
${
|
|
2366
|
-
${
|
|
2365
|
+
${O(L.lineHeight,"22px")};
|
|
2366
|
+
${O(L.fontWeight,"bold")};
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
-
`,
|
|
2369
|
+
`,Xp=E`
|
|
2370
2370
|
.ft-search-bar--presets {
|
|
2371
2371
|
min-width: 200px;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
2374
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2375
2375
|
margin-right: auto;
|
|
2376
|
-
${
|
|
2376
|
+
${O(j.optionsZIndex,"2")};
|
|
2377
2377
|
}
|
|
2378
2378
|
|
|
2379
2379
|
.ft-search-bar--desktop-menu {
|
|
@@ -2426,8 +2426,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2426
2426
|
|
|
2427
2427
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2428
2428
|
display: block;
|
|
2429
|
-
height: ${
|
|
2430
|
-
${
|
|
2429
|
+
height: ${M.desktopFiltersHeight};
|
|
2430
|
+
${O(Ve.gap,"16px")};
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
2433
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2507,7 +2507,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2507
2507
|
.ft-search-bar--filter-label-values {
|
|
2508
2508
|
flex-grow: 0;
|
|
2509
2509
|
flex-shrink: 1;
|
|
2510
|
-
color: ${
|
|
2510
|
+
color: ${M.colorOnSurfaceMedium};
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
2513
2513
|
ft-accordion-item::part(toggle) {
|
|
@@ -2527,8 +2527,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2527
2527
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2528
2528
|
margin: 0;
|
|
2529
2529
|
}
|
|
2530
|
-
`;var
|
|
2531
|
-
`}};
|
|
2530
|
+
`;var cr=class extends P{render(){return y`
|
|
2531
|
+
`}};cr.elementDefinitions={};cr.styles=Yp;var Jp={"ft-skeleton":cr};W(Jp);var Nt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new J(r)}render(){let e=this.recentSearchesMatchingQuery;return y`
|
|
2532
2532
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2533
2533
|
id="${this.listboxId}"
|
|
2534
2534
|
role="listbox"
|
|
@@ -2536,7 +2536,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2536
2536
|
part="suggestions-container">
|
|
2537
2537
|
${ae(e.slice(0,5),r=>r,(r,i)=>y`
|
|
2538
2538
|
<div part="suggestion-container"
|
|
2539
|
-
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":
|
|
2539
|
+
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":R}">
|
|
2540
2540
|
<a href="${this.getRequestWithQuery(r)}"
|
|
2541
2541
|
part="suggestions"
|
|
2542
2542
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
@@ -2565,7 +2565,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2565
2565
|
`)}
|
|
2566
2566
|
${ae(this.searchBar.suggestions,r=>r.value,(r,i)=>y`
|
|
2567
2567
|
<div part="suggestion-container"
|
|
2568
|
-
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":
|
|
2568
|
+
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":R}">
|
|
2569
2569
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
2570
2570
|
part="suggestions"
|
|
2571
2571
|
class="ft-search-bar--suggestion"
|
|
@@ -2581,9 +2581,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2581
2581
|
</div>
|
|
2582
2582
|
`)}
|
|
2583
2583
|
</div>
|
|
2584
|
-
`}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":i=
|
|
2584
|
+
`}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":i=_n(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ve.TOPICS;break;case"HTML_PACKAGE":i=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ve.FILE_CODE;break}return y`
|
|
2585
2585
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2586
|
-
`}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};Nt.styles=[
|
|
2586
|
+
`}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};Nt.styles=[Yo,E`
|
|
2587
2587
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2588
2588
|
flex-grow: 1;
|
|
2589
2589
|
flex-shrink: 1;
|
|
@@ -2592,7 +2592,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2592
2592
|
}
|
|
2593
2593
|
|
|
2594
2594
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2595
|
-
border-top: 1px solid ${
|
|
2595
|
+
border-top: 1px solid ${M.colorOutline};
|
|
2596
2596
|
}
|
|
2597
2597
|
|
|
2598
2598
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2602,15 +2602,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2602
2602
|
.ft-search-bar--floating-panel,
|
|
2603
2603
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2604
2604
|
position: absolute;
|
|
2605
|
-
z-index: ${
|
|
2605
|
+
z-index: ${M.floatingZIndex};
|
|
2606
2606
|
top: 100%;
|
|
2607
2607
|
left: -1px;
|
|
2608
2608
|
right: -1px;
|
|
2609
2609
|
display: none;
|
|
2610
|
-
background: ${
|
|
2611
|
-
border: 1px solid ${
|
|
2612
|
-
border-radius: 0 0 ${
|
|
2613
|
-
box-shadow: ${
|
|
2610
|
+
background: ${M.colorSurface};
|
|
2611
|
+
border: 1px solid ${M.colorOutline};
|
|
2612
|
+
border-radius: 0 0 ${M.borderRadius} ${M.borderRadius};
|
|
2613
|
+
box-shadow: ${M.elevation02};
|
|
2614
2614
|
outline: none;
|
|
2615
2615
|
}
|
|
2616
2616
|
|
|
@@ -2629,10 +2629,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2629
2629
|
|
|
2630
2630
|
[part~="suggestion-container"].ft-search-bar--suggestions-selected {
|
|
2631
2631
|
outline: none;
|
|
2632
|
-
box-shadow: inset 3px 0 0 ${
|
|
2632
|
+
box-shadow: inset 3px 0 0 ${M.activeItemBorderColor};
|
|
2633
2633
|
}
|
|
2634
2634
|
[part~="suggestion-container"]:hover {
|
|
2635
|
-
box-shadow: inset 3px 0 0 ${
|
|
2635
|
+
box-shadow: inset 3px 0 0 ${M.activeItemBorderColor};
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
2638
|
[part~="remove-suggestion"] {
|
|
@@ -2648,7 +2648,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2648
2648
|
gap: 8px;
|
|
2649
2649
|
cursor: pointer;
|
|
2650
2650
|
flex-grow: 1;
|
|
2651
|
-
color: ${
|
|
2651
|
+
color: ${M.colorOnSurface};
|
|
2652
2652
|
min-height: 52px;
|
|
2653
2653
|
}
|
|
2654
2654
|
|
|
@@ -2661,7 +2661,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2661
2661
|
}
|
|
2662
2662
|
|
|
2663
2663
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2664
|
-
border-top: 1px solid ${
|
|
2664
|
+
border-top: 1px solid ${M.colorOutline};
|
|
2665
2665
|
}
|
|
2666
2666
|
|
|
2667
2667
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2671,7 +2671,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
2673
|
ft-ripple {
|
|
2674
|
-
${
|
|
2674
|
+
${O(X.opacityContentOnSurfaceHover,X.opacityContentOnSurfaceSelected)}
|
|
2675
2675
|
}
|
|
2676
2676
|
`];var Dt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return y``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=y`
|
|
2677
2677
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?y`
|
|
@@ -2684,20 +2684,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2684
2684
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2685
2685
|
</ft-chip>
|
|
2686
2686
|
`:null}
|
|
2687
|
-
${ae(this.searchBar.facets,n=>n.key,n=>{let s=
|
|
2687
|
+
${ae(this.searchBar.facets,n=>n.key,n=>{let s=Op(n);return ae(s,a=>{let l=n.label+": "+Sp(a),d=n.key.replace(":","-"),p=y`
|
|
2688
2688
|
<ft-chip
|
|
2689
2689
|
part="selected-filters selected-filter-${d}"
|
|
2690
2690
|
?dense=${this.searchBar.dense&&!e}
|
|
2691
2691
|
?clickable=${e}
|
|
2692
2692
|
?removable=${!e}
|
|
2693
|
-
icon="${e?
|
|
2693
|
+
icon="${e?R:"close"}"
|
|
2694
2694
|
label="${l}"
|
|
2695
|
-
title="${r?l:
|
|
2695
|
+
title="${r?l:R}"
|
|
2696
2696
|
@click=${()=>this.openMobileFilters(n.key)}
|
|
2697
2697
|
@icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(m=>m!==a))}
|
|
2698
2698
|
data-key="${n.key}"
|
|
2699
2699
|
data-value="${a}">
|
|
2700
|
-
${
|
|
2700
|
+
${vp(a)}
|
|
2701
2701
|
</ft-chip>
|
|
2702
2702
|
`;return r?p:y`
|
|
2703
2703
|
<ft-tooltip inline text="${l}">
|
|
@@ -2711,7 +2711,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2711
2711
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2712
2712
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2713
2713
|
</ft-chip>
|
|
2714
|
-
`:
|
|
2714
|
+
`:R}
|
|
2715
2715
|
`;return r?y`
|
|
2716
2716
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2717
2717
|
class="ft-search-bar--selected-filters"
|
|
@@ -2723,7 +2723,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2723
2723
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2724
2724
|
${i}
|
|
2725
2725
|
</div>
|
|
2726
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Dt.styles=
|
|
2726
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Dt.styles=E`
|
|
2727
2727
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2728
2728
|
flex-shrink: 0;
|
|
2729
2729
|
display: flex;
|
|
@@ -2734,7 +2734,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2734
2734
|
|
|
2735
2735
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2736
2736
|
overflow: hidden;
|
|
2737
|
-
${
|
|
2737
|
+
${O(Ve.gap,"4px")};
|
|
2738
2738
|
}
|
|
2739
2739
|
|
|
2740
2740
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2742,8 +2742,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2742
2742
|
}
|
|
2743
2743
|
|
|
2744
2744
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2745
|
-
${
|
|
2746
|
-
${
|
|
2745
|
+
${O(Te.iconSize,"17px")};
|
|
2746
|
+
${O(Te.fontSize,"12px")};
|
|
2747
2747
|
}
|
|
2748
2748
|
|
|
2749
2749
|
.ft-search-bar--selected-filters * {
|
|
@@ -2753,7 +2753,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2753
2753
|
.ft-search-bar--selected-filters ft-chip {
|
|
2754
2754
|
flex-grow: 0;
|
|
2755
2755
|
}
|
|
2756
|
-
`;var
|
|
2756
|
+
`;var gg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},wo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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 y`
|
|
2757
2757
|
<div class="${oe(r)}" part="container" tabindex="-1">
|
|
2758
2758
|
<div class="ft-search-bar" role="search">
|
|
2759
2759
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -2763,7 +2763,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2763
2763
|
aria-autocomplete="list"
|
|
2764
2764
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2765
2765
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2766
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2766
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:R}"
|
|
2767
2767
|
part="input"
|
|
2768
2768
|
type="search"
|
|
2769
2769
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2785,7 +2785,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2785
2785
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2786
2786
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2787
2787
|
</ft-button>
|
|
2788
|
-
`:
|
|
2788
|
+
`:R}
|
|
2789
2789
|
</div>
|
|
2790
2790
|
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return y`
|
|
2791
2791
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
@@ -2799,7 +2799,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2799
2799
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2800
2800
|
></ft-button>
|
|
2801
2801
|
<div class="ft-search-bar--separator"></div>
|
|
2802
|
-
`:
|
|
2802
|
+
`:R}
|
|
2803
2803
|
<ft-button class="ft-search-bar--launch-search"
|
|
2804
2804
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2805
2805
|
part="launch-search-in-bar"
|
|
@@ -2810,21 +2810,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2810
2810
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2811
2811
|
></ft-button>
|
|
2812
2812
|
</div>
|
|
2813
|
-
`}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};
|
|
2813
|
+
`}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};wo.styles=E`
|
|
2814
2814
|
|
|
2815
|
-
`;
|
|
2815
|
+
`;gg([Qt()],wo.prototype,"onSearchBarKeyDown",null);var yg=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ao=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Nt(e)}render(){var e;let r={"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 y`
|
|
2816
2816
|
<div class="${oe(r)}" part="container" tabindex="-1">
|
|
2817
2817
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2818
2818
|
${this.renderSearchBarLeftAction()}
|
|
2819
2819
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2820
2820
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2821
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2821
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():R}
|
|
2822
2822
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2823
2823
|
role="combobox"
|
|
2824
2824
|
aria-autocomplete="list"
|
|
2825
2825
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2826
2826
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2827
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2827
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:R}"
|
|
2828
2828
|
part="input"
|
|
2829
2829
|
type="search"
|
|
2830
2830
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2839,9 +2839,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2839
2839
|
${this.renderDesktopSearchBarButtons()}
|
|
2840
2840
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2841
2841
|
</div>
|
|
2842
|
-
${this.searchBar.dense?
|
|
2842
|
+
${this.searchBar.dense?R:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2843
2843
|
</div>
|
|
2844
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2844
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?R:y`
|
|
2845
2845
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2846
2846
|
part="filters-opener"
|
|
2847
2847
|
trailingIcon
|
|
@@ -2867,7 +2867,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2867
2867
|
</ft-select-option>
|
|
2868
2868
|
`)}
|
|
2869
2869
|
</ft-select>
|
|
2870
|
-
`:
|
|
2870
|
+
`:R}renderDesktopSearchBarButtons(){return y`
|
|
2871
2871
|
<div class="ft-search-bar--actions"
|
|
2872
2872
|
part="search-bar-actions">
|
|
2873
2873
|
${this.searchBar.query?y`
|
|
@@ -2889,9 +2889,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2889
2889
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2890
2890
|
></ft-button>
|
|
2891
2891
|
</div>
|
|
2892
|
-
`}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};
|
|
2892
|
+
`}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ao.styles=E`
|
|
2893
2893
|
|
|
2894
|
-
`;
|
|
2894
|
+
`;yg([Qt()],Ao.prototype,"onSearchBarKeyDown",null);var q=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var ef={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Ol=class extends CustomEvent{constructor(e){super("change",{detail:e})}},bg=()=>{},U=class extends P{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 er(ef,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new pt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=lt.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 Nt(this),this.selectedFacetsManager=new Dt(this),this.desktopSearchBarManager=new Ao(this),this.mobileSearchBarManager=new wo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new J(10),this.updateLocalesDebouncer=new J(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new J(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===lt.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return y`
|
|
2895
2895
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2896
2896
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2897
2897
|
${this.renderLiveText()}
|
|
@@ -2912,14 +2912,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2912
2912
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2913
2913
|
${e?.label}
|
|
2914
2914
|
</ft-typography>
|
|
2915
|
-
`:
|
|
2915
|
+
`:R}
|
|
2916
2916
|
</div>
|
|
2917
2917
|
<div part="content-locale-selector">
|
|
2918
2918
|
${this.getContentLocaleRadioGroup()}
|
|
2919
2919
|
</div>
|
|
2920
2920
|
</ft-accordion-item>
|
|
2921
2921
|
`:null}
|
|
2922
|
-
${ae(this.facets,r=>r.key,r=>{let i=
|
|
2922
|
+
${ae(this.facets,r=>r.key,r=>{let i=yl(r),n=r.key.replace(":","-"),s=Ep(i);return r.rootNodes.length>0?y`
|
|
2923
2923
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2924
2924
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2925
2925
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -2927,7 +2927,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2927
2927
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2928
2928
|
${s.join(", ")}
|
|
2929
2929
|
</ft-typography>
|
|
2930
|
-
`:
|
|
2930
|
+
`:R}
|
|
2931
2931
|
</div>
|
|
2932
2932
|
<ft-filter
|
|
2933
2933
|
part="filters filter filter-${n}"
|
|
@@ -2941,7 +2941,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2941
2941
|
@change=${a=>this.setFilter(i.id,a.detail)}
|
|
2942
2942
|
></ft-filter>
|
|
2943
2943
|
</ft-accordion-item>
|
|
2944
|
-
`:
|
|
2944
|
+
`:R})}
|
|
2945
2945
|
</ft-accordion>
|
|
2946
2946
|
`}getContentLocaleRadioGroup(){var e;return y`
|
|
2947
2947
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
@@ -2958,7 +2958,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2958
2958
|
${this.renderFacetsActions()}
|
|
2959
2959
|
${this.renderDesktopFacets()}
|
|
2960
2960
|
<div class="ft-search-bar--facets-actions">
|
|
2961
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2961
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():R}
|
|
2962
2962
|
<ft-button class="ft-search-bar--launch-search"
|
|
2963
2963
|
href="${this.searchRequestSerializer(this.request)}"
|
|
2964
2964
|
part="launch-search-in-panel"
|
|
@@ -2968,7 +2968,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2968
2968
|
</ft-button>
|
|
2969
2969
|
</div>
|
|
2970
2970
|
</div>
|
|
2971
|
-
`:
|
|
2971
|
+
`:R}renderFacetsActions(){var e;return y`
|
|
2972
2972
|
<div class="ft-search-bar--facets-actions">
|
|
2973
2973
|
${this.hasPresets?y`
|
|
2974
2974
|
<ft-select
|
|
@@ -2984,16 +2984,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2984
2984
|
</ft-select-option>
|
|
2985
2985
|
`)}
|
|
2986
2986
|
</ft-select>
|
|
2987
|
-
`:
|
|
2987
|
+
`:R}
|
|
2988
2988
|
<slot name="facets-actions"></slot>
|
|
2989
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2989
|
+
${this.forceMenuOpen&&!this.isMobile()?R:this.renderDesktopClearFilters()}
|
|
2990
2990
|
</div>
|
|
2991
2991
|
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?y`
|
|
2992
2992
|
<ft-button part="facets-actions"
|
|
2993
2993
|
@click=${this.clearFilters}>
|
|
2994
2994
|
${this.labelResolver.resolve("clearFilters")}
|
|
2995
2995
|
</ft-button>
|
|
2996
|
-
`:
|
|
2996
|
+
`:R}renderDesktopFacets(){return this.hasFacets()?y`
|
|
2997
2997
|
<ft-snap-scroll horizontal limitSize controls
|
|
2998
2998
|
class="ft-search-bar--filters-container"
|
|
2999
2999
|
part="filters-container"
|
|
@@ -3008,8 +3008,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3008
3008
|
</div>
|
|
3009
3009
|
${this.getContentLocaleRadioGroup()}
|
|
3010
3010
|
</div>
|
|
3011
|
-
`:
|
|
3012
|
-
${ae(this.facets,e=>e.key,e=>{let r=
|
|
3011
|
+
`:R}
|
|
3012
|
+
${ae(this.facets,e=>e.key,e=>{let r=yl(e),i=r.options.some(s=>{var a,l;return((l=(a=s.subOptions)===null||a===void 0?void 0:a.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return y`
|
|
3013
3013
|
<ft-filter
|
|
3014
3014
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3015
3015
|
part="filters filter filter-${n}"
|
|
@@ -3024,14 +3024,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3024
3024
|
></ft-filter>
|
|
3025
3025
|
`})}
|
|
3026
3026
|
</ft-snap-scroll>
|
|
3027
|
-
`:
|
|
3027
|
+
`:R}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,a;if(e.has("labels")&&(this.labelResolver=new er(ef,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(p=>p.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(p=>In(p)))})),e.has("presets")||e.has("selectedPreset")){let l=((s=this.presets)!==null&&s!==void 0?s:[]).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=(i=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||i===void 0?void 0:i.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 Ol(this.request)))}updateFacets(){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=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(a=>a.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.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;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(bg)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),B.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&Ni(()=>this.input,50).then(e=>{Pr.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),B.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ye(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ye(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?R:y`
|
|
3028
3028
|
<div class="ft-search-bar--floating-panel"
|
|
3029
3029
|
id="ft-search-bar-floating-panel"
|
|
3030
3030
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3031
3031
|
part="floating-panel"
|
|
3032
3032
|
tabindex="-1">
|
|
3033
3033
|
${this.renderDesktopMenu()}
|
|
3034
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
3034
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};U.elementDefinitions={"ft-accordion":Pt,"ft-accordion-item":ct,"ft-button":F,"ft-chip":de,"ft-filter":re,"ft-filter-option":rt,"ft-icon":se,"ft-ripple":G,"ft-select":ne,"ft-select-option":$e,"ft-size-watcher":Je,"ft-skeleton":cr,"ft-snap-scroll":Se,"ft-tooltip":ge,"ft-typography":te,"ft-radio-group":tt,"ft-radio":ke};U.styles=[or,Ar,Qp,Xp,Dt.styles,Nt.styles,mo];q([h({type:Boolean})],U.prototype,"dense",void 0);q([h()],U.prototype,"mode",void 0);q([h({type:Boolean})],U.prototype,"forceMobileMenuOpen",void 0);q([h({type:Boolean})],U.prototype,"forceMenuOpen",void 0);q([h()],U.prototype,"baseUrl",void 0);q([h()],U.prototype,"apiIntegrationIdentifier",void 0);q([h()],U.prototype,"contentLocale",void 0);q([A()],U.prototype,"availableContentLocales",void 0);q([A()],U.prototype,"availableContentLocalesInitialized",void 0);q([h()],U.prototype,"uiLocale",void 0);q([le({})],U.prototype,"labels",void 0);q([le([])],U.prototype,"displayedFilters",void 0);q([le([])],U.prototype,"presets",void 0);q([h({type:String,reflect:!0})],U.prototype,"selectedPreset",void 0);q([le([])],U.prototype,"priors",void 0);q([h()],U.prototype,"searchRequestSerializer",void 0);q([h({type:Boolean})],U.prototype,"focusOnDisplay",void 0);q([A()],U.prototype,"metadataFilters",void 0);q([A()],U.prototype,"sizeCategory",void 0);q([A()],U.prototype,"displayFacets",void 0);q([A()],U.prototype,"mobileMenuOpen",void 0);q([A()],U.prototype,"facets",void 0);q([A()],U.prototype,"facetsInitialized",void 0);q([T(".ft-search-bar--container")],U.prototype,"container",void 0);q([T(".ft-search-bar--filters-opener")],U.prototype,"filtersOpener",void 0);q([T(".ft-search-bar--floating-panel")],U.prototype,"floatingContainer",void 0);q([T("ft-snap-scroll.ft-search-bar--filters-container")],U.prototype,"scrollingFiltersContainer",void 0);q([T(".ft-search-bar--input")],U.prototype,"input",void 0);q([T(".ft-search-bar--launch-search")],U.prototype,"launchSearchButton",void 0);q([A()],U.prototype,"query",void 0);q([A()],U.prototype,"suggestions",void 0);q([A()],U.prototype,"recentSearches",void 0);q([A()],U.prototype,"scrollToFacet",void 0);q([A()],U.prototype,"api",void 0);q([A()],U.prototype,"displaySuggestListbox",void 0);q([A()],U.prototype,"selectedSuggestOptionId",void 0);q([A()],U.prototype,"selectedSuggestRemoveRecent",void 0);q([A()],U.prototype,"facetsLoaded",void 0);var tf={"ft-search-bar":U};W(tf);var rf=E`
|
|
3035
3035
|
* {
|
|
3036
3036
|
box-sizing: border-box;
|
|
3037
3037
|
}
|
|
@@ -3056,7 +3056,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3056
3056
|
.ft-search-input-suggestion--container:has([aria-selected="true"]),
|
|
3057
3057
|
.ft-search-input-suggestion--container:hover {
|
|
3058
3058
|
outline: none;
|
|
3059
|
-
box-shadow: inset 3px 0 0 ${
|
|
3059
|
+
box-shadow: inset 3px 0 0 ${M.activeItemBorderColor};
|
|
3060
3060
|
}
|
|
3061
3061
|
|
|
3062
3062
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -3083,18 +3083,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3083
3083
|
}
|
|
3084
3084
|
|
|
3085
3085
|
ft-ripple {
|
|
3086
|
-
${
|
|
3086
|
+
${O(X.opacityContentOnSurfaceHover,X.opacityContentOnSurfaceSelected)}
|
|
3087
3087
|
}
|
|
3088
|
-
`;var
|
|
3088
|
+
`;var dr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Wt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return y`
|
|
3089
3089
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3090
3090
|
id="${this.listboxId}"
|
|
3091
3091
|
role="listbox"
|
|
3092
|
-
aria-label="${
|
|
3092
|
+
aria-label="${Gt.messages.suggestionsLabel()}"
|
|
3093
3093
|
part="container">
|
|
3094
3094
|
${ae(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
|
|
3095
3095
|
${ae((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
|
|
3096
3096
|
</div>
|
|
3097
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ue.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":s=
|
|
3097
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ue.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?ve.BOOK:ve.ARTICLE;break;case"DOCUMENT":s=_n(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ve.TOPICS;break;case"HTML_PACKAGE":s=ve.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ve.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,a){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,p=this.ftSearchInput.launchSearchPath?a.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):R;return y`
|
|
3098
3098
|
<div part="suggestion-container"
|
|
3099
3099
|
class="ft-search-input-suggestion--container">
|
|
3100
3100
|
<a href="${p}"
|
|
@@ -3116,15 +3116,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3116
3116
|
part="remove-suggestion"
|
|
3117
3117
|
class="ft-search-input-suggestion--remove"
|
|
3118
3118
|
id="remove-suggestion-${e}"
|
|
3119
|
-
label="${
|
|
3119
|
+
label="${Gt.messages.removeRecentQuery(r)}"
|
|
3120
3120
|
tooltipPosition="left"
|
|
3121
3121
|
tabindex="-1"
|
|
3122
3122
|
?activated=${l&&d}
|
|
3123
3123
|
@click=${()=>this.onRemoveRecentQuery(r)}>
|
|
3124
3124
|
</ft-button>
|
|
3125
|
-
`:
|
|
3125
|
+
`:R}
|
|
3126
3126
|
</div>
|
|
3127
|
-
`}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};
|
|
3127
|
+
`}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};dr.elementDefinitions={"ft-ripple":G,"ft-typography":te,"ft-icon":se,"ft-button":F};dr.styles=[Yo,rf];var Le=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xg=5;function vg(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,xg)}var ue=class extends So(Ln){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new dr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Gt)}render(){var e,r,i,n,s;let a=this.suggestions.optionsCount()>0,l={"ft-search-input":!0,"ft-search-input--with-suggestions":a,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},d={...this.request,query:this.liveQuery},p=this.useCustomSearchPath?this.launchSearchPath:void 0,m=Wt.get().serializeToCurrentPageIfPossible(d,p),f=!this.forceCloseSuggestion&&this.displaySuggestListbox&&a,g=(i=(e=this.placeholder)===null||e===void 0?void 0:e.message)!==null&&i!==void 0?i:Gt.messages.placeholder();return y`
|
|
3128
3128
|
<div class="${oe(l)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3129
3129
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3130
3130
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
@@ -3138,7 +3138,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3138
3138
|
aria-autocomplete="list"
|
|
3139
3139
|
aria-controls="${this.suggestions.listboxId}"
|
|
3140
3140
|
aria-expanded="${f}"
|
|
3141
|
-
aria-activedescendant="${(s=this.suggestions.activeElementId)!==null&&s!==void 0?s:
|
|
3141
|
+
aria-activedescendant="${(s=this.suggestions.activeElementId)!==null&&s!==void 0?s:R}"
|
|
3142
3142
|
@input=${this.onInput}
|
|
3143
3143
|
@click=${this.onClick}
|
|
3144
3144
|
@focus=${this.onFocus}
|
|
@@ -3146,9 +3146,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3146
3146
|
@keyup=${this.onSearchBarKeyUp}>
|
|
3147
3147
|
</div>
|
|
3148
3148
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3149
|
-
${f?
|
|
3149
|
+
${f?Gt.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3150
3150
|
</div>
|
|
3151
|
-
${f?this.suggestions.render():
|
|
3151
|
+
${f?this.suggestions.render():R}
|
|
3152
3152
|
</div>
|
|
3153
3153
|
<div class="ft-search-input--actions" part="actions">
|
|
3154
3154
|
${this.liveQuery?y`
|
|
@@ -3157,7 +3157,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3157
3157
|
part="clear-query"
|
|
3158
3158
|
icon="close"
|
|
3159
3159
|
round dense
|
|
3160
|
-
label="${
|
|
3160
|
+
label="${Gt.messages.clearButton()}"
|
|
3161
3161
|
@click=${()=>this.onClearInput()}
|
|
3162
3162
|
></ft-button>
|
|
3163
3163
|
<div class="ft-search-input--separator"></div>
|
|
@@ -3166,13 +3166,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
3166
3166
|
part="launch-search-in-input"
|
|
3167
3167
|
icon="search"
|
|
3168
3168
|
round dense
|
|
3169
|
-
label="${
|
|
3169
|
+
label="${Gt.messages.searchButton()}"
|
|
3170
3170
|
href="${this.useCustomSearchPath?m:""}"
|
|
3171
3171
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
3172
3172
|
></ft-button>
|
|
3173
3173
|
</div>
|
|
3174
3174
|
</div>
|
|
3175
|
-
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}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 r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&
|
|
3175
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}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 r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Pr.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};ue.elementDefinitions={"ft-button":F,...dr.elementDefinitions};ue.styles=[or,Ar,gp,...dr.styles,mo];Le([mt()],ue.prototype,"request",void 0);Le([mt()],ue.prototype,"liveQuery",void 0);Le([mt()],ue.prototype,"suggestResults",void 0);Le([mt({selector:vg})],ue.prototype,"recentQuerySuggestions",void 0);Le([A()],ue.prototype,"forceCloseSuggestion",void 0);Le([A()],ue.prototype,"displaySuggestListbox",void 0);Le([A()],ue.prototype,"selectedSuggestOptionIndex",void 0);Le([A()],ue.prototype,"selectedSuggestOptionRemove",void 0);Le([h()],ue.prototype,"launchSearchPath",void 0);Le([mi()],ue.prototype,"placeholder",void 0);Le([mi()],ue.prototype,"ariaLabelI18n",void 0);Le([h({type:Boolean})],ue.prototype,"useCustomSearchPath",void 0);Le([h({type:Boolean})],ue.prototype,"triggerSearchOnClear",void 0);Le([h({type:Boolean})],ue.prototype,"focusOnDisplay",void 0);Le([T(".ft-search-input--input")],ue.prototype,"input",void 0);Le([T('[part="launch-search-in-input"]')],ue.prototype,"launchSearchButton",void 0);Le([Qt()],ue.prototype,"onSearchBarKeyDown",null);Le([Qt()],ue.prototype,"onSearchBarKeyUp",null);var of={"ft-search-input":ue};W(of);})();
|
|
3176
3176
|
/*! Bundled license information:
|
|
3177
3177
|
|
|
3178
3178
|
.store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js:
|