@fluid-topics/ft-viewer 2.1.23 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- "use strict";(()=>{var Nf=Object.defineProperty;var Y=(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,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(C,x){if(C=C.toLowerCase(),this._getDefinition(C)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${C}" 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 O=x.prototype.attributeChangedCallback,D=new Set(x.observedAttributes||[]);g(x,D,O);let ee={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:O,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(C,ee),this._definitionsByClass.set(x,ee);let W=r.call(o,C);W||(W=h(C),e.call(o,C,W)),this===window.customElements&&(s.set(x,ee),ee.standInClass=W);let j=this._awaitingUpgrade.get(C);if(j){this._awaitingUpgrade.delete(C);for(let U of j)a.delete(U),b(U,ee,!0)}let k=this._whenDefinedPromises.get(C);return k!==void 0&&(k.resolve(x),this._whenDefinedPromises.delete(C)),x}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(C){return this._definitionsByTag.get(C)?.elementClass}_getDefinition(C){return this._definitionsByTag.get(C)}whenDefined(C){let x=this._getDefinition(C);if(x!==void 0)return Promise.resolve(x.elementClass);let O=this._whenDefinedPromises.get(C);return O===void 0&&(O={},O.promise=new Promise(D=>O.resolve=D),this._whenDefinedPromises.set(C,O)),O.promise}_upgradeWhenDefined(C,x,O){let D=this._awaitingUpgrade.get(x);D||this._awaitingUpgrade.set(x,D=new Set),O?D.add(C):D.delete(C)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let O=s.get(this.constructor);if(!O)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],O.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,O),x},window.HTMLElement.prototype=t.prototype;let p=C=>C===document||C instanceof ShadowRoot,m=C=>{let x=C.getRootNode();if(!p(x)){let O=E[E.length-1];if(O instanceof CustomElementRegistry)return O;x=O.getRootNode(),p(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},h=C=>class{static get formAssociated(){return!0}constructor(){let O=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(O,HTMLElement.prototype);let D=m(O)||window.customElements,ee=D._getDefinition(C);return ee?b(O,ee):a.set(O,D),O}connectedCallback(){let O=n.get(this);O?O.connectedCallback&&O.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!0)}disconnectedCallback(){let O=n.get(this);O?O.disconnectedCallback&&O.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let O=n.get(this);O&&O.formAssociated&&O?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let O=n.get(this);O?.formAssociated&&O?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let O=n.get(this);O?.formAssociated&&O?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let O=n.get(this);O?.formAssociated&&O?.formStateRestoreCallback?.apply(this,arguments)}},g=(C,x,O)=>{if(x.size===0||O===void 0)return;let D=C.prototype.setAttribute;D&&(C.prototype.setAttribute=function(j,k){let U=j.toLowerCase();if(x.has(U)){let q=this.getAttribute(U);D.call(this,U,k),O.call(this,U,q,k)}else D.call(this,U,k)});let ee=C.prototype.removeAttribute;ee&&(C.prototype.removeAttribute=function(j){let k=j.toLowerCase();if(x.has(k)){let U=this.getAttribute(k);ee.call(this,k),O.call(this,k,U,null)}else ee.call(this,k)});let W=C.prototype.toggleAttribute;W&&(C.prototype.toggleAttribute=function(j,k){let U=j.toLowerCase();if(x.has(U)){let q=this.getAttribute(U);W.call(this,U,k);let Ne=this.getAttribute(U);O.call(this,U,q,Ne)}else W.call(this,U,k)})},y=C=>{let x=Object.getPrototypeOf(C);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(C,window.HTMLElement):y(x)},b=(C,x,O=!1)=>{Object.setPrototypeOf(C,x.elementClass.prototype),n.set(C,x),d=C;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(D=>{C.hasAttribute(D)&&x.attributeChangedCallback.call(C,D,null,C.getAttribute(D))}),O&&x.connectedCallback&&C.isConnected&&x.connectedCallback.call(C)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(C){let x=w.apply(this,arguments);return C.customElements&&(x.customElements=C.customElements),x};let E=[document],_=(C,x,O=void 0)=>{let D=(O?Object.getPrototypeOf(O):C.prototype)[x];C.prototype[x]=function(){E.push(this);let ee=D.apply(O||this,arguments);return ee!==void 0&&l.set(ee,this),E.pop(),ee}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let P=(C,x)=>{let O=Object.getOwnPropertyDescriptor(C.prototype,x);Object.defineProperty(C.prototype,x,{...O,set(D){E.push(this),O.set.call(this,D),E.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let C=new WeakMap,x=HTMLElement.prototype.attachInternals,O=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...j){let k=x.call(this,...j);return C.set(k,this),k},O.forEach(j=>{let k=window.ElementInternals.prototype,U=k[j];k[j]=function(...q){let Ne=C.get(this);if(n.get(Ne).formAssociated===!0)return U?.call(this,...q);throw new DOMException(`Failed to execute ${U} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class ee{constructor(k){let U=new Map;k.forEach((q,Ne)=>{let Sa=q.getAttribute("name"),rc=U.get(Sa)||[];this[+Ne]=q,rc.push(q),U.set(Sa,rc)}),this.length=k.length,U.forEach((q,Ne)=>{q&&(q.length===1?this[Ne]=q[0]:this[Ne]=new D(q))})}namedItem(k){return this[k]}}let W=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let j=W.get.call(this,[]),k=[];for(let U of j){let q=n.get(U);(!q||q.formAssociated===!0)&&k.push(U)}return new ee(k)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends o{},n):console.info(r,o,n,s)}}}var Pa={};Y(Pa,{CSSResult:()=>io,LitElement:()=>It,ReactiveElement:()=>ct,_$LE:()=>yc,_$LH:()=>La,adoptStyles:()=>jo,css:()=>A,defaultConverter:()=>no,getCompatibleStyle:()=>Hi,html:()=>v,isServer:()=>Qg,mathml:()=>Ta,noChange:()=>Oe,notEqual:()=>Ko,nothing:()=>L,render:()=>Ia,supportsAdoptingStyleSheets:()=>Wo,svg:()=>Jo,unsafeCSS:()=>zt});var Vi=globalThis,Wo=Vi.ShadowRoot&&(Vi.ShadyCSS===void 0||Vi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ca=Symbol(),oc=new WeakMap,io=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ca)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(Wo&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=oc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&oc.set(r,e))}return e}toString(){return this.cssText}},zt=t=>new io(typeof t=="string"?t:t+"",void 0,Ca),A=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new io(r,t,Ca)},jo=(t,e)=>{if(Wo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Vi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Hi=Wo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return zt(r)})(t):t;var{is:Df,defineProperty:Mf,getOwnPropertyDescriptor:$f,getOwnPropertyNames:Ff,getOwnPropertySymbols:Uf,getPrototypeOf:Bf}=Object,zi=globalThis,ic=zi.trustedTypes,Vf=ic?ic.emptyScript:"",Hf=zi.reactiveElementPolyfillSupport,Go=(t,e)=>t,no={toAttribute(t,e){switch(e){case Boolean:t=t?Vf: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}},Ko=(t,e)=>!Df(t,e),nc={attribute:!0,type:String,converter:no,reflect:!1,useDefault:!1,hasChanged:Ko};Symbol.metadata??=Symbol("metadata"),zi.litPropertyMetadata??=new WeakMap;var ct=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=nc){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 o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Mf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=$f(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??nc}static _$Ei(){if(this.hasOwnProperty(Go("elementProperties")))return;let e=Bf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Go("properties"))){let r=this.properties,o=[...Ff(r),...Uf(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Hi(n))}else e!==void 0&&r.push(Hi(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o: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 o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jo(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,o){this._$AK(e,o)}_$ET(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:no).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:no;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Ko)(a,r)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}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){}};ct.elementStyles=[],ct.shadowRootOptions={mode:"open"},ct[Go("elementProperties")]=new Map,ct[Go("finalized")]=new Map,Hf?.({ReactiveElement:ct}),(zi.reactiveElementVersions??=[]).push("2.1.2");var Ea=globalThis,ac=t=>t,Wi=Ea.trustedTypes,sc=Wi?Wi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Oa="$lit$",Wt=`lit$${Math.random().toFixed(9).slice(2)}$`,Aa="?"+Wt,zf=`<${Aa}>`,Rr=document,qo=()=>Rr.createComment(""),Yo=t=>t===null||typeof t!="object"&&typeof t!="function",Ra=Array.isArray,fc=t=>Ra(t)||typeof t?.[Symbol.iterator]=="function",wa=`[
2
- \f\r]`,Zo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lc=/-->/g,cc=/>/g,Or=RegExp(`>|${wa}(?:([^\\s"'>=/]+)(${wa}*=${wa}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dc=/'/g,uc=/"/g,hc=/^(?:script|style|textarea|title)$/i,_a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),v=_a(1),Jo=_a(2),Ta=_a(3),Oe=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pc=new WeakMap,Ar=Rr.createTreeWalker(Rr,129);function mc(t,e){if(!Ra(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sc!==void 0?sc.createHTML(e):e}var gc=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Zo;for(let l=0;l<r;l++){let d=t[l],p,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===Zo?m[1]==="!--"?s=lc:m[1]!==void 0?s=cc:m[2]!==void 0?(hc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Or):m[3]!==void 0&&(s=Or):s===Or?m[0]===">"?(s=n??Zo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,p=m[1],s=m[3]===void 0?Or:m[3]==='"'?uc:dc):s===uc||s===dc?s=Or:s===lc||s===cc?s=Zo:(s=Or,n=void 0);let y=s===Or&&t[l+1].startsWith("/>")?" ":"";a+=s===Zo?d+zf:h>=0?(o.push(p),d.slice(0,h)+Oa+d.slice(h)+Wt+y):d+Wt+(h===-2?l:y)}return[mc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Xo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,m]=gc(e,r);if(this.el=t.createElement(p,o),Ar.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Ar.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Oa)){let g=m[s++],y=n.getAttribute(h).split(Wt),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?Gi:b[1]==="?"?Ki:b[1]==="@"?Zi:Tr}),n.removeAttribute(h)}else h.startsWith(Wt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(hc.test(n.tagName)){let h=n.textContent.split(Wt),g=h.length-1;if(g>0){n.textContent=Wi?Wi.emptyScript:"";for(let y=0;y<g;y++)n.append(h[y],qo()),Ar.nextNode(),d.push({type:2,index:++a});n.append(h[g],qo())}}}else if(n.nodeType===8)if(n.data===Aa)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Wt,h+1))!==-1;)d.push({type:7,index:a}),h+=Wt.length-1}a++}}static createElement(e,r){let o=Rr.createElement("template");return o.innerHTML=e,o}};function _r(t,e,r=t,o){if(e===Oe)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Yo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=_r(t,n._$AS(t,e.values),n,o)),e}var ji=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:o}=this._$AD,n=(e?.creationScope??Rr).importNode(r,!0);Ar.currentNode=n;let a=Ar.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ao(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new qi(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=Ar.nextNode(),s++)}return Ar.currentNode=Rr,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},ao=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,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=_r(this,e,r),Yo(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==Oe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fc(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!==L&&Yo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Rr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Xo.createElement(mc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ji(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=pc.get(e.strings);return r===void 0&&pc.set(e.strings,r=new Xo(e)),r}k(e){Ra(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.O(qo()),this.O(qo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let o=ac(e).nextSibling;ac(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=L}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=_r(this,e,r,0),s=!Yo(e)||e!==this._$AH&&e!==Oe,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=_r(this,l[o+d],r,d),p===Oe&&(p=this._$AH[d]),s||=!Yo(p)||p!==this._$AH[d],p===L?e=L:e!==L&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gi=class extends Tr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},Ki=class extends Tr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==L)}},Zi=class extends Tr{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=_r(this,e,r,0)??L)===Oe)return;let o=this._$AH,n=e===L&&o!==L||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==L&&(o===L||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},qi=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){_r(this,e)}},La={M:Oa,P:Wt,A:Aa,C:1,L:gc,R:ji,D:fc,V:_r,I:ao,H:Tr,N:Ki,U:Zi,B:Gi,F:qi},Wf=Ea.litHtmlPolyfillSupport;Wf?.(Xo,ao),(Ea.litHtmlVersions??=[]).push("3.3.3");var Ia=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new ao(e.insertBefore(qo(),a),a,void 0,r??{})}return n._$AI(t),n};var ka=globalThis,It=class extends ct{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=Ia(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}};It._$litElement$=!0,It.finalized=!0,ka.litElementHydrateSupport?.({LitElement:It});var jf=ka.litElementPolyfillSupport;jf?.({LitElement:It});var yc={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(ka.litElementVersions??=[]).push("4.2.2");var Qg=!1;var Da={};Y(Da,{customElement:()=>Gf,eventOptions:()=>Yi,property:()=>f,query:()=>F,queryAll:()=>Na,queryAssignedElements:()=>Qo,queryAssignedNodes:()=>ei,queryAsync:()=>qf,standardProperty:()=>bc,state:()=>I});var Gf=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Kf={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Ko},bc=(t=Kf,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(o==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+o)};function f(t){return(e,r)=>typeof r=="object"?bc(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function I(t){return f({...t,state:!0,attribute:!1})}function Yi(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var vt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function F(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return vt(r,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return vt(r,o,{get(){return a(this)}})}}var Zf;function Na(t){return(e,r)=>vt(e,r,{get(){return(this.renderRoot??(Zf??=document.createDocumentFragment())).querySelectorAll(t)}})}function qf(t){return(e,r)=>vt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Qo(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function ei(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return vt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Ma={};Y(Ma,{repeat:()=>qe});var kt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rt=t=>(...e)=>({_$litDirective$:t,values:e}),dt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Yf}=La,vc=t=>t;var Sc=t=>t.strings===void 0,xc=()=>document.createComment(""),so=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(xc(),n),s=o.insertBefore(xc(),n);r=new Yf(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=vc(d).nextSibling;vc(o).insertBefore(d,n),d=p}}}return r},ar=(t,e,r=t)=>(t._$AI(e,r),t),Xf={},Cc=(t,e=Xf)=>t._$AH=e,wc=t=>t._$AH,Xi=t=>{t._$AR(),t._$AA.remove()};var Ec=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},qe=rt(class extends dt{constructor(t){if(super(t),t.type!==kt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){let n=wc(t),{values:a,keys:s}=this.dt(e,r,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,m,h=0,g=n.length-1,y=0,b=a.length-1;for(;h<=g&&y<=b;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[y])d[y]=ar(n[h],a[y]),h++,y++;else if(l[g]===s[b])d[b]=ar(n[g],a[b]),g--,b--;else if(l[h]===s[b])d[b]=ar(n[h],a[b]),so(t,d[b+1],n[h]),h++,b--;else if(l[g]===s[y])d[y]=ar(n[g],a[y]),so(t,n[h],n[g]),g--,y++;else if(p===void 0&&(p=Ec(s,y,b),m=Ec(l,h,g)),p.has(l[h]))if(p.has(l[g])){let w=m.get(s[y]),E=w!==void 0?n[w]:null;if(E===null){let _=so(t,n[h]);ar(_,a[y]),d[y]=_}else d[y]=ar(E,a[y]),so(t,n[h],E),n[w]=null;y++}else Xi(n[g]),g--;else Xi(n[h]),h++;for(;y<=b;){let w=so(t,d[b+1]);ar(w,a[y]),d[y++]=w}for(;h<=g;){let w=n[h++];w!==null&&Xi(w)}return this.ut=s,Cc(t,d),Oe}});var $a={};Y($a,{classMap:()=>ne});var ne=rt(class extends dt{constructor(t){if(super(t),t.type!==kt.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(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.st)o in e||(r.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return Oe}});var Fa={};Y(Fa,{styleMap:()=>Qf});var Oc="important",Jf=" !"+Oc,Qf=rt(class extends dt{constructor(t){if(super(t),t.type!==kt.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 o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}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 o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(Jf);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?Oc:""):r[o]=n}}return Oe}});var Ua={};Y(Ua,{UnsafeHTMLDirective:()=>lo,unsafeHTML:()=>ti});var lo=class extends dt{constructor(e){if(super(e),this.it=L,e.type!==kt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===L||e==null)return this._t=void 0,this.it=e;if(e===Oe)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:[]}}};lo.directiveName="unsafeHTML",lo.resultType=1;var ti=rt(lo);var Za={};Y(Za,{CacheRegistry:()=>Nt,ClearCacheEvent:()=>ai});var Va={};Y(Va,{CancelablePromise:()=>Ji,CanceledPromiseError:()=>Lr,cancelable:()=>Ba});var Lr=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Ji=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new Lr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new Lr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Ba=t=>new Ji((e,r)=>t.then(e).catch(r));var Ka={};Y(Ka,{FtNotificationEvent:()=>Pt,PostResizeEvent:()=>Ga,PreResizeEvent:()=>ja,WithEventBus:()=>Gt,withEventBus:()=>tn});var Wa={};Y(Wa,{applyMixinOnce:()=>fe,customElements:()=>Z,dateReviver:()=>ih,deepCopy:()=>ot,deepEqual:()=>it,delay:()=>Qi,eventPathContainsMatchingElement:()=>oi,everyDeep:()=>oh,flatDeep:()=>_c,forEachDeep:()=>Tc,getComposedPathTo:()=>za,hasChanged:()=>St,ignoreComposingEvents:()=>jt,last:()=>ii,minmax:()=>Ir,parseDate:()=>en,randomId:()=>ni,someDeep:()=>Lc,unslotText:()=>co,waitFor:()=>Rc,waitUntil:()=>rh});var Ha={};Y(Ha,{customElement:()=>ri,dateProperty:()=>th,isNumber:()=>Ac,jsonProperty:()=>De,numberProperty:()=>xt,optionalNumberProperty:()=>eh});var ri=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function De(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return ot(t);try{return JSON.parse(r)}catch{return ot(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:St,...e??{}})}function eh(t){return xt(t)}function xt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,o;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(o=t?.max)!==null&&o!==void 0?o:1/0;return Ac(e)?Ir(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Ac(t){return!isNaN(parseFloat(t))}function th(t){return f({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 Qi=t=>new Promise(e=>setTimeout(e,t));async function rh(t,e=10,r=2e4){await Rc(async()=>await t()||void 0,e,r)}async function Rc(t,e=10,r=2e4){let o=await t(),n=performance.now(),a=n;for(;o==null&&(!r||a-n<r);)await Qi(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function _c(t,e){return t.flatMap(r=>[r,..._c(e(r),e)])}function Tc(t,e,r){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(t,[])}function Lc(t,e,r){let o=!1;return Tc(t,e,(n,a,s,l)=>(o=!!r(n,a,s,l),!o)),o}function oh(t,e,r){return!Lc(t,e,(o,n,a,s)=>!r(o,n,a,s))}function ih(...t){return(e,r)=>t.includes(e)?en(r):r}function en(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,o,n)=>r+o+":"+n),new Date(t)}function nh(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,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!it(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!it(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[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=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!it(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function it(t,e){try{return nh(t,e)}catch{return!1}}function St(t,e){return!it(t,e)}function oi(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Ir(t,e,r){return Math.min(Math.max(t,e),r)}function ii(t){return t[t.length-1]}function co(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>co(e)).join(""):t?.textContent||""}function za(t){let e=[],r=o=>{o.stopPropagation(),e=o.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 ot(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ni(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function fe(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let n=e(o);return n[t]=!0,n}}function jt(){return function(t,e,r){let o=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function Z(t){for(let[e,r]of Object.entries(t))ri(e)(r)}var Pt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ja=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ga=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},tn=fe(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,n){this.eventBus.addEventListener(r,o,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,n){this.eventBus.removeEventListener(r,o,n)}}}),Gt=class extends tn(Object){};var ai=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Nt=class extends Gt{constructor(){super(...arguments),this.content={}}register(e,r,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:o,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&o.length>0&&this.dispatchEvent(new ai(o)),o}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new ai([e])),e}forceClear(e){var r;let o=this.content[e];o&&(this.clearClearTimeout(e),(r=o.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var r,o,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,o=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,o){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=Ba(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,o;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.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 Ja={};Y(Ja,{ClusteringHelper:()=>sr,formatHierarchicalValues:()=>Xa});var Ya={};Y(Ya,{accessBreadcrumb:()=>ah,accessResult:()=>uo,accessResultId:()=>qa,accessResultUrl:()=>si});function uo(t){var e,r,o,n;return(n=(o=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&o!==void 0?o:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function qa(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.contentId}function si(t){var e,r,o,n,a,s,l,d,p;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(o=t?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(p=t?.htmlPackagePage)===null||p===void 0?void 0:p.viewerUrl}function ah(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 Xa(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var sr=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var r,o;let n=(o=(r=uo(e.result))===null||r===void 0?void 0:r.metadata)!==null&&o!==void 0?o:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,o){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(Xa(l)),s.push(Xa(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,o="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,y)=>y.findIndex(b=>b.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var Qa={};Y(Qa,{Debouncer:()=>Me});var Me=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,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var os={};Y(os,{designSystemVariables:()=>S});var rs={};Y(rs,{DesignSystemFamily:()=>li,DesignSystemSize:()=>ci,FtCssVariableFactory:()=>i,badge:()=>xh,banner:()=>vh,button:()=>ch,card:()=>dh,chart:()=>Mh,checkbox:()=>ph,chip:()=>gh,chipChoice:()=>mh,chipGroup:()=>yh,collapsible:()=>Nh,combobox:()=>kh,dateRangePicker:()=>Hh,drawer:()=>Rh,floatingMenu:()=>Ih,foundation:()=>c,link:()=>bh,modal:()=>Oh,notice:()=>Fh,notification:()=>Bh,pageDesigner:()=>$h,pageFooter:()=>wh,pageHeader:()=>Ch,pageLayout:()=>Eh,popover:()=>Ph,radio:()=>fh,reorderableList:()=>Ah,resolveFamilyClass:()=>es,resolveSizeClass:()=>ts,semantic:()=>u,setVariable:()=>R,switch_:()=>Dh,table:()=>hh,tabs:()=>_h,textArea:()=>Lh,textInput:()=>Th,titleBreadcrumb:()=>Sh,toggle:()=>Uh,tooltip:()=>Vh,treeList:()=>uh,typographies:()=>sh,typographyBody1Medium:()=>Mc,typographyBody1Regular:()=>Dc,typographyBody1Semibold:()=>$c,typographyBody2Medium:()=>Uc,typographyBody2MediumUnderline:()=>Bc,typographyBody2Regular:()=>Fc,typographyBody2Semibold:()=>Vc,typographyCaption1Medium:()=>Hc,typographyCaption1Semibold:()=>zc,typographyCaption2Bold:()=>Gc,typographyCaption2Medium:()=>Wc,typographyCaption2Semibold:()=>jc,typographyDisplay:()=>Ic,typographyTitle1:()=>kc,typographyTitle2:()=>Pc,typographyTitle3:()=>Nc,typographyVariants:()=>lh});var lr=t=>typeof t=="string"?zt(t):t,i=class{static create(e,r,o,n){let a=l=>lr(l??n),s=A`var(${lr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${lr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=A`var(${lr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${lr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.defaultCssValue(a),n=A`var(${lr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>A`var(${lr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function R(t,e){return lr(`${t.name}: ${e}`)}var c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Ic={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},kc={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Pc={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Nc={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Dc={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Mc={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},$c={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Fc={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Uc={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Bc={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Vc={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Hc={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},zc={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Wc={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},jc={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Gc={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},sh={display:Ic,"title-1":kc,"title-2":Pc,"title-3":Nc,"body-1-regular":Dc,"body-1-medium":Mc,"body-1-semibold":$c,"body-2-regular":Fc,"body-2-medium":Uc,"body-2-medium-underline":Bc,"body-2-semibold":Vc,"caption-1-medium":Hc,"caption-1-semibold":zc,"caption-2-medium":Wc,"caption-2-semibold":jc,"caption-2-bold":Gc},lh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var ch={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var dh={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")};var uh={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var ph={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var fh={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var hh={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var mh={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var gh={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var yh={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var bh={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)};var vh={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var xh={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var Sh={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Ch={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var wh={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Eh={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var Oh={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var Ah={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Rh={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var _h={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Th={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Lh={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Ih={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var kh={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var Ph={backgroundColor:i.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Nh={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Dh={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Mh={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var $h={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Fh={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")};var Uh={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)};var Bh={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Vh={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)};var Hh={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var li;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(li||(li={}));var ci;(function(t){t.large="large",t.medium="medium",t.small="small"})(ci||(ci={}));function es(t){return`ftds--family-${t}`}function ts(t){return`ftds--size-${t}`}var S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var is={};Y(is,{DynamicImporter:()=>rn,dynamicImporter:()=>zh});var rn=class{async import(e){if(e)return import(e)}},zh=new rn;var ys={};Y(ys,{computeOffsetAutoPosition:()=>gs,computeOffsetPosition:()=>mi});var Zc=["top","right","bottom","left"],Kc=["start","end"],as=Zc.reduce((t,e)=>t.concat(e,e+"-"+Kc[0],e+"-"+Kc[1]),[]),kr=Math.min,Dt=Math.max,di=Math.round;var Mt=t=>({x:t,y:t}),Wh={left:"right",right:"left",bottom:"top",top:"bottom"};function qc(t,e,r){return Dt(t,kr(e,r))}function po(t,e){return typeof t=="function"?t(e):t}function Pr(t){return t.split("-")[0]}function $t(t){return t.split("-")[1]}function ss(t){return t==="x"?"y":"x"}function ls(t){return t==="y"?"height":"width"}function fo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function cs(t){return ss(fo(t))}function Yc(t,e,r){r===void 0&&(r=!1);let o=$t(t),n=cs(t),a=ls(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ns(s)),[s,ns(s)]}function Xc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ns(t){let e=Pr(t);return Wh[e]+t.slice(e.length)}function jh(t){var e,r,o,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(o=t.bottom)!=null?o:0,left:(n=t.left)!=null?n:0}}function Jc(t){return typeof t!="number"?jh(t):{top:t,right:t,bottom:t,left:t}}function Nr(t){let{x:e,y:r,width:o,height:n}=t;return{width:o,height:n,top:r,left:e,right:e+o,bottom:r+n,x:e,y:r}}function Qc(t,e,r){let{reference:o,floating:n}=t,a=fo(e),s=cs(e),l=ls(s),d=Pr(e),p=a==="y",m=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,y;switch(d){case"top":y={x:m,y:o.y-n.height};break;case"bottom":y={x:m,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-n.width,y:h};break;default:y={x:o.x,y:o.y}}let b=$t(e);return b&&(y[s]+=g*(b==="end"?1:-1)*(r&&p?-1:1)),y}async function ed(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=po(e,t),b=Jc(y),E=l[g?h==="floating"?"reference":"floating":h],_=Nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:m,strategy:d})),P=h==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(C))&&await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1},O=Nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:C,strategy:d}):P);return{top:(_.top-O.top+b.top)/x.y,bottom:(O.bottom-_.bottom+b.bottom)/x.y,left:(_.left-O.left+b.left)/x.x,right:(O.right-_.right+b.right)/x.x}}var Gh=50,td=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ed},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=Qc(p,o,d),g=o,y=0,b={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:_,fn:P}=E,{x:C,y:x,data:O,reset:D}=await P({x:m,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:l,elements:{reference:t,floating:e}});m=C??m,h=x??h,b[_]={...b[_],...O},D&&y<Gh&&(y++,typeof D=="object"&&(D.placement&&(g=D.placement),D.rects&&(p=D.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:m,y:h}=Qc(p,g,d)),w=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:b}};function Kh(t,e,r){return(t?[...r.filter(n=>$t(n)===t),...r.filter(n=>$t(n)!==t)]:r.filter(n=>Pr(n)===n)).filter(n=>t?$t(n)===t||(e?Xc(n)!==n:!1):!0)}var rd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=as,autoAlignment:y=!0,...b}=po(t,e),w=h!==void 0||g===as?Kh(h||null,y,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,_=w[E];if(_==null)return{};if(l!==_)return{reset:{placement:w[0]}};let P=await d.detectOverflow(e,b),C=Yc(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),x=[P[Pr(_)],P[C[0]],P[C[1]]],O=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:_,overflows:x}],D=w[E+1];if(D)return{data:{index:E+1,overflows:O},reset:{placement:D}};let ee=O.map(k=>{let U=$t(k.placement);return[k.placement,U&&m?k.overflows.slice(0,2).reduce((q,Ne)=>q+Ne,0):k.overflows[0],k.overflows]}).sort((k,U)=>k[1]-U[1]),j=((n=ee.filter(k=>k[2].slice(0,$t(k[0])?2:3).every(U=>U<=0))[0])==null?void 0:n[0])||ee[0][0];return j!==l?{data:{index:E+1,overflows:O},reset:{placement:j}}:{}}}};var Zh=new Set(["left","top"]);async function qh(t,e){let{placement:r,platform:o,elements:n}=t,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Pr(r),l=$t(r),d=fo(r)==="y",p=Zh.has(s)?-1:1,m=a&&d?-1:1,h=po(e,t),{mainAxis:g,crossAxis:y,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*m,y:g*p}:{x:g*p,y:y*m}}var od=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await qh(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},id=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:C,y:x}=P;return{x:C,y:x}}},...p}=po(t,e),m={x:r,y:o},h=await a.detectOverflow(e,p),g=fo(n),y=ss(g),b=m[y],w=m[g],E=(P,C)=>qc(C+h[P==="y"?"top":"left"],C,C-h[P==="y"?"bottom":"right"]);s&&(b=E(y,b)),l&&(w=E(g,w));let _=d.fn({...e,[y]:b,[g]:w});return{..._,data:{x:_.x-r,y:_.y-o,enabled:{[y]:s,[g]:l}}}}}};var nd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=po(t,e),d=await n.detectOverflow(e,l),p=Pr(r),m=$t(r),h=fo(r)==="y",{width:g,height:y}=o.floating,b,w;p==="top"||p==="bottom"?(b=p,w=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=m==="end"?"top":"bottom");let E=y-d.top-d.bottom,_=g-d.left-d.right,P=kr(y-d[b],E),C=kr(g-d[w],_),x=e.middlewareData.shift,O=!x,D=P,ee=C;x!=null&&x.enabled.x&&(ee=_),x!=null&&x.enabled.y&&(D=E),O&&!m&&(h?ee=g-2*Dt(d.left,d.right):D=y-2*Dt(d.top,d.bottom)),await s({...e,availableWidth:ee,availableHeight:D});let W=await n.getDimensions(a.floating);return g!==W.width||y!==W.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function Mr(t){return sd(t)?(t.nodeName||"").toLowerCase():"#document"}function Ye(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(sd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sd(t){return nn()?t instanceof Node||t instanceof Ye(t).Node:!1}function Ct(t){return nn()?t instanceof Element||t instanceof Ye(t).Element:!1}function Zt(t){return nn()?t instanceof HTMLElement||t instanceof Ye(t).HTMLElement:!1}function ad(t){return!nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ye(t).ShadowRoot}function ui(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=wt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&n!=="inline"&&n!=="contents"}function ld(t){return/^(table|td|th)$/.test(Mr(t))}function pi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Yh=/transform|translate|scale|rotate|perspective|filter/,Xh=/paint|layout|strict|content/,Dr=t=>!!t&&t!=="none",ds;function ho(t){let e=Ct(t)?wt(t):t;return Dr(e.transform)||Dr(e.translate)||Dr(e.scale)||Dr(e.rotate)||Dr(e.perspective)||!an()&&(Dr(e.backdropFilter)||Dr(e.filter))||Yh.test(e.willChange||"")||Xh.test(e.contain||"")}function cd(t){let e=cr(t);for(;Zt(e)&&!mo(e);){if(ho(e))return e;if(pi(e))return null;e=cr(e)}return null}function an(){return ds==null&&(ds=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ds}function mo(t){return/^(html|body|#document)$/.test(Mr(t))}function wt(t){return Ye(t).getComputedStyle(t)}function fi(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function cr(t){if(Mr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ad(t)&&t.host||Kt(t);return ad(e)?e.host:e}function dd(t){let e=cr(t);return mo(e)?(t.ownerDocument||t).body:Zt(e)&&ui(e)?e:dd(e)}function on(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=dd(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ye(n);if(a){let l=sn(s);return e.concat(s,s.visualViewport||[],ui(n)?n:[],l&&r?on(l):[])}else return e.concat(n,on(n,[],r))}function sn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fd(t){let e=wt(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Zt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=di(r)!==a||di(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function hd(t){return Ct(t)?t:t.contextElement}function go(t){let e=hd(t);if(!Zt(e))return Mt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=fd(e),s=(a?di(r.width):r.width)/o,l=(a?di(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Jh=Mt(0);function md(t){let e=Ye(t);return!an()||!e.visualViewport?Jh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Qh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ye(t)}function hi(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=hd(t),s=Mt(1);e&&(o?Ct(o)&&(s=go(o)):s=go(t));let l=Qh(a,r,o)?md(a):Mt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&o){let g=Ye(a),y=Ct(o)?Ye(o):o,b=g,w=sn(b);for(;w&&y!==b;){let E=go(w),_=w.getBoundingClientRect(),P=wt(w),C=_.left+(w.clientLeft+parseFloat(P.paddingLeft))*E.x,x=_.top+(w.clientTop+parseFloat(P.paddingTop))*E.y;d*=E.x,p*=E.y,m*=E.x,h*=E.y,d+=C,p+=x,b=Ye(w),w=sn(b)}}return Nr({width:m,height:h,x:d,y:p})}function ln(t,e){let r=fi(t).scrollLeft;return e?e.left+r:hi(Kt(t)).left+r}function gd(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-ln(t,r),n=r.top+e.scrollTop;return{x:o,y:n}}function em(t){let{elements:e,rect:r,offsetParent:o,strategy:n}=t,a=n==="fixed",s=Kt(o),l=e?pi(e.floating):!1;if(o===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},p=Mt(1),m=Mt(0),h=Zt(o);if((h||!a)&&((Mr(o)!=="body"||ui(s))&&(d=fi(o)),h)){let y=hi(o);p=go(o),m.x=y.x+o.clientLeft,m.y=y.y+o.clientTop}let g=s&&!h&&!a?gd(s,d):Mt(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 tm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function rm(t){let e=fi(t),r=t.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+ln(t),s=-e.scrollTop;return wt(r).direction==="rtl"&&(a+=Dt(t.clientWidth,r.clientWidth)-o),{width:o,height:n,x:a,y:s}}var om=25;function im(t,e,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=Ye(t),a=Kt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,m=0;if(s){let g=!an()||e==="fixed";o?g||(p=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,m=s.offsetTop))}if(ln(a)<=0){let g=a.ownerDocument,y=g.body,b=getComputedStyle(y),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-w),_=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;_<=om&&(l-=_)}return{width:l,height:d,x:p,y:m}}function nm(t,e){let r=hi(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=go(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function ud(t,e,r){let o;if(e==="viewport"||e==="layoutViewport")o=im(t,r,e);else if(e==="document")o=rm(Kt(t));else if(Ct(e))o=nm(e,r);else{let n=md(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Nr(o)}function am(t,e){let r=e.get(t);if(r)return r;let o=on(t,[],!1).filter(l=>Ct(l)&&Mr(l)!=="body"),n=null,a=wt(t).position==="fixed",s=a?cr(t):t;for(;Ct(s)&&!mo(s);){let l=wt(s),d=ho(s),p=n?n.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):n=l,s=cr(s)}return e.set(t,o),o}function sm(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?pi(e)?[]:am(e,this._c):[].concat(r),o],l=ud(e,s[0],n),d=l.top,p=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let y=ud(e,s[g],n);d=Dt(y.top,d),p=kr(y.right,p),m=kr(y.bottom,m),h=Dt(y.left,h)}return{width:p-h,height:m-d,x:h,y:d}}function lm(t){let{width:e,height:r}=fd(t);return{width:e,height:r}}function cm(t,e,r){let o=Zt(e),n=Kt(e),a=r==="fixed",s=hi(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Mt(0);if((o||!a)&&((Mr(e)!=="body"||ui(n))&&(l=fi(e)),o)){let g=hi(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&n&&(d.x=ln(n));let p=n&&!o&&!a?gd(n,l):Mt(0),m=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:m,y:h,width:s.width,height:s.height}}function us(t){return wt(t).position==="static"}function pd(t,e){if(!Zt(t)||wt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function yd(t,e){let r=Ye(t);if(pi(t))return r;if(!Zt(t)){let n=cr(t);for(;n&&!mo(n);){if(Ct(n)&&!us(n))return n;n=cr(n)}return r}let o=pd(t,e);for(;o&&ld(o)&&us(o);)o=pd(o,e);return o&&mo(o)&&us(o)&&!ho(o)?r:o||cd(t)||r}var dm=async function(t){let e=this.getOffsetParent||yd,r=this.getDimensions,o=await r(t.floating);return{reference:cm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function um(t){return wt(t).direction==="rtl"}var yo={convertOffsetParentRelativeRectToViewportRelativeRect:em,getDocumentElement:Kt,getClippingRect:sm,getOffsetParent:yd,getElementRects:dm,getClientRects:tm,getDimensions:lm,getScale:go,isElement:Ct,isRTL:um};var bd=od,ps=rd,vd=id;var xd=nd;var fs=(t,e,r)=>{let o=new Map,n=r??{},a={...yo,...n.platform,_c:o};return td(t,e,{...n,platform:a})};function ms(t){return pm(t)}function hs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function pm(t){for(let e=t;e;e=hs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=hs(t);e;e=hs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ho(r)||e.tagName==="BODY"))return e}return null}async function mi(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},fs(t,e,{strategy:o.strategy,platform:{...yo,getOffsetParent:n=>yo.getOffsetParent(n,ms)},middleware:[vd({crossAxis:!0}),ps({allowedPlacements:[o.placement]})]})}async function gs(t,e,r,o,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,o=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,fs(t,e,{placement:l,strategy:n,platform:{...yo,getOffsetParent:p=>yo.getOffsetParent(p,ms)},middleware:[bd(s??4),ps({allowedPlacements:o}),xd({apply({availableHeight:p,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var bs={};Y(bs,{isSlotEmptyOrWithoutContent:()=>fm});var fm=t=>t?t.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Es={};Y(Es,{FtdsBase:()=>ws,toFtdsBase:()=>Rd});var Cs={};Y(Cs,{ExportpartsUpdatedEvent:()=>$r,FtLitElement:()=>$});var vs={};Y(vs,{ScopedRegistryLitElement:()=>gi});var gi=class extends It{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},o=this.renderOptions.creationScope=this.attachShadow(r);return jo(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,o])=>this.defineScopedElement(r,o))}static defineScopedElement(e,r){ri(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 Ss={};Y(Ss,{shadowQuerySelector:()=>xs,shadowQuerySelectorAll:()=>hm});function xs(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function hm(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var bo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ed,Sd=Symbol("constructorPrototype"),Cd=Symbol("constructorName"),Od=Symbol("exportpartsDebouncer"),wd=Symbol("dynamicDependenciesLoaded"),$r=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};$r.eventName="exportparts-updated";var $=class extends gi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ed]=new Me(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Od].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Cd]=this.constructor.name,this[Sd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cd]&&Object.setPrototypeOf(this,this[Sd])}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(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[wd]||(r[wd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener($r.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener($r.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 $r)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];r=xs(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,o,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,p=e.filter(d).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],w=[...y,...b].filter(d).map(E=>E.trim());for(let E of w)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>p.map(y=>`${g}:${y}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Ed=Od;bo([f()],$.prototype,"exportpartsPrefix",void 0);bo([De([])],$.prototype,"exportpartsPrefixes",void 0);bo([f({reflect:!0})],$.prototype,"exportparts",void 0);bo([f()],$.prototype,"customStylesheet",void 0);bo([f()],$.prototype,"elementToFocus",void 0);bo([I()],$.prototype,"useAdoptedStyleSheets",void 0);var Ad=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rd=fe(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=ci.medium,this.family=li.neutral}getDesignSystemBaseClasses(){return{[es(this.family)]:!0,[ts(this.size)]:!0}}}return Ad([f()],e.prototype,"size",void 0),Ad([f()],e.prototype,"family",void 0),e}),ws=class extends Rd($){};var _d={};var Rs={};Y(Rs,{highlightHtml:()=>As,highlightHtmlColorCssVariable:()=>Td,highlightHtmlStyles:()=>gm});var Fr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,m=>{r(p)&&(l++,o(m)),d()},d)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,m,h=()=>({prevNode:m,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>d.push(y),n)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var yi=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Fr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[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,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),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,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.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",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.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=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.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:o})})}matchesExclude(e){return Fr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,m=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,m),e.value=h+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=m),e.nodes[b].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let m=p.index;if(s!==0)for(let h=1;h<s;h++)m+=p[h].length;d=this.wrapRangeInTextNode(d,m,m+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let m=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,m,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,m,g=>r(g,l,a.value.substring(p,m),d),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,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 o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let m=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,y)=>this.opt.filter(y,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}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,o=>{this.unwrapMatches(o)},o=>{let n=Fr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Os(t){let e=new yi(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var mm=Os,Td=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),gm=A`
1
+ "use strict";(()=>{var jf=Object.defineProperty;var X=(t,e)=>{for(var r in e)jf(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,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(y,b){if(y=y.toLowerCase(),this._getDefinition(y)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${y}" 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 w=b.prototype.attributeChangedCallback,D=new Set(b.observedAttributes||[]);g(b,D,w);let M={elementClass:b,connectedCallback:b.prototype.connectedCallback,disconnectedCallback:b.prototype.disconnectedCallback,adoptedCallback:b.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:b.formAssociated,formAssociatedCallback:b.prototype.formAssociatedCallback,formDisabledCallback:b.prototype.formDisabledCallback,formResetCallback:b.prototype.formResetCallback,formStateRestoreCallback:b.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(y,M),this._definitionsByClass.set(b,M);let P=r.call(i,y);P||(P=h(y),e.call(i,y,P)),this===window.customElements&&(s.set(b,M),M.standInClass=P);let Y=this._awaitingUpgrade.get(y);if(Y){this._awaitingUpgrade.delete(y);for(let z of Y)a.delete(z),C(z,M,!0)}let k=this._whenDefinedPromises.get(y);return k!==void 0&&(k.resolve(b),this._whenDefinedPromises.delete(y)),b}upgrade(){E.push(this),i.upgrade.apply(i,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let b=this._getDefinition(y);if(b!==void 0)return Promise.resolve(b.elementClass);let w=this._whenDefinedPromises.get(y);return w===void 0&&(w={},w.promise=new Promise(D=>w.resolve=D),this._whenDefinedPromises.set(y,w)),w.promise}_upgradeWhenDefined(y,b,w){let D=this._awaitingUpgrade.get(b);D||this._awaitingUpgrade.set(b,D=new Set),w?D.add(y):D.delete(y)}};let d;window.HTMLElement=function(){let b=d;if(b)return d=void 0,b;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return b=Reflect.construct(t,[],w.standInClass),Object.setPrototypeOf(b,this.constructor.prototype),n.set(b,w),b},window.HTMLElement.prototype=t.prototype;let u=y=>y===document||y instanceof ShadowRoot,m=y=>{let b=y.getRootNode();if(!u(b)){let w=E[E.length-1];if(w instanceof CustomElementRegistry)return w;b=w.getRootNode(),u(b)||(b=l.get(b)?.getRootNode()||document)}return b.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let D=m(w)||window.customElements,M=D._getDefinition(y);return M?C(w,M):a.set(w,D),w}connectedCallback(){let w=n.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let w=n.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=n.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=n.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=n.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=n.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},g=(y,b,w)=>{if(b.size===0||w===void 0)return;let D=y.prototype.setAttribute;D&&(y.prototype.setAttribute=function(Y,k){let z=Y.toLowerCase();if(b.has(z)){let pe=this.getAttribute(z);D.call(this,z,k),w.call(this,z,pe,k)}else D.call(this,z,k)});let M=y.prototype.removeAttribute;M&&(y.prototype.removeAttribute=function(Y){let k=Y.toLowerCase();if(b.has(k)){let z=this.getAttribute(k);M.call(this,k),w.call(this,k,z,null)}else M.call(this,k)});let P=y.prototype.toggleAttribute;P&&(y.prototype.toggleAttribute=function(Y,k){let z=Y.toLowerCase();if(b.has(z)){let pe=this.getAttribute(z);P.call(this,z,k);let _t=this.getAttribute(z);w.call(this,z,pe,_t)}else P.call(this,z,k)})},v=y=>{let b=Object.getPrototypeOf(y);if(b!==window.HTMLElement)return b===t?Object.setPrototypeOf(y,window.HTMLElement):v(b)},C=(y,b,w=!1)=>{Object.setPrototypeOf(y,b.elementClass.prototype),n.set(y,b),d=y;try{new b.elementClass}catch{v(b.elementClass),new b.elementClass}b.attributeChangedCallback&&b.observedAttributes.forEach(D=>{y.hasAttribute(D)&&b.attributeChangedCallback.call(y,D,null,y.getAttribute(D))}),w&&b.connectedCallback&&y.isConnected&&b.connectedCallback.call(y)},I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let b=I.apply(this,arguments);return y.customElements&&(b.customElements=y.customElements),b};let E=[document],L=(y,b,w=void 0)=>{let D=(w?Object.getPrototypeOf(w):y.prototype)[b];y.prototype[b]=function(){E.push(this);let M=D.apply(w||this,arguments);return M!==void 0&&l.set(M,this),E.pop(),M}};L(ShadowRoot,"createElement",document),L(ShadowRoot,"importNode",document),L(Element,"insertAdjacentHTML");let j=(y,b)=>{let w=Object.getOwnPropertyDescriptor(y.prototype,b);Object.defineProperty(y.prototype,b,{...w,set(D){E.push(this),w.set.call(this,D),E.pop()}})};if(j(Element,"innerHTML"),j(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,b=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let k=b.call(this,...Y);return y.set(k,this),k},w.forEach(Y=>{let k=window.ElementInternals.prototype,z=k[Y];k[Y]=function(...pe){let _t=y.get(this);if(n.get(_t).formAssociated===!0)return z?.call(this,...pe);throw new DOMException(`Failed to execute ${z} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class M{constructor(k){let z=new Map;k.forEach((pe,_t)=>{let _a=pe.getAttribute("name"),sc=z.get(_a)||[];this[+_t]=pe,sc.push(pe),z.set(_a,sc)}),this.length=k.length,z.forEach((pe,_t)=>{pe&&(pe.length===1?this[_t]=pe[0]:this[_t]=new D(pe))})}namedItem(k){return this[k]}}let P=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=P.get.call(this,[]),k=[];for(let z of Y){let pe=n.get(z);(!pe||pe.formAssociated===!0)&&k.push(z)}return new M(k)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var Ua={};X(Ua,{CSSResult:()=>Xr,LitElement:()=>Rt,ReactiveElement:()=>nt,_$LE:()=>wc,_$LH:()=>Ma,adoptStyles:()=>No,css:()=>O,defaultConverter:()=>Jr,getCompatibleStyle:()=>Pi,html:()=>x,isServer:()=>Oy,mathml:()=>Da,noChange:()=>Ee,notEqual:()=>Mo,nothing:()=>R,render:()=>$a,supportsAdoptingStyleSheets:()=>Po,svg:()=>Vo,unsafeCSS:()=>Vt});var ki=globalThis,Po=ki.ShadowRoot&&(ki.ShadyCSS===void 0||ki.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ra=Symbol(),lc=new WeakMap,Xr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ra)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(Po&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=lc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&lc.set(r,e))}return e}toString(){return this.cssText}},Vt=t=>new Xr(typeof t=="string"?t:t+"",void 0,Ra),O=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[a+1],t[0]);return new Xr(r,t,Ra)},No=(t,e)=>{if(Po)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ki.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Pi=Po?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Vt(r)})(t):t;var{is:Kf,defineProperty:Zf,getOwnPropertyDescriptor:qf,getOwnPropertyNames:Yf,getOwnPropertySymbols:Xf,getPrototypeOf:Jf}=Object,Ni=globalThis,cc=Ni.trustedTypes,Qf=cc?cc.emptyScript:"",eh=Ni.reactiveElementPolyfillSupport,Do=(t,e)=>t,Jr={toAttribute(t,e){switch(e){case Boolean:t=t?Qf: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}},Mo=(t,e)=>!Kf(t,e),dc={attribute:!0,type:String,converter:Jr,reflect:!1,useDefault:!1,hasChanged:Mo};Symbol.metadata??=Symbol("metadata"),Ni.litPropertyMetadata??=new WeakMap;var nt=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=dc){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&&Zf(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=qf(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??dc}static _$Ei(){if(this.hasOwnProperty(Do("elementProperties")))return;let e=Jf(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Do("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Do("properties"))){let r=this.properties,i=[...Yf(r),...Xf(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(Pi(n))}else e!==void 0&&r.push(Pi(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 No(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Jr).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Jr;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??Mo)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[Do("elementProperties")]=new Map,nt[Do("finalized")]=new Map,eh?.({ReactiveElement:nt}),(Ni.reactiveElementVersions??=[]).push("2.1.2");var Ia=globalThis,pc=t=>t,Di=Ia.trustedTypes,uc=Di?Di.createPolicy("lit-html",{createHTML:t=>t}):void 0,La="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,ka="?"+zt,th=`<${ka}>`,vr=document,Fo=()=>vr.createComment(""),Uo=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,bc=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Ta=`[
2
+ \f\r]`,$o=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fc=/-->/g,hc=/>/g,br=RegExp(`>|${Ta}(?:([^\\s"'>=/]+)(${Ta}*=${Ta}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mc=/'/g,gc=/"/g,xc=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),x=Na(1),Vo=Na(2),Da=Na(3),Ee=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),yc=new WeakMap,xr=vr.createTreeWalker(vr,129);function vc(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return uc!==void 0?uc.createHTML(e):e}var Sc=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=$o;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===$o?m[1]==="!--"?s=fc:m[1]!==void 0?s=hc:m[2]!==void 0?(xc.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=br):m[3]!==void 0&&(s=br):s===br?m[0]===">"?(s=n??$o,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?br:m[3]==='"'?gc:mc):s===gc||s===mc?s=br:s===fc||s===hc?s=$o:(s=br,n=void 0);let v=s===br&&t[l+1].startsWith("/>")?" ":"";a+=s===$o?d+th:h>=0?(i.push(u),d.slice(0,h)+La+d.slice(h)+zt+v):d+zt+(h===-2?l:v)}return[vc(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Bo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=Sc(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=xr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(La)){let g=m[s++],v=n.getAttribute(h).split(zt),C=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:C[2],strings:v,ctor:C[1]==="."?$i:C[1]==="?"?Fi:C[1]==="@"?Ui:wr}),n.removeAttribute(h)}else h.startsWith(zt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(xc.test(n.tagName)){let h=n.textContent.split(zt),g=h.length-1;if(g>0){n.textContent=Di?Di.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],Fo()),xr.nextNode(),d.push({type:2,index:++a});n.append(h[g],Fo())}}}else if(n.nodeType===8)if(n.data===ka)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(zt,h+1))!==-1;)d.push({type:7,index:a}),h+=zt.length-1}a++}}static createElement(e,r){let i=vr.createElement("template");return i.innerHTML=e,i}};function Sr(t,e,r=t,i){if(e===Ee)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Uo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,i)),e}var Mi=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??vr).importNode(r,!0);xr.currentNode=n;let a=xr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Qr(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new Bi(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=xr.nextNode(),s++)}return xr.currentNode=vr,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=Sr(this,e,r),Uo(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):bc(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&&Uo(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.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=Bo.createElement(vc(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Mi(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=yc.get(e.strings);return r===void 0&&yc.set(e.strings,r=new Bo(e)),r}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Fo()),this.O(Fo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=pc(e).nextSibling;pc(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Sr(this,e,r,0),s=!Uo(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=Sr(this,l[i+d],r,d),u===Ee&&(u=this._$AH[d]),s||=!Uo(u)||u!==this._$AH[d],u===R?e=R:e!==R&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},$i=class extends wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}},Fi=class extends wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==R)}},Ui=class extends wr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Sr(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,a=e!==R&&(i===R||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Bi=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){Sr(this,e)}},Ma={M:La,P:zt,A:ka,C:1,L:Sc,R:Mi,D:bc,V:Sr,I:Qr,H:wr,N:Fi,U:Ui,B:$i,F:Bi},rh=Ia.litHtmlPolyfillSupport;rh?.(Bo,Qr),(Ia.litHtmlVersions??=[]).push("3.3.3");var $a=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Qr(e.insertBefore(Fo(),a),a,void 0,r??{})}return n._$AI(t),n};var Fa=globalThis,Rt=class extends nt{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=$a(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Rt._$litElement$=!0,Rt.finalized=!0,Fa.litElementHydrateSupport?.({LitElement:Rt});var oh=Fa.litElementPolyfillSupport;oh?.({LitElement:Rt});var wc={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Fa.litElementVersions??=[]).push("4.2.2");var Oy=!1;var Va={};X(Va,{customElement:()=>ih,eventOptions:()=>Vi,property:()=>f,query:()=>U,queryAll:()=>Ba,queryAssignedElements:()=>zo,queryAssignedNodes:()=>Ho,queryAsync:()=>sh,standardProperty:()=>Cc,state:()=>T});var ih=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var nh={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:Mo},Cc=(t=nh,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?Cc(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return f({...t,state:!0,attribute:!1})}function Vi(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var mt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function U(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return mt(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return mt(r,i,{get(){return a(this)}})}}var ah;function Ba(t){return(e,r)=>mt(e,r,{get(){return(this.renderRoot??(ah??=document.createDocumentFragment())).querySelectorAll(t)}})}function sh(t){return(e,r)=>mt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function zo(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return mt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Ho(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return mt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var za={};X(za,{repeat:()=>je});var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Je=t=>(...e)=>({_$litDirective$:t,values:e}),at=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:lh}=Ma,Ec=t=>t;var Ac=t=>t.strings===void 0,Oc=()=>document.createComment(""),eo=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Oc(),n),s=i.insertBefore(Oc(),n);r=new lh(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let u=Ec(d).nextSibling;Ec(i).insertBefore(d,n),d=u}}}return r},or=(t,e,r=t)=>(t._$AI(e,r),t),ch={},_c=(t,e=ch)=>t._$AH=e,Rc=t=>t._$AH,zi=t=>{t._$AR(),t._$AA.remove()};var Tc=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},je=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Rc(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,m,h=0,g=n.length-1,v=0,C=a.length-1;for(;h<=g&&v<=C;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=or(n[h],a[v]),h++,v++;else if(l[g]===s[C])d[C]=or(n[g],a[C]),g--,C--;else if(l[h]===s[C])d[C]=or(n[h],a[C]),eo(t,d[C+1],n[h]),h++,C--;else if(l[g]===s[v])d[v]=or(n[g],a[v]),eo(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=Tc(s,v,C),m=Tc(l,h,g)),u.has(l[h]))if(u.has(l[g])){let I=m.get(s[v]),E=I!==void 0?n[I]:null;if(E===null){let L=eo(t,n[h]);or(L,a[v]),d[v]=L}else d[v]=or(E,a[v]),eo(t,n[h],E),n[I]=null;v++}else zi(n[g]),g--;else zi(n[h]),h++;for(;v<=C;){let I=eo(t,d[C+1]);or(I,a[v]),d[v++]=I}for(;h<=g;){let I=n[h++];I!==null&&zi(I)}return this.ut=s,_c(t,d),Ee}});var Ha={};X(Ha,{classMap:()=>oe});var oe=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.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 Wa={};X(Wa,{styleMap:()=>ph});var Ic="important",dh=" !"+Ic,ph=Je(class extends at{constructor(t){if(super(t),t.type!==Tt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(dh);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Ic:""):r[i]=n}}return Ee}});var Ga={};X(Ga,{UnsafeHTMLDirective:()=>to,unsafeHTML:()=>Wo});var to=class extends at{constructor(e){if(super(e),this.it=R,e.type!==Tt.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:[]}}};to.directiveName="unsafeHTML",to.resultType=1;var Wo=Je(to);var es={};X(es,{CacheRegistry:()=>Lt,ClearCacheEvent:()=>qo});var Ka={};X(Ka,{CancelablePromise:()=>Hi,CanceledPromiseError:()=>Cr,cancelable:()=>ja});var Cr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Hi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new Cr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new Cr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ja=t=>new Hi((e,r)=>t.then(e).catch(r));var Qa={};X(Qa,{FtNotificationEvent:()=>It,PostResizeEvent:()=>Ja,PreResizeEvent:()=>Xa,WithEventBus:()=>Wt,withEventBus:()=>Ki});var Ya={};X(Ya,{applyMixinOnce:()=>ue,customElements:()=>Z,dateReviver:()=>gh,deepCopy:()=>Qe,deepEqual:()=>Be,delay:()=>Wi,eventPathContainsMatchingElement:()=>jo,everyDeep:()=>mh,flatDeep:()=>Pc,forEachDeep:()=>Nc,getComposedPathTo:()=>qa,hasChanged:()=>yt,ignoreComposingEvents:()=>Ht,last:()=>Ko,minmax:()=>Er,parseDate:()=>Gi,randomId:()=>Zo,someDeep:()=>Dc,unslotText:()=>ji,waitFor:()=>kc,waitUntil:()=>hh});var Za={};X(Za,{customElement:()=>Go,dateProperty:()=>fh,isNumber:()=>Lc,jsonProperty:()=>Pe,numberProperty:()=>gt,optionalNumberProperty:()=>uh});var Go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Pe(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return Qe(t);try{return JSON.parse(r)}catch{return Qe(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:yt,...e??{}})}function uh(t){return gt(t)}function gt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return Lc(e)?Er(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function Lc(t){return!isNaN(parseFloat(t))}function fh(t){return f({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 Wi=t=>new Promise(e=>setTimeout(e,t));async function hh(t,e=10,r=2e4){await kc(async()=>await t()||void 0,e,r)}async function kc(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await Wi(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Pc(t,e){return t.flatMap(r=>[r,...Pc(e(r),e)])}function Nc(t,e,r){let i=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function Dc(t,e,r){let i=!1;return Nc(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function mh(t,e,r){return!Dc(t,e,(i,n,a,s)=>!r(i,n,a,s))}function gh(...t){return(e,r)=>t.includes(e)?Gi(r):r}function Gi(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 yh(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(!Be(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(!Be(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=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!Be(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Be(t,e){try{return yh(t,e)}catch{return!1}}function yt(t,e){return!Be(t,e)}function jo(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Er(t,e,r){return Math.min(Math.max(t,e),r)}function Ko(t){return t[t.length-1]}function ji(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>ji(e)).join(""):t?.textContent||""}function qa(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 Qe(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Zo(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function ue(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 Ht(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function Z(t){for(let[e,r]of Object.entries(t))Go(e)(r)}var It=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Xa=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Ja=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Ki=ue(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)}}}),Wt=class extends Ki(Object){};var qo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Lt=class extends Wt{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:i,status:s}}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 qo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new qo([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,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,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=ja(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var 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 is={};X(is,{ClusteringHelper:()=>ir,formatHierarchicalValues:()=>os});var rs={};X(rs,{accessBreadcrumb:()=>bh,accessResult:()=>ro,accessResultId:()=>ts,accessResultUrl:()=>Yo});function ro(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 ts(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.contentId}function Yo(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.viewerUrl}function bh(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 os(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var ir=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 a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=ro(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(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(os(l)),s.push(os(l,r))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(C=>C.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var ns={};X(ns,{Debouncer:()=>Ne});var Ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var cs={};X(cs,{designSystemVariables:()=>S});var ls={};X(ls,{DesignSystemFamily:()=>Xo,DesignSystemSize:()=>Jo,FtCssVariableFactory:()=>o,badge:()=>kh,banner:()=>Lh,button:()=>Sh,card:()=>wh,chart:()=>Zh,checkbox:()=>Eh,chip:()=>Rh,chipChoice:()=>_h,chipGroup:()=>Th,collapsible:()=>jh,combobox:()=>Wh,dateRangePicker:()=>em,drawer:()=>Uh,floatingMenu:()=>Hh,foundation:()=>c,link:()=>Ih,modal:()=>$h,notice:()=>Yh,notification:()=>Jh,pageDesigner:()=>qh,pageFooter:()=>Dh,pageHeader:()=>Nh,pageLayout:()=>Mh,popover:()=>Gh,radio:()=>Oh,reorderableList:()=>Fh,resolveFamilyClass:()=>as,resolveSizeClass:()=>ss,semantic:()=>p,setVariable:()=>A,switch_:()=>Kh,table:()=>Ah,tabs:()=>Bh,textArea:()=>zh,textInput:()=>Vh,titleBreadcrumb:()=>Ph,toggle:()=>Xh,tooltip:()=>Qh,treeList:()=>Ch,typographies:()=>xh,typographyBody1Medium:()=>Vc,typographyBody1Regular:()=>Bc,typographyBody1Semibold:()=>zc,typographyBody2Medium:()=>Wc,typographyBody2MediumUnderline:()=>Gc,typographyBody2Regular:()=>Hc,typographyBody2Semibold:()=>jc,typographyCaption1Medium:()=>Kc,typographyCaption1Semibold:()=>Zc,typographyCaption2Bold:()=>Xc,typographyCaption2Medium:()=>qc,typographyCaption2Semibold:()=>Yc,typographyDisplay:()=>Mc,typographyTitle1:()=>$c,typographyTitle2:()=>Fc,typographyTitle3:()=>Uc,typographyVariants:()=>vh});var nr=t=>typeof t=="string"?Vt(t):t,o=class{static create(e,r,i,n){let a=l=>nr(l??n),s=O`var(${nr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${nr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=O`var(${nr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>O`var(${nr(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=O`var(${nr(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=a=>e.set(a),n.get=a=>O`var(${nr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function A(t,e){return nr(`${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)")},Mc={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")},$c={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")},Fc={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")},Uc={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")},Bc={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")},Vc={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")},Hc={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")},Wc={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")},Gc={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")},Kc={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")},Zc={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")},qc={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")},Yc={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")},Xc={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")},xh={display:Mc,"title-1":$c,"title-2":Fc,"title-3":Uc,"body-1-regular":Bc,"body-1-medium":Vc,"body-1-semibold":zc,"body-2-regular":Hc,"body-2-medium":Wc,"body-2-medium-underline":Gc,"body-2-semibold":jc,"caption-1-medium":Kc,"caption-1-semibold":Zc,"caption-2-medium":qc,"caption-2-semibold":Yc,"caption-2-bold":Xc},vh=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={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 Sh={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","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.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","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.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","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.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","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.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","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.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","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.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","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.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","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.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","",p.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","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.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","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.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","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.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","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.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","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var wh={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.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","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.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 Ch={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","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.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","",p.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","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.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","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.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","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.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","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Eh={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.spacing1),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.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","",p.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","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.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","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.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","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.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","",p.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 Ah={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.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","",p.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","",p.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 _h={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","",p.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","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.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","",p.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","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.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","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var Th={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","",p.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","",p.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","",p.contentActionPrimary)};var Ih={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Lh={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","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var kh={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","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var Ph={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Nh={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.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.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","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Dh={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","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Mh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var $h={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","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.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","",p.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 Fh={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),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","",p.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","",p.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","",p.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","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.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","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Uh={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.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","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.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","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.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","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.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","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.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","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Vh={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),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","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.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","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.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","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var zh={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Hh={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","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.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","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.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","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.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","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.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","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.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","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.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","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.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","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.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","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.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 Wh={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","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.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","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var Gh={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.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 jh={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","",p.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","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Kh={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","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.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","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.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","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.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","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Zh={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),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var qh={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 Yh={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","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.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 Xh={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","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.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","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var Jh={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","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.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 Qh={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","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.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 em={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 Xo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Xo||(Xo={}));var Jo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Jo||(Jo={}));function as(t){return`ftds--family-${t}`}function ss(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 ds={};X(ds,{DynamicImporter:()=>Zi,dynamicImporter:()=>tm});var Zi=class{async import(e){if(e)return import(e)}},tm=new Zi;var Cs={};X(Cs,{computeOffsetAutoPosition:()=>ws,computeOffsetPosition:()=>ii});var Qc=["top","right","bottom","left"],Jc=["start","end"],us=Qc.reduce((t,e)=>t.concat(e,e+"-"+Jc[0],e+"-"+Jc[1]),[]),Or=Math.min,kt=Math.max,Qo=Math.round;var Pt=t=>({x:t,y:t}),rm={left:"right",right:"left",bottom:"top",top:"bottom"};function ed(t,e,r){return kt(t,Or(e,r))}function oo(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function Nt(t){return t.split("-")[1]}function fs(t){return t==="x"?"y":"x"}function hs(t){return t==="y"?"height":"width"}function io(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ms(t){return fs(io(t))}function td(t,e,r){r===void 0&&(r=!1);let i=Nt(t),n=ms(t),a=hs(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ps(s)),[s,ps(s)]}function rd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ps(t){let e=Ar(t);return rm[e]+t.slice(e.length)}function om(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 od(t){return typeof t!="number"?om(t):{top:t,right:t,bottom:t,left:t}}function _r(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 id(t,e,r){let{reference:i,floating:n}=t,a=io(e),s=ms(e),l=hs(s),d=Ar(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=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:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let C=Nt(e);return C&&(v[s]+=g*(C==="end"?1:-1)*(r&&u?-1:1)),v}async function nd(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=oo(e,t),C=od(v),E=l[g?h==="floating"?"reference":"floating":h],L=_r(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),j=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},w=_r(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:j,offsetParent:y,strategy:d}):j);return{top:(L.top-w.top+C.top)/b.y,bottom:(w.bottom-L.bottom+C.bottom)/b.y,left:(L.left-w.left+C.left)/b.x,right:(w.right-L.right+C.right)/b.x}}var im=50,ad=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:nd},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=id(u,i,d),g=i,v=0,C={};for(let I=0;I<a.length;I++){let E=a[I];if(!E)continue;let{name:L,fn:j}=E,{x:y,y:b,data:w,reset:D}=await j({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:C,rects:u,platform:l,elements:{reference:t,floating:e}});m=y??m,h=b??h,C[L]={...C[L],...w},D&&v<im&&(v++,typeof D=="object"&&(D.placement&&(g=D.placement),D.rects&&(u=D.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):D.rects),{x:m,y:h}=id(u,g,d)),I=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:C}};function nm(t,e,r){return(t?[...r.filter(n=>Nt(n)===t),...r.filter(n=>Nt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?Nt(n)===t||(e?rd(n)!==n:!1):!0)}var sd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=us,autoAlignment:v=!0,...C}=oo(t,e),I=h!==void 0||g===us?nm(h||null,v,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,L=I[E];if(L==null)return{};if(l!==L)return{reset:{placement:I[0]}};let j=await d.detectOverflow(e,C),y=td(L,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),b=[j[Ar(L)],j[y[0]],j[y[1]]],w=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:b}],D=I[E+1];if(D)return{data:{index:E+1,overflows:w},reset:{placement:D}};let M=w.map(k=>{let z=Nt(k.placement);return[k.placement,z&&m?k.overflows.slice(0,2).reduce((pe,_t)=>pe+_t,0):k.overflows[0],k.overflows]}).sort((k,z)=>k[1]-z[1]),Y=((n=M.filter(k=>k[2].slice(0,Nt(k[0])?2:3).every(z=>z<=0))[0])==null?void 0:n[0])||M[0][0];return Y!==l?{data:{index:E+1,overflows:w},reset:{placement:Y}}:{}}}};var am=new Set(["left","top"]);async function sm(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=Ar(r),l=Nt(r),d=io(r)==="y",u=am.has(s)?-1:1,m=a&&d?-1:1,h=oo(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),d?{x:v*m,y:g*u}:{x:g*u,y:v*m}}var ld=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await sm(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},cd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:j=>{let{x:y,y:b}=j;return{x:y,y:b}}},...u}=oo(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=io(n),v=fs(g),C=m[v],I=m[g],E=(j,y)=>ed(y+h[j==="y"?"top":"left"],y,y-h[j==="y"?"bottom":"right"]);s&&(C=E(v,C)),l&&(I=E(g,I));let L=d.fn({...e,[v]:C,[g]:I});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[v]:s,[g]:l}}}}}};var dd=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=oo(t,e),d=await n.detectOverflow(e,l),u=Ar(r),m=Nt(r),h=io(r)==="y",{width:g,height:v}=i.floating,C,I;u==="top"||u==="bottom"?(C=u,I=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(I=u,C=m==="end"?"top":"bottom");let E=v-d.top-d.bottom,L=g-d.left-d.right,j=Or(v-d[C],E),y=Or(g-d[I],L),b=e.middlewareData.shift,w=!b,D=j,M=y;b!=null&&b.enabled.x&&(M=L),b!=null&&b.enabled.y&&(D=E),w&&!m&&(h?M=g-2*kt(d.left,d.right):D=v-2*kt(d.top,d.bottom)),await s({...e,availableWidth:M,availableHeight:D});let P=await n.getDimensions(a.floating);return g!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window<"u"}function Tr(t){return ud(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(ud(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ud(t){return Yi()?t instanceof Node||t instanceof Ke(t).Node:!1}function bt(t){return Yi()?t instanceof Element||t instanceof Ke(t).Element:!1}function jt(t){return Yi()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function pd(t){return!Yi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function ei(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=xt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function fd(t){return/^(table|td|th)$/.test(Tr(t))}function ti(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var lm=/transform|translate|scale|rotate|perspective|filter/,cm=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",gs;function no(t){let e=bt(t)?xt(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!Xi()&&(Rr(e.backdropFilter)||Rr(e.filter))||lm.test(e.willChange||"")||cm.test(e.contain||"")}function hd(t){let e=ar(t);for(;jt(e)&&!ao(e);){if(no(e))return e;if(ti(e))return null;e=ar(e)}return null}function Xi(){return gs==null&&(gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gs}function ao(t){return/^(html|body|#document)$/.test(Tr(t))}function xt(t){return Ke(t).getComputedStyle(t)}function ri(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ar(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||pd(t)&&t.host||Gt(t);return pd(e)?e.host:e}function md(t){let e=ar(t);return ao(e)?(t.ownerDocument||t).body:jt(e)&&ei(e)?e:md(e)}function qi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=md(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ke(n);if(a){let l=Ji(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&r?qi(l):[])}else return e.concat(n,qi(n,[],r))}function Ji(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bd(t){let e=xt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=Qo(r)!==a||Qo(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function xd(t){return bt(t)?t:t.contextElement}function so(t){let e=xd(t);if(!jt(e))return Pt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=bd(e),s=(a?Qo(r.width):r.width)/i,l=(a?Qo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var dm=Pt(0);function vd(t){let e=Ke(t);return!Xi()||!e.visualViewport?dm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pm(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function oi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=xd(t),s=Pt(1);e&&(i?bt(i)&&(s=so(i)):s=so(t));let l=pm(a,r,i)?vd(a):Pt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Ke(a),v=bt(i)?Ke(i):i,C=g,I=Ji(C);for(;I&&v!==C;){let E=so(I),L=I.getBoundingClientRect(),j=xt(I),y=L.left+(I.clientLeft+parseFloat(j.paddingLeft))*E.x,b=L.top+(I.clientTop+parseFloat(j.paddingTop))*E.y;d*=E.x,u*=E.y,m*=E.x,h*=E.y,d+=y,u+=b,C=Ke(I),I=Ji(C)}}return _r({width:m,height:h,x:d,y:u})}function Qi(t,e){let r=ri(t).scrollLeft;return e?e.left+r:oi(Gt(t)).left+r}function Sd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Qi(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function um(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=Gt(i),l=e?ti(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=Pt(1),m=Pt(0),h=jt(i);if((h||!a)&&((Tr(i)!=="body"||ei(s))&&(d=ri(i)),h)){let v=oi(i);u=so(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?Sd(s,d):Pt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function fm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function hm(t){let e=ri(t),r=t.ownerDocument.body,i=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Qi(t),s=-e.scrollTop;return xt(r).direction==="rtl"&&(a+=kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var mm=25;function gm(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),a=Gt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!Xi()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(Qi(a)<=0){let g=a.ownerDocument,v=g.body,C=getComputedStyle(v),I=g.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(a.clientWidth-v.clientWidth-I),L=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;L<=mm&&(l-=L)}return{width:l,height:d,x:u,y:m}}function ym(t,e){let r=oi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=so(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function gd(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=gm(t,r,e);else if(e==="document")i=hm(Gt(t));else if(bt(e))i=ym(e,r);else{let n=vd(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return _r(i)}function bm(t,e){let r=e.get(t);if(r)return r;let i=qi(t,[],!1).filter(l=>bt(l)&&Tr(l)!=="body"),n=null,a=xt(t).position==="fixed",s=a?ar(t):t;for(;bt(s)&&!ao(s);){let l=xt(s),d=no(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=ar(s)}return e.set(t,i),i}function xm(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ti(e)?[]:bm(e,this._c):[].concat(r),i],l=gd(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=gd(e,s[g],n);d=kt(v.top,d),u=Or(v.right,u),m=Or(v.bottom,m),h=kt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function vm(t){let{width:e,height:r}=bd(t);return{width:e,height:r}}function Sm(t,e,r){let i=jt(e),n=Gt(e),a=r==="fixed",s=oi(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Pt(0);if((i||!a)&&((Tr(e)!=="body"||ei(n))&&(l=ri(e)),i)){let g=oi(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Qi(n));let u=n&&!i&&!a?Sd(n,l):Pt(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function ys(t){return xt(t).position==="static"}function yd(t,e){if(!jt(t)||xt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Gt(t)===r&&(r=r.ownerDocument.body),r}function wd(t,e){let r=Ke(t);if(ti(t))return r;if(!jt(t)){let n=ar(t);for(;n&&!ao(n);){if(bt(n)&&!ys(n))return n;n=ar(n)}return r}let i=yd(t,e);for(;i&&fd(i)&&ys(i);)i=yd(i,e);return i&&ao(i)&&ys(i)&&!no(i)?r:i||hd(t)||r}var wm=async function(t){let e=this.getOffsetParent||wd,r=this.getDimensions,i=await r(t.floating);return{reference:Sm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Cm(t){return xt(t).direction==="rtl"}var lo={convertOffsetParentRelativeRectToViewportRelativeRect:um,getDocumentElement:Gt,getClippingRect:xm,getOffsetParent:wd,getElementRects:wm,getClientRects:fm,getDimensions:vm,getScale:so,isElement:bt,isRTL:Cm};var Cd=ld,bs=sd,Ed=cd;var Od=dd;var xs=(t,e,r)=>{let i=new Map,n=r??{},a={...lo,...n.platform,_c:i};return ad(t,e,{...n,platform:a})};function Ss(t){return Em(t)}function vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Em(t){for(let e=t;e;e=vs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=vs(t);e;e=vs(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 ii(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},xs(t,e,{strategy:i.strategy,platform:{...lo,getOffsetParent:n=>lo.getOffsetParent(n,Ss)},middleware:[Ed({crossAxis:!0}),bs({allowedPlacements:[i.placement]})]})}async function ws(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,xs(t,e,{placement:l,strategy:n,platform:{...lo,getOffsetParent:u=>lo.getOffsetParent(u,Ss)},middleware:[Cd(s??4),bs({allowedPlacements:i}),Od({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var Es={};X(Es,{isSlotEmptyOrWithoutContent:()=>Om});var Om=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 Is={};X(Is,{FtdsBase:()=>Ts,toFtdsBase:()=>kd});var Rs={};X(Rs,{ExportpartsUpdatedEvent:()=>Ir,FtLitElement:()=>F});var Os={};X(Os,{ScopedRegistryLitElement:()=>ni});var ni=class extends Rt{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 No(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){Go(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 _s={};X(_s,{shadowQuerySelector:()=>As,shadowQuerySelectorAll:()=>Am});function As(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Am(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var co=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Td,Ad=Symbol("constructorPrototype"),_d=Symbol("constructorName"),Id=Symbol("exportpartsDebouncer"),Rd=Symbol("dynamicDependenciesLoaded"),Ir=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ir.eventName="exportparts-updated";var F=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Td]=new Ne(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[Id].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[_d]=this.constructor.name,this[Ad]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_d]&&Object.setPrototypeOf(this,this[Ad])}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[Rd]||(r[Rd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ir.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ir.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 Ir)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=As(this.shadowRoot,...a)}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(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],I=[...v,...C].filter(d).map(E=>E.trim());for(let E of I)m.add(E)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};Td=Id;co([f()],F.prototype,"exportpartsPrefix",void 0);co([Pe([])],F.prototype,"exportpartsPrefixes",void 0);co([f({reflect:!0})],F.prototype,"exportparts",void 0);co([f()],F.prototype,"customStylesheet",void 0);co([f()],F.prototype,"elementToFocus",void 0);co([T()],F.prototype,"useAdoptedStyleSheets",void 0);var Ld=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},kd=ue(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Jo.medium,this.family=Xo.neutral}getDesignSystemBaseClasses(){return{[as(this.family)]:!0,[ss(this.size)]:!0}}}return Ld([f()],e.prototype,"size",void 0),Ld([f()],e.prototype,"family",void 0),e}),Ts=class extends kd(F){};var Pd={};var Ps={};X(Ps,{highlightHtml:()=>ks,highlightHtmlColorCssVariable:()=>Nd,highlightHtmlStyles:()=>Rm});var Lr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(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),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ai=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 Lr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return Lr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,m),e.value=h+g,e.nodes.forEach((v,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=m),e.nodes[C].end-=m)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,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",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Lr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ls(t){let e=new ai(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 _m=Ls,Nd=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Rm=O`
5
5
  .highlight-html-match {
6
- background: ${Td};
6
+ background: ${Nd};
7
7
  }
8
- `;function As(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new mm(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let m in r.attributes)p.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ts={};Y(Ts,{noTextInputDefaultClearButton:()=>_s,noTextSelect:()=>qt,safariEllipsisFix:()=>bi,wordWrap:()=>ym});var qt=A`
8
+ `;function ks(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new _m(t);if(s.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=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ds={};X(Ds,{noTextInputDefaultClearButton:()=>Ns,noTextSelect:()=>Kt,safariEllipsisFix:()=>si,wordWrap:()=>Tm});var Kt=O`
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:i.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,ym=A`
17
+ `,Tm=O`
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:i.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,bi=A`
29
+ `,si=O`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,_s=A`
40
+ `,Ns=O`
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 Ld={};var Ls={};Y(Ls,{ParametrizedLabelResolver:()=>vi});var vi=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;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 o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var tl={};Y(tl,{FtCommandQueue:()=>xi,FtLitElementRedux:()=>ve,FtReduxStore:()=>Xt,FtStateManager:()=>Hr,ReduxWatcher:()=>hn,clearAllStores:()=>eg,isFtReduxStore:()=>vo,redux:()=>H,reduxEventListener:()=>ut,reduxReactive:()=>Is,watch:()=>tg,withRedux:()=>Id});var Is=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},H=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:St,attribute:!1,...e};f(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},ut=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var xi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==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 vo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Si=Symbol("internalReduxEventsUnsubscribers"),dr=Symbol("internalStoresUnsubscribers"),Ur=Symbol("internalStores"),Id=fe(Symbol("withRedux"),function(t){var e,r,o;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ur].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ur].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ur].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ur].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ur].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ur].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[dr].has(s.store):this[dr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[dr].set(s,l.subscribe(()=>this.updateFromStores())),this[Si].set(s,[]),vo(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let h=g=>this[m](g);l.addEventListener(p.eventName,h),this[Si].get(s).push(()=>l.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[dr].has(s)&&this[dr].get(s)(),this[dr].delete(s),(l=this[Si].get(s))===null||l===void 0||l.forEach(d=>d()),this[Si].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dr,r=Ur,o=Si,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ve=class extends Id($){};function pt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Yt(t){return!!t&&!!t[le]}function Et(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Om})(t)||Array.isArray(t)||!!t[Fd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Fd])||Bs(t)||Vs(t))}function Br(t,e,r){r===void 0&&(r=!1),Co(t)===0?(r?Object.keys:So)(t).forEach((function(o){r&&typeof o=="symbol"||e(o,t[o],t)})):t.forEach((function(o,n){return e(n,o,t)}))}function Co(t){var e=t[le];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bs(t)?2:Vs(t)?3:0}function xo(t,e){return Co(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function bm(t,e){return Co(t)===2?t.get(e):t[e]}function Ud(t,e,r){var o=Co(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Bd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bs(t){return wm&&t instanceof Map}function Vs(t){return Em&&t instanceof Set}function ur(t){return t.o||t.t}function Hs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zd(t);delete e[le];for(var r=So(e),o=0;o<r.length;o++){var n=r[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function zs(t,e){return e===void 0&&(e=!1),Ws(t)||Yt(t)||!Et(t)||(Co(t)>1&&(t.set=t.add=t.clear=t.delete=vm),Object.freeze(t),e&&Br(t,(function(r,o){return zs(o,!0)}),!0)),t}function vm(){pt(2)}function Ws(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ft(t){var e=Us[t];return e||pt(18,t),e}function xm(t,e){Us[t]||(Us[t]=e)}function Ms(){return wi}function ks(t,e){e&&(Ft("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){$s(t),t.p.forEach(Sm),t.p=null}function $s(t){t===wi&&(wi=t.l)}function kd(t){return wi={p:[],l:wi,h:t,m:!0,_:0}}function Sm(t){var e=t[le];e.i===0||e.i===1?e.j():e.g=!0}function Ps(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||Ft("ES5").S(e,t,o),o?(r[le].P&&(cn(e),pt(4)),Et(t)&&(t=dn(e,t),e.l||un(e,t)),e.u&&Ft("Patches").M(r[le].t,t,e.u,e.s)):t=dn(e,r,[]),cn(e),e.u&&e.v(e.u,e.s),t!==Hd?t:void 0}function dn(t,e,r){if(Ws(e))return e;var o=e[le];if(!o)return Br(e,(function(l,d){return Pd(t,o,e,l,d,r)}),!0),e;if(o.A!==t)return e;if(!o.P)return un(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Hs(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),Br(a,(function(l,d){return Pd(t,o,n,l,d,r,s)})),un(t,n,!1),r&&t.u&&Ft("Patches").N(o,r,t.u,t.s)}return o.o}function Pd(t,e,r,o,n,a,s){if(Yt(n)){var l=dn(t,n,a&&e&&e.i!==3&&!xo(e.R,o)?a.concat(o):void 0);if(Ud(r,o,l),!Yt(l))return;t.m=!1}else s&&r.add(n);if(Et(n)&&!Ws(n)){if(!t.h.D&&t._<1)return;dn(t,n),e&&e.A.l||un(t,n)}}function un(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&zs(e,r)}function Ns(t,e){var r=t[le];return(r?ur(r):t)[e]}function Nd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function pr(t){t.P||(t.P=!0,t.l&&pr(t.l))}function Ds(t){t.o||(t.o=Hs(t.t))}function Fs(t,e,r){var o=Bs(e)?Ft("MapSet").F(e,r):Vs(e)?Ft("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ms(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Ei;s&&(d=[l],p=Ci);var m=Proxy.revocable(d,p),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g})(e,r):Ft("ES5").J(e,r);return(r?r.A:Ms()).p.push(o),o}function Cm(t){return Yt(t)||pt(22,t),(function e(r){if(!Et(r))return r;var o,n=r[le],a=Co(r);if(n){if(!n.P&&(n.i<4||!Ft("ES5").K(n)))return n.t;n.I=!0,o=Dd(r,a),n.I=!1}else o=Dd(r,a);return Br(o,(function(s,l){n&&bm(n.t,s)===l||Ud(o,s,e(l))})),a===3?new Set(o):o})(t)}function Dd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Hs(t)}function Vd(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[le];return Ei.get(p,s)},set:function(p){var m=this[le];Ei.set(m,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][le];if(!d.P)switch(d.i){case 5:o(d)&&pr(d);break;case 4:r(d)&&pr(d)}}}function r(s){for(var l=s.t,d=s.k,p=So(d),m=p.length-1;m>=0;m--){var h=p[m];if(h!==le){var g=l[h];if(g===void 0&&!xo(l,h))return!0;var y=d[h],b=y&&y[le];if(b?b.t!==g:!Bd(y,g))return!0}}var w=!!l[le];return p.length!==So(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(ur(s)))}var a={};xm("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(h,g){if(h){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,t(b,!0));return y}var w=zd(g);delete w[le];for(var E=So(w),_=0;_<E.length;_++){var P=E[_];w[P]=t(P,h||!!w[P].enumerable)}return Object.create(Object.getPrototypeOf(g),w)})(d,s),m={i:d?5:4,A:l?l.A:Ms(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,le,{value:m,writable:!0}),p},S:function(s,l,d){d?Yt(l)&&l[le].A===s&&e(s.p):(s.u&&(function p(m){if(m&&typeof m=="object"){var h=m[le];if(h){var g=h.t,y=h.k,b=h.R,w=h.i;if(w===4)Br(y,(function(x){x!==le&&(g[x]!==void 0||xo(g,x)?b[x]||p(y[x]):(b[x]=!0,pr(h)))})),Br(g,(function(x){y[x]!==void 0||xo(y,x)||(b[x]=!1,pr(h))}));else if(w===5){if(o(h)&&(pr(h),b.length=!0),y.length<g.length)for(var E=y.length;E<g.length;E++)b[E]=!1;else for(var _=g.length;_<y.length;_++)b[_]=!0;for(var P=Math.min(y.length,g.length),C=0;C<P;C++)y.hasOwnProperty(C)||(b[C]=!0),b[C]===void 0&&p(y[C])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Md,wi,js=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wm=typeof Map<"u",Em=typeof Set<"u",$d=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hd=js?Symbol.for("immer-nothing"):((Md={})["immer-nothing"]=!0,Md),Fd=js?Symbol.for("immer-draftable"):"__$immer_draftable",le=js?Symbol.for("immer-state"):"__$immer_state";var Om=""+Object.prototype.constructor,So=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zd=Object.getOwnPropertyDescriptors||function(t){var e={};return So(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Us={},Ei={get:function(t,e){if(e===le)return t;var r=ur(t);if(!xo(r,e))return(function(n,a,s){var l,d=Nd(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var o=r[e];return t.I||!Et(o)?o:o===Ns(t.t,e)?(Ds(t),t.o[e]=Fs(t.A.h,o,t)):o},has:function(t,e){return e in ur(t)},ownKeys:function(t){return Reflect.ownKeys(ur(t))},set:function(t,e,r){var o=Nd(ur(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=Ns(ur(t),e),a=n?.[le];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Bd(r,n)&&(r!==void 0||xo(t.t,e)))return!0;Ds(t),pr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ns(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ds(t),pr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=ur(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},Ci={};Br(Ei,(function(t,e){Ci[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ci.deleteProperty=function(t,e){return Ci.set.call(this,t,e,void 0)},Ci.set=function(t,e,r){return Ei.set.call(this,t[0],e,r,t[0])};var Am=(function(){function t(r){var o=this;this.O=$d,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var E=this;w===void 0&&(w=l);for(var _=arguments.length,P=Array(_>1?_-1:0),C=1;C<_;C++)P[C-1]=arguments[C];return d.produce(w,(function(x){var O;return(O=a).call.apply(O,[E,x].concat(P))}))}}var p;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),Et(n)){var m=kd(o),h=Fs(o,n,void 0),g=!0;try{p=a(h),g=!1}finally{g?cn(m):$s(m)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(w){return ks(m,s),Ps(w,m)}),(function(w){throw cn(m),w})):(ks(m,s),Ps(p,m))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Hd&&(p=void 0),o.D&&zs(p,!0),s){var y=[],b=[];Ft("Patches").M(n,p,y,b),s(y,b)}return p}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return o.produceWithPatches(p,(function(y){return n.apply(void 0,[y].concat(h))}))};var s,l,d=o.produce(n,a,(function(p,m){s=p,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Et(r)||pt(8),Yt(r)&&(r=Cm(r));var o=kd(this),n=Fs(this,r,void 0);return n[le].C=!0,$s(o),n},e.finishDraft=function(r,o){var n=r&&r[le],a=n.A;return ks(a,o),Ps(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!$d&&pt(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=Ft("Patches").$;return Yt(r)?s(r,o):this.produce(r,(function(l){return s(l,o)}))},t})(),nt=new Am,Rm=nt.produce,AS=nt.produceWithPatches.bind(nt),RS=nt.setAutoFreeze.bind(nt),_S=nt.setUseProxies.bind(nt),TS=nt.applyPatches.bind(nt),LS=nt.createDraft.bind(nt),IS=nt.finishDraft.bind(nt),pn=Rm;function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function Wd(t,e){if(Vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Vr(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jd(t){var e=Wd(t,"string");return Vr(e)=="symbol"?e:e+""}function Gd(t,e,r){return(e=jd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Gs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kd(Object(r),!0).forEach(function(o){Gd(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function $e(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 Zd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ks=function(){return Math.random().toString(36).substring(7).split("").join(".")},fn={INIT:"@@redux/INIT"+Ks(),REPLACE:"@@redux/REPLACE"+Ks(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ks()}};function _m(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Zs(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($e(1));return r(Zs)(t,e)}if(typeof t!="function")throw new Error($e(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function m(){if(d)throw new Error($e(3));return a}function h(w){if(typeof w!="function")throw new Error($e(4));if(d)throw new Error($e(5));var E=!0;return p(),l.push(w),function(){if(E){if(d)throw new Error($e(6));E=!1,p();var P=l.indexOf(w);l.splice(P,1),s=null}}}function g(w){if(!_m(w))throw new Error($e(7));if(typeof w.type>"u")throw new Error($e(8));if(d)throw new Error($e(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var E=s=l,_=0;_<E.length;_++){var P=E[_];P()}return w}function y(w){if(typeof w!="function")throw new Error($e(10));n=w,g({type:fn.REPLACE})}function b(){var w,E=h;return w={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error($e(11));function C(){P.next&&P.next(m())}C();var x=E(C);return{unsubscribe:x}}},w[Zd]=function(){return this},w}return g({type:fn.INIT}),o={dispatch:g,subscribe:h,getState:m,replaceReducer:y},o[Zd]=b,o}function Tm(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:fn.INIT});if(typeof o>"u")throw new Error($e(12));if(typeof r(void 0,{type:fn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($e(13))})}function qd(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Tm(r)}catch(d){l=d}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,y={},b=0;b<a.length;b++){var w=a[b],E=r[w],_=p[w],P=E(_,m);if(typeof P>"u"){var C=m&&m.type;throw new Error($e(14))}y[w]=P,g=g||P!==_}return g=g||a.length!==Object.keys(p).length,g?y:p}}function wo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Yd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error($e(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=wo.apply(void 0,l)(n.dispatch),Gs(Gs({},n),{},{dispatch:a})}}}function Xd(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Jd=Xd();Jd.withExtraArgument=Xd;var qs=Jd;var ou=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),Lm=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(m){return d([p,m])}}function d(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(m){p=[6,m],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Eo=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},Im=Object.defineProperty,km=Object.defineProperties,Pm=Object.getOwnPropertyDescriptors,Qd=Object.getOwnPropertySymbols,Nm=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,eu=function(t,e,r){return e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},fr=function(t,e){for(var r in e||(e={}))Nm.call(e,r)&&eu(t,r,e[r]);if(Qd)for(var o=0,n=Qd(e);o<n.length;o++){var r=n[o];Dm.call(e,r)&&eu(t,r,e[r])}return t},Ys=function(t,e){return km(t,Pm(e))},Mm=function(t,e,r){return new Promise(function(o,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var $m=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wo:wo.apply(null,arguments)},qS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Fm(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function hr(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return fr(fr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}var Um=(function(t){ou(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Eo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Eo([void 0],r.concat(this))))},e})(Array),Bm=(function(t){ou(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Eo([void 0],r[0].concat(this)))):new(e.bind.apply(e,Eo([void 0],r.concat(this))))},e})(Array);function Qs(t){return Et(t)?pn(t,function(){}):t}function Vm(t){return typeof t=="boolean"}function Hm(){return function(e){return zm(e)}}function zm(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Um;if(r&&(Vm(r)?p.push(qs):p.push(qs.withExtraArgument(r.extraArgument))),0){if(n)var m;if(s)var h;if(d)var g}return p}var Xs=!0;function iu(t){var e=Hm(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,m=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,y;if(typeof n=="function")y=n;else if(Fm(n))y=qd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Xs&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xs&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Yd.apply(void 0,b),E=wo;d&&(E=$m(fr({trace:!Xs},typeof d=="object"&&d)));var _=new Bm(w),P=_;Array.isArray(g)?P=Eo([w],g):typeof g=="function"&&(P=g(_));var C=E.apply(void 0,P);return Zs(y,m,C)}function nu(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function Wm(t){return typeof t=="function"}function jm(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?nu(e):[e,r,o],a=n[0],s=n[1],l=n[2],d;if(Wm(t))d=function(){return Qs(t())};else{var p=Qs(t);d=function(){return p}}function m(h,g){h===void 0&&(h=d());var y=Eo([a[g.type]],s.filter(function(b){var w=b.matcher;return w(g)}).map(function(b){var w=b.reducer;return w}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,w){if(w)if(Yt(b)){var E=b,_=w(E,g);return _===void 0?b:_}else{if(Et(b))return pn(b,function(P){return w(P,g)});var _=w(b,g);if(_===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return b},h)}return m.getInitialState=d,m}function Gm(t,e){return t+"/"+e}function au(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Qs(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var h=o[m],g=Gm(e,m),y,b;"reducer"in h?(y=h.reducer,b=h.prepare):y=h,a[m]=y,s[g]=y,l[m]=b?hr(g,b):hr(g)});function d(){var m=typeof t.extraReducers=="function"?nu(t.extraReducers):[t.extraReducers],h=m[0],g=h===void 0?{}:h,y=m[1],b=y===void 0?[]:y,w=m[2],E=w===void 0?void 0:w,_=fr(fr({},g),s);return jm(r,function(P){for(var C in _)P.addCase(C,_[C]);for(var x=0,O=b;x<O.length;x++){var D=O[x];P.addMatcher(D.matcher,D.reducer)}E&&P.addDefaultCase(E)})}var p;return{name:e,reducer:function(m,h){return p||(p=d()),p(m,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Km="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zm=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Km[Math.random()*64|0];return e},qm=["name","message","stack","code"],Js=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),tu=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Ym=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=qm;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},QS=(function(){function t(e,r,o){var n=hr(e+"/fulfilled",function(m,h,g,y){return{payload:m,meta:Ys(fr({},y||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=hr(e+"/pending",function(m,h,g){return{payload:void 0,meta:Ys(fr({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=hr(e+"/rejected",function(m,h,g,y,b){return{payload:y,error:(o&&o.serializeError||Ym)(m||"Rejected"),meta:Ys(fr({},b||{}),{arg:g,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function p(m){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(m):Zm(),w=new d,E,_=!1;function P(x){E=x,w.abort()}var C=(function(){return Mm(this,null,function(){var x,O,D,ee,W,j,k;return Lm(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),ee=(x=o?.condition)==null?void 0:x.call(o,m,{getState:g,extra:y}),Jm(ee)?[4,ee]:[3,2];case 1:ee=U.sent(),U.label=2;case 2:if(ee===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(q,Ne){return w.signal.addEventListener("abort",function(){return Ne({name:"AbortError",message:E||"Aborted"})})}),h(a(b,m,(O=o?.getPendingMeta)==null?void 0:O.call(o,{requestId:b,arg:m},{getState:g,extra:y}))),[4,Promise.race([W,Promise.resolve(r(m,{dispatch:h,getState:g,extra:y,requestId:b,signal:w.signal,abort:P,rejectWithValue:function(q,Ne){return new Js(q,Ne)},fulfillWithValue:function(q,Ne){return new tu(q,Ne)}})).then(function(q){if(q instanceof Js)throw q;return q instanceof tu?n(q.payload,b,m,q.meta):n(q,b,m)})])];case 3:return D=U.sent(),[3,5];case 4:return j=U.sent(),D=j instanceof Js?s(null,b,m,j.payload,j.meta):s(j,b,m),[3,5];case 5:return k=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,k||h(D),[2,D]}})})})();return Object.assign(C,{abort:P,requestId:b,arg:m,unwrap:function(){return C.then(Xm)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Xm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var su="listener",lu="completed",cu="cancelled",eC="task-"+cu,tC="task-"+lu,rC=su+"-"+cu,oC=su+"-"+lu;var el="listenerMiddleware";var iC=hr(el+"/add"),nC=hr(el+"/removeAll"),aC=hr(el+"/remove");var ru,sC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ru||(ru=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Qm=function(t){return function(e){setTimeout(e,t)}},lC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qm(10);Vd();window.ftReduxStores||(window.ftReduxStores={});var Xt=class t extends Gt{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(vo(a))return a;if(n==null)return;let s=au({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=iu({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=ot(s.getInitialState());for(let h of p.keeping)m[h]=(d??m)[h];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new xi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...m)=>{let h=p(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??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()}};function eg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))vo(e)&&e.clear()}var hn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}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);St(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 tg(t,e,r){return new hn(t,e,r).watch()}var Hr=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 o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var il={};Y(il,{scrollHelper:()=>rg});var rl,mn=new Map,ol=class{lock(e,r){if(r){let o=mn.get(r);if(o==null||o===e)return mn.set(r,e),r}}release(e,r){r&&mn.get(r)===e&&mn.delete(r)}findFirstScrollableParent(e){var r;let o,n;for(let a of za(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(r=o??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 o,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Ir(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(rl=window.FluidTopicsScrollHelper)!==null&&rl!==void 0?rl:new ol;var rg=window.FluidTopicsScrollHelper;var al={};Y(al,{SearchPlaceConverter:()=>Ro,SearchPlaceQueryParams:()=>z,isSearchPlaceQueryParams:()=>Ku,serializeRequest:()=>ng});var du;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(du||(du={}));var uu;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(uu||(uu={}));var pu;(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"})(pu||(pu={}));var fu;(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"})(fu||(fu={}));var hu;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hu||(hu={}));var mu;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(mu||(mu={}));var gu;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(gu||(gu={}));var yu;(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"})(yu||(yu={}));var bu;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(bu||(bu={}));var vu;(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"})(vu||(vu={}));var xu;(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"})(xu||(xu={}));var Su;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Su||(Su={}));var Cu;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cu||(Cu={}));var wu;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(wu||(wu={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var Eu;(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"})(Eu||(Eu={}));var Oo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Oo||(Oo={}));var Ou;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ou||(Ou={}));var Au;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Au||(Au={}));var nl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(nl||(nl={}));var Pu=t=>Object.keys(nl).includes(t);var Ru;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ru||(Ru={}));var gn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gn||(gn={}));var _u;(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"})(_u||(_u={}));var Ao;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ao||(Ao={}));var Nu=t=>Object.keys(Ao).includes(t);var Tu;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Tu||(Tu={}));var Lu;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Lu||(Lu={}));var Iu;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Iu||(Iu={}));var he;(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"})(he||(he={}));var ft;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ft||(ft={}));var ku;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(ku||(ku={}));var Du;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Du||(Du={}));var Mu;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Mu||(Mu={}));var $u;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})($u||($u={}));var Fu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Fu||(Fu={}));var Uu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Uu||(Uu={}));var Bu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bu||(Bu={}));var Vu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vu||(Vu={}));var Hu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Hu||(Hu={}));var zu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(zu||(zu={}));var Wu;(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"})(Wu||(Wu={}));var yn;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yn||(yn={}));var og={[he.PERSONAL_BOOK_SHARE_USER]:[he.PERSONAL_BOOK_USER],[he.HTML_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.PDF_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.KHUB_ADMIN]:[he.CONTENT_PUBLISHER],[he.ADMIN]:[he.KHUB_ADMIN,he.USERS_ADMIN,he.PORTAL_ADMIN,he.BEHAVIOR_DATA_USER],[he.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function ju(t,e){return t===e||(og[t]??[]).some(r=>ju(r,e))}function Oi(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(o=>ju(o,e))}function ig(t){return`"${t}"`}function Gu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ng(t,e){return new Ro(t).serialize(e)}var z;(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"})(z||(z={}));var ag=new Set(Object.values(z));function Ku(t){return ag.has(t)}var Ro=class{constructor(e,r=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var o,n,a,s,l,d,p,m,h,g,y,b,w;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(z.LOCALE,e.contentLocale):E.append(z.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&E.append(z.QUERY,e.query);let _=W=>{var j,k;let U=((k=(j=W.valueFilter)===null||j===void 0?void 0:j.values)!==null&&k!==void 0?k:[]).map(q=>this.escapeFilters(q)).map(q=>ig(Gu(q))).join("_");return`${W.key}~${U}`},P=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(W=>W.valueFilter&&!W.valueFilter.negative))!==null&&a!==void 0?a:[];P.length>0&&E.append(z.VALUE_FILTERS,P.map(_).join("*"));let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(W=>W.valueFilter&&W.valueFilter.negative))!==null&&l!==void 0?l:[];C.length>0&&E.append(z.NEGATIVE_VALUE_FILTERS,C.map(_).join("*"));let x=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(W=>W.dateFilter))!==null&&p!==void 0?p:[];if(x.length>0){let W=x.map(j=>{var k;return`${j.key}~${(k=j.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(z.DATE_FILTERS,W)}let O=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(W=>W.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let W=O.map(j=>{var k,U;return`${j.key}~${(k=j.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=j.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");E.append(z.RANGE_FILTERS,W)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(z.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(z.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(z.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&E.append(z.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(z.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let D=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let W in D)E.append(W,D[W]);let ee=new Array;return E.forEach((W,j)=>{ee.push(this.encodeQueryString(j)+"="+this.encodeQueryString(W))}),encodeURI(ee.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(_){console.warn("Could not decode search request query params, fallback on raw value",_)}let d=new URLSearchParams(e),p=d.get(z.LOCALE)==="all"?void 0:d.get(z.LOCALE),m=((r=d.get(z.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(o=d.get(z.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(n=d.get(z.SCOPE))!==null&&n!==void 0?n:"default",y=+((a=d.get(z.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(z.KEYWORD_MATCH),w=b?b.toUpperCase()===Oo.MANDATORY?Oo.MANDATORY:Oo.OPTIONAL:void 0,E={};for(let _ of d.keys())Ku(_)||(E[_]=d.get(_));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(z.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Pu(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Ir(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:w,otherQueryParams:E}}parseCompatFilters(e){var r,o,n,a,s,l,d;let p=[];return e.has(z.FILTERS)&&(p=this.parseValueFilters((r=e.get(z.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(z.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((n=e.get(z.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...p,...this.parseValueFilters((a=e.get(z.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(z.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(z.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(z.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Gu).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Ao[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[r,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Nu(e))return[{key:"ft:lastEdition",dateFilter:{type:Ao[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[z.LOCALE,z.FILTERS,z.VALUE_FILTERS,z.NEGATIVE_VALUE_FILTERS,z.DATE_FILTERS,z.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let o=new URL(e);return o.searchParams.delete(z.LOCALE),r!==void 0&&o.searchParams.append(z.LOCALE,r),o.toString()}};var ll={};Y(ll,{toFtFormComponent:()=>zr});var sl=Symbol("elementInternals"),zr=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[sl].form}constructor(...o){super(o),this[sl]=this.attachInternals()}setFormValue(o){this[sl].setFormValue(o)}}return e});var cl={};Y(cl,{DateFormatter:()=>Wr});var Wr=class{static format(e,r,o,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,r,o,n,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ul={};Y(ul,{ALL_KEYS_VALUE:()=>dl,SameWindowStorageEvent:()=>_o});var dl="__all__",_o=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==dl}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new _o(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new _o(dl))}});var fl={};Y(fl,{FocusMainContentEvent:()=>pl});var pl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Zu={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function sg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function lg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",sg);document.addEventListener("click",lg);var qu=A`
47
+ `;var Dd={};var Ms={};X(Ms,{ParametrizedLabelResolver:()=>li});var li=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var ol={};X(ol,{FtCommandQueue:()=>ci,FtLitElementRedux:()=>be,FtReduxStore:()=>Yt,FtStateManager:()=>Nr,ReduxWatcher:()=>Sn,clearAllStores:()=>Cg,isFtReduxStore:()=>po,redux:()=>q,reduxEventListener:()=>st,reduxReactive:()=>$s,watch:()=>Eg,withRedux:()=>Md});var $s=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},q=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:yt,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},st=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var ci=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 po(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var di=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),kr=Symbol("internalStores"),Md=ue(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[kr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[kr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[kr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[kr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[kr].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[sr].has(s.store):this[sr].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[sr].set(s,l.subscribe(()=>this.updateFromStores())),this[di].set(s,[]),po(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[di].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[sr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[sr].has(s)&&this[sr].get(s)(),this[sr].delete(s),(l=this[di].get(s))===null||l===void 0||l.forEach(d=>d()),this[di].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=kr,i=di,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),be=class extends Md(F){};function Te(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 Im=typeof Symbol=="function"&&Symbol.observable||"@@observable",$d=Im,Fs=()=>Math.random().toString(36).substring(7).split("").join("."),Lm={INIT:`@@redux/INIT${Fs()}`,REPLACE:`@@redux/REPLACE${Fs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fs()}`},en=Lm;function tn(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 Us(t,e,r){if(typeof t!="function")throw new Error(Te(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Te(1));return r(Us)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((E,L)=>{s.set(L,E)}))}function m(){if(d)throw new Error(Te(3));return n}function h(E){if(typeof E!="function")throw new Error(Te(4));if(d)throw new Error(Te(5));let L=!0;u();let j=l++;return s.set(j,E),function(){if(L){if(d)throw new Error(Te(6));L=!1,u(),s.delete(j),a=null}}}function g(E){if(!tn(E))throw new Error(Te(7));if(typeof E.type>"u")throw new Error(Te(8));if(typeof E.type!="string")throw new Error(Te(17));if(d)throw new Error(Te(9));try{d=!0,n=i(n,E)}finally{d=!1}return(a=s).forEach(j=>{j()}),E}function v(E){if(typeof E!="function")throw new Error(Te(10));i=E,g({type:en.REPLACE})}function C(){let E=h;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Te(11));function j(){let b=L;b.next&&b.next(m())}return j(),{unsubscribe:E(j)}},[$d](){return this}}}return g({type:en.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[$d]:C}}function km(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:en.INIT})>"u")throw new Error(Te(12));if(typeof r(void 0,{type:en.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Fd(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,a;try{km(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],C=l[g],I=v(C,d);if(typeof I>"u"){let E=d&&d.type;throw new Error(Te(14))}m[g]=I,u=u||I!==C}return u=u||i.length!==Object.keys(l).length,u?m:l}}function pi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ud(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(Te(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=pi(...l)(n.dispatch),{...n,dispatch:a}}}function Bd(t){return tn(t)&&"type"in t&&typeof t.type=="string"}var qd=Symbol.for("immer-nothing"),Vd=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function vt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,fo=et.getPrototypeOf,an="constructor",un="prototype",Hs="configurable",sn="enumerable",on="writable",ui="value",Dt=t=>!!t&&!!t[De];function tt(t){return t?Yd(t)||hn(t)||!!t[Vd]||!!t[an]?.[Vd]||mn(t)||gn(t):!1}var Pm=et[un][an].toString(),zd=new WeakMap;function Yd(t){if(!t||!Xs(t))return!1;let e=fo(t);if(e===null||e===et[un])return!0;let r=et.hasOwnProperty.call(e,an)&&e[an];if(r===Object)return!0;if(!uo(r))return!1;let i=zd.get(r);return i===void 0&&(i=Function.toString.call(r),zd.set(r,i)),i===Pm}function fn(t,e,r=!0){mi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function mi(t){let e=t[De];return e?e.type_:hn(t)?1:mn(t)?2:gn(t)?3:0}var Bs=(t,e,r=mi(t))=>r===2?t.has(e):et[un].hasOwnProperty.call(t,e),Ws=(t,e,r=mi(t))=>r===2?t.get(e):t[e],ln=(t,e,r,i=mi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Nm(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var hn=Array.isArray,mn=t=>t instanceof Map,gn=t=>t instanceof Set,Xs=t=>typeof t=="object",uo=t=>typeof t=="function",Vs=t=>typeof t=="boolean";function Dm(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Zt=t=>t.copy_||t.base_;var Js=t=>t.modified_?t.copy_:t.base_;function Gs(t,e){if(mn(t))return new Map(t);if(gn(t))return new Set(t);if(hn(t))return Array[un].slice.call(t);let r=Yd(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[on]===!1&&(l[on]=!0,l[Hs]=!0),(l.get||l.set)&&(i[s]={[Hs]:!0,[on]:!0,[sn]:l[sn],[ui]:t[s]})}return et.create(fo(t),i)}else{let i=fo(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function Qs(t,e=!1){return yn(t)||Dt(t)||!tt(t)||(mi(t)>1&&et.defineProperties(t,{set:rn,add:rn,clear:rn,delete:rn}),et.freeze(t),e&&fn(t,(r,i)=>{Qs(i,!0)},!1)),t}function Mm(){vt(2)}var rn={[ui]:Mm};function yn(t){return t===null||!Xs(t)?!0:et.isFrozen(t)}var cn="MapSet",js="Patches",Hd="ArrayMethods",Xd={};function Pr(t){let e=Xd[t];return e||vt(0,t),e}var Wd=t=>!!Xd[t];var fi,Jd=()=>fi,$m=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wd(cn)?Pr(cn):void 0,arrayMethodsPlugin_:Wd(Hd)?Pr(Hd):void 0});function Gd(t,e){e&&(t.patchPlugin_=Pr(js),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Ks(t){Zs(t),t.drafts_.forEach(Fm),t.drafts_=null}function Zs(t){t===fi&&(fi=t.parent_)}var jd=t=>fi=$m(fi,t);function Fm(t){let e=t[De];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Kd(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[De].modified_&&(Ks(e),vt(4)),tt(t)&&(t=Zd(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Zd(e,r);return Um(e,t,!0),Ks(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==qd?t:void 0}function Zd(t,e){if(yn(e))return e;let r=e[De];if(!r)return dn(e,t.handledSet_,t);if(!bn(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);tp(r,t)}return r.copy_}function Um(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Qs(e,r)}function Qd(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var bn=(t,e)=>t.scope_===e,Bm=[];function ep(t,e,r,i){let n=Zt(t),a=t.type_;if(i!==void 0&&Ws(n,i,a)===e){ln(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;fn(n,(d,u)=>{if(Dt(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??Bm;for(let l of s)ln(n,l,r,a)}function Vm(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!bn(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=Js(a);ep(t,a.draft_??a,s,r),tp(a,n)})}function tp(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)}Qd(t)}}function zm(t,e,r){let{scope_:i}=t;if(Dt(r)){let n=r[De];bn(n,i)&&n.callbacks_.push(function(){nn(t);let s=Js(n);ep(t,r,s,e)})}else tt(r)&&t.callbacks_.push(function(){let a=Zt(t);t.type_===3?a.has(r)&&dn(r,i.handledSet_,i):Ws(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&dn(Ws(t.copy_,e,t.type_),i.handledSet_,i)})}function dn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(t)||e.has(t)||!tt(t)||yn(t)||(e.add(t),fn(t,(i,n)=>{if(Dt(n)){let a=n[De];if(bn(a,r)){let s=Js(a);ln(t,i,s,t.type_),Qd(a)}}else tt(n)&&dn(n,e,r)})),t}function Hm(t,e){let r=hn(t),i={type_:r?1:0,scope_:e?e.scope_:Jd(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,a=pn;r&&(n=[i],a=hi);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var pn={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(!Bs(n,e,t.type_))return Gm(t,n,e);let a=n[e];if(t.finalized_||!tt(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Dm(e))return a;if(a===zs(t.base_,e)||Wm(t,e,a)){nn(t);let s=t.type_===1?+e:e,l=Ys(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Zt(t)},ownKeys(t){return Reflect.ownKeys(Zt(t))},set(t,e,r){let i=rp(Zt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=zs(Zt(t),e),a=n?.[De];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Nm(r,n)&&(r!==void 0||Bs(t.base_,e,t.type_)))return!0;nn(t),qs(t)}return t.copy_[e]===r&&(r!==void 0||Bs(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),zm(t,e,r)),!0},deleteProperty(t,e){return nn(t),zs(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),qs(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&&{[on]:!0,[Hs]:t.type_!==1||e!=="length",[sn]:i[sn],[ui]:r[e]}},defineProperty(){vt(11)},getPrototypeOf(t){return fo(t.base_)},setPrototypeOf(){vt(12)}},hi={};for(let t in pn){let e=pn[t];hi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}hi.deleteProperty=function(t,e){return hi.set.call(this,t,e,void 0)};hi.set=function(t,e,r){return pn.set.call(this,t[0],e,r,t[0])};function zs(t,e){let r=t[De];return(r?Zt(r):t)[e]}function Wm(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[De]?!1:t.baseRefs_.has(r)}function Gm(t,e,r){let i=rp(e,r);return i?ui in i?i[ui]:i.get?.call(t.draft_):void 0}function rp(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 qs(t){t.modified_||(t.modified_=!0,t.parent_&&qs(t.parent_))}function nn(t){t.copy_||(t.assigned_=new Map,t.copy_=Gs(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var jm=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(uo(e)&&!uo(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}uo(r)||vt(6),i!==void 0&&!uo(i)&&vt(7);let n;if(tt(e)){let a=jd(this),s=Ys(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?Ks(a):Zs(a)}return Gd(a,i),Kd(n,a)}else if(!e||!Xs(e)){if(n=r(e),n===void 0&&(n=e),n===qd&&(n=void 0),this.autoFreeze_&&Qs(n,!0),i){let a=[],s=[];Pr(js).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else vt(1,e)},this.produceWithPatches=(e,r)=>{if(uo(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},Vs(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Vs(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Vs(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||vt(8),Dt(t)&&(t=op(t));let e=jd(this),r=Ys(e,t,void 0);return r[De].isManual_=!0,Zs(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&vt(9);let{scope_:i}=r;return Gd(i,e),Kd(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=Pr(js).applyPatches_;return Dt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Ys(t,e,r,i){let[n,a]=mn(e)?Pr(cn).proxyMap_(e,r):gn(e)?Pr(cn).proxySet_(e,r):Hm(e,r);return(r?.scope_??Jd()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?Vm(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function op(t){return Dt(t)||vt(10,t),ip(t)}function ip(t){if(!tt(t)||yn(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Gs(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Gs(t,!0);return fn(r,(n,a)=>{ln(r,n,ip(a))},i),e&&(e.finalized_=!1),r}var Km=new jm,el=Km.produce;function np(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var ap=np(),sp=np;var Zm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?pi:pi.apply(null,arguments)},nw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},qm=t=>t&&typeof t.match=="function";function lr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(qt(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=>Bd(i)&&i.type===t,r}var up=class gi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,gi.prototype)}static get[Symbol.species](){return gi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new gi(...e[0].concat(this)):new gi(...e.concat(this))}};function lp(t){return tt(t)?el(t,()=>{}):t}function xn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Ym(t){return typeof t=="boolean"}var Xm=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new up;return r&&(Ym(r)?s.push(ap):s.push(sp(r.extraArgument))),s},Jm="RTK_autoBatch";var cp=t=>e=>{setTimeout(e,t)},Qm=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(n),s=setTimeout(n,e)},eg=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Qm(window.requestAnimationFrame,100):cp(10):t.type==="callback"?t.queueNotification:cp(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[Jm],a=!n,a&&(s||(s=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},tg=t=>function(r){let{autoBatch:i=!0}=r??{},n=new up(t);return i&&n.push(eg(typeof i=="object"?i:void 0)),n};function fp(t){let e=Xm(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(tn(r))d=Fd(r);else throw new Error(qt(1));let u;typeof i=="function"?u=i(e):u=e();let m=pi;n&&(m=Zm({trace:!1,...typeof n=="object"&&n}));let h=Ud(...u),g=tg(h),v=typeof l=="function"?l(g):g(),C=m(...v);return Us(d,s,C)}function hp(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(qt(28));if(l in e)throw new Error(qt(29));return e[l]=s,n},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return i=a,n}};return t(n),[e,r,i]}function rg(t){return typeof t=="function"}function og(t,e){let[r,i,n]=hp(e),a;if(rg(t))a=()=>lp(t());else{let l=lp(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(Dt(m)){let v=h(m,d);return v===void 0?m:v}else{if(tt(m))return el(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},l)}return s.getInitialState=a,s}var ig=(t,e)=>qm(t)?t.match(e):t(e);function ng(...t){return e=>t.some(r=>ig(r,e))}var ag="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sg=(t=21)=>{let e="",r=t;for(;r--;)e+=ag[Math.random()*64|0];return e},lg=["name","message","stack","code"],tl=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},dp=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},cg=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of lg)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pp="External signal was aborted",dg=(()=>{function t(e,r,i){let n=lr(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=lr(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=lr(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||cg)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):sg(),C=new AbortController,I,E;function L(y){E=y,C.abort()}u&&(u.aborted?L(pp):u.addEventListener("abort",()=>L(pp),{once:!0}));let j=(async function(){let y;try{let w=i?.condition?.(d,{getState:h,extra:g});if(ug(w)&&(w=await w),w===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let D=new Promise((M,P)=>{I=()=>{P({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",I,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),y=await Promise.race([D,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:C.signal,abort:L,rejectWithValue:((M,P)=>new tl(M,P)),fulfillWithValue:((M,P)=>new dp(M,P))})).then(M=>{if(M instanceof tl)throw M;return M instanceof dp?n(M.payload,v,d,M.meta):n(M,v,d)})])}catch(w){y=w instanceof tl?s(null,v,d,w.payload,w.meta):s(w,v,d)}finally{I&&C.signal.removeEventListener("abort",I)}return i&&!i.dispatchConditionRejection&&s.match(y)&&y.meta.condition||m(y),y})();return Object.assign(j,{abort:L,requestId:v,arg:d,unwrap(){return j.then(pg)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:ng(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function pg(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ug(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var mp=Symbol.for("rtk-slice-createasyncthunk"),sw={[mp]:dg};function fg(t,e){return`${t}/${e}`}function hg({creators:t}={}){let e=t?.asyncThunk?.[mp];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(qt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(gg()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(y,b){let w=typeof y=="string"?y:y.type;if(!w)throw new Error(qt(12));if(w in d.sliceCaseReducersByType)throw new Error(qt(13));return d.sliceCaseReducersByType[w]=b,u},addMatcher(y,b){return d.sliceMatchers.push({matcher:y,reducer:b}),u},exposeAction(y,b){return d.actionCreators[y]=b,u},exposeCaseReducer(y,b){return d.sliceCaseReducersByName[y]=b,u}};l.forEach(y=>{let b=s[y],w={reducerName:y,type:fg(n,y),createNotation:typeof i.reducers=="function"};bg(b)?vg(w,b,u,e):yg(w,b,u)});function m(){let[y={},b=[],w=void 0]=typeof i.extraReducers=="function"?hp(i.extraReducers):[i.extraReducers],D={...y,...d.sliceCaseReducersByType};return og(i.initialState,M=>{for(let P in D)M.addCase(P,D[P]);for(let P of d.sliceMatchers)M.addMatcher(P.matcher,P.reducer);for(let P of b)M.addMatcher(P.matcher,P.reducer);w&&M.addDefaultCase(w)})}let h=y=>y,g=new Map,v=new WeakMap,C;function I(y,b){return C||(C=m()),C(y,b)}function E(){return C||(C=m()),C.getInitialState()}function L(y,b=!1){function w(M){let P=M[y];return typeof P>"u"&&b&&(P=xn(v,w,E)),P}function D(M=h){let P=xn(g,b,()=>new WeakMap);return xn(P,M,()=>{let Y={};for(let[k,z]of Object.entries(i.selectors??{}))Y[k]=mg(z,M,()=>xn(v,M,E),b);return Y})}return{reducerPath:y,getSelectors:D,get selectors(){return D(w)},selectSlice:w}}let j={name:n,reducer:I,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...L(a),injectInto(y,{reducerPath:b,...w}={}){let D=b??a;return y.inject({reducerPath:D,reducer:I},w),{...j,...L(D,!0)}}};return j}}function mg(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var gp=hg();function gg(){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 yg({type:t,reducerName:e,createNotation:r},i,n){let a,s;if("reducer"in i){if(r&&!xg(i))throw new Error(qt(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?lr(t,s):lr(t))}function bg(t){return t._reducerDefinitionType==="asyncThunk"}function xg(t){return t._reducerDefinitionType==="reducerWithPrepare"}function vg({type:t,reducerName:e},r,i,n){if(!n)throw new Error(qt(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||vn,pending:l||vn,rejected:d||vn,settled:u||vn})}function vn(){}var yp="listener",bp="completed",xp="cancelled",lw=`task-${xp}`,cw=`task-${bp}`,dw=`${yp}-${xp}`,pw=`${yp}-${bp}`;var{assign:vp}=Object;var rl="listenerMiddleware";var Sg=vp(lr(`${rl}/add`),{withTypes:()=>Sg}),uw=lr(`${rl}/removeAll`),wg=vp(lr(`${rl}/remove`),{withTypes:()=>wg});function qt(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 Yt=class t extends Wt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(po(a))return a;if(n==null)return;let s=gp({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=fp({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Qe(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ci,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];Be(g,m)||this.setState({[h]:n(m)})}}}),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 Cg(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))po(e)&&e.clear()}var Sn=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);yt(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 Eg(t,e,r){return new Sn(t,e,r).watch()}var Nr=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 al={};X(al,{scrollHelper:()=>Og});var il,wn=new Map,nl=class{lock(e,r){if(r){let i=wn.get(r);if(i==null||i===e)return wn.set(r,e),r}}release(e,r){r&&wn.get(r)===e&&wn.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of qa(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=Er(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(il=window.FluidTopicsScrollHelper)!==null&&il!==void 0?il:new nl;var Og=window.FluidTopicsScrollHelper;var ll={};X(ll,{SearchPlaceConverter:()=>go,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>nu,serializeRequest:()=>Ig});var Ag=t=>typeof t=="object"&&t!=null;var _g=t=>typeof t=="number",Cn=t=>typeof t=="string",Wp=t=>Ag(t)&&Cn(t.endpoint)&&Cn(t.method)&&Cn(t.statusText)&&Cn(t.body)&&_g(t.status),Sp;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Sp||(Sp={}));var wp;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wp||(wp={}));var Cp;(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"})(Cp||(Cp={}));var Ep;(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"})(Ep||(Ep={}));var Op;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Op||(Op={}));var Ap;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ap||(Ap={}));var _p;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(_p||(_p={}));var Rp;(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"})(Rp||(Rp={}));var Tp;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Tp||(Tp={}));var Ip;(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"})(Ip||(Ip={}));var Lp;(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"})(Lp||(Lp={}));var kp;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kp||(kp={}));var Pp;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pp||(Pp={}));var Np;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Np||(Np={}));var _e;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(_e||(_e={}));var Dp;(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"})(Dp||(Dp={}));var ho;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ho||(ho={}));var Mp;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mp||(Mp={}));var $p;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($p||($p={}));var sl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(sl||(sl={}));var Gp=t=>Object.keys(sl).includes(t);var Fp;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Fp||(Fp={}));var En;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(En||(En={}));var Up;(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"})(Up||(Up={}));var mo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(mo||(mo={}));var jp=t=>Object.keys(mo).includes(t);var Bp;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Bp||(Bp={}));var Vp;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Vp||(Vp={}));var zp;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(zp||(zp={}));var fe;(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"})(fe||(fe={}));var lt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(lt||(lt={}));var Hp;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Hp||(Hp={}));var Kp;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Kp||(Kp={}));var Zp;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Zp||(Zp={}));var qp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(qp||(qp={}));var Yp;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yp||(Yp={}));var Xp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Xp||(Xp={}));var Jp;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jp||(Jp={}));var Qp;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qp||(Qp={}));var eu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(eu||(eu={}));var tu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tu||(tu={}));var ru;(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"})(ru||(ru={}));var On;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(On||(On={}));var Rg={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function ou(t,e){return t===e||(Rg[t]??[]).some(r=>ou(r,e))}function yi(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=>ou(i,e))}function Tg(t){return`"${t}"`}function iu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Ig(t,e){return new go(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"})(H||(H={}));var Lg=new Set(Object.values(H));function nu(t){return Lg.has(t)}var go=class{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,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,a,s,l,d,u,m,h,g,v,C,I;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(H.LOCALE,e.contentLocale):E.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(H.QUERY,e.query);let L=P=>{var Y,k;let z=((k=(Y=P.valueFilter)===null||Y===void 0?void 0:Y.values)!==null&&k!==void 0?k:[]).map(pe=>this.escapeFilters(pe)).map(pe=>Tg(iu(pe))).join("_");return`${P.key}~${z}`},j=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(P=>P.valueFilter&&!P.valueFilter.negative))!==null&&a!==void 0?a:[];j.length>0&&E.append(H.VALUE_FILTERS,j.map(L).join("*"));let y=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(P=>P.valueFilter&&P.valueFilter.negative))!==null&&l!==void 0?l:[];y.length>0&&E.append(H.NEGATIVE_VALUE_FILTERS,y.map(L).join("*"));let b=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(P=>P.dateFilter))!==null&&u!==void 0?u:[];if(b.length>0){let P=b.map(Y=>{var k;return`${Y.key}~${(k=Y.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(H.DATE_FILTERS,P)}let w=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(P=>P.rangeFilter))!==null&&h!==void 0?h:[];if(w.length>0){let P=w.map(Y=>{var k,z;return`${Y.key}~${(k=Y.rangeFilter)===null||k===void 0?void 0:k.from}_${(z=Y.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(H.RANGE_FILTERS,P)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(H.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(H.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((C=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&C!==void 0?C:this.defaultPerPage)!=this.defaultPerPage&&E.append(H.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(H.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let D=(I=e.otherQueryParams)!==null&&I!==void 0?I:{};for(let P in D)E.append(P,D[P]);let M=new Array;return E.forEach((P,Y)=>{M.push(this.encodeQueryString(Y)+"="+this.encodeQueryString(P))}),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("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(H.LOCALE)==="all"?void 0:d.get(H.LOCALE),m=((r=d.get(H.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(i=d.get(H.SORT))===null||i===void 0?void 0:i.toLowerCase(),g=(n=d.get(H.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(H.KEYWORD_MATCH),I=C?C.toUpperCase()===ho.MANDATORY?ho.MANDATORY:ho.OPTIONAL:void 0,E={};for(let L of d.keys())nu(L)||(E[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(H.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Gp(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:Er(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:I,otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(H.FILTERS)&&(u=this.parseValueFilters((r=e.get(H.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(H.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(H.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(H.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!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:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(iu).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:mo[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(jp(e))return[{key:"ft:lastEdition",dateFilter:{type:mo[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}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()}};var dl={};X(dl,{toFtFormComponent:()=>Dr});var cl=Symbol("elementInternals"),Dr=ue(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[cl].form}constructor(...i){super(i),this[cl]=this.attachInternals()}setFormValue(i){this[cl].setFormValue(i)}}return e});var pl={};X(pl,{DateFormatter:()=>Mr});var Mr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?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 fl={};X(fl,{ALL_KEYS_VALUE:()=>ul,SameWindowStorageEvent:()=>yo});var ul="__all__",yo=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==ul}};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 yo(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 yo(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new yo(ul))}});var ml={};X(ml,{FocusMainContentEvent:()=>hl});var hl=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var au={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function kg(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Pg(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",kg);document.addEventListener("click",Pg);var su=O`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,25 +68,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var hl={};Y(hl,{withAriaNotification:()=>dg});var cg={checkVisibility:!0},dg=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(o,n){let{checkVisibility:a}={...cg,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Pt({type:"aria",message:o})))},20)}}return e});var ml={};Y(ml,{withConditionalVisibility:()=>Ai});var Yu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function Ai(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Yu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Yu([I()],e.prototype,"isVisible",void 0),e}function gl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function bn(t,e,r){return t?e(t):r?.(t)}var Le=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(jr||(jr={}));var Gr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Gr||(Gr={}));var yl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},lw=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=jr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Gr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===jr.blur||this.validateOn===jr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Gr.default&&this.validateOn===jr.blurWithStatusResolutionOnInput||this.validateOn===jr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=gl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=gl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new yl(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return v`
71
+ `;var gl={};X(gl,{withAriaNotification:()=>Dg});var Ng={checkVisibility:!0},Dg=ue(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Ng,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new It({type:"aria",message:i})))},20)}}return e});var bl={};X(bl,{withConditionalVisibility:()=>yl});var lu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function yl(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}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 lu([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),lu([T()],e.prototype,"isVisible",void 0),e}var vl={};X(vl,{FormController:()=>xl});function Mg(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var xl=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Mg(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 a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}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(a){let s=Wp(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function Sl(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function An(t,e,r){return t?e(t):r?.(t)}var Ie=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$r;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})($r||($r={}));var Fr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Fr||(Fr={}));var wl=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},mC=ue(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=$r.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Fr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===$r.blur||this.validateOn===$r.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Fr.default&&this.validateOn===$r.blurWithStatusResolutionOnInput||this.validateOn===$r.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=Sl(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=Sl(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new wl(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return x`
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
- ${qe(this.errorMessages,o=>v`
75
- <li>${o}</li>
74
+ ${je(this.errorMessages,i=>x`
75
+ <li>${i}</li>
76
76
  `)}
77
- ${qe(this.warningMessages,o=>v`
78
- <li>${o}</li>
77
+ ${je(this.warningMessages,i=>x`
78
+ <li>${i}</li>
79
79
  `)}
80
- ${bn(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>v`
80
+ ${An(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>x`
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Gr.error:this.warningMessages.length?Gr.warning:Gr.default}}return Le([f()],e.prototype,"warningRules",void 0),Le([f()],e.prototype,"errorRules",void 0),Le([f()],e.prototype,"validateOn",void 0),Le([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Le([f()],e.prototype,"label",void 0),Le([f({type:Boolean})],e.prototype,"hideLabel",void 0),Le([f()],e.prototype,"name",void 0),Le([f({type:Boolean})],e.prototype,"disabled",void 0),Le([f()],e.prototype,"helperText",void 0),Le([f()],e.prototype,"forceStatus",void 0),Le([f({reflect:!0})],e.prototype,"value",void 0),Le([I()],e.prototype,"errorMessages",void 0),Le([I()],e.prototype,"warningMessages",void 0),Le([I()],e.prototype,"status",void 0),Le([I()],e.prototype,"focused",void 0),Le([I()],e.prototype,"additionalWarningRules",void 0),Le([I()],e.prototype,"additionalErrorRules",void 0),e});var Ri=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(e,!1),Ri(o,e);return!0},vn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Xu=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),fg(e)}};function ug(t){this._$AN!==void 0?(vn(this),this._$AM=t,Xu(this)):this._$AM=t}function pg(t,e=!1,r=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=r;a<o.length;a++)Ri(o[a],!1),vn(o[a]);else o!=null&&(Ri(o,!1),vn(o));else Ri(this,t)}var fg=t=>{t.type==kt.CHILD&&(t._$AP??=pg,t._$AQ??=ug)},To=class extends dt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),Xu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ri(this,e),vn(this))}setValue(e){if(Sc(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 bl=class extends To{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 o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Oe}update(e){return this.part=e,this.ensureFocusTrap(e.element),Oe}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,o;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,o,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),(o=this.firstTrap)===null||o===void 0||o.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 o=0;o<r.length;o++){let n=r[o];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 o=r.length-1;o>=0;o--){let n=r[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ct&&await e.updateComplete}isInsideElement(e,r){for(let o=e;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}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}},Aw=rt(bl);var Ju;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Ju||(Ju={}));var hg={sm:640,md:768,lg:1024,xl:1280},vl=class extends To{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,o,n]){return this.lastArgs=[r,o,n],this.render(r,o,n)}render(e,r,o){let n=this.resolveThreshold(e),a=o??(()=>L);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:hg[e]}},Lw=rt(vl);var mg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xl=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Qu(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let p=e[n];this.dispatchEvent(new xl({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||p?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,mg([De({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Sl,Cl,wl,El,Kr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((wl=(Cl=(Sl=window.safari)===null||Sl===void 0?void 0:Sl.pushNotification)===null||Cl===void 0?void 0:Cl.toString())!==null&&wl!==void 0?wl:"")==="[object SafariRemoteNotification]",gg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(El=window.ftGlobals)!==null&&El!==void 0?El:{lit:Pa,litDecorators:Da,litRepeat:Ma,litClassMap:$a,litStyleMap:Fa,litUnsafeHTML:Ua,wcUtils:{...Za,...Va,...Ja,...cl,...Qa,...Ha,...os,...Ka,...ys,...fl,...Zu,...il,...bs,...rs,...Es,...ll,...Cs,...hl,...ml,..._d,...Wa,...Rs,...is,...Ts,...qu,...Ld,...Ls,...tl,...ul,...vs,...Ss,...al,...Ya,isSafari:Kr,isTouchScreen:gg,setVariable:R}};var Jt=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}};var Lo=class{constructor(e,r,o,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=o,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Jt(this.context,this.host,this.t,this.subscribe))}};var xn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let o=r||!Object.is(e,this.o);this.o=e,o&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:o}]of this.subscriptions)r(this.o,o)},e!==void 0&&(this.value=e)}addCallback(e,r,o){if(!o)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Ol=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},Io=class extends xn{constructor(e,r,o){super(r.context!==void 0?r.initialValue:o),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Jt(this.context,l,s,!0)));n.stopPropagation()},this.host=e,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ol(this.context,this.host))}};var _i=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:o}=r;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Jt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}}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)}};function Ti({context:t}){return(e,r)=>{let o=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return o.get(this).setValue(n),e.set.call(this,n)},init(n){return o.set(this,new Io(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{o.set(s,new Io(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){o.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){o.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Li({context:t,subscribe:e}){return(r,o)=>{typeof o=="object"?o.addInitializer((function(){new Lo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new Lo(n,{context:t,callback:a=>{n[o]=a},subscribe:e})}))}}var yg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Al=Symbol("asset-viewer-state-manager"),ht=fe(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(o){super.willUpdate(o),o.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return yg([Li({context:Al,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),e});var bg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Sn=t=>Xt.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:bg});var ko=class extends Hr{constructor(e){super(),this.store=e}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var vg="ft-app-info",Ut=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ut.eventName="authentication-change";var Zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zr.eventName="ui-locale-changed";var xg={session:(t,e)=>{it(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new Ut(e.payload)),0))}},N=Xt.get({name:vg,reducers:xg,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Cn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tp=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Wr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Cn([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Cn([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Cn([H({store:N.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Cn([H({store:N.name})],e.prototype,"uiLocale",void 0),e});var Bt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=N.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=N.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var Ie=class extends Po{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new Nt,this.cache=e?n.commonCache:new Nt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var wn=class extends Ie{async listMySearches(){let{session:e}=N.getState();return Oi(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var En=class extends Ie{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var On=class extends Ie{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=N.getState().session;return!!e?.sessionAuthenticated}};var An=class extends Ie{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=N.getState().session;return!!e?.sessionAuthenticated}};var Sg="ft-user-assets",Cg={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(ft).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:o,asset:n}=e.payload;_l(t,r,[...Rl(t,r),n]),rp(t,r,1,o),op(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;_l(t,r,Rl(t,r).map(n=>n.id===o.id?o:n)),op(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;_l(t,r,Rl(t,r).filter(a=>a.id!==n)),rp(t,r,-1,o)}},ip={[ft.SEARCHES]:"savedSearches",[ft.BOOKMARKS]:"bookmarks",[ft.BOOKS]:void 0,[ft.COLLECTIONS]:void 0},Rl=(t,e)=>{var r;let o=ip[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},_l=(t,e,r)=>{let o=ip[e];o&&(t[o]=r)},rp=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ft.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},op=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},We=Xt.get({name:Sg,reducers:Cg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ft).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Tl=class{constructor(e=new On,r=new An){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new wn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();it((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(),We.actions.clearAssetCount(),We.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),We.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),We.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();We.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();We.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&We.getState().assetCounts.allAsset[e]!==r.count&&We.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&We.getState().assetCounts.bookmarkByMap[e]!==r.count&&We.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(We.getState().assetCounts.bookmarkByMap).length!==0;e===ft.BOOKMARKS&&r&&We.actions.clearBookmarkCountByMap(),We.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;We.actions.bookmarks(r)}}},wg=new Tl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wg);var Ll=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ll;var np,No=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Eg=Symbol("clearAfterUnitTest"),Rn=class extends tn(Ie){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[np]=()=>{this.defaultMessages={},this.cache=new Nt,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};it(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new vi((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Lr)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o: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 No({loadedContexts:e})),this.dispatchEvent(new No({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new No({loadedContexts:[e]})),this.dispatchEvent(new No({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Qi(0).then(()=>o()).catch(()=>null)))}};np=Eg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Rn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Do=window.FluidTopicsI18nService,_n=window.FluidTopicsCustomI18nService;var Il=class{highlightHtml(e,r,o){As(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Il;var kl=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a,s;if(e==null)return"";try{return Wr.format(e,(o=r?.locale)!==null&&o!==void 0?o:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new kl;var Ii=class{static get(e,r){var o,n,a,s;let l=N.getState(),{lang:d,region:p}=(a=(n=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ro(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${p}`)}};var Pl=class{urlToSearchRequest(e){return Ii.get().parse(e)}searchRequestToUrl(e){return Ii.get().serialize(e)}};window.FluidTopicsUrlService=new Pl;var qr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};qr.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))}},ap=new Nl;var Tn=class t extends Gt{static build(){return new t(window.history,ap,()=>window.location,!1)}constructor(e,r,o,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),it(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new qr(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[p,s,l]),this.setCurrentState(p,!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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(qr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(qr.eventName,e)}currentItem(){return ot(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 ot(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return ot(r.find(o=>e(o)))}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 ot(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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;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 o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Tn.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)});var Ln=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let o=JSON.stringify(r);window.localStorage.setItem(e,o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:o,storageArea:window.localStorage}))}get(e){var r,o;if(!this.isAuthenticated())return(o=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&o!==void 0?o:void 0}addStoreListener(e,r){let o=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(o),window.addEventListener("storage",o)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var sp=A`
85
- `;function lp(t,e){let{authenticationRequired:r,session:o}=N.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var In=class extends Po{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Dl=class t extends Hr{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt,this.withManualResources=!0,this.userLocaleService=new In,this.cleanSessionDebouncer=new Me,this.reloadDebouncer=new Me(500),this.apiProvider=r??(()=>Bt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Ut.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",()=>lp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}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(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zr(o)))}).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)}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)}},Mo=Dl.build();var ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends ve{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Mo,this.contextRoot=new _i}render(){return v`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Fr.error:this.warningMessages.length?Fr.warning:Fr.default}}return Ie([f()],e.prototype,"warningRules",void 0),Ie([f()],e.prototype,"errorRules",void 0),Ie([f()],e.prototype,"validateOn",void 0),Ie([f({type:Boolean})],e.prototype,"validateAtRender",void 0),Ie([f()],e.prototype,"label",void 0),Ie([f({type:Boolean})],e.prototype,"hideLabel",void 0),Ie([f()],e.prototype,"name",void 0),Ie([f({type:Boolean})],e.prototype,"disabled",void 0),Ie([f()],e.prototype,"helperText",void 0),Ie([f()],e.prototype,"forceStatus",void 0),Ie([f({reflect:!0})],e.prototype,"value",void 0),Ie([T()],e.prototype,"errorMessages",void 0),Ie([T()],e.prototype,"warningMessages",void 0),Ie([T()],e.prototype,"status",void 0),Ie([T()],e.prototype,"focused",void 0),Ie([T()],e.prototype,"additionalWarningRules",void 0),Ie([T()],e.prototype,"additionalErrorRules",void 0),e});var bi=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),bi(i,e);return!0},_n=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},cu=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),Ug(e)}};function $g(t){this._$AN!==void 0?(_n(this),this._$AM=t,cu(this)):this._$AM=t}function Fg(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 a=r;a<i.length;a++)bi(i[a],!1),_n(i[a]);else i!=null&&(bi(i,!1),_n(i));else bi(this,t)}var Ug=t=>{t.type==Tt.CHILD&&(t._$AP??=Fg,t._$AQ??=$g)},bo=class extends at{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),cu(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(bi(this,e),_n(this))}setValue(e){if(Ac(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 Cl=class extends bo{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 nt&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.assignedSlot)}return!1}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}},PC=Je(Cl);var du;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(du||(du={}));var Bg={sm:640,md:768,lg:1024,xl:1280},El=class extends bo{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),a=i??(()=>R);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:Bg[e]}},$C=Je(El);var Vg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ol=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function pu(t,e){class r extends t{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let u=e[n];this.dispatchEvent(new Ol({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,Vg([Pe({})],r.prototype,"configuredAnalyticsActions",void 0),r}var Al,_l,Rl,Tl,Ur=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Rl=(_l=(Al=window.safari)===null||Al===void 0?void 0:Al.pushNotification)===null||_l===void 0?void 0:_l.toString())!==null&&Rl!==void 0?Rl:"")==="[object SafariRemoteNotification]",zg="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Tl=window.ftGlobals)!==null&&Tl!==void 0?Tl:{lit:Ua,litDecorators:Va,litRepeat:za,litClassMap:Ha,litStyleMap:Wa,litUnsafeHTML:Ga,wcUtils:{...es,...Ka,...is,...pl,...ns,...Za,...cs,...Qa,...Cs,...ml,...au,...al,...Es,...ls,...Is,...dl,...Rs,...gl,...bl,...Pd,...Ya,...Ps,...ds,...Ds,...su,...Dd,...Ms,...ol,...fl,...Os,..._s,...ll,...rs,...vl,isSafari:Ur,isTouchScreen:zg,setVariable:A}};var Xt=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 xo=class{constructor(e,r,i,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,s)),this.unsubscribe=s},this.host=e,r.context!==void 0){let a=r;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=r,this.callback=i,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Xt(this.context,this.host,this.t,this.subscribe))}};var Rn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,r=!1){let i=r||!Object.is(e,this.o);this.o=e,i&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:i}]of this.subscriptions)r(this.o,i)},e!==void 0&&(this.value=e)}addCallback(e,r,i){if(!i)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:r});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Il=class extends Event{constructor(e,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r}},vo=class extends Rn{constructor(e,r,i){super(r.context!==void 0?r.initialValue:i),this.onContextRequest=n=>{if(n.context!==this.context)return;let a=n.contextTarget??n.composedPath()[0];a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let a=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)a.has(s)||(a.add(s),l.dispatchEvent(new Xt(this.context,l,s,!0)));n.stopPropagation()},this.host=e,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Il(this.context,this.host))}};var xi=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:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Xt(e.context,s,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 a=n.callbacks.get(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(i)||(a.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)}};function vi({context:t}){return(e,r)=>{let i=new WeakMap;if(typeof r=="object")return{get(){return e.get.call(this)},set(n){return i.get(this).setValue(n),e.set.call(this,n)},init(n){return i.set(this,new vo(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{i.set(s,new vo(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,r),a;if(n===void 0){let s=new WeakMap;a={get(){return s.get(this)},set(l){i.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=n.set;a={...n,set(l){i.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,r,a)}}}function Si({context:t,subscribe:e}){return(r,i)=>{typeof i=="object"?i.addInitializer((function(){new xo(this,{context:t,callback:n=>{r.set.call(this,n)},subscribe:e})})):r.constructor.addInitializer((n=>{new xo(n,{context:t,callback:a=>{n[i]=a},subscribe:e})}))}}var Hg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ll=Symbol("asset-viewer-state-manager"),Mt=ue(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(i){super.willUpdate(i),i.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return Hg([Si({context:Ll,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),e});var Wg={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Tn=t=>Yt.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:Wg});var So=class extends Nr{constructor(e){super(),this.store=e}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var Gg="ft-app-info",$t=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$t.eventName="authentication-change";var Br=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Br.eventName="ui-locale-changed";var jg={session:(t,e)=>{Be(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new $t(e.payload)),0))}},N=Yt.get({name:Gg,reducers:jg,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var In=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fu=ue(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(N)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return In([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),In([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),In([q({store:N.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),In([q({store:N.name})],e.prototype,"uiLocale",void 0),e});var Ft=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=N.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=N.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var wo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ft.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ft.await()}};var Le=class extends wo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Lt,this.cache=e?n.commonCache:new Lt}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 Ln=class extends Le{async listMySearches(){let{session:e}=N.getState();return yi(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var kn=class extends Le{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Pn=class extends Le{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=N.getState().session;return!!e?.sessionAuthenticated}};var Nn=class extends Le{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=N.getState().session;return!!e?.sessionAuthenticated}};var Kg="ft-user-assets",Zg={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(lt).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;Pl(t,r,[...kl(t,r),n]),hu(t,r,1,i),mu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Pl(t,r,kl(t,r).map(n=>n.id===i.id?i:n)),mu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Pl(t,r,kl(t,r).filter(a=>a.id!==n)),hu(t,r,-1,i)}},gu={[lt.SEARCHES]:"savedSearches",[lt.BOOKMARKS]:"bookmarks",[lt.BOOKS]:void 0,[lt.COLLECTIONS]:void 0},kl=(t,e)=>{var r;let i=gu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Pl=(t,e,r)=>{let i=gu[e];i&&(t[i]=r)},hu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===lt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},mu=(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)},Ve=Yt.get({name:Kg,reducers:Zg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Nl=class{constructor(e=new Pn,r=new Nn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new kn,this.savedSearchesService=new Ln,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Be((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(),Ve.actions.clearAssetCount(),Ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ve.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ve.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ve.getState().assetCounts.allAsset[e]!==r.count&&Ve.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ve.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ve.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ve.getState().assetCounts.bookmarkByMap).length!==0;e===lt.BOOKMARKS&&r&&Ve.actions.clearBookmarkCountByMap(),Ve.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;Ve.actions.bookmarks(r)}}},qg=new Nl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qg);var Dl=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dl;var yu,Co=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Yg=Symbol("clearAfterUnitTest"),Dn=class extends Ki(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yu]=()=>{this.defaultMessages={},this.cache=new Lt,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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};Be(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 a=e.toLowerCase(),s=this.resolveContext(a);return new li((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).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 Cr)&&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 Co({loadedContexts:e})),this.dispatchEvent(new Co({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Co({loadedContexts:[e]})),this.dispatchEvent(new Co({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>Wi(0).then(()=>i()).catch(()=>null)))}};yu=Yg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Eo=window.FluidTopicsI18nService,Mn=window.FluidTopicsCustomI18nService;var Ml=class{highlightHtml(e,r,i){ks(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ml;var $l=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return Mr.format(e,(i=r?.locale)!==null&&i!==void 0?i:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new $l;var wi=class{static get(e,r){var i,n,a,s;let l=N.getState(),{lang:d,region:u}=(a=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new go(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Fl=class{urlToSearchRequest(e){return wi.get().parse(e)}searchRequestToUrl(e){return wi.get().serialize(e)}};window.FluidTopicsUrlService=new Fl;var Vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Vr.eventName="change";var Ul=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))}},bu=new Ul;var $n=class t extends Wt{static build(){return new t(window.history,bu,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,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),Be(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Vr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[u,s,l]),this.setCurrentState(u,!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)}addHistoryChangeListener(e){this.addEventListener(Vr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Vr.eventName,e)}currentItem(){return Qe(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 Qe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return Qe(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 Qe(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,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;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,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.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)});var Fn=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}};var xu=O`
85
+ `;function vu(t,e){let{authenticationRequired:r,session:i}=N.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Un=class extends wo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Bl=class t extends Nr{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new Lt,this.withManualResources=!0,this.userLocaleService=new Un,this.cleanSessionDebouncer=new Ne,this.reloadDebouncer=new Ne(500),this.apiProvider=r??(()=>Ft.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener($t.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",()=>vu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}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 Br(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)}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)}},Oo=Bl.build();var ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Oo,this.contextRoot=new xi}render(){return x`
86
86
  <slot></slot>
87
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Do.addContext(o)),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())}};me.elementDefinitions={};me.styles=sp;ke([f()],me.prototype,"baseUrl",void 0);ke([f()],me.prototype,"tenantId",void 0);ke([f()],me.prototype,"apiIntegrationIdentifier",void 0);ke([f()],me.prototype,"apiIntegrationAppVersion",void 0);ke([f()],me.prototype,"uiLocale",void 0);ke([De(null)],me.prototype,"availableUiLocales",void 0);ke([De(null)],me.prototype,"metadataConfiguration",void 0);ke([f({type:Boolean})],me.prototype,"editorMode",void 0);ke([f({type:Boolean})],me.prototype,"noCustom",void 0);ke([f({type:Boolean})],me.prototype,"openExternalDocumentInNewTab",void 0);ke([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],me.prototype,"noCustomComponent",void 0);ke([f({type:Boolean})],me.prototype,"withManualResources",void 0);ke([f({type:Boolean})],me.prototype,"navigatorOnline",void 0);ke([f({type:Boolean})],me.prototype,"forcedOffline",void 0);ke([f({type:Boolean})],me.prototype,"authenticationRequired",void 0);ke([De([])],me.prototype,"messageContexts",void 0);ke([De(void 0)],me.prototype,"session",void 0);var cp={"ft-app-context":me};Z(cp);var mr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(mr||(mr={}));var Vt;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(Vt||(Vt={}));var Yr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:ot(e),composed:!0,bubbles:!0})}};Yr.eventName="ft-viewer-loaded";var kn=class extends Ie{getAsset(e,r,o){let n={[mr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[mr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[mr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[o])}};var Pn=class t extends ko{static build(e){return new t(Sn(e),new kn)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:o}=this.store.getState();if(e&&r&&o){let n=await this.service.getAsset(e,r,o);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,o){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(o),await this.reload(),this.store.getState()}};var ki=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qt=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Pn.build(this.id||ni(6))}render(){return v`
87
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Eo.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())}};he.elementDefinitions={};he.styles=xu;ke([f()],he.prototype,"baseUrl",void 0);ke([f()],he.prototype,"tenantId",void 0);ke([f()],he.prototype,"apiIntegrationIdentifier",void 0);ke([f()],he.prototype,"apiIntegrationAppVersion",void 0);ke([f()],he.prototype,"uiLocale",void 0);ke([Pe(null)],he.prototype,"availableUiLocales",void 0);ke([Pe(null)],he.prototype,"metadataConfiguration",void 0);ke([f({type:Boolean})],he.prototype,"editorMode",void 0);ke([f({type:Boolean})],he.prototype,"noCustom",void 0);ke([f({type:Boolean})],he.prototype,"openExternalDocumentInNewTab",void 0);ke([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],he.prototype,"noCustomComponent",void 0);ke([f({type:Boolean})],he.prototype,"withManualResources",void 0);ke([f({type:Boolean})],he.prototype,"navigatorOnline",void 0);ke([f({type:Boolean})],he.prototype,"forcedOffline",void 0);ke([f({type:Boolean})],he.prototype,"authenticationRequired",void 0);ke([Pe([])],he.prototype,"messageContexts",void 0);ke([Pe(void 0)],he.prototype,"session",void 0);var Su={"ft-app-context":he};Z(Su);var cr;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(cr||(cr={}));var wu;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(wu||(wu={}));var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:Qe(e),composed:!0,bubbles:!0})}};zr.eventName="ft-viewer-loaded";var Bn=class extends Le{getAsset(e,r,i){let n={[cr.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,r),[cr.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,r),[cr.RESOURCE]:()=>this.api.getMapResource(e,r)};return this.cache.get(r,n[i])}};var Vn=class t extends So{static build(e){return new t(Tn(e),new Bn)}constructor(e,r){super(e),this.store=e,this.service=r}async load(){let{documentId:e,assetId:r,origin:i}=this.store.getState();if(e&&r&&i){let n=await this.service.getAsset(e,r,i);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,r,i){return this.store.actions.documentId(e),this.store.actions.assetId(r),this.store.actions.origin(i),await this.reload(),this.store.getState()}};var Ci=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jt=class extends be{constructor(){super(...arguments),this.viewerStateManager=Vn.build(this.id||Zo(6))}render(){return x`
88
88
  <slot></slot>
89
- `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Yr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}};ki([f()],Qt.prototype,"documentId",void 0);ki([f()],Qt.prototype,"assetId",void 0);ki([f()],Qt.prototype,"origin",void 0);ki([Ti({context:Al})],Qt.prototype,"viewerStateManager",void 0);ki([ut({eventName:Ut.eventName})],Qt.prototype,"onAuthenticationChange",null);var Fe=class extends ve{};var Og={position:i.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},dp=A`
89
+ `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new zr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}};Ci([f()],Jt.prototype,"documentId",void 0);Ci([f()],Jt.prototype,"assetId",void 0);Ci([f()],Jt.prototype,"origin",void 0);Ci([vi({context:Ll})],Jt.prototype,"viewerStateManager",void 0);Ci([st({eventName:$t.eventName})],Jt.prototype,"onAuthenticationChange",null);var Ze=class extends be{};var Xg={position:o.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Cu=O`
90
90
  :host {
91
91
  position: absolute;
92
92
  top: 0;
@@ -97,7 +97,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
97
97
  }
98
98
 
99
99
  .ft-watermark-container {
100
- position: ${Og.position};
100
+ position: ${Xg.position};
101
101
  top: 0;
102
102
  text-align: center;
103
103
  }
@@ -105,110 +105,110 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
105
105
  .ft-watermark {
106
106
  z-index: 79;
107
107
  }
108
- `;var pp=Symbol.for(""),Ag=t=>{if(t?.r===pp)return t?._$litStatic$},Ml=t=>({_$litStatic$:t,r:pp});var up=new Map,$l=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],d,p=0,m=!1;for(;p<o;){for(d=e[p];p<o&&(a=r[p],(n=Ag(a))!==void 0);)d+=n+e[++p],m=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),m){let h=s.join("$$lit$$");(e=up.get(h))===void 0&&(s.raw=s,up.set(h,e=s)),r=l}return t(e,...r)},Fl=$l(v),DR=$l(Jo),MR=$l(Ta);var oe;(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"})(oe||(oe={}));var fp=i.extend("--ft-typography-font-family","",S.titleFont),er=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:er,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gr={fontFamily:i.extend("--ft-typography-title-font-family","",fp),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},yr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",fp),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},$o={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",er),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},Fo={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",er),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},mt={fontFamily:i.extend("--ft-typography-body1-font-family","",er),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},gt={fontFamily:i.extend("--ft-typography-body2-font-family","",er),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},at={fontFamily:i.extend("--ft-typography-caption-font-family","",er),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Uo={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",er),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Bo={fontFamily:i.extend("--ft-typography-overline-font-family","",er),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},je={fontFamily:i.extend("--ft-typography-button-font-family","",er),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},hp=A`
108
+ `;var Ou=Symbol.for(""),Jg=t=>{if(t?.r===Ou)return t?._$litStatic$},Vl=t=>({_$litStatic$:t,r:Ou});var Eu=new Map,zl=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=Jg(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=Eu.get(h))===void 0&&(s.raw=s,Eu.set(h,e=s)),r=l}return t(e,...r)},Hl=zl(x),H_=zl(Vo),W_=zl(Da);var te;(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"})(te||(te={}));var Au=o.extend("--ft-typography-font-family","",S.titleFont),Qt=o.extend("--ft-typography-font-family","",S.contentFont),$={fontFamily:Qt,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")},dr={fontFamily:o.extend("--ft-typography-title-font-family","",Au),fontSize:o.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},pr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Au),fontSize:o.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Ao={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Qt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},_o={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Qt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},ct={fontFamily:o.extend("--ft-typography-body1-font-family","",Qt),fontSize:o.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},dt={fontFamily:o.extend("--ft-typography-body2-font-family","",Qt),fontSize:o.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},rt={fontFamily:o.extend("--ft-typography-caption-font-family","",Qt),fontSize:o.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},Ro={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Qt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},To={fontFamily:o.extend("--ft-typography-overline-font-family","",Qt),fontSize:o.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ze={fontFamily:o.extend("--ft-typography-button-font-family","",Qt),fontSize:o.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},_u=O`
109
109
  .ft-typography--title {
110
- font-family: ${gr.fontFamily};
111
- font-size: ${gr.fontSize};
112
- font-weight: ${gr.fontWeight};
113
- letter-spacing: ${gr.letterSpacing};
114
- line-height: ${gr.lineHeight};
115
- text-transform: ${gr.textTransform};
116
- }
117
- `,mp=A`
110
+ font-family: ${dr.fontFamily};
111
+ font-size: ${dr.fontSize};
112
+ font-weight: ${dr.fontWeight};
113
+ letter-spacing: ${dr.letterSpacing};
114
+ line-height: ${dr.lineHeight};
115
+ text-transform: ${dr.textTransform};
116
+ }
117
+ `,Ru=O`
118
118
  .ft-typography--title-dense {
119
- font-family: ${yr.fontFamily};
120
- font-size: ${yr.fontSize};
121
- font-weight: ${yr.fontWeight};
122
- letter-spacing: ${yr.letterSpacing};
123
- line-height: ${yr.lineHeight};
124
- text-transform: ${yr.textTransform};
125
- }
126
- `,gp=A`
119
+ font-family: ${pr.fontFamily};
120
+ font-size: ${pr.fontSize};
121
+ font-weight: ${pr.fontWeight};
122
+ letter-spacing: ${pr.letterSpacing};
123
+ line-height: ${pr.lineHeight};
124
+ text-transform: ${pr.textTransform};
125
+ }
126
+ `,Tu=O`
127
127
  .ft-typography--subtitle1 {
128
- font-family: ${$o.fontFamily};
129
- font-size: ${$o.fontSize};
130
- font-weight: ${$o.fontWeight};
131
- letter-spacing: ${$o.letterSpacing};
132
- line-height: ${$o.lineHeight};
133
- text-transform: ${$o.textTransform};
134
- }
135
- `,yp=A`
128
+ font-family: ${Ao.fontFamily};
129
+ font-size: ${Ao.fontSize};
130
+ font-weight: ${Ao.fontWeight};
131
+ letter-spacing: ${Ao.letterSpacing};
132
+ line-height: ${Ao.lineHeight};
133
+ text-transform: ${Ao.textTransform};
134
+ }
135
+ `,Iu=O`
136
136
  .ft-typography--subtitle2 {
137
- font-family: ${Fo.fontFamily};
138
- font-size: ${Fo.fontSize};
139
- font-weight: ${Fo.fontWeight};
140
- letter-spacing: ${Fo.letterSpacing};
141
- line-height: ${Fo.lineHeight};
142
- text-transform: ${Fo.textTransform};
137
+ font-family: ${_o.fontFamily};
138
+ font-size: ${_o.fontSize};
139
+ font-weight: ${_o.fontWeight};
140
+ letter-spacing: ${_o.letterSpacing};
141
+ line-height: ${_o.lineHeight};
142
+ text-transform: ${_o.textTransform};
143
143
  }
144
144
 
145
- `,br=A`
145
+ `,ur=O`
146
146
  .ft-typography--body1 {
147
- font-family: ${mt.fontFamily};
148
- font-size: ${mt.fontSize};
149
- font-weight: ${mt.fontWeight};
150
- letter-spacing: ${mt.letterSpacing};
151
- line-height: ${mt.lineHeight};
152
- text-transform: ${mt.textTransform};
153
- }
154
- `,bp=A`
147
+ font-family: ${ct.fontFamily};
148
+ font-size: ${ct.fontSize};
149
+ font-weight: ${ct.fontWeight};
150
+ letter-spacing: ${ct.letterSpacing};
151
+ line-height: ${ct.lineHeight};
152
+ text-transform: ${ct.textTransform};
153
+ }
154
+ `,Lu=O`
155
155
  .ft-typography--body2 {
156
- font-family: ${gt.fontFamily};
157
- font-size: ${gt.fontSize};
158
- font-weight: ${gt.fontWeight};
159
- letter-spacing: ${gt.letterSpacing};
160
- line-height: ${gt.lineHeight};
161
- text-transform: ${gt.textTransform};
162
- }
163
- `,Nn=A`
156
+ font-family: ${dt.fontFamily};
157
+ font-size: ${dt.fontSize};
158
+ font-weight: ${dt.fontWeight};
159
+ letter-spacing: ${dt.letterSpacing};
160
+ line-height: ${dt.lineHeight};
161
+ text-transform: ${dt.textTransform};
162
+ }
163
+ `,zn=O`
164
164
  .ft-typography--caption {
165
- font-family: ${at.fontFamily};
166
- font-size: ${at.fontSize};
167
- font-weight: ${at.fontWeight};
168
- letter-spacing: ${at.letterSpacing};
169
- line-height: ${at.lineHeight};
170
- text-transform: ${at.textTransform};
171
- }
172
- `,vp=A`
165
+ font-family: ${rt.fontFamily};
166
+ font-size: ${rt.fontSize};
167
+ font-weight: ${rt.fontWeight};
168
+ letter-spacing: ${rt.letterSpacing};
169
+ line-height: ${rt.lineHeight};
170
+ text-transform: ${rt.textTransform};
171
+ }
172
+ `,ku=O`
173
173
  .ft-typography--breadcrumb {
174
- font-family: ${Uo.fontFamily};
175
- font-size: ${Uo.fontSize};
176
- font-weight: ${Uo.fontWeight};
177
- letter-spacing: ${Uo.letterSpacing};
178
- line-height: ${Uo.lineHeight};
179
- text-transform: ${Uo.textTransform};
180
- }
181
- `,xp=A`
174
+ font-family: ${Ro.fontFamily};
175
+ font-size: ${Ro.fontSize};
176
+ font-weight: ${Ro.fontWeight};
177
+ letter-spacing: ${Ro.letterSpacing};
178
+ line-height: ${Ro.lineHeight};
179
+ text-transform: ${Ro.textTransform};
180
+ }
181
+ `,Pu=O`
182
182
  .ft-typography--overline {
183
- font-family: ${Bo.fontFamily};
184
- font-size: ${Bo.fontSize};
185
- font-weight: ${Bo.fontWeight};
186
- letter-spacing: ${Bo.letterSpacing};
187
- line-height: ${Bo.lineHeight};
188
- text-transform: ${Bo.textTransform};
189
- }
190
- `,Sp=A`
183
+ font-family: ${To.fontFamily};
184
+ font-size: ${To.fontSize};
185
+ font-weight: ${To.fontWeight};
186
+ letter-spacing: ${To.letterSpacing};
187
+ line-height: ${To.lineHeight};
188
+ text-transform: ${To.textTransform};
189
+ }
190
+ `,Nu=O`
191
191
  .ft-typography--button {
192
- font-family: ${je.fontFamily};
193
- font-size: ${je.fontSize};
194
- font-weight: ${je.fontWeight};
195
- letter-spacing: ${je.letterSpacing};
196
- line-height: ${je.lineHeight};
197
- text-transform: ${je.textTransform};
198
- }
199
- `,Cp=A`
192
+ font-family: ${ze.fontFamily};
193
+ font-size: ${ze.fontSize};
194
+ font-weight: ${ze.fontWeight};
195
+ letter-spacing: ${ze.letterSpacing};
196
+ line-height: ${ze.lineHeight};
197
+ text-transform: ${ze.textTransform};
198
+ }
199
+ `,Du=O`
200
200
  .ft-typography {
201
201
  vertical-align: inherit;
202
202
  }
203
- `;var wp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},X=class extends ${constructor(){super(...arguments),this.variant=oe.body1}render(){return this.element?Fl`
204
- <${Ml(this.element)}
203
+ `;var Mu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J=class extends F{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?Hl`
204
+ <${Vl(this.element)}
205
205
  part="text"
206
206
  class="ft-typography ft-typography--${this.variant}">
207
207
  <slot></slot>
208
- </${Ml(this.element)}>
209
- `:Fl`
208
+ </${Vl(this.element)}>
209
+ `:Hl`
210
210
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
211
- `}};X.styles=[hp,mp,gp,yp,br,bp,Nn,vp,xp,Sp,Cp];wp([f()],X.prototype,"element",void 0);wp([f()],X.prototype,"variant",void 0);var Ep={"ft-typography":X};Z(Ep);var Dn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ot=class extends ${constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,o;return this.watermark?v`
211
+ `}};J.styles=[_u,Ru,Tu,Iu,ur,Lu,zn,ku,Pu,Nu,Du];Mu([f()],J.prototype,"element",void 0);Mu([f()],J.prototype,"variant",void 0);var $u={"ft-typography":J};Z($u);var Hn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},St=class extends F{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,i;return this.watermark?x`
212
212
  <style>
213
213
  .ft-watermark {
214
214
  height: ${this.height}px;
@@ -223,38 +223,38 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
223
223
  transform="rotate(-45)"
224
224
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
225
225
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
226
- ${qe(((o=this.watermark)===null||o===void 0?void 0:o.text)||[],n=>Jo`<tspan x="0" dy="1.2em">${n}</tspan>`)}
226
+ ${je(((i=this.watermark)===null||i===void 0?void 0:i.text)||[],n=>Vo`<tspan x="0" dy="1.2em">${n}</tspan>`)}
227
227
  </text>
228
228
  </svg>
229
229
  </div>
230
- `:L}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ot.styles=[dp,br];Dn([F(".ft-watermark")],Ot.prototype,"svg",void 0);Dn([f({attribute:!1})],Ot.prototype,"watermark",void 0);Dn([f({attribute:!1})],Ot.prototype,"heightReference",void 0);Dn([I()],Ot.prototype,"height",void 0);var Op={"ft-content-watermark":Ot};Z(Op);var st=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends Ai(Fe){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return v`
230
+ `:R}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};St.styles=[Cu,ur];Hn([U(".ft-watermark")],St.prototype,"svg",void 0);Hn([f({attribute:!1})],St.prototype,"watermark",void 0);Hn([f({attribute:!1})],St.prototype,"heightReference",void 0);Hn([T()],St.prototype,"height",void 0);var Fu={"ft-content-watermark":St};Z(Fu);var ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends yl(Ze){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return x`
231
231
  ${this.renderContent()}
232
232
  <ft-content-watermark part="watermark"
233
233
  .watermark=${this.watermark}
234
234
  .exportpartsPrefixes=${["watermark"]}
235
235
  .heightReference=${this}></ft-content-watermark>
236
- `}renderContent(){var e;switch(this.viewerType){case"image":return this.renderImageViewer();case"inline-svg":return this.renderImageViewer();case"video":return this.renderVideoViewer();case"pdf":return this.renderPdfViewer();case"iframe":return this.renderIframeViewer((e=this.descriptor)===null||e===void 0?void 0:e.contentUrl);default:return L}}renderImageViewer(){var e,r;return v`
236
+ `}renderContent(){var e;switch(this.viewerType){case"image":return this.renderImageViewer();case"inline-svg":return this.renderImageViewer();case"video":return this.renderVideoViewer();case"pdf":return this.renderPdfViewer();case"iframe":return this.renderIframeViewer((e=this.descriptor)===null||e===void 0?void 0:e.contentUrl);default:return R}}renderImageViewer(){var e,r;return x`
237
237
  <div class="image-viewer">
238
238
  <div class="image-viewer-content">
239
239
  <div class="image-container">
240
- ${this.viewerType==="image"?v`
240
+ ${this.viewerType==="image"?x`
241
241
  <img src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}"
242
242
  alt="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
243
243
  @load=${this.onImageLoad}>
244
- `:v`
245
- ${ti(this.svgContent)}
244
+ `:x`
245
+ ${Wo(this.svgContent)}
246
246
  `}
247
247
 
248
248
  </div>
249
249
  </div>
250
250
  </div>
251
- `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,r=this.clientHeight/this.clientWidth;return e>r?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return v`
251
+ `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,r=this.clientHeight/this.clientWidth;return e>r?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return x`
252
252
  <video src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}" controls></video>
253
- `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Bt.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return v`
253
+ `}renderPdfViewer(){var e;let r=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Ft.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${r}`)}renderIframeViewer(e){var r;return x`
254
254
  <iframe src="${e}"
255
255
  title="${(r=this.descriptor)===null||r===void 0?void 0:r.alt}"
256
256
  ></iframe>
257
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(o=this.viewerStateManager)===null||o===void 0||o.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,o,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,o,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:p,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${p}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((o=this.descriptor)===null||o===void 0)&&o.contentUrl)&&((n=Bt.get())===null||n===void 0||n.fetch((a=this.descriptor)===null||a===void 0?void 0:a.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};xe.elementDefinitions={"ft-content-watermark":Ot};xe.styles=A`
257
+ `}willUpdate(e){var r,i,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(i=this.viewerStateManager)===null||i===void 0||i.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var r,i,n,a,s,l;super.updated(e),!(!((r=this.descriptor)===null||r===void 0)&&r.viewableInCurrentBrowser)||!(!((i=this.descriptor)===null||i===void 0)&&i.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((a=this.descriptor)===null||a===void 0)&&a.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((l=this.descriptor)===null||l===void 0?void 0:l.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var r,i,n,a;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((r=this.viewerStateManager)===null||r===void 0||r.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let l=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,d=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:u,width:m}=s.getClientRects()[0];this.imageContainer.style.height=`${u}px`,this.imageContainer.style.width=`${m}px`,this.imageViewer.scrollTop=l*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=d*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((i=this.descriptor)===null||i===void 0)&&i.contentUrl)&&((n=Ft.get())===null||n===void 0||n.fetch((a=this.descriptor)===null||a===void 0?void 0:a.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};xe.elementDefinitions={"ft-content-watermark":St};xe.styles=O`
258
258
  :host {
259
259
  display: block;
260
260
  min-height: 100px;
@@ -296,12 +296,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
296
296
  max-height: 100%;
297
297
  border: none;
298
298
  }
299
- `;st([H({store:"viewer"})],xe.prototype,"descriptor",void 0);st([I()],xe.prototype,"viewerType",void 0);st([I()],xe.prototype,"inlineSvgAllowed",void 0);st([H({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);st([H({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);st([H({store:"viewer"})],xe.prototype,"watermark",void 0);st([F("img")],xe.prototype,"image",void 0);st([F("svg")],xe.prototype,"svg",void 0);st([F(".image-viewer")],xe.prototype,"imageViewer",void 0);st([F(".image-container")],xe.prototype,"imageContainer",void 0);st([I()],xe.prototype,"imageHeight",void 0);st([I()],xe.prototype,"imageWidth",void 0);st([I()],xe.prototype,"svgContent",void 0);var Mn=class extends ht(xe){};var Xe=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?_n:Do}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Ul=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,o]=e.split(".");return{context:r,key:o,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 Ul;var Rg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ni=Symbol("i18nAttributes"),Ap=Symbol("i18nListAttributes"),Di=Symbol("i18nProperties"),$n=Symbol("i18nContexts"),Pi=Symbol("i18nUnsubs"),Je=fe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?_n:Do}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let g=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Vo.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Ni])===null||s===void 0||s.forEach((m,h)=>d[h]=p(m,h,d[h])),(l=this[Ap])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(y=>p(m,h,y))})}updateI18nProperties(a){var s;(s=this[Di])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[$n].set(d,{isCustomContext:l}),this[Pi].has(d)||this[Pi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[$n].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[$n].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Pi].forEach(a=>a()),this[Pi].clear()}}return e=$n,r=Pi,Rg([f({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Fn=class extends Je($){},Un=class extends Je(ve){};var Bn=(t,e)=>(r,o)=>{var n,a;r.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:o};r[Di]=(a=r[Di])!==null&&a!==void 0?a:new Map,r[Di].set(o,s)};var Rp=A`
300
- `;var Mi=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},At=class extends Un{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":L:v`
301
- <span class="ft-i18n">
302
- ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
303
- </span>
304
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};At.elementDefinitions={};At.styles=Rp;Mi([H()],At.prototype,"editorMode",void 0);Mi([f()],At.prototype,"context",void 0);Mi([f()],At.prototype,"key",void 0);Mi([De([])],At.prototype,"args",void 0);Mi([f()],At.prototype,"defaultMessage",void 0);var _p={"ft-i18n":At};Z(_p);var we={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Tp=[A`
299
+ `;ot([q({store:"viewer"})],xe.prototype,"descriptor",void 0);ot([T()],xe.prototype,"viewerType",void 0);ot([T()],xe.prototype,"inlineSvgAllowed",void 0);ot([q({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],xe.prototype,"zoom",void 0);ot([q({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],xe.prototype,"rotation",void 0);ot([q({store:"viewer"})],xe.prototype,"watermark",void 0);ot([U("img")],xe.prototype,"image",void 0);ot([U("svg")],xe.prototype,"svg",void 0);ot([U(".image-viewer")],xe.prototype,"imageViewer",void 0);ot([U(".image-container")],xe.prototype,"imageContainer",void 0);ot([T()],xe.prototype,"imageHeight",void 0);ot([T()],xe.prototype,"imageWidth",void 0);ot([T()],xe.prototype,"svgContent",void 0);var Wn=class extends Mt(xe){};var Qg=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},er=class extends Ze{render(){return this.filename?x`
300
+ <ft-typography variant="${te.body1}" part="filename">
301
+ ${this.filename}
302
+ </ft-typography>
303
+ `:R}};er.elementDefinitions={"ft-typography":J};er.styles=O`
304
+ [part="filename"]::part(text) {
305
+ margin: unset;
306
+ }
307
+ `;Qg([q({store:"viewer",selector:({descriptor:t})=>t?.filename})],er.prototype,"filename",void 0);var Gn=class extends Mt(er){};var ey=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Hr=class extends Ze{render(){return this.displayName?x`
308
+ <ft-typography variant="${te.title}" part="display-name" element="h2">
309
+ ${this.displayName}
310
+ </ft-typography>
311
+ `:R}};Hr.elementDefinitions={"ft-typography":J};Hr.styles=O`
312
+ [part="display-name"]::part(text) {
313
+ margin: unset;
314
+ }
315
+ `;ey([q({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Hr.prototype,"displayName",void 0);var jn=class extends Mt(Hr){};var we={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")},Uu=[O`
305
316
  :host, i.ft-icon {
306
317
  display: inline-flex;
307
318
  align-items: center;
@@ -349,128 +360,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
349
360
  .ft-icon--material {
350
361
  font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
351
362
  }
352
- `,qt];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Qe;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Qe||(Qe={}));var T;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(T||(T={}));var Bl=new Map([...["abw"].map(t=>[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,T.AUDIO]),...["avi"].map(t=>[t,T.AVI]),...["chm","xhs"].map(t=>[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,T.CODE]),...["csv"].map(t=>[t,T.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,T.DITA]),...["epub"].map(t=>[t,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,T.EXCEL]),...["flac"].map(t=>[t,T.FLAC]),...["gif"].map(t=>[t,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,T.GZIP]),...["html","htm","xhtml"].map(t=>[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,T.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,T.JPEG]),...["json"].map(t=>[t,T.JSON]),...["m4a","m4p"].map(t=>[t,T.M4A]),...["mov","qt"].map(t=>[t,T.MOV]),...["mp3"].map(t=>[t,T.MP3]),...["mp4","m4v"].map(t=>[t,T.MP4]),...["ogg","oga"].map(t=>[t,T.OGG]),...["pdf","ps"].map(t=>[t,T.PDF]),...["png"].map(t=>[t,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,T.POWERPOINT]),...["rar"].map(t=>[t,T.RAR]),...["stp"].map(t=>[t,T.STP]),...["txt","rtf","md","mdown"].map(t=>[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,T.VIDEO]),...["wav"].map(t=>[t,T.WAV]),...["wma"].map(t=>[t,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,T.WORD]),...["xml","xsl","rdf"].map(t=>[t,T.XML]),...["yaml","yml","x-yaml"].map(t=>[t,T.YAML]),...["zip"].map(t=>[t,T.ZIP])]),_g=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 Vn(t,e){var r,o,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=_g.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(o=Bl.get(l))!==null&&o!==void 0?o:Bl.get(e))!==null&&n!==void 0?n:Bl.get(s))!==null&&a!==void 0?a:T.UNKNOWN}var Vl={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var $i=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends ${constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=L}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return v`
363
+ `,Kt];var Me;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Me||(Me={}));var Wr;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Wr||(Wr={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var Wl=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])]),ty=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 Kn(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=ty.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Wl.get(l))!==null&&i!==void 0?i:Wl.get(e))!==null&&n!==void 0?n:Wl.get(s))!==null&&a!==void 0?a:_.UNKNOWN}var Gl={[_.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 Ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},re=class extends F{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=R}render(){let e=this.variant&&Object.values(Me).includes(this.variant)?this.variant:Me.fluid_topics,r=e!==Me.material||!!this.value;return x`
353
364
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
354
- ${ti(this.resolvedIcon)}
365
+ ${Wo(this.resolvedIcon)}
355
366
  <slot ?hidden=${r}></slot>
356
367
  </i>
357
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.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 o=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=T[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Ue.material:this.resolvedIcon=this.value||L;break;default:this.resolvedIcon=(r=Qe[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};te.elementDefinitions={};te.styles=Tp;$i([f()],te.prototype,"variant",void 0);$i([f()],te.prototype,"value",void 0);$i([f({reflect:!0,attribute:"aria-hidden"})],te.prototype,"ariaHidden",void 0);$i([I()],te.prototype,"resolvedIcon",void 0);$i([F("slot")],te.prototype,"slottedContent",void 0);var Lp={"ft-icon":te};Z(Lp);var Fi={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Ip=A`
358
- .ft-tooltip--container {
359
- display: block;
360
- }
361
-
362
- .ft-tooltip--inline {
363
- display: inline-block;
364
- max-width: 100%;
365
- }
366
-
367
- .ft-tooltip {
368
- inset: 0;
369
- margin: 0;
370
- border: none;
371
- background: transparent;
372
- box-sizing: border-box;
373
- overflow: hidden;
374
- width: max-content;
375
- max-width: ${Fi.maxWidth};
376
- text-align: center;
377
- padding: ${Fi.distance};
378
- }
379
-
380
- .ft-tooltip--content {
381
- padding: 4px 8px;
382
- border-radius: ${Fi.borderRadiusS};
383
- background-color: ${Fi.backgroundColor};
384
- color: ${Fi.color};
385
- position: relative;
386
- word-break: break-word;
387
- }
388
- `;var Hl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Vo.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Tg=new Hl;var kp=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:St,converter:Vo,...e}),r[Ni]=(n=r[Ni])!==null&&n!==void 0?n:new Map,r[Ni].set(o,t??{})};var Rt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends Fn{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 Me,this.revealDebouncer=new Me,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 v`
389
- <div part="container"
390
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
391
- <slot part="slot"></slot>
392
- <div part="tooltip" role="tooltip" inert
393
- class="ft-tooltip ft-tooltip--${this.validPosition}"
394
- popover="manual">
395
- <div part="tooltip-content" class="ft-tooltip--content">
396
- <slot name="text"></slot>
397
- <ft-typography variant="${oe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
398
- ${(r=this.text)===null||r===void 0?void 0:r.message}
399
- </ft-typography>
400
- </div>
401
- </div>
402
- </div>
403
- `}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,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.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 o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=o}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&&mi(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 ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return oi(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":X};se.styles=Ip;Rt([kp()],se.prototype,"text",void 0);Rt([f({type:Boolean})],se.prototype,"manual",void 0);Rt([f({type:Boolean})],se.prototype,"inline",void 0);Rt([xt()],se.prototype,"delay",void 0);Rt([f()],se.prototype,"position",void 0);Rt([De([])],se.prototype,"ignoreMatchingElements",void 0);Rt([ei()],se.prototype,"slotNodes",void 0);Rt([F(".ft-tooltip--container")],se.prototype,"container",void 0);Rt([F(".ft-tooltip")],se.prototype,"tooltip",void 0);Rt([F(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);Rt([I()],se.prototype,"visible",void 0);var Pp={"ft-tooltip":se};Z(Pp);var vr=Xe.build("designedViewer"),Np={fitToContainerAriaLabel:"Fill available space",zoomRealSizeAriaLabel:"Display content at original size",zoomInAriaLabel:"Zoom in",zoomOutAriaLabel:"Zoom out",rotateLeftAriaLabel:"Rotate left",rotateRightAriaLabel:"Rotate right"};var tr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends Ai(Je(Fe)){constructor(){super(...arguments),this.disabled=!1,this.tabindex=0,this.role="button",this.ariaLabel="",this.control=Vt.FIT_TO_CONTAINER,this.controlDefinitions={[Vt.FIT_TO_CONTAINER]:{ariaLabel:()=>vr.messages.fitToContainerAriaLabel(),icon:Qe.ZOOM_FULLSCREEN,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(void 0)}},[Vt.ZOOM_REAL_SIZE]:{ariaLabel:()=>vr.messages.zoomRealSizeAriaLabel(),icon:Qe.ZOOM_REALSIZE,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(1)}},[Vt.ZOOM_IN]:{ariaLabel:()=>vr.messages.zoomInAriaLabel(),icon:Qe.ZOOM_IN,disabled:()=>{var e;return((e=this.zoom)!==null&&e!==void 0?e:1)>20},run:()=>{var e,r;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)*1.2)}},[Vt.ZOOM_OUT]:{ariaLabel:()=>vr.messages.zoomOutAriaLabel(),icon:Qe.ZOOM_OUT,disabled:()=>{var e;return((e=this.zoom)!==null&&e!==void 0?e:1)<.05},run:()=>{var e,r;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)/1.2)}},[Vt.ROTATE_LEFT]:{ariaLabel:()=>vr.messages.rotateLeftAriaLabel(),icon:Qe.ARROW_ROTATE_LEFT,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setRotation(this.rotation-90)}},[Vt.ROTATE_RIGHT]:{ariaLabel:()=>vr.messages.rotateRightAriaLabel(),icon:Qe.ARROW_ROTATE_RIGHT,run:()=>{var e;return(e=this.viewerStateManager)===null||e===void 0?void 0:e.setRotation(this.rotation+90)}}},this.modifyContent=()=>{var e;(e=this.controlDefinitions[this.control])===null||e===void 0||e.run()}}render(){var e;return this.isVisible?v`
404
- <slot>
405
- <ft-tooltip text="${this.ariaLabel}">
406
- <ft-icon value="${(e=this.controlDefinitions[this.control])===null||e===void 0?void 0:e.icon}"></ft-icon>
407
- </ft-tooltip>
408
- </slot>
409
- `:L}willUpdate(e){var r,o,n,a;super.willUpdate(e),this.updateAriaLabel(),this.disabled=(n=(o=(r=this.controlDefinitions[this.control])===null||r===void 0?void 0:r.disabled)===null||o===void 0?void 0:o.call(r))!==null&&n!==void 0?n:!1,this.isVisible=!!(!((a=this.descriptor)===null||a===void 0)&&a.viewableInCurrentBrowser)&&this.descriptor.mimeType.startsWith("image/")}onI18nUpdate(e){super.onI18nUpdate(e),this.updateAriaLabel()}updateAriaLabel(){var e;this.ariaLabel=(e=this.controlDefinitions[this.control])===null||e===void 0?void 0:e.ariaLabel()}connectedCallback(){super.connectedCallback(),this.addI18nContext(vr,Np),this.updateComplete.then(()=>{var e;return(e=this.tooltip)===null||e===void 0?void 0:e.setupFor(this)}),this.addEventListener("click",this.modifyContent)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.modifyContent)}};Pe.elementDefinitions={"ft-icon":te,"ft-tooltip":se};Pe.styles=A`
410
- :host {
411
- display: inline-block;
412
- opacity: 1;
413
- filter: grayscale(0);
414
- transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
415
- cursor: pointer;
416
- }
417
-
418
- :host([disabled]) {
419
- opacity: 0.8;
420
- filter: grayscale(1);
421
- pointer-events: none;
422
- cursor: inherit;
423
- }
424
-
425
- ft-icon {
426
- display: inline-flex;
427
- align-items: center;
428
- justify-content: center;
429
- width: 40px;
430
- height: 40px;
431
- border-radius: 50%;
432
- background-color: ${S.colorPrimary};
433
- color: ${S.colorOnPrimary};
434
- cursor: pointer;
435
- transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
436
- }
437
-
438
- :host:hover, :host:focus-within {
439
- ft-icon {
440
- background-color: hsl(from ${S.colorPrimary} h s calc(l + 30));
441
- }
442
- }
443
- `;tr([f({type:Boolean,reflect:!0})],Pe.prototype,"disabled",void 0);tr([f({reflect:!0})],Pe.prototype,"tabindex",void 0);tr([f({reflect:!0})],Pe.prototype,"role",void 0);tr([f({reflect:!0,attribute:"aria-label"})],Pe.prototype,"ariaLabel",void 0);tr([f()],Pe.prototype,"control",void 0);tr([H({store:"viewer"})],Pe.prototype,"descriptor",void 0);tr([H({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],Pe.prototype,"zoom",void 0);tr([H({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],Pe.prototype,"rotation",void 0);tr([F("ft-tooltip")],Pe.prototype,"tooltip",void 0);var Hn=class extends ht(Pe){};var Lg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rr=class extends Fe{render(){return this.filename?v`
444
- <ft-typography variant="${oe.body1}" part="filename">
445
- ${this.filename}
446
- </ft-typography>
447
- `:L}};rr.elementDefinitions={"ft-typography":X};rr.styles=A`
448
- [part="filename"]::part(text) {
449
- margin: unset;
450
- }
451
- `;Lg([H({store:"viewer",selector:({descriptor:t})=>t?.filename})],rr.prototype,"filename",void 0);var zn=class extends ht(rr){};var Ig=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xr=class extends Fe{render(){return this.displayName?v`
452
- <ft-typography variant="${oe.title}" part="display-name" element="h2">
453
- ${this.displayName}
454
- </ft-typography>
455
- `:L}};Xr.elementDefinitions={"ft-typography":X};Xr.styles=A`
456
- [part="display-name"]::part(text) {
457
- margin: unset;
458
- }
459
- `;Ig([H({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Xr.prototype,"displayName",void 0);var Wn=class extends ht(Xr){};var Dp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},or=class extends Fe{render(){var e,r;return this.mimeType?v`
368
+ `}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 Me.file_format:this.resolvedIcon=(e=_[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Me.material:this.resolvedIcon=this.value||R;break;default:this.resolvedIcon=(r=Wr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};re.elementDefinitions={};re.styles=Uu;Ei([f()],re.prototype,"variant",void 0);Ei([f()],re.prototype,"value",void 0);Ei([f({reflect:!0,attribute:"aria-hidden"})],re.prototype,"ariaHidden",void 0);Ei([T()],re.prototype,"resolvedIcon",void 0);Ei([U("slot")],re.prototype,"slottedContent",void 0);var Bu={"ft-icon":re};Z(Bu);var Vu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tr=class extends Ze{render(){var e,r;return this.mimeType?x`
460
369
  <ft-icon part="icon"
461
- variant="${Ue.file_format}"
462
- value="${Vn(this.mimeType,ii((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
463
- `:L}};or.elementDefinitions={"ft-icon":te};Dp([H({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],or.prototype,"mimeType",void 0);Dp([H({store:"viewer",selector:({descriptor:t})=>t?.filename})],or.prototype,"filename",void 0);var jn=class extends ht(or){};var kg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ir=class extends Fe{render(){return this.documentTitle?v`
464
- <ft-typography variant="${oe.title}" part="title" element="h1">
370
+ variant="${Me.file_format}"
371
+ value="${Kn(this.mimeType,Ko((r=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
372
+ `:R}};tr.elementDefinitions={"ft-icon":re};Vu([q({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],tr.prototype,"mimeType",void 0);Vu([q({store:"viewer",selector:({descriptor:t})=>t?.filename})],tr.prototype,"filename",void 0);var Zn=class extends Mt(tr){};var ry=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rr=class extends Ze{render(){return this.documentTitle?x`
373
+ <ft-typography variant="${te.title}" part="title" element="h1">
465
374
  ${this.documentTitle}
466
375
  </ft-typography>
467
- `:L}};ir.elementDefinitions={"ft-typography":X};ir.styles=A`
376
+ `:R}};rr.elementDefinitions={"ft-typography":J};rr.styles=O`
468
377
  [part="title"]::part(text) {
469
378
  margin: unset;
470
379
  }
471
- `;kg([H({store:"viewer",selector:({document:t})=>t?.title})],ir.prototype,"documentTitle",void 0);var Gn=class extends ht(ir){};var Mp;(function(t){t.RATING="RATING"})(Mp||(Mp={}));var xr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(xr||(xr={}));var Sr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(Sr||(Sr={}));var Kn=class extends Ie{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}getAttachmentDownloadLink(e,r){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(r).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,r,o){return this.api.rateDocument(e,r,o)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,o){return this.api.sendDocumentFeedback(e,r,o)}isFeatureAccessible(e,{session:r}){switch(e){case Sr.FEEDBACK:return Oi(r??[],he.FEEDBACK_USER);case Sr.RATING:return Oi(r??[],he.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}clearConfiguration(){this.cache.clear("configuration")}fetchRelativesForDocument(e,r){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(o)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Zn=class t extends ko{static build(e){return new t(Sn(e),new Kn)}constructor(e,r,o){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,e.actions.origin(mr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:o}=this.store.getState();if(o){let[n]=await Promise.all([this.service.getDocument(o),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:yn.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let a=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(r=n.description)!==null&&r!==void 0?r:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:a}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:r}=this.store.getState();r&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){var e;return this.clear(),(e=this.service)===null||e===void 0||e.clearConfiguration(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}async fetchRelatives(){var e,r;let o=(e=this.store.getState().document)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(o!==void 0&&o.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(xr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>qa(s)==this.store.getState().documentId),a=(r=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new sr(o,n,this.metadataForSwitchToRelatives,a)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var r;this.store.getState().relatives==null&&await this.fetchRelatives();let o=sr.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return si(o)}};var $p=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zl=Symbol("ud-viewer-state-manager"),Be=fe(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var o;return(o=this.viewerStateManager)===null||o===void 0?void 0:o.service}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(o.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),o.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(o){this.clearStateManager(),this.viewerStateManager=o,this.addStore(o.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(o){o&&(o.registerComponent(this,this.neededUdvRequests),this.addStore(o.store,"viewer"))}unregisterFromUdvStateManager(o){o&&(o.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return $p([Li({context:zl,subscribe:!0}),I()],e.prototype,"viewerStateManager",void 0),$p([I({hasChanged:St})],e.prototype,"neededUdvRequests",void 0),e});var qn=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cr=class extends ve{constructor(){super(...arguments),this.viewerStateManager=Zn.build(this.id||ni(6))}render(){return v`
380
+ `;ry([q({store:"viewer",selector:({document:t})=>t?.title})],rr.prototype,"documentTitle",void 0);var qn=class extends Mt(rr){};var zu;(function(t){t.RATING="RATING"})(zu||(zu={}));var fr;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(fr||(fr={}));var hr;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(hr||(hr={}));var Yn=class extends Le{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}getAttachmentDownloadLink(e,r){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(r).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,r,i){return this.api.rateDocument(e,r,i)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,r,i){return this.api.sendDocumentFeedback(e,r,i)}isFeatureAccessible(e,{session:r}){switch(e){case hr.FEEDBACK:return yi(r??[],fe.FEEDBACK_USER);case hr.RATING:return yi(r??[],fe.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}clearConfiguration(){this.cache.clear("configuration")}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}};var Xn=class t extends So{static build(e){return new t(Tn(e),new Yn)}constructor(e,r,i){super(e),this.store=e,this.service=r,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,e.actions.origin(cr.UNSTRUCTURED_DOCUMENT)}async load(){var e,r;let{documentId:i}=this.store.getState();if(i){let[n]=await Promise.all([this.service.getDocument(i),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:On.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let a=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(r=n.description)!==null&&r!==void 0?r:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:a}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:r}=this.store.getState();r&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(r)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){var e;return this.clear(),(e=this.service)===null||e===void 0||e.clearConfiguration(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}async fetchRelatives(){var e,r;let i=(e=this.store.getState().document)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);if(i!==void 0&&i.length>0){let n=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i)),a=n?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(fr.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>ts(s)==this.store.getState().documentId),a=(r=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new ir(i,n,this.metadataForSwitchToRelatives,a)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var r;this.store.getState().relatives==null&&await this.fetchRelatives();let i=ir.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e);return Yo(i)}};var Hu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jl=Symbol("ud-viewer-state-manager"),qe=ue(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var i;return(i=this.viewerStateManager)===null||i===void 0?void 0:i.service}willUpdate(i){var n,a,s;super.willUpdate(i),i.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(i.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),i.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(a=i.get("neededUdvRequests"))!==null&&a!==void 0?a:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(i){this.clearStateManager(),this.viewerStateManager=i,this.addStore(i.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(i){i&&(i.registerComponent(this,this.neededUdvRequests),this.addStore(i.store,"viewer"))}unregisterFromUdvStateManager(i){i&&(i.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return Hu([Si({context:jl,subscribe:!0}),T()],e.prototype,"viewerStateManager",void 0),Hu([T({hasChanged:yt})],e.prototype,"neededUdvRequests",void 0),e});var Jn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mr=class extends be{constructor(){super(...arguments),this.viewerStateManager=Xn.build(this.id||Zo(6))}render(){return x`
472
381
  <slot></slot>
473
- `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Yr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=N.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){Mo===null||Mo===void 0||Mo.stopReloadDebouncer();let o=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);o?window.location.assign(o):window.location.reload()}}};qn([f()],Cr.prototype,"documentId",void 0);qn([Ti({context:zl})],Cr.prototype,"viewerStateManager",void 0);qn([ut({eventName:Ut.eventName})],Cr.prototype,"onAuthenticationChange",null);qn([ut({store:N.name,eventName:Zr.eventName})],Cr.prototype,"reactToUiLocaleChanged",null);var Yn=class extends Be(xe){};var Xn=class extends Be(Pe){};var Jn=class extends Be(rr){};var Qn=class extends Be(ir){};var ea=class extends Be(or){};var Fp={itemsGap:i.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var ta;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ta||(ta={}));var Up;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Up||(Up={}));var Pg=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jl=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Wl=Symbol("registerInterval"),Gl=fe(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Wl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Wl]):this.dispatchEvent(new jl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Wl,Pg([I()],r.prototype,"stateManager",void 0),r}),Bp=class extends Gl(ve){};var Kl=Xe.build("designedReaderAttachments"),Vp={download:"Download \u201C{0}\u201D"};var Hp=i.extend("--ft-ripple-color","",S.colorContent),ae={color:Hp,backgroundColor:i.extend("--ft-ripple-background-color","",Hp),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},zp=i.extend("--ft-ripple-color","",S.colorPrimary),Wp={color:zp,backgroundColor:i.extend("--ft-ripple-background-color","",zp)},jp=i.extend("--ft-ripple-color","",S.colorSecondary),Gp={color:jp,backgroundColor:i.extend("--ft-ripple-background-color","",jp)},Kp=A`
382
+ `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.initStateManager()}async initStateManager(){let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new zr(e))}connectedCallback(){super.connectedCallback(),this.addStore(N)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var r;if(!((r=N.getState().localesConfiguration)===null||r===void 0)&&r.uiLanguageSetsReaderLanguage){Oo===null||Oo===void 0||Oo.stopReloadDebouncer();let i=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);i?window.location.assign(i):window.location.reload()}}};Jn([f()],mr.prototype,"documentId",void 0);Jn([vi({context:jl})],mr.prototype,"viewerStateManager",void 0);Jn([st({eventName:$t.eventName})],mr.prototype,"onAuthenticationChange",null);Jn([st({store:N.name,eventName:Br.eventName})],mr.prototype,"reactToUiLocaleChanged",null);var Qn=class extends qe(xe){};var ea=class extends qe(er){};var ta=class extends qe(rr){};var ra=class extends qe(tr){};var pt=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?Mn:Eo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Kl=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-]+$/)}},Io=new Kl;var oy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ai=Symbol("i18nAttributes"),Wu=Symbol("i18nListAttributes"),_i=Symbol("i18nProperties"),oa=Symbol("i18nContexts"),Oi=Symbol("i18nUnsubs"),ut=ue(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(a){return a??this.useCustomMessageContexts?Mn:Eo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Io.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Ai])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[Wu])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[_i])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[oa].set(d,{isCustomContext:l}),this[Oi].has(d)||this[Oi].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[oa].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[oa].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Oi].forEach(a=>a()),this[Oi].clear()}}return e=oa,r=Oi,oy([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ia=class extends ut(F){},na=class extends ut(be){};var aa=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[_i]=(a=r[_i])!==null&&a!==void 0?a:new Map,r[_i].set(i,s)};var Gu=O`
383
+ `;var Ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},wt=class extends na{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":R:x`
384
+ <span class="ft-i18n">
385
+ ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
386
+ </span>
387
+ `}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:""})}};wt.elementDefinitions={};wt.styles=Gu;Ri([q()],wt.prototype,"editorMode",void 0);Ri([f()],wt.prototype,"context",void 0);Ri([f()],wt.prototype,"key",void 0);Ri([Pe([])],wt.prototype,"args",void 0);Ri([f()],wt.prototype,"defaultMessage",void 0);var ju={"ft-i18n":wt};Z(ju);var Ku={itemsGap:o.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-reader-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-reader-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-reader-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-reader-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-reader-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-reader-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var sa;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(sa||(sa={}));var Zu;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zu||(Zu={}));var iy=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ql=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Zl=Symbol("registerInterval"),Yl=ue(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Zl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Zl]):this.dispatchEvent(new ql)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Zl,iy([T()],r.prototype,"stateManager",void 0),r}),qu=class extends Yl(be){};var Xl=pt.build("designedReaderAttachments"),Yu={download:"Download \u201C{0}\u201D"};var Xu=o.extend("--ft-ripple-color","",S.colorContent),ne={color:Xu,backgroundColor:o.extend("--ft-ripple-background-color","",Xu),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")},Ju=o.extend("--ft-ripple-color","",S.colorPrimary),Qu={color:Ju,backgroundColor:o.extend("--ft-ripple-background-color","",Ju)},ef=o.extend("--ft-ripple-color","",S.colorSecondary),tf={color:ef,backgroundColor:o.extend("--ft-ripple-background-color","",ef)},rf=O`
474
388
  :host {
475
389
  display: contents;
476
390
  }
@@ -483,7 +397,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
483
397
 
484
398
  .ft-ripple:not(.ft-ripple--unbounded) {
485
399
  overflow: hidden;
486
- border-radius: ${ae.borderRadius};
400
+ border-radius: ${ne.borderRadius};
487
401
  }
488
402
 
489
403
  .ft-ripple .ft-ripple--background,
@@ -517,27 +431,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
517
431
  }
518
432
 
519
433
  .ft-ripple .ft-ripple--background {
520
- background-color: ${ae.backgroundColor};
434
+ background-color: ${ne.backgroundColor};
521
435
  }
522
436
 
523
437
  .ft-ripple .ft-ripple--effect {
524
- background-color: ${ae.color};
438
+ background-color: ${ne.color};
525
439
  }
526
440
 
527
441
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
528
- background-color: ${Gp.backgroundColor};
442
+ background-color: ${tf.backgroundColor};
529
443
  }
530
444
 
531
445
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
532
- background-color: ${Gp.color};
446
+ background-color: ${tf.color};
533
447
  }
534
448
 
535
449
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
536
- background-color: ${Wp.backgroundColor};
450
+ background-color: ${Qu.backgroundColor};
537
451
  }
538
452
 
539
453
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
540
- background-color: ${Wp.color};
454
+ background-color: ${Qu.color};
541
455
  }
542
456
 
543
457
  .ft-ripple .ft-ripple--background {
@@ -567,35 +481,35 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
567
481
  }
568
482
 
569
483
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
570
- opacity: ${ae.opacityContentOnSurfaceHover};
484
+ opacity: ${ne.opacityContentOnSurfaceHover};
571
485
  }
572
486
 
573
487
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
574
- opacity: ${ae.opacityContentOnSurfaceSelected};
488
+ opacity: ${ne.opacityContentOnSurfaceSelected};
575
489
  }
576
490
 
577
491
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
578
- opacity: ${ae.opacityContentOnSurfaceFocused};
492
+ opacity: ${ne.opacityContentOnSurfaceFocused};
579
493
  }
580
494
 
581
495
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
582
- opacity: ${ae.opacityContentOnSurfacePressed};
496
+ opacity: ${ne.opacityContentOnSurfacePressed};
583
497
  transform: translate(-50%, -50%) scale(1);
584
498
  }
585
- `;var et=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends ${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 Me(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 Me(10),this.moveRipple=e=>{var r,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return v`
499
+ `;var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},K=class extends F{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 Ne(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 Ne(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return x`
586
500
  <style>
587
501
  .ft-ripple .ft-ripple--effect {
588
502
  left: ${this.originX}px;
589
503
  top: ${this.originY}px;
590
504
  }
591
505
  </style>
592
- <div class="${ne(e)}">
506
+ <div class="${oe(e)}">
593
507
  <div class="ft-ripple--background"></div>
594
508
  <div class="ft-ripple--effect"></div>
595
509
  </div>
596
- `}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,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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 o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}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)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Kp;et([f({type:Boolean})],K.prototype,"primary",void 0);et([f({type:Boolean})],K.prototype,"secondary",void 0);et([f({type:Boolean})],K.prototype,"unbounded",void 0);et([f({type:Boolean})],K.prototype,"activated",void 0);et([f({type:Boolean})],K.prototype,"selected",void 0);et([f({type:Boolean})],K.prototype,"disabled",void 0);et([I()],K.prototype,"hovered",void 0);et([I()],K.prototype,"focused",void 0);et([I()],K.prototype,"pressed",void 0);et([I()],K.prototype,"rippling",void 0);et([I()],K.prototype,"originX",void 0);et([I()],K.prototype,"originY",void 0);et([F(".ft-ripple")],K.prototype,"ripple",void 0);et([F(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var Zp={"ft-ripple":K};Z(Zp);var ra=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ng={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},_t=class extends Qu(ve,Ng){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return v`
597
- <div part="container" class="${ne(e)}">
598
- ${qe(this.attachments,r=>r.id,r=>{var o;let n=Vn(r.mimeType,ii(r.file.split(".")));return v`
510
+ `}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(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=rf;Ye([f({type:Boolean})],K.prototype,"primary",void 0);Ye([f({type:Boolean})],K.prototype,"secondary",void 0);Ye([f({type:Boolean})],K.prototype,"unbounded",void 0);Ye([f({type:Boolean})],K.prototype,"activated",void 0);Ye([f({type:Boolean})],K.prototype,"selected",void 0);Ye([f({type:Boolean})],K.prototype,"disabled",void 0);Ye([T()],K.prototype,"hovered",void 0);Ye([T()],K.prototype,"focused",void 0);Ye([T()],K.prototype,"pressed",void 0);Ye([T()],K.prototype,"rippling",void 0);Ye([T()],K.prototype,"originX",void 0);Ye([T()],K.prototype,"originY",void 0);Ye([U(".ft-ripple")],K.prototype,"ripple",void 0);Ye([U(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);var of={"ft-ripple":K};Z(of);var la=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ny={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Ct=class extends pu(be,ny){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return x`
511
+ <div part="container" class="${oe(e)}">
512
+ ${je(this.attachments,r=>r.id,r=>{var i;let n=Kn(r.mimeType,Ko(r.file.split(".")));return x`
599
513
  <div part="attachment">
600
514
  <a part="viewer-link" href="${this.getAttachmentViewerLink(r)}"
601
515
  aria-label="${this.getAttachmentAriaLabel(r)}"
@@ -604,10 +518,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
604
518
  <ft-icon part="file-format-icon"
605
519
  variant="file-format"
606
520
  value="${n}"
607
- style="color: ${(o=Vl[n])!==null&&o!==void 0?o:Vl[T.UNKNOWN]}"></ft-icon>
608
- <ft-typography part="name" variant="${oe.body2}">${r.name}</ft-typography>
521
+ style="color: ${(i=Gl[n])!==null&&i!==void 0?i:Gl[_.UNKNOWN]}"></ft-icon>
522
+ <ft-typography part="name" variant="${te.body2}">${r.name}</ft-typography>
609
523
  </a>
610
- ${r.externalLink?L:v`
524
+ ${r.externalLink?R:x`
611
525
  <a part="download-link"
612
526
  target="_blank"
613
527
  href="${this.getAttachmentDownloadLink(r)}"
@@ -620,7 +534,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
620
534
  </div>
621
535
  `})}
622
536
  </div>
623
- `}return L}getAttachmentAriaLabel(e){var r;let o=e.name,n=e.file;if(o===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return o+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};_t.elementDefinitions={"ft-icon":te,"ft-ripple":K,"ft-typography":X};ra([f({type:Boolean})],_t.prototype,"hideFileFormatIcon",void 0);ra([f({type:Boolean})],_t.prototype,"hideFilename",void 0);ra([f({type:Boolean})],_t.prototype,"hideDownloadIcon",void 0);ra([I()],_t.prototype,"attachments",void 0);function oa(t){return A`
537
+ `}return R}getAttachmentAriaLabel(e){var r;let i=e.name,n=e.file;if(i===n)return n;let a=(r=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&r!==void 0?r:"";return i+" "+a}canRender(){var e,r;return((r=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Ct.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":J};la([f({type:Boolean})],Ct.prototype,"hideFileFormatIcon",void 0);la([f({type:Boolean})],Ct.prototype,"hideFilename",void 0);la([f({type:Boolean})],Ct.prototype,"hideDownloadIcon",void 0);la([T()],Ct.prototype,"attachments",void 0);function ca(t){return O`
624
538
  [part="container"] {
625
539
  display: flex;
626
540
  flex-direction: column;
@@ -664,16 +578,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
664
578
  }
665
579
 
666
580
  [part~="ripple"] {
667
- ${R(ae.color,t.itemHoverBackgroundColor)};
668
- ${R(ae.borderRadius,t.itemBorderRadius)};
581
+ ${A(ne.color,t.itemHoverBackgroundColor)};
582
+ ${A(ne.borderRadius,t.itemBorderRadius)};
669
583
  }
670
584
 
671
585
  [part="file-format-icon"] {
672
- ${R(we.size,t.fileFormatIconSize)};
586
+ ${A(we.size,t.fileFormatIconSize)};
673
587
  }
674
588
 
675
589
  [part="download-icon"] {
676
- ${R(we.size,t.downloadIconSize)};
590
+ ${A(we.size,t.downloadIconSize)};
677
591
  }
678
592
 
679
593
  .hide-file-format-icon [part="file-format-icon"] {
@@ -687,7 +601,53 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
687
601
  .hide-download-icon [part="download-link"] {
688
602
  display: none;
689
603
  }
690
- `}var qp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jr=class extends Gl(Je(_t)){constructor(){super(),this.addI18nContext(Kl,Vp)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Kl.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Jr.styles=oa(Fp);qp([H({store:"reader"})],Jr.prototype,"map",void 0);qp([ut({eventName:ta.mapAttachmentsUpdate})],Jr.prototype,"updateAttachments",null);var Yp={"ft-reader-attachments":Jr};Z(Yp);var Xp={itemsGap:i.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:i.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:i.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:i.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:i.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:i.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:i.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:i.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:i.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:i.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Ho=Xe.build("designedUdViewer"),Jp={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var Qp=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qr=class extends Be(Je(_t)){constructor(){super(),this.addI18nContext(Ho,Jp)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,o;return(o=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&o!==void 0?o:""}getAttachmentDownloadLinkAriaLabel(e){return Ho.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,o;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((o=e.viewerUrl)!==null&&o!==void 0?o:"")}};Qr.styles=oa(Xp);Qp([H({store:"viewer"})],Qr.prototype,"document",void 0);Qp([ut({eventName:xr.udAttachmentsUpdate})],Qr.prototype,"updateAttachments",null);var ia=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},na=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var eo={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},ef=A`
604
+ `}var nf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gr=class extends Yl(ut(Ct)){constructor(){super(),this.addI18nContext(Xl,Yu)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(e){var r,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return Xl.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};Gr.styles=ca(Ku);nf([q({store:"reader"})],Gr.prototype,"map",void 0);nf([st({eventName:sa.mapAttachmentsUpdate})],Gr.prototype,"updateAttachments",null);var af={"ft-reader-attachments":Gr};Z(af);var sf={itemsGap:o.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:o.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:o.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:o.extend("--ft-ud-viewer-attachments-item-border-color","",S.colorOutline),itemBorderRadius:o.extend("--ft-ud-viewer-attachments-item-border-radius","",S.borderRadiusS),itemBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-background-color","",S.colorSurface),itemTextColor:o.extend("--ft-ud-viewer-attachments-item-text-color","",S.colorOnSurfaceMedium),itemHoverBackgroundColor:o.extend("--ft-ud-viewer-attachments-item-hover-background-color","",S.colorPrimary),itemHoverTextColor:o.extend("--ft-ud-viewer-attachments-item-hover-text-color","",S.colorOnSurfaceHigh),fileFormatIconSize:o.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:o.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Lo=pt.build("designedUdViewer"),lf={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var cf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jr=class extends qe(ut(Ct)){constructor(){super(),this.addI18nContext(Lo,lf)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var r,i;return(i=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,e.id))!==null&&i!==void 0?i:""}getAttachmentDownloadLinkAriaLabel(e){return Lo.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var r,i;return e.externalLink?e.viewerUrl:(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((i=e.viewerUrl)!==null&&i!==void 0?i:"")}};jr.styles=ca(sf);cf([q({store:"viewer"})],jr.prototype,"document",void 0);cf([st({eventName:fr.udAttachmentsUpdate})],jr.prototype,"updateAttachments",null);var da=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},pa=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Ti={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","",S.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},df=O`
605
+ .ft-tooltip--container {
606
+ display: block;
607
+ }
608
+
609
+ .ft-tooltip--inline {
610
+ display: inline-block;
611
+ max-width: 100%;
612
+ }
613
+
614
+ .ft-tooltip {
615
+ inset: 0;
616
+ margin: 0;
617
+ border: none;
618
+ background: transparent;
619
+ box-sizing: border-box;
620
+ overflow: hidden;
621
+ width: max-content;
622
+ max-width: ${Ti.maxWidth};
623
+ text-align: center;
624
+ padding: ${Ti.distance};
625
+ }
626
+
627
+ .ft-tooltip--content {
628
+ padding: 4px 8px;
629
+ border-radius: ${Ti.borderRadiusS};
630
+ background-color: ${Ti.backgroundColor};
631
+ color: ${Ti.color};
632
+ position: relative;
633
+ word-break: break-word;
634
+ }
635
+ `;var Jl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Io.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},ay=new Jl;var pf=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:yt,converter:Io,...e}),r[Ai]=(n=r[Ai])!==null&&n!==void 0?n:new Map,r[Ai].set(i,t??{})};var Et=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends ia{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 Ne,this.revealDebouncer=new Ne,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 x`
636
+ <div part="container"
637
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
638
+ <slot part="slot"></slot>
639
+ <div part="tooltip" role="tooltip" inert
640
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
641
+ popover="manual">
642
+ <div part="tooltip-content" class="ft-tooltip--content">
643
+ <slot name="text"></slot>
644
+ <ft-typography variant="${te.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
645
+ ${(r=this.text)===null||r===void 0?void 0:r.message}
646
+ </ft-typography>
647
+ </div>
648
+ </div>
649
+ </div>
650
+ `}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&&ii(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 ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return jo(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};me.elementDefinitions={"ft-typography":J};me.styles=df;Et([pf()],me.prototype,"text",void 0);Et([f({type:Boolean})],me.prototype,"manual",void 0);Et([f({type:Boolean})],me.prototype,"inline",void 0);Et([gt()],me.prototype,"delay",void 0);Et([f()],me.prototype,"position",void 0);Et([Pe([])],me.prototype,"ignoreMatchingElements",void 0);Et([Ho()],me.prototype,"slotNodes",void 0);Et([U(".ft-tooltip--container")],me.prototype,"container",void 0);Et([U(".ft-tooltip")],me.prototype,"tooltip",void 0);Et([U(".ft-tooltip--content")],me.prototype,"tooltipContent",void 0);Et([T()],me.prototype,"visible",void 0);var uf={"ft-tooltip":me};Z(uf);var Kr={color:o.extend("--ft-loader-color","",S.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},ff=O`
691
651
  :host {
692
652
  line-height: 0;
693
653
  }
@@ -696,8 +656,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
696
656
  display: inline-block;
697
657
  position: relative;
698
658
 
699
- width: ${eo.size};
700
- height: ${eo.size};
659
+ width: ${Kr.size};
660
+ height: ${Kr.size};
701
661
  }
702
662
 
703
663
  .ft-loader div {
@@ -706,7 +666,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
706
666
  width: 25%;
707
667
  height: 25%;
708
668
  border-radius: 50%;
709
- background: ${eo.color};
669
+ background: ${Kr.color};
710
670
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
711
671
  }
712
672
 
@@ -753,17 +713,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
753
713
  transform: translate(0, 0);
754
714
  }
755
715
  100% {
756
- transform: translate(calc(0.35 * ${eo.size}), 0);
716
+ transform: translate(calc(0.35 * ${Kr.size}), 0);
757
717
  }
758
718
  }
759
- `;var to=class extends ${render(){return v`
719
+ `;var Zr=class extends F{render(){return x`
760
720
  <div class="ft-loader">
761
721
  <div></div>
762
722
  <div></div>
763
723
  <div></div>
764
724
  <div></div>
765
725
  </div>
766
- `}};to.styles=ef;var tf={"ft-loader":to};Z(tf);var nr=t=>t??L;var rf=i.extend("--ft-button-color","",S.colorPrimary),re={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:rf,fontSize:i.extend("--ft-button-font-size","",je.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",rf),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},of=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Zl={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:of,rippleColor:i.extend("--ft-button-primary-ripple-color","",of)},Tt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},nf=A`
726
+ `}};Zr.styles=ff;var hf={"ft-loader":Zr};Z(hf);var Ot=t=>t??R;var mf=o.extend("--ft-button-color","",S.colorPrimary),ee={backgroundColor:o.extend("--ft-button-background-color","",S.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",S.borderRadiusL),color:mf,fontSize:o.extend("--ft-button-font-size","",ze.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",mf),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(S.colorOpacityDisabled,"Design system")},gf=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",S.colorOnPrimary)),Ql={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",S.colorPrimary)),color:gf,rippleColor:o.extend("--ft-button-primary-ripple-color","",gf)},Ut={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",S.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")},yf=O`
767
727
  :host {
768
728
  display: inline-block;
769
729
  max-width: 100%;
@@ -774,7 +734,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
774
734
  box-shadow: 0px 0px 0px transparent;
775
735
  border: 0px solid transparent;
776
736
  text-shadow: 0px 0px 0px transparent;
777
- font-size: ${re.fontSize};
737
+ font-size: ${ee.fontSize};
778
738
  text-decoration: none;
779
739
  }
780
740
 
@@ -808,32 +768,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
808
768
  border: none;
809
769
  pointer-events: auto;
810
770
 
811
- --button-internal-line-height: max(calc(${re.fontSize} + 2px), ${re.iconSize});
812
- --button-internal-color: ${re.color};
813
- ${R(we.size,re.iconSize)};
814
- ${R(ae.color,re.rippleColor)};
815
- ${R(ae.borderRadius,re.borderRadius)};
771
+ --button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
772
+ --button-internal-color: ${ee.color};
773
+ ${A(we.size,ee.iconSize)};
774
+ ${A(ne.color,ee.rippleColor)};
775
+ ${A(ne.borderRadius,ee.borderRadius)};
816
776
 
817
- border-radius: ${re.borderRadius};
818
- padding: ${re.verticalPadding} ${re.horizontalPadding};
819
- background-color: ${re.backgroundColor};
777
+ border-radius: ${ee.borderRadius};
778
+ padding: ${ee.verticalPadding} ${ee.horizontalPadding};
779
+ background-color: ${ee.backgroundColor};
820
780
  color: var(--button-internal-color);
821
781
  }
822
782
 
823
783
  .ft-button.ft-button--outlined {
824
784
  border: 1px solid var(--button-internal-color);
825
- padding: calc(${re.verticalPadding} - 1px) calc(${re.horizontalPadding} - 1px);
785
+ padding: calc(${ee.verticalPadding} - 1px) calc(${ee.horizontalPadding} - 1px);
826
786
  }
827
787
 
828
788
  .ft-button.ft-button--dense {
829
- padding: ${Tt.verticalPadding} ${Tt.horizontalPadding};
830
- border-radius: ${Tt.borderRadius};
831
- gap: ${Tt.iconPadding};
832
- ${R(ae.borderRadius,Tt.borderRadius)};
789
+ padding: ${Ut.verticalPadding} ${Ut.horizontalPadding};
790
+ border-radius: ${Ut.borderRadius};
791
+ ${A(ne.borderRadius,Ut.borderRadius)};
833
792
  }
834
793
 
835
794
  .ft-button.ft-button--dense.ft-button--outlined {
836
- padding: calc(${Tt.verticalPadding} - 1px) calc(${Tt.horizontalPadding} - 1px);
795
+ padding: calc(${Ut.verticalPadding} - 1px) calc(${Ut.horizontalPadding} - 1px);
837
796
  }
838
797
 
839
798
  .ft-button:not([disabled]):hover {
@@ -841,22 +800,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
841
800
  }
842
801
 
843
802
  .ft-button--round {
844
- border-radius: calc(var(--button-internal-line-height) / 2 + ${re.verticalPadding});
803
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ee.verticalPadding});
845
804
  }
846
805
 
847
806
  .ft-button--round.ft-button--dense {
848
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Tt.verticalPadding});
807
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ut.verticalPadding});
849
808
  }
850
809
 
851
810
  .ft-button[disabled] {
852
811
  filter: grayscale(1);
853
- opacity: ${re.opacityDisabled};
812
+ opacity: ${ee.opacityDisabled};
854
813
  }
855
814
 
856
815
  .ft-button.ft-button--primary {
857
- background-color: ${Zl.backgroundColor};
858
- --button-internal-color: ${Zl.color};
859
- ${R(ae.color,Zl.rippleColor)};
816
+ background-color: ${Ql.backgroundColor};
817
+ --button-internal-color: ${Ql.color};
818
+ ${A(ne.color,Ql.rippleColor)};
860
819
  }
861
820
 
862
821
  .ft-button--label {
@@ -865,17 +824,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
865
824
  white-space: nowrap;
866
825
  text-overflow: ellipsis;
867
826
  display: block;
868
- margin: 0 ${re.iconPadding};
869
- ${R(je.fontSize,"1em")};
870
- ${R(je.lineHeight,"var(--button-internal-line-height)")};
827
+ margin: 0 ${ee.iconPadding};
828
+ ${A(ze.fontSize,"1em")};
829
+ ${A(ze.lineHeight,"var(--button-internal-line-height)")};
871
830
  }
872
831
 
873
832
  .ft-button--dense .ft-button--label {
874
- margin: 0 ${Tt.iconPadding};
833
+ margin: 0 ${Ut.iconPadding};
875
834
  }
876
835
 
877
- .ft-button--label[hidden] {
878
- display: none;
836
+ .ft-button--label.ft-button--label-no-text {
837
+ margin: 0;
879
838
  }
880
839
 
881
840
  [part="icon"] {
@@ -884,13 +843,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
884
843
  }
885
844
 
886
845
  .ft-button--label[hidden] + [part="icon"] {
887
- margin: 0 calc(${re.horizontalPadding} * -1);
888
- padding: 0 ${re.verticalPadding};
846
+ margin: 0 calc(${ee.horizontalPadding} * -1);
847
+ padding: 0 ${ee.verticalPadding};
889
848
  }
890
849
 
891
850
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
892
- margin: 0 calc(${Tt.horizontalPadding} * -1);
893
- padding: 0 ${Tt.verticalPadding};
851
+ margin: 0 calc(${Ut.horizontalPadding} * -1);
852
+ padding: 0 ${Ut.verticalPadding};
894
853
  }
895
854
 
896
855
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -898,52 +857,51 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
898
857
  }
899
858
 
900
859
  ft-loader {
901
- ${R(eo.size,re.iconSize)};
902
- ${R(eo.color,"var(--button-internal-color)")};
860
+ ${A(Kr.size,ee.iconSize)};
861
+ ${A(Kr.color,"var(--button-internal-color)")};
903
862
  }
904
- `;var ge=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J=class extends zr($){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}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.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!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,o;let n=v`
863
+ `;var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},W=class t extends Dr(F){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}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.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":Ur,"ft-button--label-no-text":!this.hasTextContent},a=x`
905
864
  <ft-ripple part="ripple"
906
865
  ?disabled=${this.isDisabled()}
907
866
  ?activated=${this.activated}
908
867
  ></ft-ripple>
909
868
  <ft-typography part="label"
910
- variant="${oe.button}"
869
+ variant="${te.button}"
911
870
  element="span"
912
- class="ft-button--label ${Kr?"ft-safari-ellipsis-fix":""}"
913
- ?hidden=${!this.hasTextContent()}>
914
- <slot @slotchange=${this.onSlotchange}></slot>
871
+ class="${oe(n)}">
872
+ <slot></slot>
915
873
  </ft-typography>
916
874
  ${this.resolveIcon()}
917
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?v`
918
- <a href="${a}"
875
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?x`
876
+ <a href="${s}"
919
877
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
920
878
  part="button"
921
- class="${ne(this.buttonClasses)}"
922
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
879
+ class="${oe(this.buttonClasses)}"
880
+ aria-label="${Ot((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
923
881
  ?disabled=${this.isDisabled()}>
924
- ${n}
882
+ ${a}
925
883
  </a>
926
- `:v`
884
+ `:x`
927
885
  <button part="button"
928
- class="${ne(this.buttonClasses)}"
929
- aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
930
- aria-haspopup="${nr(this.ariaHasPopup)}"
931
- aria-pressed="${nr(this.ariaPressed)}"
886
+ class="${oe(this.buttonClasses)}"
887
+ aria-label="${Ot((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
888
+ aria-haspopup="${Ot(this.ariaHasPopup)}"
889
+ aria-pressed="${Ot(this.ariaPressed)}"
932
890
  ?disabled=${this.isDisabled()}>
933
- ${n}
891
+ ${a}
934
892
  </button>
935
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?v`
893
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?x`
936
894
  <ft-tooltip part="tooltip"
937
- text="${this.getLabel()}"
895
+ text="${this.label}"
938
896
  position="${this.tooltipPosition}">
939
897
  ${e}
940
898
  </ft-tooltip>
941
- `:e}resolveIcon(){return this.loading?v`
942
- <ft-loader part="loader icon"></ft-loader> `:this.icon?v`
899
+ `:e}resolveIcon(){return this.loading?x`
900
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?x`
943
901
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
944
- `:v`
902
+ `:x`
945
903
  <slot part="icon" name="icon"></slot>
946
- `}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 o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return co(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};J.elementDefinitions={"ft-ripple":K,"ft-tooltip":se,"ft-icon":te,"ft-loader":to,"ft-typography":X};J.styles=[bi,nf,qt];ge([f({type:Boolean})],J.prototype,"primary",void 0);ge([f({type:Boolean})],J.prototype,"outlined",void 0);ge([f({type:Boolean})],J.prototype,"dense",void 0);ge([f({type:Boolean})],J.prototype,"round",void 0);ge([f({type:Boolean})],J.prototype,"disabled",void 0);ge([f()],J.prototype,"icon",void 0);ge([f()],J.prototype,"iconVariant",void 0);ge([f({type:Boolean})],J.prototype,"trailingIcon",void 0);ge([f()],J.prototype,"label",void 0);ge([f()],J.prototype,"type",void 0);ge([f()],J.prototype,"href",void 0);ge([f()],J.prototype,"target",void 0);ge([f({type:Boolean})],J.prototype,"loading",void 0);ge([f({attribute:"aria-label"})],J.prototype,"ariaLabel",void 0);ge([f()],J.prototype,"ariaHasPopup",void 0);ge([f({attribute:"aria-pressed"})],J.prototype,"ariaPressed",void 0);ge([f()],J.prototype,"tooltipPosition",void 0);ge([f({type:Boolean})],J.prototype,"hideTooltip",void 0);ge([f({type:Boolean})],J.prototype,"forceTooltip",void 0);ge([f({type:Boolean})],J.prototype,"activated",void 0);ge([F(".ft-button")],J.prototype,"button",void 0);ge([F(".ft-button--label slot")],J.prototype,"slottedContent",void 0);ge([F("[part=tooltip]")],J.prototype,"tooltip",void 0);var af={"ft-button":J};Z(af);var be={textColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",je.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",S.colorPrimary)};var Ae={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},sf=A`
904
+ `}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)}};W.elementDefinitions={"ft-ripple":K,"ft-tooltip":me,"ft-icon":re,"ft-loader":Zr,"ft-typography":J};W.styles=[si,yf,Kt];W.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:W.labelsObserver.unobserve(e.target)}});ae([f({type:Boolean})],W.prototype,"primary",void 0);ae([f({type:Boolean})],W.prototype,"outlined",void 0);ae([f({type:Boolean})],W.prototype,"dense",void 0);ae([f({type:Boolean})],W.prototype,"round",void 0);ae([f({type:Boolean})],W.prototype,"disabled",void 0);ae([f()],W.prototype,"icon",void 0);ae([f()],W.prototype,"iconVariant",void 0);ae([f({type:Boolean})],W.prototype,"trailingIcon",void 0);ae([f()],W.prototype,"label",void 0);ae([f()],W.prototype,"type",void 0);ae([f()],W.prototype,"href",void 0);ae([f()],W.prototype,"target",void 0);ae([f({type:Boolean})],W.prototype,"loading",void 0);ae([f({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);ae([f()],W.prototype,"ariaHasPopup",void 0);ae([f({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);ae([f()],W.prototype,"tooltipPosition",void 0);ae([f({type:Boolean})],W.prototype,"hideTooltip",void 0);ae([f({type:Boolean})],W.prototype,"forceTooltip",void 0);ae([f({type:Boolean})],W.prototype,"activated",void 0);ae([U(".ft-button")],W.prototype,"button",void 0);ae([U(".ft-button--label")],W.prototype,"labelContainer",void 0);ae([T()],W.prototype,"hasTextContent",void 0);ae([U(".ft-button--label slot")],W.prototype,"slottedContent",void 0);ae([U("[part=tooltip]")],W.prototype,"tooltip",void 0);var bf={"ft-button":W};Z(bf);var ye={textColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",S.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",S.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",S.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",S.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",S.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",ze.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",S.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",S.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",S.colorPrimary)};var Oe={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",S.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",S.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},xf=O`
947
905
  .ft-switch-option {
948
906
  position: relative;
949
907
  display: inline-block;
@@ -957,20 +915,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
957
915
  }
958
916
 
959
917
  .ft-switch-option--content {
960
- --switch-option-internal-line-height: calc(${be.fontSize} + 2px);
961
- --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${be.iconSize});
918
+ --switch-option-internal-line-height: calc(${ye.fontSize} + 2px);
919
+ --switch-option-internal-content-height: max(var(--switch-option-internal-line-height), ${ye.iconSize});
962
920
 
963
921
  border-style: solid;
964
- border-color: ${be.borderColor};
965
- border-width: ${Ae.borderWidthVertical} ${Ae.borderWidthRight} ${Ae.borderWidthVertical} ${Ae.borderWidthLeft};
966
- border-radius: ${Ae.borderRadiusLeft} ${Ae.borderRadiusRight} ${Ae.borderRadiusRight} ${Ae.borderRadiusLeft};
922
+ border-color: ${ye.borderColor};
923
+ border-width: ${Oe.borderWidthVertical} ${Oe.borderWidthRight} ${Oe.borderWidthVertical} ${Oe.borderWidthLeft};
924
+ border-radius: ${Oe.borderRadiusLeft} ${Oe.borderRadiusRight} ${Oe.borderRadiusRight} ${Oe.borderRadiusLeft};
967
925
  display: flex;
968
926
  align-items: center;
969
927
  justify-content: center;
970
928
  overflow: hidden;
971
- ${R(we.size,be.iconSize)};
929
+ ${A(we.size,ye.iconSize)};
972
930
  padding: var(--switch-internal-vertical-padding, 6px) var(--switch-internal-horizontal-padding, 8px);
973
- background-color: ${be.backgroundColor};
931
+ background-color: ${ye.backgroundColor};
974
932
  -webkit-mask-image: radial-gradient(white, black);
975
933
  }
976
934
 
@@ -979,8 +937,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
979
937
  }
980
938
 
981
939
  .ft-switch-option--selected .ft-switch-option--content:before {
982
- background-color: ${be.selectedBackgroundColor};
983
- border-radius: ${Ae.borderRadiusLeft} ${Ae.borderRadiusRight} ${Ae.borderRadiusRight} ${Ae.borderRadiusLeft};
940
+ background-color: ${ye.selectedBackgroundColor};
941
+ border-radius: ${Oe.borderRadiusLeft} ${Oe.borderRadiusRight} ${Oe.borderRadiusRight} ${Oe.borderRadiusLeft};
984
942
  position: absolute;
985
943
  inset: 0;
986
944
  content: "";
@@ -989,22 +947,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
989
947
  }
990
948
 
991
949
  .ft-switch-option--label {
992
- color: ${be.textColor};
950
+ color: ${ye.textColor};
993
951
  overflow: hidden;
994
952
  white-space: nowrap;
995
953
  text-overflow: ellipsis;
996
954
  display: block;
997
955
  margin: 0 8px;
998
- ${R(je.fontSize,be.fontSize)};
999
- ${R(je.lineHeight,"var(--switch-option-internal-content-height)")}
956
+ ${A(ze.fontSize,ye.fontSize)};
957
+ ${A(ze.lineHeight,"var(--switch-option-internal-content-height)")}
1000
958
  }
1001
959
 
1002
960
  .ft-switch-option--selected .ft-switch-option--label {
1003
- color: ${be.selectedTextColor};
961
+ color: ${ye.selectedTextColor};
1004
962
  }
1005
963
 
1006
964
  .ft-switch-option--focused {
1007
- outline: 1px solid ${be.outlineColor};
965
+ outline: 1px solid ${ye.outlineColor};
1008
966
  }
1009
967
 
1010
968
  .ft-switch-option--label[hidden] {
@@ -1012,7 +970,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1012
970
  }
1013
971
 
1014
972
  .ft-switch-option--ripple {
1015
- ${R(ae.color,be.rippleColor)};
973
+ ${A(ne.color,ye.rippleColor)};
1016
974
  }
1017
975
 
1018
976
  ft-icon, ft-ripple, ft-typography {
@@ -1025,20 +983,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1025
983
 
1026
984
  ft-icon {
1027
985
  flex-shrink: 0;
1028
- color: ${be.iconColor};
986
+ color: ${ye.iconColor};
1029
987
  }
1030
988
 
1031
989
  .ft-switch-option--selected ft-icon {
1032
- color: ${be.selectedTextColor};
990
+ color: ${ye.selectedTextColor};
1033
991
  }
1034
- `;var Lt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ql=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Yl=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},Se=class extends ${constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new Yl(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(v`
1035
- <label part="label" for="input" class="${ne(e)}"
992
+ `;var At=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ec=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},tc=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ve=class extends F{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new tc(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(x`
993
+ <label part="label" for="input" class="${oe(e)}"
1036
994
  @click=${this.onChange}>
1037
995
  <div class="ft-switch-option--content">
1038
996
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
1039
997
  <ft-typography part="text"
1040
998
  variant="button"
1041
- class="ft-switch-option--label ${Kr?"ft-safari-ellipsis-fix":""}"
999
+ class="ft-switch-option--label ${Ur?"ft-safari-ellipsis-fix":""}"
1042
1000
  ?hidden=${!this.hasTextContent()}>
1043
1001
  <slot @slotchange=${this.onSlotchange}></slot>
1044
1002
  </ft-typography>
@@ -1047,29 +1005,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1047
1005
  </label>
1048
1006
  <input id="input" type="radio" class="ft-switch-option--input"
1049
1007
  .checked=${this.selected}>
1050
- `)}addTooltip(e){return this.getLabel().trim().length===0?e:v`
1008
+ `)}addTooltip(e){return this.getLabel().trim().length===0?e:x`
1051
1009
  <ft-tooltip part="tooltip"
1052
1010
  text="${this.getLabel()}"
1053
1011
  position="${this.tooltipPosition}">
1054
1012
  ${e}
1055
1013
  </ft-tooltip>
1056
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ql(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?v`
1014
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ec(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?x`
1057
1015
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1058
- `:L}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};Se.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-tooltip":se,"ft-icon":te};Se.styles=[bi,sf];Lt([f()],Se.prototype,"value",void 0);Lt([f()],Se.prototype,"icon",void 0);Lt([f()],Se.prototype,"iconVariant",void 0);Lt([f()],Se.prototype,"label",void 0);Lt([f()],Se.prototype,"tooltipPosition",void 0);Lt([f({type:Boolean,reflect:!0})],Se.prototype,"selected",void 0);Lt([f({type:Boolean})],Se.prototype,"trailingIcon",void 0);Lt([f({type:Boolean})],Se.prototype,"unselectable",void 0);Lt([F(".ft-switch-option--content slot")],Se.prototype,"slottedContent",void 0);Lt([F(".ft-switch-option--input")],Se.prototype,"input",void 0);Lt([I()],Se.prototype,"isFocused",void 0);var ro=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xl=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ge=class extends ${constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return v`
1059
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${ne(e)}" role="radiogroup" aria-label="${this.label}">
1016
+ `:R}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:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ve.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-tooltip":me,"ft-icon":re};ve.styles=[si,xf];At([f()],ve.prototype,"value",void 0);At([f()],ve.prototype,"icon",void 0);At([f()],ve.prototype,"iconVariant",void 0);At([f()],ve.prototype,"label",void 0);At([f()],ve.prototype,"tooltipPosition",void 0);At([f({type:Boolean,reflect:!0})],ve.prototype,"selected",void 0);At([f({type:Boolean})],ve.prototype,"trailingIcon",void 0);At([f({type:Boolean})],ve.prototype,"unselectable",void 0);At([U(".ft-switch-option--content slot")],ve.prototype,"slottedContent",void 0);At([U(".ft-switch-option--input")],ve.prototype,"input",void 0);At([T()],ve.prototype,"isFocused",void 0);var qr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends F{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return x`
1017
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${oe(e)}" role="radiogroup" aria-label="${this.label}">
1060
1018
  <slot @slotchange=${this.onSlotchange}
1061
1019
  @option-change=${this.onOptionChangeByScript}
1062
1020
  @option-change-by-user=${this.onOptionChangeByUser}
1063
1021
  ></slot>
1064
1022
  </div>
1065
- `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof Se&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Xl((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ge.elementDefinitions={};Ge.styles=A`
1023
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ve&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new rc((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};He.elementDefinitions={};He.styles=O`
1066
1024
  :host {
1067
1025
  display: inline-block;
1068
1026
  }
1069
1027
 
1070
1028
  .ft-switch {
1071
- border-radius: ${be.borderRadius};
1072
- outline-color: ${be.outlineColor};
1029
+ border-radius: ${ye.borderRadius};
1030
+ outline-color: ${ye.outlineColor};
1073
1031
  }
1074
1032
 
1075
1033
  .ft-switch slot {
@@ -1078,25 +1036,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1078
1036
  }
1079
1037
 
1080
1038
  .ft-switch slot::slotted(ft-switch-option) {
1081
- ${R(Ae.borderRadiusLeft,"0")};
1082
- ${R(Ae.borderRadiusRight,"0")};
1083
- ${R(Ae.borderWidthLeft,"0")};
1039
+ ${A(Oe.borderRadiusLeft,"0")};
1040
+ ${A(Oe.borderRadiusRight,"0")};
1041
+ ${A(Oe.borderWidthLeft,"0")};
1084
1042
  }
1085
1043
 
1086
1044
  .ft-switch slot::slotted(ft-switch-option:first-child) {
1087
- ${R(Ae.borderRadiusLeft,be.borderRadius)};
1088
- ${R(Ae.borderWidthLeft,"1px")};
1045
+ ${A(Oe.borderRadiusLeft,ye.borderRadius)};
1046
+ ${A(Oe.borderWidthLeft,"1px")};
1089
1047
  }
1090
1048
 
1091
1049
  .ft-switch slot::slotted(ft-switch-option:last-child) {
1092
- ${R(Ae.borderRadiusRight,be.borderRadius)};
1050
+ ${A(Oe.borderRadiusRight,ye.borderRadius)};
1093
1051
  }
1094
1052
 
1095
1053
  .ft-switch--dense slot::slotted(ft-switch-option) {
1096
1054
  --switch-internal-vertical-padding: 2px;
1097
1055
  --switch-internal-horizontal-padding: 4px;
1098
1056
  }
1099
- `;ro([f({type:Boolean})],Ge.prototype,"dense",void 0);ro([f({type:Boolean})],Ge.prototype,"unselectable",void 0);ro([f()],Ge.prototype,"label",void 0);ro([F(".ft-switch slot")],Ge.prototype,"slottedContent",void 0);ro([I()],Ge.prototype,"selectedOption",void 0);ro([I()],Ge.prototype,"displayFocusWhenUsingKeyboard",void 0);ro([F(".ft-switch")],Ge.prototype,"ftSwitchDiv",void 0);var lf={"ft-switch":Ge,"ft-switch-option":Se};Z(lf);function aa(t){return A`
1057
+ `;qr([f({type:Boolean})],He.prototype,"dense",void 0);qr([f({type:Boolean})],He.prototype,"unselectable",void 0);qr([f()],He.prototype,"label",void 0);qr([U(".ft-switch slot")],He.prototype,"slottedContent",void 0);qr([T()],He.prototype,"selectedOption",void 0);qr([T()],He.prototype,"displayFocusWhenUsingKeyboard",void 0);qr([U(".ft-switch")],He.prototype,"ftSwitchDiv",void 0);var vf={"ft-switch":He,"ft-switch-option":ve};Z(vf);function ua(t){return O`
1100
1058
  [part="container"] {
1101
1059
  box-sizing: border-box;
1102
1060
  display: flex;
@@ -1109,7 +1067,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1109
1067
  flex-direction: row;
1110
1068
  align-items: center;
1111
1069
  margin-left: -6px;
1112
- ${R(re.backgroundColor,t.starsBackgroundColor)}
1070
+ ${A(ee.backgroundColor,t.starsBackgroundColor)}
1113
1071
  }
1114
1072
 
1115
1073
  [part="rating-container"],
@@ -1123,14 +1081,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1123
1081
  }
1124
1082
 
1125
1083
  [part="rating-container"] {
1126
- ${R(re.color,t.emptyRatingColor)};
1127
- ${R(re.rippleColor,t.filledRatingColor)};
1128
- ${R(be.textColor,t.emptyRatingColor)};
1129
- ${R(be.selectedTextColor,t.filledRatingColor)};
1084
+ ${A(ee.color,t.emptyRatingColor)};
1085
+ ${A(ee.rippleColor,t.filledRatingColor)};
1086
+ ${A(ye.textColor,t.emptyRatingColor)};
1087
+ ${A(ye.selectedTextColor,t.filledRatingColor)};
1130
1088
  }
1131
1089
 
1132
1090
  [part="rating-container"] .rating-stars--active {
1133
- ${R(re.color,t.filledRatingColor)};
1091
+ ${A(ee.color,t.filledRatingColor)};
1134
1092
  }
1135
1093
 
1136
1094
  [part="feedback-container"] {
@@ -1148,14 +1106,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1148
1106
 
1149
1107
  [part="send-feedback"],
1150
1108
  [part="send-feedback-link"] {
1151
- ${R(re.color,t.sendFeedbackColor)};
1152
- ${R(re.backgroundColor,t.sendFeedbackBackgroundColor)};
1109
+ ${A(ee.color,t.sendFeedbackColor)};
1110
+ ${A(ee.backgroundColor,t.sendFeedbackBackgroundColor)};
1153
1111
  }
1154
1112
 
1155
1113
  [part="buttons-container"] {
1156
1114
  align-self: flex-end;
1157
1115
  }
1158
- `}var sa={feedbackInputMinWidth:i.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:i.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:i.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:i.external(gr.fontSize,"Typography"),sectionTitleFontSize:i.external(yr.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var B={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},cf=A`
1116
+ `}var fa={feedbackInputMinWidth:o.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(S.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-viewer-feedback-send-feedback-color","",S.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-viewer-feedback-send-feedback-background-color","",S.colorPrimary),filledRatingColor:o.extend("--ft-viewer-feedback-filled-rating-color","",S.colorPrimary),emptyRatingColor:o.extend("--ft-viewer-feedback-empty-rating-color","",S.colorOnSurfaceMedium),mainTitleFontSize:o.external(dr.fontSize,"Typography"),sectionTitleFontSize:o.external(pr.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-viewer-feedback-stars-background-color","","COLOR",S.colorSurface)};var B={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","",S.colorOutline),textColor:o.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:o.external(S.colorError,"Design system")},Sf=O`
1159
1117
  .ft-input-label {
1160
1118
  position: absolute;
1161
1119
  inset: 0;
@@ -1206,8 +1164,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1206
1164
  transition: font-size 250ms, line-height 250ms, color 250ms;
1207
1165
  max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1208
1166
  text-overflow: ellipsis;
1209
- ${R(at.fontSize,B.fontSize)};
1210
- ${R(at.lineHeight,B.fontSize)};
1167
+ ${A(rt.fontSize,B.fontSize)};
1168
+ ${A(rt.lineHeight,B.fontSize)};
1211
1169
  }
1212
1170
 
1213
1171
  .ft-input-label--in-error .ft-input-label--text {
@@ -1227,7 +1185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1227
1185
 
1228
1186
  .ft-input-label--floating-text {
1229
1187
  position: absolute;
1230
- top: calc(50% - ${at.lineHeight} / 2);
1188
+ top: calc(50% - ${rt.lineHeight} / 2);
1231
1189
  transition: top 250ms;
1232
1190
  overflow: hidden;
1233
1191
  white-space: nowrap;
@@ -1239,8 +1197,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1239
1197
  }
1240
1198
 
1241
1199
  .ft-input-label--raised .ft-input-label--text {
1242
- ${R(at.fontSize,B.raisedFontSize)};
1243
- ${R(at.lineHeight,B.raisedFontSize)};
1200
+ ${A(rt.fontSize,B.raisedFontSize)};
1201
+ ${A(rt.lineHeight,B.raisedFontSize)};
1244
1202
  }
1245
1203
 
1246
1204
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1271,13 +1229,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1271
1229
  z-index: ${B.raisedZIndex};
1272
1230
  background-color: ${B.backgroundColor};
1273
1231
  border-radius: ${B.borderRadius};
1274
- top: calc((${at.lineHeight} / -2) + 2px);
1232
+ top: calc((${rt.lineHeight} / -2) + 2px);
1275
1233
  }
1276
1234
 
1277
1235
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1278
1236
  border-top: none;
1279
1237
  }
1280
- `;var ie={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system")},df=A`
1238
+ `;var ie={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system")},wf=O`
1281
1239
  *:focus {
1282
1240
  outline: none;
1283
1241
  }
@@ -1289,10 +1247,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1289
1247
  }
1290
1248
 
1291
1249
  ft-input-label {
1292
- ${R(B.fontSize,ie.fontSize)};
1293
- ${R(B.raisedFontSize,ie.labelSize)};
1294
- ${R(B.verticalSpacing,ie.verticalSpacing)};
1295
- ${R(B.horizontalSpacing,ie.horizontalSpacing)};
1250
+ ${A(B.fontSize,ie.fontSize)};
1251
+ ${A(B.raisedFontSize,ie.labelSize)};
1252
+ ${A(B.verticalSpacing,ie.verticalSpacing)};
1253
+ ${A(B.horizontalSpacing,ie.horizontalSpacing)};
1296
1254
  }
1297
1255
 
1298
1256
  .ft-text-area--main-panel {
@@ -1310,8 +1268,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1310
1268
  }
1311
1269
 
1312
1270
  .ft-text-area--input-panel ft-ripple {
1313
- ${R(ae.opacityContentOnSurfaceHover,"0.08")};
1314
- ${R(ae.opacityContentOnSurfacePressed,"0.04")};
1271
+ ${A(ne.opacityContentOnSurfaceHover,"0.08")};
1272
+ ${A(ne.opacityContentOnSurfacePressed,"0.04")};
1315
1273
  }
1316
1274
 
1317
1275
  .ft-text-area--input {
@@ -1323,8 +1281,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1323
1281
  align-self: stretch;
1324
1282
  resize: none;
1325
1283
 
1326
- ${R(mt.fontSize,ie.fontSize)};
1327
- ${R(mt.lineHeight,ie.fontSize)};
1284
+ ${A(ct.fontSize,ie.fontSize)};
1285
+ ${A(ct.lineHeight,ie.fontSize)};
1328
1286
  color: ${ie.colorOnSurface};
1329
1287
 
1330
1288
  padding: 0 ${ie.horizontalSpacing};
@@ -1345,8 +1303,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1345
1303
  }
1346
1304
 
1347
1305
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1348
- ${R(B.borderColor,ie.colorPrimary)};
1349
- ${R(B.textColor,ie.colorPrimary)};
1306
+ ${A(B.borderColor,ie.colorPrimary)};
1307
+ ${A(B.textColor,ie.colorPrimary)};
1350
1308
  }
1351
1309
 
1352
1310
  .ft-text-area--filled .ft-text-area--input-panel {
@@ -1377,7 +1335,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1377
1335
  position: absolute;
1378
1336
  bottom: 0;
1379
1337
  }
1380
- `;var uf={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system")},pf=A`
1338
+ `;var Cf={colorOutline:o.external(S.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(S.colorOnSurfaceMedium,"Design system")},Ef=O`
1381
1339
  :host {
1382
1340
  display: block;
1383
1341
  }
@@ -1388,18 +1346,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1388
1346
 
1389
1347
  ft-icon {
1390
1348
  transform: rotate(-45deg);
1391
- color: ${uf.colorOutline};
1349
+ color: ${Cf.colorOutline};
1392
1350
  }
1393
1351
 
1394
1352
  .ft-resizer--dragging ft-icon,
1395
1353
  .ft-resizer:hover ft-icon,
1396
1354
  [role="button"][aria-pressed="true"] ft-icon{
1397
- color: ${uf.colorOnSurfaceMedium};
1355
+ color: ${Cf.colorOnSurfaceMedium};
1398
1356
  }
1399
- `;var Ht=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},la=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends ${constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ue.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return v`
1357
+ `;var Bt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ha=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Re=class extends F{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Me.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return x`
1400
1358
  <style>
1401
1359
  .ft-resizer {
1402
- cursor: ${zt(this.cursor)}
1360
+ cursor: ${Vt(this.cursor)}
1403
1361
  }
1404
1362
  </style>
1405
1363
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -1411,16 +1369,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1411
1369
  @keydown=${this.initKeydownPress}>
1412
1370
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
1413
1371
  </div>
1414
- `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new la(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new la(o,n))}};Te.elementDefinitions={"ft-icon":te};Te.styles=[qt,pf];Ht([f({type:Number})],Te.prototype,"initialWidth",void 0);Ht([f({type:Number})],Te.prototype,"initialHeight",void 0);Ht([f()],Te.prototype,"icon",void 0);Ht([f()],Te.prototype,"iconVariant",void 0);Ht([f()],Te.prototype,"cursor",void 0);Ht([f()],Te.prototype,"ariaLabel",void 0);Ht([I()],Te.prototype,"dragging",void 0);Ht([I()],Te.prototype,"isAriaPressed",void 0);Ht([Yi({passive:!0})],Te.prototype,"initDragFromMouse",null);Ht([Yi({passive:!0})],Te.prototype,"initDragFromTouch",null);var ff={"ft-resizer":Te};Z(ff);var hf=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oo=class extends ${constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return v`
1415
- <div class="${ne(this.inputLabelClasses)}">
1416
- ${bn(this.text,()=>v`
1372
+ `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new ha(this.fixedWidth,this.fixedHeight)))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ha(i,n))}};Re.elementDefinitions={"ft-icon":re};Re.styles=[Kt,Ef];Bt([f({type:Number})],Re.prototype,"initialWidth",void 0);Bt([f({type:Number})],Re.prototype,"initialHeight",void 0);Bt([f()],Re.prototype,"icon",void 0);Bt([f()],Re.prototype,"iconVariant",void 0);Bt([f()],Re.prototype,"cursor",void 0);Bt([f()],Re.prototype,"ariaLabel",void 0);Bt([T()],Re.prototype,"dragging",void 0);Bt([T()],Re.prototype,"isAriaPressed",void 0);Bt([Vi({passive:!0})],Re.prototype,"initDragFromMouse",null);Bt([Vi({passive:!0})],Re.prototype,"initDragFromTouch",null);var Of={"ft-resizer":Re};Z(Of);var Af=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Yr=class extends F{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return x`
1373
+ <div class="${oe(this.inputLabelClasses)}">
1374
+ ${An(this.text,()=>x`
1417
1375
  <div class="ft-input-label--text ft-typography--caption">
1418
1376
  <label class="ft-input-label--floating-text">${this.text}</label>
1419
1377
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1420
1378
  </div>
1421
1379
  `)}
1422
1380
  </div>
1423
- `}};oo.elementDefinitions={};hf([f({type:String})],oo.prototype,"text",void 0);hf([f({type:Boolean})],oo.prototype,"raised",void 0);var Jl=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},lt=class extends oo{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}}};lt.elementDefinitions={};lt.styles=[Nn,cf];Jl([f({type:Boolean})],lt.prototype,"outlined",void 0);Jl([f({type:Boolean})],lt.prototype,"error",void 0);Jl([f({type:Boolean})],lt.prototype,"disabled",void 0);var mf={"ft-input-label":lt};Z(mf);var yt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends zr($){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return v`
1381
+ `}};Yr.elementDefinitions={};Af([f({type:String})],Yr.prototype,"text",void 0);Af([f({type:Boolean})],Yr.prototype,"raised",void 0);var oc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},it=class extends Yr{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}}};it.elementDefinitions={};it.styles=[zn,Sf];oc([f({type:Boolean})],it.prototype,"outlined",void 0);oc([f({type:Boolean})],it.prototype,"error",void 0);oc([f({type:Boolean})],it.prototype,"disabled",void 0);var _f={"ft-input-label":it};Z(_f);var ft=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends Dr(F){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return x`
1424
1382
  <style>
1425
1383
  .ft-text-area--main-panel {
1426
1384
  height: calc(4 * ${ie.verticalSpacing} + ${ie.labelSize} + ${ie.fontSize} + ${this.height}px);
@@ -1430,7 +1388,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1430
1388
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1431
1389
  }
1432
1390
  </style>
1433
- <div class="${ne(e)}">
1391
+ <div class="${oe(e)}">
1434
1392
  <div class="ft-text-area--main-panel">
1435
1393
  <ft-input-label text="${this.label}"
1436
1394
  ?disabled=${this.disabled}
@@ -1440,7 +1398,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1440
1398
  aria-hidden="true"
1441
1399
  ></ft-input-label>
1442
1400
  <div class="ft-text-area--input-panel">
1443
- ${this.outlined?null:v`
1401
+ ${this.outlined?null:x`
1444
1402
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1445
1403
  `}
1446
1404
  <textarea
@@ -1460,12 +1418,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1460
1418
  cursor="ns-resize"
1461
1419
  ariaLabel="Resize text area"></ft-resizer>
1462
1420
  </div>
1463
- ${this.helper?v`
1464
- <ft-typography class="ft-text-area--helper-text" variant="${oe.caption}">
1421
+ ${this.helper?x`
1422
+ <ft-typography class="ft-text-area--helper-text" variant="${te.caption}">
1465
1423
  ${this.helper}
1466
1424
  </ft-typography>`:void 0}
1467
1425
  </div>
1468
- `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};Ee.elementDefinitions={"ft-input-label":lt,"ft-resizer":Te,"ft-ripple":K,"ft-typography":X};Ee.styles=[br,df];yt([f({type:String})],Ee.prototype,"label",void 0);yt([f({reflect:!0})],Ee.prototype,"value",void 0);yt([f({type:String})],Ee.prototype,"helper",void 0);yt([f({type:Boolean})],Ee.prototype,"outlined",void 0);yt([f({type:Boolean})],Ee.prototype,"disabled",void 0);yt([f({type:Boolean})],Ee.prototype,"error",void 0);yt([xt({reflect:!0})],Ee.prototype,"height",void 0);yt([xt()],Ee.prototype,"maxHeight",void 0);yt([F("textarea")],Ee.prototype,"textarea",void 0);yt([I()],Ee.prototype,"focused",void 0);yt([jt()],Ee.prototype,"onKeyDown",null);yt([jt()],Ee.prototype,"liveUpdateValueFromInputField",null);var gf={"ft-text-area":Ee};Z(gf);var ce=Xe.build("integratedFeedbackComponent"),yf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var ca=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},da=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ua=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),colorError:i.external(S.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:i.external(S.colorOutline,"Design system"),elevation02:i.external(S.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},bf=A`
1426
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};Ce.elementDefinitions={"ft-input-label":it,"ft-resizer":Re,"ft-ripple":K,"ft-typography":J};Ce.styles=[ur,wf];ft([f({type:String})],Ce.prototype,"label",void 0);ft([f({reflect:!0})],Ce.prototype,"value",void 0);ft([f({type:String})],Ce.prototype,"helper",void 0);ft([f({type:Boolean})],Ce.prototype,"outlined",void 0);ft([f({type:Boolean})],Ce.prototype,"disabled",void 0);ft([f({type:Boolean})],Ce.prototype,"error",void 0);ft([gt({reflect:!0})],Ce.prototype,"height",void 0);ft([gt()],Ce.prototype,"maxHeight",void 0);ft([U("textarea")],Ce.prototype,"textarea",void 0);ft([T()],Ce.prototype,"focused",void 0);ft([Ht()],Ce.prototype,"onKeyDown",null);ft([Ht()],Ce.prototype,"liveUpdateValueFromInputField",null);var Rf={"ft-text-area":Ce};Z(Rf);var se=pt.build("integratedFeedbackComponent"),Tf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var ma=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},ga=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ya=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",S.colorOnSurfaceMedium),colorPrimary:o.external(S.colorPrimary,"Design system"),colorOnSurface:o.external(S.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(S.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system"),colorError:o.external(S.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",S.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",S.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",S.colorSurface),colorOutline:o.external(S.colorOutline,"Design system"),elevation02:o.external(S.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},If=O`
1469
1427
  *:focus {
1470
1428
  outline: none;
1471
1429
  }
@@ -1479,11 +1437,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1479
1437
  }
1480
1438
 
1481
1439
  ft-input-label {
1482
- ${R(B.fontSize,G.fontSize)};
1483
- ${R(B.raisedFontSize,G.labelSize)};
1484
- ${R(B.verticalSpacing,G.verticalSpacing)};
1485
- ${R(B.horizontalSpacing,G.horizontalSpacing)};
1486
- ${R(B.backgroundColor,G.backgroundColor)};
1440
+ ${A(B.fontSize,G.fontSize)};
1441
+ ${A(B.raisedFontSize,G.labelSize)};
1442
+ ${A(B.verticalSpacing,G.verticalSpacing)};
1443
+ ${A(B.horizontalSpacing,G.horizontalSpacing)};
1444
+ ${A(B.backgroundColor,G.backgroundColor)};
1487
1445
  }
1488
1446
 
1489
1447
  .ft-text-field--main-panel {
@@ -1500,13 +1458,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1500
1458
  overflow: hidden;
1501
1459
  padding: 0 ${G.horizontalSpacing};
1502
1460
 
1503
- ${R(mt.fontSize,G.fontSize)};
1504
- ${R(mt.lineHeight,G.fontSize)};
1461
+ ${A(ct.fontSize,G.fontSize)};
1462
+ ${A(ct.lineHeight,G.fontSize)};
1505
1463
  }
1506
1464
 
1507
1465
  .ft-text-field--input-panel ft-ripple {
1508
- ${R(ae.opacityContentOnSurfaceHover,"0.08")};
1509
- ${R(ae.opacityContentOnSurfacePressed,"0.04")};
1466
+ ${A(ne.opacityContentOnSurfaceHover,"0.08")};
1467
+ ${A(ne.opacityContentOnSurfacePressed,"0.04")};
1510
1468
  }
1511
1469
 
1512
1470
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1562,8 +1520,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1562
1520
  }
1563
1521
 
1564
1522
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1565
- ${R(B.borderColor,G.colorPrimary)};
1566
- ${R(B.textColor,G.colorPrimary)};
1523
+ ${A(B.borderColor,G.colorPrimary)};
1524
+ ${A(B.textColor,G.colorPrimary)};
1567
1525
  }
1568
1526
 
1569
1527
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1618,13 +1576,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1618
1576
  }
1619
1577
 
1620
1578
  .ft-text-field--with-icon {
1621
- ${R(B.labelMaxWidth,`calc(100% - ${we.size} - ${B.horizontalSpacing})`)};
1579
+ ${A(B.labelMaxWidth,`calc(100% - ${we.size} - ${B.horizontalSpacing})`)};
1622
1580
  }
1623
1581
 
1624
1582
  .ft-text-field--with-password ft-icon:hover {
1625
1583
  cursor: pointer;
1626
1584
  }
1627
- `;var vf=A`
1585
+ `;var Lf=O`
1628
1586
  .ft-text-field-suggestion {
1629
1587
  position: relative;
1630
1588
  padding: 8px 16px;
@@ -1660,24 +1618,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1660
1618
  slot {
1661
1619
  pointer-events: none;
1662
1620
  }
1663
- `;var pa=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ql=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},bt=class extends ${render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return v`
1664
- <div class="${ne(e)}"
1621
+ `;var ba=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ic=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},ht=class extends F{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return x`
1622
+ <div class="${oe(e)}"
1665
1623
  tabindex="-1"
1666
1624
  @keydown=${this.onKeyDown}
1667
1625
  @click=${this.confirmSuggestion}>
1668
1626
  <ft-ripple></ft-ripple>
1669
- ${this.helper?v`
1627
+ ${this.helper?x`
1670
1628
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1671
1629
  ${this.helper}
1672
- </ft-typography>`:L}
1630
+ </ft-typography>`:R}
1673
1631
  <ft-typography part="label"
1674
1632
  variant="body1"
1675
1633
  class="ft-text-field-suggestion--label">
1676
1634
  <slot></slot>
1677
1635
  </ft-typography>
1678
1636
  </div>
1679
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Ql(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};bt.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-icon":te};bt.styles=vf;pa([f()],bt.prototype,"value",void 0);pa([f()],bt.prototype,"helper",void 0);pa([F(".ft-text-field-suggestion")],bt.prototype,"container",void 0);pa([ei()],bt.prototype,"assignedNodes",void 0);var Q=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},V=class extends zr($){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Qe.EYE_SLASH,this.passwordRevealedIcon=Qe.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return v`
1680
- <div class="${ne(r)}">
1637
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new ic(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};ht.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-icon":re};ht.styles=Lf;ba([f()],ht.prototype,"value",void 0);ba([f()],ht.prototype,"helper",void 0);ba([U(".ft-text-field-suggestion")],ht.prototype,"container",void 0);ba([Ho()],ht.prototype,"assignedNodes",void 0);var Q=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},V=class extends Dr(F){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Wr.EYE_SLASH,this.passwordRevealedIcon=Wr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(l=>l.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return x`
1638
+ <div class="${oe(r)}">
1681
1639
  <div class="ft-text-field--main-panel"
1682
1640
  @keydown=${this.handleKeyboardNavigation}
1683
1641
  @focusout=${this.onMainPanelBlur}>
@@ -1687,21 +1645,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1687
1645
  ?raised=${this.focused||this.value!=""}
1688
1646
  ?error=${!this.inputValid||this.error}></ft-input-label>
1689
1647
  <div class="ft-text-field--input-panel">
1690
- ${this.outlined?L:v`
1648
+ ${this.outlined?R:x`
1691
1649
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1692
1650
  `}
1693
- ${this.prefix?v`
1651
+ ${this.prefix?x`
1694
1652
  <ft-typography class="ft-text-field--prefix" variant="body1">
1695
1653
  ${this.prefix}
1696
1654
  </ft-typography>
1697
- `:L}
1655
+ `:R}
1698
1656
  <input type="${this.resolveInputType()}"
1699
- name="${nr(this.name)}"
1700
- maxlength="${nr(this.maxLength||void 0)}"
1657
+ name="${Ot(this.name)}"
1658
+ maxlength="${Ot(this.maxLength||void 0)}"
1701
1659
  aria-label="${this.label}"
1702
- aria-describedby="${nr(this.helper?"helper":void 0)}"
1660
+ aria-describedby="${Ot(this.helper?"helper":void 0)}"
1703
1661
  aria-invalid="${this.error}"
1704
- autocomplete="${nr(this.autocomplete)}"
1662
+ autocomplete="${Ot(this.autocomplete)}"
1705
1663
  class="ft-typography--body1 ft-text-field--input"
1706
1664
  part="input"
1707
1665
  ?disabled=${this.disabled}
@@ -1716,76 +1674,76 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1716
1674
  <div class="ft-text-field--suggestions"
1717
1675
  @suggestion-selected=${this.onSuggestionSelected}>
1718
1676
  ${this.renderSuggestions()}
1719
- ${a?v`
1677
+ ${a?x`
1720
1678
  <ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
1721
1679
  ${this.value}
1722
1680
  </ft-text-field-suggestion>
1723
- `:L}
1681
+ `:R}
1724
1682
  </div>
1725
1683
  </div>
1726
- ${s?v`
1727
- <ft-typography class="ft-text-field--helper-text" variant="${oe.caption}" id="helper" role="alert">
1684
+ ${s?x`
1685
+ <ft-typography class="ft-text-field--helper-text" variant="${te.caption}" id="helper" role="alert">
1728
1686
  ${s}
1729
1687
  </ft-typography>
1730
- `:L}
1688
+ `:R}
1731
1689
  </div>
1732
- `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?v`
1733
- ${qe(this.providedSuggestions,e=>v`
1690
+ `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?x`
1691
+ ${je(this.providedSuggestions,e=>x`
1734
1692
  <ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
1735
- ${e.icon?v`
1693
+ ${e.icon?x`
1736
1694
  <ft-icon .value=${e.icon}></ft-icon>
1737
- `:L}
1695
+ `:R}
1738
1696
  ${e.label}
1739
1697
  </ft-text-field-suggestion>
1740
1698
  `)}
1741
- `:v`
1699
+ `:x`
1742
1700
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1743
- `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return v`
1701
+ `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return x`
1744
1702
  <ft-icon class="ft-text-field--icon"
1745
1703
  .variant=${this.iconVariant}
1746
1704
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1747
1705
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1748
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?v`
1706
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?x`
1749
1707
  <ft-icon class="ft-text-field--icon"
1750
1708
  .variant=${this.iconVariant}
1751
1709
  .value=${this.icon}
1752
1710
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1753
- `:L}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,o,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var o,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new ca(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new da(e))):this.dispatchEvent(new ua(this.input.validationMessage)))}handleInput(e){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];gs(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};V.elementDefinitions={"ft-input-label":lt,"ft-ripple":K,"ft-typography":X,"ft-icon":te,"ft-text-field-suggestion":bt};V.styles=[br,_s,bf];Q([f()],V.prototype,"label",void 0);Q([f({noAccessor:!0})],V.prototype,"value",null);Q([I()],V.prototype,"dispatchedValue",void 0);Q([f()],V.prototype,"helper",void 0);Q([f()],V.prototype,"suggestionsHelper",void 0);Q([f({type:Boolean})],V.prototype,"outlined",void 0);Q([f({type:Boolean})],V.prototype,"disabled",void 0);Q([f({type:Boolean})],V.prototype,"error",void 0);Q([f({type:Boolean})],V.prototype,"fixedMenuPosition",void 0);Q([f()],V.prototype,"prefix",void 0);Q([f()],V.prototype,"icon",void 0);Q([f()],V.prototype,"name",void 0);Q([f()],V.prototype,"type",void 0);Q([f()],V.prototype,"passwordHiddenIcon",void 0);Q([f()],V.prototype,"passwordRevealedIcon",void 0);Q([f()],V.prototype,"iconVariant",void 0);Q([f({type:Boolean})],V.prototype,"filterSuggestions",void 0);Q([xt()],V.prototype,"maxLength",void 0);Q([f({type:Boolean})],V.prototype,"password",void 0);Q([f({type:String})],V.prototype,"autocomplete",void 0);Q([f({attribute:!1})],V.prototype,"suggestionsProvider",void 0);Q([I()],V.prototype,"focused",void 0);Q([I()],V.prototype,"inputValid",void 0);Q([I()],V.prototype,"hidePassword",void 0);Q([I()],V.prototype,"hideSuggestions",void 0);Q([I()],V.prototype,"visibleSuggestions",void 0);Q([I()],V.prototype,"providedSuggestions",void 0);Q([F(".ft-text-field--main-panel")],V.prototype,"mainPanel",void 0);Q([F(".ft-text-field--input")],V.prototype,"input",void 0);Q([F(".ft-text-field-suggestion--new-value")],V.prototype,"newValueSuggestion",void 0);Q([F(".ft-text-field--suggestions")],V.prototype,"suggestionsContainer",void 0);Q([Na("ft-text-field-suggestion")],V.prototype,"providedSuggestionsInDom",void 0);Q([Qo({selector:"ft-text-field-suggestion"})],V.prototype,"slottedSuggestions",void 0);Q([jt()],V.prototype,"handleInput",null);Q([jt()],V.prototype,"catchComposingEvents",null);var xf={"ft-text-field":V,"ft-text-field-suggestion":bt};Z(xf);var fa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends Je(ve){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(ce,yf),this.addStore(N)}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:_e.NO_RATING}get ratingValue(){var e,r,o;return(o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,r;let o=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?en(o):o}render(){return!this.canAccessFeedback&&!this.canRateThisContent?L:v`
1711
+ `:R}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new ma(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new ga(e))):this.dispatchEvent(new ya(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];ws(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};V.elementDefinitions={"ft-input-label":it,"ft-ripple":K,"ft-typography":J,"ft-icon":re,"ft-text-field-suggestion":ht};V.styles=[ur,Ns,If];Q([f()],V.prototype,"label",void 0);Q([f({noAccessor:!0})],V.prototype,"value",null);Q([T()],V.prototype,"dispatchedValue",void 0);Q([f()],V.prototype,"helper",void 0);Q([f()],V.prototype,"suggestionsHelper",void 0);Q([f({type:Boolean})],V.prototype,"outlined",void 0);Q([f({type:Boolean})],V.prototype,"disabled",void 0);Q([f({type:Boolean})],V.prototype,"error",void 0);Q([f({type:Boolean})],V.prototype,"fixedMenuPosition",void 0);Q([f()],V.prototype,"prefix",void 0);Q([f()],V.prototype,"icon",void 0);Q([f()],V.prototype,"name",void 0);Q([f()],V.prototype,"type",void 0);Q([f()],V.prototype,"passwordHiddenIcon",void 0);Q([f()],V.prototype,"passwordRevealedIcon",void 0);Q([f()],V.prototype,"iconVariant",void 0);Q([f({type:Boolean})],V.prototype,"filterSuggestions",void 0);Q([gt()],V.prototype,"maxLength",void 0);Q([f({type:Boolean})],V.prototype,"password",void 0);Q([f({type:String})],V.prototype,"autocomplete",void 0);Q([f({attribute:!1})],V.prototype,"suggestionsProvider",void 0);Q([T()],V.prototype,"focused",void 0);Q([T()],V.prototype,"inputValid",void 0);Q([T()],V.prototype,"hidePassword",void 0);Q([T()],V.prototype,"hideSuggestions",void 0);Q([T()],V.prototype,"visibleSuggestions",void 0);Q([T()],V.prototype,"providedSuggestions",void 0);Q([U(".ft-text-field--main-panel")],V.prototype,"mainPanel",void 0);Q([U(".ft-text-field--input")],V.prototype,"input",void 0);Q([U(".ft-text-field-suggestion--new-value")],V.prototype,"newValueSuggestion",void 0);Q([U(".ft-text-field--suggestions")],V.prototype,"suggestionsContainer",void 0);Q([Ba("ft-text-field-suggestion")],V.prototype,"providedSuggestionsInDom",void 0);Q([zo({selector:"ft-text-field-suggestion"})],V.prototype,"slottedSuggestions",void 0);Q([Ht()],V.prototype,"handleInput",null);Q([Ht()],V.prototype,"catchComposingEvents",null);var kf={"ft-text-field":V,"ft-text-field-suggestion":ht};Z(kf);var xa=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends ut(be){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(se,Tf),this.addStore(N)}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:_e.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?Gi(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?R:x`
1754
1712
  <div part="container">
1755
- ${this.hideTitle?L:v`
1756
- <ft-typography variant="${oe.title}" part="main-title">
1713
+ ${this.hideTitle?R:x`
1714
+ <ft-typography variant="${te.title}" part="main-title">
1757
1715
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1758
1716
  </ft-typography>
1759
1717
  `}
1760
1718
  ${this.renderRatingSection()}
1761
1719
  ${this.renderFeedbackSection()}
1762
1720
  </div>
1763
- `}renderRatingSection(){var e;return this.canRateThisContent?v`
1721
+ `}renderRatingSection(){var e;return this.canRateThisContent?x`
1764
1722
  <div part="rating-container">
1765
- <ft-typography variant="${oe.title_dense}" part="section-title">
1723
+ <ft-typography variant="${te.title_dense}" part="section-title">
1766
1724
  ${this.i18n(((e=this.ratingSummary)===null||e===void 0?void 0:e.type)===_e.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1767
1725
  </ft-typography>
1768
1726
  ${this.renderRating()}
1769
- <ft-typography variant="${oe.caption}" part="rating-date">
1727
+ <ft-typography variant="${te.caption}" part="rating-date">
1770
1728
  ${this.renderRatingDate()}
1771
1729
  </ft-typography>
1772
1730
  </div>
1773
- `:L}renderRatingDate(){let e=this.ratingDate;if(e==null)return ce.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return ce.messages.ratedNow();let r=new Date().toLocaleDateString(),o=e.toLocaleDateString();return r===o?ce.messages.ratedToday():ce.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case _e.STARS:return v`
1731
+ `:R}renderRatingDate(){let e=this.ratingDate;if(e==null)return se.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return se.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?se.messages.ratedToday():se.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case _e.STARS:return x`
1774
1732
  <div part="rating rating-stars">
1775
- ${qe(new Array(5),(e,r)=>r,(e,r)=>{let o=this.ratingTypeOfDoneRatingOfThisContent===_e.STARS&&this.ratingValue>r,n=r+1;return v`
1733
+ ${je(new Array(5),(e,r)=>r,(e,r)=>{let i=this.ratingTypeOfDoneRatingOfThisContent===_e.STARS&&this.ratingValue>r,n=r+1;return x`
1776
1734
  <ft-button round part="rating-stars-${n}"
1777
- label="${ce.messages.starsRating(n)}"
1735
+ label="${se.messages.starsRating(n)}"
1778
1736
  tooltipPosition="top"
1779
1737
  .iconVariant=${this.iconVariant}
1780
- icon="${o?this.filledStarIcon:this.emptyStarIcon}"
1781
- class="rating-stars--${o?"active":"inactive"}"
1738
+ icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1739
+ class="rating-stars--${i?"active":"inactive"}"
1782
1740
  @click=${()=>this.rate(this.ratingValue===n?void 0:n)}
1783
1741
  ></ft-button>
1784
1742
  `})}
1785
1743
  </div>
1786
- `;case _e.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===1;return v`
1744
+ `;case _e.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.LIKE&&this.ratingValue===1;return x`
1787
1745
  <ft-switch unselectable
1788
- @change=${o=>this.rate(o.detail)}
1746
+ @change=${i=>this.rate(i.detail)}
1789
1747
  part="rating rating-like"
1790
1748
  label="${this.i18n(this.i18nProperties.ratingSectionTitle)}">
1791
1749
  <ft-switch-option .value=${1}
@@ -1793,73 +1751,73 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1793
1751
  .iconVariant=${this.iconVariant}
1794
1752
  icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
1795
1753
  role="radio">
1796
- ${ce.messages.like()}
1754
+ ${se.messages.like()}
1797
1755
  </ft-switch-option>
1798
1756
  <ft-switch-option .value=${0}
1799
1757
  ?selected=${e}
1800
1758
  .iconVariant=${this.iconVariant}
1801
1759
  icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
1802
1760
  role="radio">
1803
- ${ce.messages.dislike()}
1761
+ ${se.messages.dislike()}
1804
1762
  </ft-switch-option>
1805
1763
  </ft-switch>
1806
- `}case _e.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===1;return v`
1764
+ `}case _e.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===_e.DICHOTOMOUS&&this.ratingValue===1;return x`
1807
1765
  <ft-switch unselectable
1808
- @change=${o=>this.rate(o.detail)}
1766
+ @change=${i=>this.rate(i.detail)}
1809
1767
  part="rating rating-dichotomous">
1810
1768
  <ft-switch-option .value=${1}
1811
1769
  ?selected=${r}>
1812
- ${ce.messages.dichotomousYes()}
1770
+ ${se.messages.dichotomousYes()}
1813
1771
  </ft-switch-option>
1814
1772
  <ft-switch-option .value=${0}
1815
1773
  ?selected=${e}>
1816
- ${ce.messages.dichotomousNo()}
1774
+ ${se.messages.dichotomousNo()}
1817
1775
  </ft-switch-option>
1818
1776
  </ft-switch>
1819
- `}}return L}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=v`
1777
+ `}}return R}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=x`
1820
1778
  <ft-button primary
1821
1779
  type="submit" name="submit"
1822
1780
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1823
1781
  part="send-feedback">
1824
- ${ce.messages.okButton()}
1782
+ ${se.messages.okButton()}
1825
1783
  </ft-button>
1826
- `;s&&(l=v`
1784
+ `;s&&(l=x`
1827
1785
  <a part="send-feedback-link" href="${s}">
1828
1786
  ${l}
1829
1787
  </a>
1830
- `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?v`
1788
+ `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?x`
1831
1789
  <ft-button outlined
1832
1790
  type="button" name="more-options"
1833
1791
  @click=${this.onOpenMoreDetails}
1834
1792
  part="more-options">
1835
- ${ce.messages.moreOptionsButton()}
1793
+ ${se.messages.moreOptionsButton()}
1836
1794
  </ft-button>
1837
- `:L;return v`
1795
+ `:R;return x`
1838
1796
  <form part="feedback-container" autocomplete="on"
1839
- @submit=${p=>this.onFormSubmitEvent(p,!!s)}>
1840
- <ft-typography variant="${oe.title_dense}" part="section-title">
1797
+ @submit=${u=>this.onFormSubmitEvent(u,!!s)}>
1798
+ <ft-typography variant="${te.title_dense}" part="section-title">
1841
1799
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1842
1800
  </ft-typography>
1843
- ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?v`
1801
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?x`
1844
1802
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1845
1803
  part="feedback-from-input"
1846
- label="${ce.messages.feedbackfromEmail()}"
1847
- @change=${p=>this.from=p.detail.trim()}
1804
+ label="${se.messages.feedbackfromEmail()}"
1805
+ @change=${u=>this.from=u.detail.trim()}
1848
1806
  ?error=${this.from&&!this.validFromEmail()}
1849
- helper="${this.from&&!this.validFromEmail()?ce.messages.feedbackfromEmailInvalid():""}"
1807
+ helper="${this.from&&!this.validFromEmail()?se.messages.feedbackfromEmailInvalid():""}"
1850
1808
  ></ft-text-field>
1851
- `:L}
1809
+ `:R}
1852
1810
  <ft-text-area outlined
1853
1811
  part="feedback-input"
1854
- label="${ce.messages.feedbackInputLabel()}"
1855
- @live-change=${p=>this.feedbackMessage=p.detail.trim()}
1812
+ label="${se.messages.feedbackInputLabel()}"
1813
+ @live-change=${u=>this.feedbackMessage=u.detail.trim()}
1856
1814
  ></ft-text-area>
1857
1815
  <div part="buttons-container">
1858
1816
  ${d}
1859
1817
  ${l}
1860
1818
  </div>
1861
1819
  </form>
1862
- `}return L}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new fa({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};de.elementDefinitions={"ft-button":J,"ft-typography":X,"ft-switch":Ge,"ft-switch-option":Se,"ft-text-area":Ee,"ft-text-field":V};Re([f({type:Boolean})],de.prototype,"hideTitle",void 0);Re([f({type:Boolean})],de.prototype,"withMoreOptionsButton",void 0);Re([f()],de.prototype,"iconVariant",void 0);Re([f()],de.prototype,"emptyStarIcon",void 0);Re([f()],de.prototype,"filledStarIcon",void 0);Re([f()],de.prototype,"emptyLikeIcon",void 0);Re([f()],de.prototype,"filledLikeIcon",void 0);Re([f()],de.prototype,"emptyDislikeIcon",void 0);Re([f()],de.prototype,"filledDislikeIcon",void 0);Re([f({type:Boolean})],de.prototype,"canAccessFeedback",void 0);Re([f({type:Boolean})],de.prototype,"canRateThisContent",void 0);Re([f({attribute:!1})],de.prototype,"i18nProperties",void 0);Re([f({attribute:!1})],de.prototype,"ratingSummary",void 0);Re([f()],de.prototype,"configuration",void 0);Re([f()],de.prototype,"feedbackMailLinkBuilder",void 0);Re([H({store:N.name})],de.prototype,"session",void 0);Re([F("[part='feedback-input']")],de.prototype,"feedbackInput",void 0);Re([I()],de.prototype,"from",void 0);Re([I()],de.prototype,"feedbackMessage",void 0);var Ui=class extends de{};Ui.styles=aa(sa);var ec=Xe.build("inDesignerFeedbackComponent"),Sf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var ha=Xe.fromGwt("server");var ma=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,o,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,r;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1820
+ `}return R}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new xa({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};le.elementDefinitions={"ft-button":W,"ft-typography":J,"ft-switch":He,"ft-switch-option":ve,"ft-text-area":Ce,"ft-text-field":V};Ae([f({type:Boolean})],le.prototype,"hideTitle",void 0);Ae([f({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Ae([f()],le.prototype,"iconVariant",void 0);Ae([f()],le.prototype,"emptyStarIcon",void 0);Ae([f()],le.prototype,"filledStarIcon",void 0);Ae([f()],le.prototype,"emptyLikeIcon",void 0);Ae([f()],le.prototype,"filledLikeIcon",void 0);Ae([f()],le.prototype,"emptyDislikeIcon",void 0);Ae([f()],le.prototype,"filledDislikeIcon",void 0);Ae([f({type:Boolean})],le.prototype,"canAccessFeedback",void 0);Ae([f({type:Boolean})],le.prototype,"canRateThisContent",void 0);Ae([f({attribute:!1})],le.prototype,"i18nProperties",void 0);Ae([f({attribute:!1})],le.prototype,"ratingSummary",void 0);Ae([f()],le.prototype,"configuration",void 0);Ae([f()],le.prototype,"feedbackMailLinkBuilder",void 0);Ae([q({store:N.name})],le.prototype,"session",void 0);Ae([U("[part='feedback-input']")],le.prototype,"feedbackInput",void 0);Ae([T()],le.prototype,"from",void 0);Ae([T()],le.prototype,"feedbackMessage",void 0);var Ii=class extends le{};Ii.styles=ua(fa);var nc=pt.build("inDesignerFeedbackComponent"),Pf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var va=pt.fromGwt("server");var Sa=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1863
1821
  ${this.bodyMetadata}
1864
1822
  ${this.url}
1865
1823
  _________________________________________________________________
@@ -1867,7 +1825,7 @@ _________________________________________________________________
1867
1825
  ${e??""}
1868
1826
 
1869
1827
  _________________________________________________________________
1870
- ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var Ve=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends Be(Je(Fe)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Sr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Sr.RATING,{session:this.session}))&&this.configuredRatingType!=_e.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}constructor(e=new Ln){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ma,this.i18nProperties={feedbackMainTitle:ce.properties.viewerFeedbackMainTitle(),ratingSectionTitle:ce.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:ce.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:ce.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-viewer-document-feedback-guest-rating-"+((r=this.document)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Me(500),this.addStore(N)}render(){return v`
1828
+ ${va.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var $e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends qe(ut(Ze)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(hr.RATING,{session:this.session}))&&this.configuredRatingType!=_e.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:_e.NO_RATING}constructor(e=new Fn){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Me.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Sa,this.i18nProperties={feedbackMainTitle:se.properties.viewerFeedbackMainTitle(),ratingSectionTitle:se.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:se.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:se.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-viewer-document-feedback-guest-rating-"+((r=this.document)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Ne(500),this.addStore(N)}render(){return x`
1871
1829
  <ft-viewer-feedback
1872
1830
  ?hideTitle=${this.hideTitle}
1873
1831
  iconVariant="${this.iconVariant}"
@@ -1888,7 +1846,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1888
1846
  @mailer-feedback=${this.onMailerFeedbackSent}
1889
1847
  @open-more-options=${this.openMoreOptions}
1890
1848
  ></ft-viewer-feedback>
1891
- `}willUpdate(e){var r,o,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ec,Sf),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(r=this.document.prettyUrl)!==null&&r!==void 0?r:"",this.document.metadata,this.configuration,((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)!=null),["session","document"].some(a=>e.has(a))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,o,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((o=this.service)===null||o===void 0?void 0:o.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Pt({type:"error",message:ce.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Pt({type:"info",message:ec.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new Pt({type:"info",message:ce.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Pt({type:"error",message:ce.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new na)}openMoreOptions(){var e,r;this.dispatchEvent(new ia({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||_e.NO_RATING,ratingValue:(r=this.ratingSummary)===null||r===void 0?void 0:r.rating}))}};ue.styles=aa(sa);ue.elementDefinitions={"ft-viewer-feedback":Ui};ue.storedRatingIfAuthenticated=(t,e)=>{var r,o;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(o=e.ratingSummary)!==null&&o!==void 0?o:t.documentRating};Ve([H({store:N.name})],ue.prototype,"session",void 0);Ve([H({store:"viewer"})],ue.prototype,"document",void 0);Ve([H({store:N.name})],ue.prototype,"editorMode",void 0);Ve([H({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Ve([H({store:"viewer",selector:ue.storedRatingIfAuthenticated})],ue.prototype,"ratingSummary",void 0);Ve([f({type:Boolean})],ue.prototype,"hideTitle",void 0);Ve([f()],ue.prototype,"iconVariant",void 0);Ve([f()],ue.prototype,"emptyStarIcon",void 0);Ve([f()],ue.prototype,"filledStarIcon",void 0);Ve([f()],ue.prototype,"emptyLikeIcon",void 0);Ve([f()],ue.prototype,"filledLikeIcon",void 0);Ve([f()],ue.prototype,"emptyDislikeIcon",void 0);Ve([f()],ue.prototype,"filledDislikeIcon",void 0);Ve([F("ft-viewer-feedback")],ue.prototype,"viewerFeedback",void 0);Ve([Bn(ha.properties["mail.file_feedback.subject"](t=>{var e,r;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((r=t.document)===null||r===void 0?void 0:r.filename)||"Filename"]}))],ue.prototype,"mailSubject",void 0);Ve([H({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ue.prototype,"displayName",void 0);var ga=class extends Be(ve){};var Cf=A`
1849
+ `}willUpdate(e){var r,i,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(nc,Pf),["document","configuration","user","mailSubject"].some(a=>e.has(a))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(r=this.document.prettyUrl)!==null&&r!==void 0?r:"",this.document.metadata,this.configuration,((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)!=null),["session","document"].some(a=>e.has(a))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateDocument(this.document.id)):await((i=this.service)===null||i===void 0?void 0:i.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new It({type:"error",message:se.messages.ratingFailure()}))}}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new It({type:"info",message:nc.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new It({type:"info",message:se.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new It({type:"error",message:se.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new pa)}openMoreOptions(){var e,r;this.dispatchEvent(new da({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||_e.NO_RATING,ratingValue:(r=this.ratingSummary)===null||r===void 0?void 0:r.rating}))}};ce.styles=ua(fa);ce.elementDefinitions={"ft-viewer-feedback":Ii};ce.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.documentRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.documentRating};$e([q({store:N.name})],ce.prototype,"session",void 0);$e([q({store:"viewer"})],ce.prototype,"document",void 0);$e([q({store:N.name})],ce.prototype,"editorMode",void 0);$e([q({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ce.prototype,"configuration",void 0);$e([q({store:"viewer",selector:ce.storedRatingIfAuthenticated})],ce.prototype,"ratingSummary",void 0);$e([f({type:Boolean})],ce.prototype,"hideTitle",void 0);$e([f()],ce.prototype,"iconVariant",void 0);$e([f()],ce.prototype,"emptyStarIcon",void 0);$e([f()],ce.prototype,"filledStarIcon",void 0);$e([f()],ce.prototype,"emptyLikeIcon",void 0);$e([f()],ce.prototype,"filledLikeIcon",void 0);$e([f()],ce.prototype,"emptyDislikeIcon",void 0);$e([f()],ce.prototype,"filledDislikeIcon",void 0);$e([U("ft-viewer-feedback")],ce.prototype,"viewerFeedback",void 0);$e([aa(va.properties["mail.file_feedback.subject"](t=>{var e,r;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((r=t.document)===null||r===void 0?void 0:r.filename)||"Filename"]}))],ce.prototype,"mailSubject",void 0);$e([q({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ce.prototype,"displayName",void 0);var wa=class extends qe(be){};var Nf=O`
1892
1850
  :host {
1893
1851
  display: inline-block;
1894
1852
  }
@@ -1908,7 +1866,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1908
1866
  all: unset;
1909
1867
  position: relative;
1910
1868
  }
1911
- `;var wf=i.extend("--ft-chip-color","",S.colorOnSurface),tt={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:wf,fontSize:i.extend("--ft-chip-font-size","",gt.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",gt.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",wf),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Ef=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),tc={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Ef,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Ef)},Of={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Af=[qt,A`
1869
+ `;var Df=o.extend("--ft-chip-color","",S.colorOnSurface),Xe={backgroundColor:o.extend("--ft-chip-background-color","",S.colorSurface),color:Df,fontSize:o.extend("--ft-chip-font-size","",dt.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",dt.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","",Df),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","",S.colorOutline),opacityDisabled:o.external(S.colorOpacityDisabled,"Design system")},Mf=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",S.colorOnPrimary)),ac={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",S.colorPrimary)),color:Mf,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",Mf)},$f={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ff=[Kt,O`
1912
1870
  :host {
1913
1871
  display: inline-block;
1914
1872
  max-width: 100%;
@@ -1924,21 +1882,21 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1924
1882
  box-sizing: border-box;
1925
1883
  pointer-events: auto;
1926
1884
 
1927
- --chip-internal-font-size: ${tt.fontSize};
1928
- --chip-internal-font-weight: ${tt.fontWeight};
1885
+ --chip-internal-font-size: ${Xe.fontSize};
1886
+ --chip-internal-font-weight: ${Xe.fontWeight};
1929
1887
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1930
- ${R(we.size,tt.iconSize)};
1931
- --chip-internal-vertical-padding: ${tt.verticalPadding};
1932
- --chip-internal-horizontal-padding: ${tt.horizontalPadding};
1888
+ ${A(we.size,Xe.iconSize)};
1889
+ --chip-internal-vertical-padding: ${Xe.verticalPadding};
1890
+ --chip-internal-horizontal-padding: ${Xe.horizontalPadding};
1933
1891
  --chip-internal-icon-padding: 3px;
1934
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${tt.iconSize});
1892
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Xe.iconSize});
1935
1893
 
1936
- border: 1px solid ${tt.borderColor};
1937
- color: ${tt.color};
1938
- ${R(ae.color,tt.rippleColor)};
1939
- border-radius: var(${zt(tt.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1894
+ border: 1px solid ${Xe.borderColor};
1895
+ color: ${Xe.color};
1896
+ ${A(ne.color,Xe.rippleColor)};
1897
+ border-radius: var(${Vt(Xe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1940
1898
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1941
- background-color: ${tt.backgroundColor};
1899
+ background-color: ${Xe.backgroundColor};
1942
1900
  line-height: var(--chip-internal-content-height);
1943
1901
  }
1944
1902
 
@@ -1948,28 +1906,28 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1948
1906
 
1949
1907
  .ft-chip--dense {
1950
1908
  --chip-internal-icon-padding: 3px;
1951
- --chip-internal-vertical-padding: ${Of.verticalPadding};
1952
- --chip-internal-horizontal-padding: ${Of.horizontalPadding};
1909
+ --chip-internal-vertical-padding: ${$f.verticalPadding};
1910
+ --chip-internal-horizontal-padding: ${$f.horizontalPadding};
1953
1911
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1954
1912
  }
1955
1913
 
1956
1914
  .ft-chip--no-content {
1957
- --chip-internal-horizontal-padding: ${tt.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
1915
+ --chip-internal-horizontal-padding: ${Xe.horizontalPadding.get(O`var(--chip-internal-vertical-padding)`)};
1958
1916
  }
1959
1917
 
1960
1918
  .ft-chip--disabled {
1961
1919
  cursor: default;
1962
1920
  pointer-events: none;
1963
1921
  filter: grayscale(1);
1964
- opacity: ${tt.opacityDisabled};
1922
+ opacity: ${Xe.opacityDisabled};
1965
1923
  }
1966
1924
 
1967
1925
  .ft-chip--highlighted {
1968
1926
  border: none;
1969
1927
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1970
- background-color: ${tc.backgroundColor};
1971
- ${R(ae.color,tc.rippleColor)};
1972
- color: ${tc.color};
1928
+ background-color: ${ac.backgroundColor};
1929
+ ${A(ne.color,ac.rippleColor)};
1930
+ color: ${ac.color};
1973
1931
  }
1974
1932
 
1975
1933
  .ft-chip--clickable {
@@ -2000,9 +1958,9 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2000
1958
  }
2001
1959
 
2002
1960
  .ft-chip--icon-button {
2003
- ${R(re.iconSize,tt.iconSize)};
2004
- ${R(re.horizontalPadding,"var(--chip-internal-icon-padding)")};
2005
- ${R(re.verticalPadding,"var(--chip-internal-icon-padding)")};
1961
+ ${A(ee.iconSize,Xe.iconSize)};
1962
+ ${A(ee.horizontalPadding,"var(--chip-internal-icon-padding)")};
1963
+ ${A(ee.verticalPadding,"var(--chip-internal-icon-padding)")};
2006
1964
  margin: calc((-1) * var(--chip-internal-icon-padding));
2007
1965
  }
2008
1966
 
@@ -2010,9 +1968,9 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2010
1968
  vertical-align: bottom;
2011
1969
  display: block;
2012
1970
  margin: 0 var(--chip-internal-horizontal-padding);
2013
- ${R(gt.fontSize,"var(--chip-internal-font-size)")};
2014
- ${R(gt.fontWeight,"var(--chip-internal-font-weight)")};
2015
- ${R(gt.lineHeight,"var(--chip-internal-content-height)")};
1971
+ ${A(dt.fontSize,"var(--chip-internal-font-size)")};
1972
+ ${A(dt.fontWeight,"var(--chip-internal-font-weight)")};
1973
+ ${A(dt.lineHeight,"var(--chip-internal-content-height)")};
2016
1974
  }
2017
1975
 
2018
1976
  .ft-chip--safari-fix .ft-chip--label {
@@ -2048,8 +2006,8 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2048
2006
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
2049
2007
  order: -1;
2050
2008
  }
2051
- `];var Ke=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ya=class extends CustomEvent{constructor(){super("icon-click")}},ye=class extends ${constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){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":Kr};return v`
2052
- <div class="${ne(r)}"
2009
+ `];var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ca=class extends CustomEvent{constructor(){super("icon-click")}},ge=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){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":Ur};return x`
2010
+ <div class="${oe(r)}"
2053
2011
  aria-label="${this.getLabel()}"
2054
2012
  tabindex="${this.interactionsOnChip?0:-1}"
2055
2013
  @keyup=${this.onKeyUp}
@@ -2060,7 +2018,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2060
2018
  </ft-typography>
2061
2019
  ${this.internalIcon?this.renderIcon():null}
2062
2020
  </div>
2063
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?v`
2021
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?x`
2064
2022
  <ft-button round
2065
2023
  class="ft-chip--icon-button"
2066
2024
  @click=${this.onIconClick}
@@ -2071,11 +2029,11 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2071
2029
  part="icon-button"
2072
2030
  ?hideTooltip=${this.hideIconTooltip}
2073
2031
  ></ft-button>
2074
- `:v`
2032
+ `:x`
2075
2033
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
2076
2034
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
2077
2035
  </div>
2078
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ya))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ya))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return co(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ye.elementDefinitions={"ft-ripple":K,"ft-typography":X,"ft-icon":te,"ft-button":J};ye.styles=Af;Ke([f({type:Boolean})],ye.prototype,"highlighted",void 0);Ke([f({type:Boolean})],ye.prototype,"removable",void 0);Ke([f({type:Boolean})],ye.prototype,"disabled",void 0);Ke([f({type:Boolean})],ye.prototype,"clickable",void 0);Ke([f({type:Boolean})],ye.prototype,"iconClickable",void 0);Ke([f({type:Boolean})],ye.prototype,"dense",void 0);Ke([f({type:Boolean})],ye.prototype,"multiLine",void 0);Ke([f()],ye.prototype,"label",void 0);Ke([f()],ye.prototype,"iconLabel",void 0);Ke([f({type:Boolean})],ye.prototype,"hideIconTooltip",void 0);Ke([f()],ye.prototype,"icon",void 0);Ke([f()],ye.prototype,"iconVariant",void 0);Ke([f({type:Boolean})],ye.prototype,"trailingIcon",void 0);Ke([f()],ye.prototype,"typographyVariant",void 0);Ke([F("ft-typography slot")],ye.prototype,"slottedContent",void 0);var Rf={"ft-chip":ye};Z(Rf);var Dg={iconColor:i.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},_f=A`
2036
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Ca))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Ca))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return ji(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ge.elementDefinitions={"ft-ripple":K,"ft-typography":J,"ft-icon":re,"ft-button":W};ge.styles=Ff;We([f({type:Boolean})],ge.prototype,"highlighted",void 0);We([f({type:Boolean})],ge.prototype,"removable",void 0);We([f({type:Boolean})],ge.prototype,"disabled",void 0);We([f({type:Boolean})],ge.prototype,"clickable",void 0);We([f({type:Boolean})],ge.prototype,"iconClickable",void 0);We([f({type:Boolean})],ge.prototype,"dense",void 0);We([f({type:Boolean})],ge.prototype,"multiLine",void 0);We([f()],ge.prototype,"label",void 0);We([f()],ge.prototype,"iconLabel",void 0);We([f({type:Boolean})],ge.prototype,"hideIconTooltip",void 0);We([f()],ge.prototype,"icon",void 0);We([f()],ge.prototype,"iconVariant",void 0);We([f({type:Boolean})],ge.prototype,"trailingIcon",void 0);We([f()],ge.prototype,"typographyVariant",void 0);We([U("ft-typography slot")],ge.prototype,"slottedContent",void 0);var Uf={"ft-chip":ge};Z(Uf);var sy={iconColor:o.extend("--ft-floating-menu-icon-color","",S.colorOnSurfaceMedium)},Bf=O`
2079
2037
  .ft-floating-menu-item {
2080
2038
  cursor: pointer;
2081
2039
  display: flex;
@@ -2095,7 +2053,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2095
2053
  }
2096
2054
 
2097
2055
  .ft-floating-menu-item ft-icon {
2098
- color: ${Dg.iconColor};
2056
+ color: ${sy.iconColor};
2099
2057
  margin-left: 0;
2100
2058
  flex-shrink: 0;
2101
2059
  flex-grow: 0;
@@ -2110,8 +2068,8 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2110
2068
  word-break: break-word;
2111
2069
  hyphens: auto;
2112
2070
  }
2113
- `;var zo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ba=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},He=class extends ${constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return v`
2114
- <div class="${ne(this.floatingClasses)}"
2071
+ `;var ko=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ea=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Fe=class extends F{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return x`
2072
+ <div class="${oe(this.floatingClasses)}"
2115
2073
  tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
2116
2074
  aria-disabled="${this.disabled}"
2117
2075
  @keydown=${e=>this.onKeyDown(e)}
@@ -2119,16 +2077,16 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2119
2077
  <ft-ripple
2120
2078
  ?disabled=${this.disabled}
2121
2079
  ></ft-ripple>
2122
- ${this.icon?v`
2080
+ ${this.icon?x`
2123
2081
  <ft-icon .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
2124
- `:L}
2125
- <ft-typography variant="${oe.body2}">
2082
+ `:R}
2083
+ <ft-typography variant="${te.body2}">
2126
2084
  <slot></slot>
2127
2085
  </ft-typography>
2128
2086
  </div>
2129
- `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new ba(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new ba(this.value)))}};He.elementDefinitions={"ft-icon":te,"ft-ripple":K,"ft-typography":X};He.styles=_f;zo([f()],He.prototype,"iconVariant",void 0);zo([f()],He.prototype,"icon",void 0);zo([f()],He.prototype,"value",void 0);zo([f({type:Boolean})],He.prototype,"notFocusable",void 0);zo([f({type:Boolean})],He.prototype,"disabled",void 0);zo([jt()],He.prototype,"onKeyDown",null);var wr={zIndex:i.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:i.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:i.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:i.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:i.external(S.colorSurface,"Design system"),menuElevation:i.external(S.elevation02,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system")},Tf=A`
2087
+ `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Ea(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Ea(this.value)))}};Fe.elementDefinitions={"ft-icon":re,"ft-ripple":K,"ft-typography":J};Fe.styles=Bf;ko([f()],Fe.prototype,"iconVariant",void 0);ko([f()],Fe.prototype,"icon",void 0);ko([f()],Fe.prototype,"value",void 0);ko([f({type:Boolean})],Fe.prototype,"notFocusable",void 0);ko([f({type:Boolean})],Fe.prototype,"disabled",void 0);ko([Ht()],Fe.prototype,"onKeyDown",null);var gr={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",S.colorOnSurfaceHigh),colorSurface:o.external(S.colorSurface,"Design system"),menuElevation:o.external(S.elevation02,"Design system"),borderRadiusS:o.external(S.borderRadiusS,"Design system")},Vf=O`
2130
2088
  .ft-floating-menu {
2131
- color: ${wr.textColor};
2089
+ color: ${gr.textColor};
2132
2090
  display: contents;
2133
2091
  }
2134
2092
 
@@ -2145,20 +2103,20 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2145
2103
  display: none;
2146
2104
  position: relative;
2147
2105
  overflow: auto;
2148
- max-width: ${wr.maxWidth};
2149
- max-height: ${wr.maxHeight};
2150
- box-shadow: ${wr.menuElevation};
2151
- background-color: ${wr.colorSurface};
2152
- border-radius: ${wr.borderRadiusS};
2153
- color: ${wr.textColor};
2154
- z-index: ${wr.zIndex};
2106
+ max-width: ${gr.maxWidth};
2107
+ max-height: ${gr.maxHeight};
2108
+ box-shadow: ${gr.menuElevation};
2109
+ background-color: ${gr.colorSurface};
2110
+ border-radius: ${gr.borderRadiusS};
2111
+ color: ${gr.textColor};
2112
+ z-index: ${gr.zIndex};
2155
2113
  }
2156
2114
 
2157
2115
  .ft-floating-menu--open .ft-floating-menu--options {
2158
2116
  display: block;
2159
2117
  }
2160
- `;var ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},va=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var xa=class extends CustomEvent{constructor(e){super("select",{detail:e})}},pe=class extends ${constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Ue.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new va(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return v`
2161
- <div part="container" class="${ne(e)}" @keydown=${this.onKeyDown}>
2118
+ `;var Ue=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oa=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Aa=class extends CustomEvent{constructor(e){super("select",{detail:e})}},de=class extends F{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Me.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new Oa(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return x`
2119
+ <div part="container" class="${oe(e)}" @keydown=${this.onKeyDown}>
2162
2120
  <slot name="toggle"
2163
2121
  part="toggle"
2164
2122
  @click=${this.toggleMenu}
@@ -2188,7 +2146,7 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2188
2146
  </div>
2189
2147
  </div>
2190
2148
  </div>
2191
- `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new xa(e.detail)),this.closeMenu()}onContentClick(e){oi(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:o}=await mi(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${o}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};pe.elementDefinitions={"ft-floating-menu-item":He,"ft-button":J};pe.styles=Tf;ze([f()],pe.prototype,"horizontalAlignment",void 0);ze([f()],pe.prototype,"verticalAlignment",void 0);ze([De([])],pe.prototype,"closeMenuMatchers",void 0);ze([f({type:Boolean})],pe.prototype,"primary",void 0);ze([f()],pe.prototype,"label",void 0);ze([f()],pe.prototype,"tooltipPosition",void 0);ze([f()],pe.prototype,"icon",void 0);ze([f()],pe.prototype,"iconVariant",void 0);ze([f()],pe.prototype,"text",void 0);ze([f({type:Boolean})],pe.prototype,"disabled",void 0);ze([I()],pe.prototype,"menuOpen",void 0);ze([I()],pe.prototype,"forceMenuOpen",void 0);ze([F(".ft-floating-menu")],pe.prototype,"container",void 0);ze([F(".ft-floating-menu--wrapper")],pe.prototype,"menuWrapper",void 0);ze([F("#actions-button")],pe.prototype,"actionButton",void 0);ze([Qo({slot:"toggle"})],pe.prototype,"customToggle",void 0);var Mg={color:i.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},Lf=A`
2149
+ `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Aa(e.detail)),this.closeMenu()}onContentClick(e){jo(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:i}=await ii(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${i}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};de.elementDefinitions={"ft-floating-menu-item":Fe,"ft-button":W};de.styles=Vf;Ue([f()],de.prototype,"horizontalAlignment",void 0);Ue([f()],de.prototype,"verticalAlignment",void 0);Ue([Pe([])],de.prototype,"closeMenuMatchers",void 0);Ue([f({type:Boolean})],de.prototype,"primary",void 0);Ue([f()],de.prototype,"label",void 0);Ue([f()],de.prototype,"tooltipPosition",void 0);Ue([f()],de.prototype,"icon",void 0);Ue([f()],de.prototype,"iconVariant",void 0);Ue([f()],de.prototype,"text",void 0);Ue([f({type:Boolean})],de.prototype,"disabled",void 0);Ue([T()],de.prototype,"menuOpen",void 0);Ue([T()],de.prototype,"forceMenuOpen",void 0);Ue([U(".ft-floating-menu")],de.prototype,"container",void 0);Ue([U(".ft-floating-menu--wrapper")],de.prototype,"menuWrapper",void 0);Ue([U("#actions-button")],de.prototype,"actionButton",void 0);Ue([zo({slot:"toggle"})],de.prototype,"customToggle",void 0);var ly={color:o.extend("--ft-floating-menu-label-color","",S.colorOnSurfaceMedium)},zf=O`
2192
2150
  .ft-floating-menu-label {
2193
2151
  padding: 4px 8px;
2194
2152
  }
@@ -2199,65 +2157,65 @@ ${ha.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
2199
2157
  width: max-content;
2200
2158
  text-overflow: ellipsis;
2201
2159
  overflow: hidden;
2202
- color: ${Mg.color}
2160
+ color: ${ly.color}
2203
2161
  }
2204
- `;var Er=class extends ${render(){return v`
2162
+ `;var yr=class extends F{render(){return x`
2205
2163
  <div class="ft-floating-menu-label">
2206
- <ft-typography variant="${oe.caption}">
2164
+ <ft-typography variant="${te.caption}">
2207
2165
  <slot></slot>
2208
2166
  </ft-typography>
2209
2167
  </div>
2210
- `}};Er.elementDefinitions={"ft-typography":X};Er.styles=Lf;var If={"ft-floating-menu":pe,"ft-floating-menu-item":He,"ft-floating-menu-label":Er};Z(If);function $g(t){var e;return((e=uo(t))===null||e===void 0?void 0:e.openMode)===gn.EXTERNAL}function kf(t){return $g(t)?uo(t).originUrl:si(t)}var Bi=class{constructor(e){this.contentLocales=e}localize(e){var r,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(o=>o.lang===e.value))===null||r===void 0?void 0:r.label}};var Ze=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ce=class extends tp(Je(ga)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,o,n,a,s;return this.metadata?this.metadata.label:(s=(n=(o=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Ho)}willUpdate(e){var r,o,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((o=this.viewerStateManager)===null||o===void 0||o.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?sr.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Bi((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,o,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((o=this.document)===null||o===void 0?void 0:o.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return v`
2168
+ `}};yr.elementDefinitions={"ft-typography":J};yr.styles=zf;var Hf={"ft-floating-menu":de,"ft-floating-menu-item":Fe,"ft-floating-menu-label":yr};Z(Hf);function cy(t){var e;return((e=ro(t))===null||e===void 0?void 0:e.openMode)===En.EXTERNAL}function Wf(t){return cy(t)?ro(t).originUrl:Yo(t)}var Li=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}};var Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Se=class extends fu(ut(wa)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,r,i,n,a,s;return this.metadata?this.metadata.label:(s=(n=(i=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Lo)}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.viewerStateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((i=this.viewerStateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(a=this.viewerStateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?ir.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new Li((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,r,i,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(r=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((i=this.document)===null||i===void 0?void 0:i.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return x`
2211
2169
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
2212
2170
  ${this.hideIfEmpty()}
2213
- `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?v`
2171
+ `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?x`
2214
2172
  <style>
2215
2173
  :host {
2216
2174
  display: none !important;
2217
2175
  }
2218
2176
  </style>
2219
- `:L}renderSwitchToRelatives(){return v`
2177
+ `:R}renderSwitchToRelatives(){return x`
2220
2178
  <div part="floating-menu-container" class="ft-ud-viewer-metadata--container">
2221
2179
  <ft-floating-menu part="floating-menu" text="Toggle collapsible" trailingIcon>
2222
2180
  ${this.renderChip(!0)}
2223
2181
  <ft-floating-menu-label>${this.metadataLabel}</ft-floating-menu-label>
2224
- ${qe(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2182
+ ${je(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
2225
2183
  </ft-floating-menu>
2226
2184
  </div>
2227
- `}renderRelativeItem(e,r){var o,n;let a=this.translateValues&&(n=new Bi((o=this.availableContentLocales)!==null&&o!==void 0?o:[]).localize(r))!==null&&n!==void 0?n:r,s=kf(e);return v`
2185
+ `}renderRelativeItem(e,r){var i,n;let a=this.translateValues&&(n=new Li((i=this.availableContentLocales)!==null&&i!==void 0?i:[]).localize(r))!==null&&n!==void 0?n:r,s=Wf(e);return x`
2228
2186
  <a part="relative-item-link"
2229
2187
  href="${s}" >
2230
2188
  <ft-ripple part="relative-item-ripple"></ft-ripple>
2231
2189
  <ft-floating-menu-item part="relative-item" value="${a.value}" notFocusable>
2232
- ${a.value==null||a.value===a.displayValue?a.displayValue:v`
2190
+ ${a.value==null||a.value===a.displayValue?a.displayValue:x`
2233
2191
  <ft-tooltip part="relative-item-tooltip" text="${a.value}">
2234
2192
  ${a.displayValue}
2235
2193
  </ft-tooltip>
2236
2194
  `}
2237
2195
  </ft-floating-menu-item>
2238
2196
  </a>
2239
- `}renderChip(e=!1){var r,o,n,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((o=this.flatMetadata)===null||o===void 0?void 0:o.displayValue),p=`${this.metadataLabel}: ${(a=(n=this.flatMetadata)===null||n===void 0?void 0:n.displayTooltipValue)!==null&&a!==void 0?a:this.noValueMessage}`,m=v`
2197
+ `}renderChip(e=!1){var r,i,n,a,s,l;let d=!this.forceTooltip&&this.displayLabel&&((r=this.flatMetadata)===null||r===void 0?void 0:r.displayTooltipValue)==((i=this.flatMetadata)===null||i===void 0?void 0:i.displayValue),u=`${this.metadataLabel}: ${(a=(n=this.flatMetadata)===null||n===void 0?void 0:n.displayTooltipValue)!==null&&a!==void 0?a:this.noValueMessage}`,m=x`
2240
2198
  <ft-chip part="chip"
2241
2199
  exportpartsPrefix="chip"
2242
- label="${p}"
2200
+ label="${u}"
2243
2201
  slot="${d&&e?"toggle":""}"
2244
2202
  trailingIcon icon="${e?"thin_arrow":""}"
2245
2203
  ?clickable=${e}
2246
2204
  ?multiLine=${this.multiLine}>
2247
- ${this.displayLabel?v`
2205
+ ${this.displayLabel?x`
2248
2206
  <span part="label">${(l=(s=this.metadata)===null||s===void 0?void 0:s.label)!==null&&l!==void 0?l:this.key}: </span>
2249
- `:L}
2250
- ${this.metadataValue.length===0?L:v`
2207
+ `:R}
2208
+ ${this.metadataValue.length===0?R:x`
2251
2209
  <span part="values">${this.metadataValue}</span>
2252
2210
  `}
2253
- </ft-chip>`;return d?m:v`
2211
+ </ft-chip>`;return d?m:x`
2254
2212
  <ft-tooltip part="tooltip"
2255
2213
  slot="${e?"toggle":""}"
2256
2214
  class="${this.multiLine?"ft-ud-viewer-metadata-multi-line":""}"
2257
- text="${p}">
2215
+ text="${u}">
2258
2216
  ${m}
2259
2217
  </ft-tooltip>
2260
- `}};Ce.elementDefinitions={"ft-chip":ye,"ft-floating-menu":pe,"ft-floating-menu-item":He,"ft-floating-menu-label":Er,"ft-ripple":K,"ft-tooltip":se};Ce.styles=Cf;Ze([f(),Is()],Ce.prototype,"key",void 0);Ze([f({type:Boolean})],Ce.prototype,"multiLine",void 0);Ze([f({type:Boolean})],Ce.prototype,"useForSwitchingToRelatives",void 0);Ze([f({type:Boolean})],Ce.prototype,"displayLabel",void 0);Ze([xt()],Ce.prototype,"hierarchicalValueTruncatingLevel",void 0);Ze([f({type:Boolean})],Ce.prototype,"forceTooltip",void 0);Ze([f({attribute:!1})],Ce.prototype,"editorMode",void 0);Ze([f({type:Boolean})],Ce.prototype,"translateValues",void 0);Ze([H({store:"viewer",selector:(t,e)=>{var r,o;return(o=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||o===void 0?void 0:o.find(n=>n.key===e.key)}})],Ce.prototype,"metadata",void 0);Ze([I()],Ce.prototype,"flatMetadata",void 0);Ze([H({store:"viewer"})],Ce.prototype,"document",void 0);Ze([I()],Ce.prototype,"relatives",void 0);Ze([H({store:N.name})],Ce.prototype,"availableContentLocales",void 0);Ze([Bn(Ho.properties.itemWithNoValueForSwitchToRelatives())],Ce.prototype,"noValueMessage",void 0);Ze([ut({eventName:xr.clusteringHelperCreated})],Ce.prototype,"updateRelatives",null);var Pf={"ft-asset-viewer-content":Mn,"ft-asset-viewer-content-control":Hn,"ft-asset-viewer-context":Qt,"ft-asset-viewer-document-title":Gn,"ft-asset-viewer-filename":zn,"ft-asset-viewer-mime-type-icon":jn,"ft-asset-viewer-title":Wn,"ft-ud-viewer-attachments":Qr,"ft-ud-viewer-content":Yn,"ft-ud-viewer-content-control":Xn,"ft-ud-viewer-context":Cr,"ft-ud-viewer-filename":Jn,"ft-ud-viewer-metadata":Ce,"ft-ud-viewer-mime-type-icon":ea,"ft-ud-viewer-title":Qn,"ft-ud-viewer-feedback":ue};Z(Pf);})();
2218
+ `}};Se.elementDefinitions={"ft-chip":ge,"ft-floating-menu":de,"ft-floating-menu-item":Fe,"ft-floating-menu-label":yr,"ft-ripple":K,"ft-tooltip":me};Se.styles=Nf;Ge([f(),$s()],Se.prototype,"key",void 0);Ge([f({type:Boolean})],Se.prototype,"multiLine",void 0);Ge([f({type:Boolean})],Se.prototype,"useForSwitchingToRelatives",void 0);Ge([f({type:Boolean})],Se.prototype,"displayLabel",void 0);Ge([gt()],Se.prototype,"hierarchicalValueTruncatingLevel",void 0);Ge([f({type:Boolean})],Se.prototype,"forceTooltip",void 0);Ge([f({attribute:!1})],Se.prototype,"editorMode",void 0);Ge([f({type:Boolean})],Se.prototype,"translateValues",void 0);Ge([q({store:"viewer",selector:(t,e)=>{var r,i;return(i=(r=t.document)===null||r===void 0?void 0:r.metadata)===null||i===void 0?void 0:i.find(n=>n.key===e.key)}})],Se.prototype,"metadata",void 0);Ge([T()],Se.prototype,"flatMetadata",void 0);Ge([q({store:"viewer"})],Se.prototype,"document",void 0);Ge([T()],Se.prototype,"relatives",void 0);Ge([q({store:N.name})],Se.prototype,"availableContentLocales",void 0);Ge([aa(Lo.properties.itemWithNoValueForSwitchToRelatives())],Se.prototype,"noValueMessage",void 0);Ge([st({eventName:fr.clusteringHelperCreated})],Se.prototype,"updateRelatives",null);var Gf={"ft-asset-viewer-content":Wn,"ft-asset-viewer-context":Jt,"ft-asset-viewer-document-title":qn,"ft-asset-viewer-filename":Gn,"ft-asset-viewer-mime-type-icon":Zn,"ft-asset-viewer-title":jn,"ft-ud-viewer-attachments":jr,"ft-ud-viewer-content":Qn,"ft-ud-viewer-context":mr,"ft-ud-viewer-filename":ea,"ft-ud-viewer-metadata":Se,"ft-ud-viewer-mime-type-icon":ra,"ft-ud-viewer-title":ta,"ft-ud-viewer-feedback":ce};Z(Gf);})();
2261
2219
  /*! Bundled license information:
2262
2220
 
2263
2221
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: