@fluid-topics/ft-reader-content 2.2.30 → 2.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-content.min.js +46 -46
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(()=>{var Yd=Object.defineProperty;var N=(r,e)=>{for(var t in e)Yd(r,t,{get:e[t],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=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,m){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(m)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=m.prototype.attributeChangedCallback,O=new Set(m.observedAttributes||[]);g(m,O,v);let k={elementClass:m,connectedCallback:m.prototype.connectedCallback,disconnectedCallback:m.prototype.disconnectedCallback,adoptedCallback:m.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:m.formAssociated,formAssociatedCallback:m.prototype.formAssociatedCallback,formDisabledCallback:m.prototype.formDisabledCallback,formResetCallback:m.prototype.formResetCallback,formStateRestoreCallback:m.prototype.formStateRestoreCallback,observedAttributes:O};this._definitionsByTag.set(y,k),this._definitionsByClass.set(m,k);let M=t.call(o,y);M||(M=h(y),e.call(o,y,M)),this===window.customElements&&(s.set(m,k),k.standInClass=M);let G=this._awaitingUpgrade.get(y);if(G){this._awaitingUpgrade.delete(y);for(let P of G)a.delete(P),x(P,k,!0)}let T=this._whenDefinedPromises.get(y);return T!==void 0&&(T.resolve(m),this._whenDefinedPromises.delete(y)),m}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let m=this._getDefinition(y);if(m!==void 0)return Promise.resolve(m.elementClass);let v=this._whenDefinedPromises.get(y);return v===void 0&&(v={},v.promise=new Promise(O=>v.resolve=O),this._whenDefinedPromises.set(y,v)),v.promise}_upgradeWhenDefined(y,m,v){let O=this._awaitingUpgrade.get(m);O||this._awaitingUpgrade.set(m,O=new Set),v?O.add(y):O.delete(y)}};let d;window.HTMLElement=function(){let m=d;if(m)return d=void 0,m;let v=s.get(this.constructor);if(!v)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return m=Reflect.construct(r,[],v.standInClass),Object.setPrototypeOf(m,this.constructor.prototype),i.set(m,v),m},window.HTMLElement.prototype=r.prototype;let p=y=>y===document||y instanceof ShadowRoot,f=y=>{let m=y.getRootNode();if(!p(m)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;m=v.getRootNode(),p(m)||(m=l.get(m)?.getRootNode()||document)}return m.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let O=f(v)||window.customElements,k=O._getDefinition(y);return k?x(v,k):a.set(v,O),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let v=i.get(this);v&&v.formAssociated&&v?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let v=i.get(this);v?.formAssociated&&v?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let v=i.get(this);v?.formAssociated&&v?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let v=i.get(this);v?.formAssociated&&v?.formStateRestoreCallback?.apply(this,arguments)}},g=(y,m,v)=>{if(m.size===0||v===void 0)return;let O=y.prototype.setAttribute;O&&(y.prototype.setAttribute=function(G,T){let P=G.toLowerCase();if(m.has(P)){let q=this.getAttribute(P);O.call(this,P,T),v.call(this,P,q,T)}else O.call(this,P,T)});let k=y.prototype.removeAttribute;k&&(y.prototype.removeAttribute=function(G){let T=G.toLowerCase();if(m.has(T)){let P=this.getAttribute(T);k.call(this,T),v.call(this,T,P,null)}else k.call(this,T)});let M=y.prototype.toggleAttribute;M&&(y.prototype.toggleAttribute=function(G,T){let P=G.toLowerCase();if(m.has(P)){let q=this.getAttribute(P);M.call(this,P,T);let Pe=this.getAttribute(P);v.call(this,P,q,Pe)}else M.call(this,P,T)})},b=y=>{let m=Object.getPrototypeOf(y);if(m!==window.HTMLElement)return m===r?Object.setPrototypeOf(y,window.HTMLElement):b(m)},x=(y,m,v=!1)=>{Object.setPrototypeOf(y,m.elementClass.prototype),i.set(y,m),d=y;try{new m.elementClass}catch{b(m.elementClass),new m.elementClass}m.attributeChangedCallback&&m.observedAttributes.forEach(O=>{y.hasAttribute(O)&&m.attributeChangedCallback.call(y,O,null,y.getAttribute(O))}),v&&m.connectedCallback&&y.isConnected&&m.connectedCallback.call(y)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let m=w.apply(this,arguments);return y.customElements&&(m.customElements=y.customElements),m};let E=[document],A=(y,m,v=void 0)=>{let O=(v?Object.getPrototypeOf(v):y.prototype)[m];y.prototype[m]=function(){E.push(this);let k=O.apply(v||this,arguments);return k!==void 0&&l.set(k,this),E.pop(),k}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let I=(y,m)=>{let v=Object.getOwnPropertyDescriptor(y.prototype,m);Object.defineProperty(y.prototype,m,{...v,set(O){E.push(this),v.set.call(this,O),E.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,m=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...G){let T=m.call(this,...G);return y.set(T,this),T},v.forEach(G=>{let T=window.ElementInternals.prototype,P=T[G];T[G]=function(...q){let Pe=y.get(this);if(i.get(Pe).formAssociated===!0)return P?.call(this,...q);throw new DOMException(`Failed to execute ${P} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class O extends Array{constructor(T){super(...T),this._elements=T}get value(){return this._elements.find(T=>T.checked===!0)?.value||""}}class k{constructor(T){let P=new Map;T.forEach((q,Pe)=>{let kn=q.getAttribute("name"),ss=P.get(kn)||[];this[+Pe]=q,ss.push(q),P.set(kn,ss)}),this.length=T.length,P.forEach((q,Pe)=>{q&&(q.length===1?this[Pe]=q[0]:this[Pe]=new O(q))})}namedItem(T){return this[T]}}let M=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let G=M.get.call(this,[]),T=[];for(let P of G){let q=i.get(P);(!q||q.formAssociated===!0)&&T.push(P)}return new k(T)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},i):console.info(t,o,i,s)}}}var Wn={};N(Wn,{CSSResult:()=>jt,LitElement:()=>Ge,ReactiveElement:()=>xe,_$LE:()=>lu,_$LH:()=>Hn,adoptStyles:()=>xr,css:()=>_,defaultConverter:()=>Kt,getCompatibleStyle:()=>ao,html:()=>$,isServer:()=>Qh,mathml:()=>$n,noChange:()=>Z,notEqual:()=>Er,nothing:()=>D,render:()=>Vn,supportsAdoptingStyleSheets:()=>br,svg:()=>Rr,unsafeCSS:()=>vr});var io=globalThis,br=io.ShadowRoot&&(io.ShadyCSS===void 0||io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nn=Symbol(),cs=new WeakMap,jt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(br&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=cs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&cs.set(t,e))}return e}toString(){return this.cssText}},vr=r=>new jt(typeof r=="string"?r:r+"",void 0,Nn),_=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,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.")})(i)+r[a+1],r[0]);return new jt(t,r,Nn)},xr=(r,e)=>{if(br)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=io.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},ao=br?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return vr(t)})(r):r;var{is:Jd,defineProperty:Xd,getOwnPropertyDescriptor:eu,getOwnPropertyNames:tu,getOwnPropertySymbols:ru,getPrototypeOf:ou}=Object,so=globalThis,ls=so.trustedTypes,nu=ls?ls.emptyScript:"",iu=so.reactiveElementPolyfillSupport,Sr=(r,e)=>r,Kt={toAttribute(r,e){switch(e){case Boolean:r=r?nu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Er=(r,e)=>!Jd(r,e),ds={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:Er};Symbol.metadata??=Symbol("metadata"),so.litPropertyMetadata??=new WeakMap;var xe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ds){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Xd(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=eu(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ds}static _$Ei(){if(this.hasOwnProperty(Sr("elementProperties")))return;let e=ou(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Sr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sr("properties"))){let t=this.properties,o=[...tu(t),...ru(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(ao(i))}else e!==void 0&&t.push(ao(e));return t}static _$Eu(e,t){let o=t.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,t=this.constructor.elementProperties;for(let o of t.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 xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Kt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kt;this._$Em=i;let l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Er)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Sr("elementProperties")]=new Map,xe[Sr("finalized")]=new Map,iu?.({ReactiveElement:xe}),(so.reactiveElementVersions??=[]).push("2.1.2");var Fn=globalThis,us=r=>r,co=Fn.trustedTypes,ps=co?co.createPolicy("lit-html",{createHTML:r=>r}):void 0,Mn="$lit$",We=`lit$${Math.random().toFixed(9).slice(2)}$`,Dn="?"+We,au=`<${Dn}>`,ft=document,wr=()=>ft.createComment(""),Or=r=>r===null||typeof r!="object"&&typeof r!="function",Un=Array.isArray,bs=r=>Un(r)||typeof r?.[Symbol.iterator]=="function",Pn=`[
|
|
2
|
-
\f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),gs=/'/g,ms=/"/g,vs=/^(?:script|style|textarea|title)$/i,Bn=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Bn(1),Rr=Bn(2),$n=Bn(3),Z=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),ys=new WeakMap,pt=ft.createTreeWalker(ft,129);function xs(r,e){if(!Un(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(e):e}var Ss=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Cr;for(let l=0;l<t;l++){let d=r[l],p,f,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,f=s.exec(d),f!==null);)g=s.lastIndex,s===Cr?f[1]==="!--"?s=fs:f[1]!==void 0?s=hs:f[2]!==void 0?(vs.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=ut):f[3]!==void 0&&(s=ut):s===ut?f[0]===">"?(s=i??Cr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?ut:f[3]==='"'?ms:gs):s===ms||s===gs?s=ut:s===fs||s===hs?s=Cr:(s=ut,i=void 0);let b=s===ut&&r[l+1].startsWith("/>")?" ":"";a+=s===Cr?d+au:h>=0?(o.push(p),d.slice(0,h)+Mn+d.slice(h)+We+b):d+We+(h===-2?l:b)}return[xs(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ar=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=Ss(e,t);if(this.el=r.createElement(p,o),pt.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=pt.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Mn)){let g=f[s++],b=i.getAttribute(h).split(We),x=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?uo:x[1]==="?"?po:x[1]==="@"?fo:gt}),i.removeAttribute(h)}else h.startsWith(We)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(vs.test(i.tagName)){let h=i.textContent.split(We),g=h.length-1;if(g>0){i.textContent=co?co.emptyScript:"";for(let b=0;b<g;b++)i.append(h[b],wr()),pt.nextNode(),d.push({type:2,index:++a});i.append(h[g],wr())}}}else if(i.nodeType===8)if(i.data===Dn)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(We,h+1))!==-1;)d.push({type:7,index:a}),h+=We.length-1}a++}}static createElement(e,t){let o=ft.createElement("template");return o.innerHTML=e,o}};function ht(r,e,t=r,o){if(e===Z)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Or(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ht(r,i._$AS(r,e.values),i,o)),e}var lo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??ft).importNode(t,!0);pt.currentNode=i;let a=pt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new qt(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new ho(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=pt.nextNode(),s++)}return pt.currentNode=ft,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},qt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ht(this,e,t),Or(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):bs(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!==D&&Or(this._$AH)?this._$AA.nextSibling.data=e:this.T(ft.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ar.createElement(xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new lo(i,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=ys.get(e.strings);return t===void 0&&ys.set(e.strings,t=new Ar(e)),t}k(e){Un(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.O(wr()),this.O(wr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=us(e).nextSibling;us(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=ht(this,e,t,0),s=!Or(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=ht(this,l[o+d],t,d),p===Z&&(p=this._$AH[d]),s||=!Or(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},uo=class extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},po=class extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},fo=class extends gt{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=ht(this,e,t,0)??D)===Z)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&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)}},ho=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ht(this,e)}},Hn={M:Mn,P:We,A:Dn,C:1,L:Ss,R:lo,D:bs,V:ht,I:qt,H:gt,N:po,U:fo,B:uo,F:ho},su=Fn.litHtmlPolyfillSupport;su?.(Ar,qt),(Fn.litHtmlVersions??=[]).push("3.3.3");var Vn=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new qt(e.insertBefore(wr(),a),a,void 0,t??{})}return i._$AI(r),i};var zn=globalThis,Ge=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};Ge._$litElement$=!0,Ge.finalized=!0,zn.litElementHydrateSupport?.({LitElement:Ge});var cu=zn.litElementPolyfillSupport;cu?.({LitElement:Ge});var lu={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(zn.litElementVersions??=[]).push("4.2.2");var Qh=!1;var Gn={};N(Gn,{customElement:()=>du,eventOptions:()=>pu,property:()=>S,query:()=>Fe,queryAll:()=>hu,queryAssignedElements:()=>mu,queryAssignedNodes:()=>yu,queryAsync:()=>gu,standardProperty:()=>Es,state:()=>H});var du=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var uu={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Er},Es=(r=uu,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r,!0,l)}}throw Error("Unsupported decorator location: "+o)};function S(r){return(e,t)=>typeof t=="object"?Es(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function H(r){return S({...r,state:!0,attribute:!1})}function pu(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Fe(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ae(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Ae(t,o,{get(){return a(this)}})}}var fu;function hu(r){return(e,t)=>Ae(e,t,{get(){return(this.renderRoot??(fu??=document.createDocumentFragment())).querySelectorAll(r)}})}function gu(r){return(e,t)=>Ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function mu(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function yu(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var jn={};N(jn,{repeat:()=>tt});var Me={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...e)=>({_$litDirective$:r,values:e}),Se=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:bu}=Hn,Cs=r=>r;var Os=r=>r.strings===void 0,ws=()=>document.createComment(""),Zt=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(ws(),i),s=o.insertBefore(ws(),i);t=new bu(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==i||l){let d=t._$AA;for(;d!==a;){let p=Cs(d).nextSibling;Cs(o).insertBefore(d,i),d=p}}}return t},et=(r,e,t=r)=>(r._$AI(e,t),r),vu={},As=(r,e=vu)=>r._$AH=e,Rs=r=>r._$AH,go=r=>{r._$AR(),r._$AA.remove()};var Ts=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},tt=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let i=Rs(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,g=i.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(l[h]===s[b])d[b]=et(i[h],a[b]),h++,b++;else if(l[g]===s[x])d[x]=et(i[g],a[x]),g--,x--;else if(l[h]===s[x])d[x]=et(i[h],a[x]),Zt(r,d[x+1],i[h]),h++,x--;else if(l[g]===s[b])d[b]=et(i[g],a[b]),Zt(r,i[h],i[g]),g--,b++;else if(p===void 0&&(p=Ts(s,b,x),f=Ts(l,h,g)),p.has(l[h]))if(p.has(l[g])){let w=f.get(s[b]),E=w!==void 0?i[w]:null;if(E===null){let A=Zt(r,i[h]);et(A,a[b]),d[b]=A}else d[b]=et(E,a[b]),Zt(r,i[h],E),i[w]=null;b++}else go(i[g]),g--;else go(i[h]),h++;for(;b<=x;){let w=Zt(r,d[x+1]);et(w,a[b]),d[b++]=w}for(;h<=g;){let w=i[h++];w!==null&&go(w)}return this.ut=s,As(r,d),Z}});var Kn={};N(Kn,{classMap:()=>xu});var xu=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return Z}});var qn={};N(qn,{styleMap:()=>Eu});var Is="important",Su=" !"+Is,Eu=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(Su);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?Is:""):t[o]=i}}return Z}});var Qn={};N(Qn,{UnsafeHTMLDirective:()=>Qt,unsafeHTML:()=>Zn});var Qt=class extends Se{constructor(e){if(super(e),this.it=D,e.type!==Me.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===Z)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Qt.directiveName="unsafeHTML",Qt.resultType=1;var Zn=ue(Qt);var Yn={};N(Yn,{splitBreadcrumbForMenu:()=>Cu});function Cu(r,e=0,t=0){if(r.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(t,1),i=r.slice(o*-1);return e+o>=r.length?{beforeMenu:[],inMenu:[],afterMenu:r}:{beforeMenu:r.slice(0,e),inMenu:r.slice(e,r.length-i.length),afterMenu:i}}var ai={};N(ai,{CacheRegistry:()=>De,ClearCacheEvent:()=>Lr});var Jn={};N(Jn,{CancelablePromise:()=>mo,CanceledPromiseError:()=>pe,cancelable:()=>rt});var pe=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},mo=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new pe("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new pe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},rt=r=>new mo((e,t)=>r.then(e).catch(t));var ii={};N(ii,{FtNotificationEvent:()=>_r,PostResizeEvent:()=>ni,PreResizeEvent:()=>oi,WithEventBus:()=>je,withEventBus:()=>vo});var ri={};N(ri,{applyMixinOnce:()=>Q,customElements:()=>oe,dateReviver:()=>Ru,deepCopy:()=>fe,deepEqual:()=>re,delay:()=>bo,eventPathContainsMatchingElement:()=>Iu,everyDeep:()=>Au,flatDeep:()=>Ls,forEachDeep:()=>ks,getComposedPathTo:()=>ei,groupBy:()=>ku,hasChanged:()=>Ee,ignoreComposingEvents:()=>Lu,last:()=>_u,minmax:()=>Re,parseDate:()=>Ps,randomId:()=>ti,someDeep:()=>Ns,unslotText:()=>Fs,waitFor:()=>mt,waitUntil:()=>Ir});var Xn={};N(Xn,{customElement:()=>Tr,dateProperty:()=>Ou,isNumber:()=>_s,jsonProperty:()=>he,jsonPropertyConverter:()=>yo,numberProperty:()=>ie,optionalNumberProperty:()=>wu});var Tr=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)},yo=r=>({fromAttribute:e=>{if(e==null)return fe(r);try{return JSON.parse(e)}catch{return fe(r)}},toAttribute:e=>JSON.stringify(e)});function he(r,e){return S({type:Object,converter:yo(r),hasChanged:Ee,...e??{}})}function wu(r){return ie(r)}function ie(r){return S({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let i=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return _s(e)?Re(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function _s(r){return!isNaN(parseFloat(r))}function Ou(r){return S({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var bo=r=>new Promise(e=>setTimeout(e,r));async function Ir(r,e=10,t=2e4){await mt(async()=>await r()||void 0,e,t)}async function mt(r,e=10,t=2e4){let o=await r(),i=performance.now(),a=i;for(;o==null&&(!t||a-i<t);)await bo(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Ls(r,e){return r.flatMap(t=>[t,...Ls(e(t),e)])}function ks(r,e,t){let o=(i,a)=>{var s;for(let l=0;l<i.length;l++){let d=i[l];if(!(((s=t(d,l,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function Ns(r,e,t){let o=!1;return ks(r,e,(i,a,s,l)=>(o=!!t(i,a,s,l),!o)),o}function Au(r,e,t){return!Ns(r,e,(o,i,a,s)=>!t(o,i,a,s))}function Ru(...r){return(e,t)=>r.includes(e)?Ps(t):t}function Ps(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function Tu(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!re(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!re(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(r);if(t=a.length,t!==i(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!re(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function re(r,e){try{return Tu(r,e)}catch{return!1}}function Ee(r,e){return!re(r,e)}function Iu(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Re(r,e,t){return Math.min(Math.max(r,e),t)}function _u(r){return r[r.length-1]}function Fs(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Fs(e)).join(""):r?.textContent||""}function ei(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function fe(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function ti(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Q(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let i=e(o);return i[r]=!0,i}}function Lu(){return function(r,e,t){let o=t.value;t.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function oe(r){for(let[e,t]of Object.entries(r))Tr(e)(t)}function ku(r,e){var t,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of r)((t=a[o=i(s)])!==null&&t!==void 0?t:a[o]=[]).push(s);return a}var _r=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},oi=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ni=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},vo=Q(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,i){this.eventBus.addEventListener(t,o,i)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,i){this.eventBus.removeEventListener(t,o,i)}}}),je=class extends vo(Object){};var Lr=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},De=class extends je{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Lr(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Lr([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,i;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let i=async()=>t,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return t=t??i.loader,i.status="LOADING",i.promise=rt(t()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.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 t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var fi={};N(fi,{ClusteringHelper:()=>Xt,formatHierarchicalValues:()=>pi});var ui={};N(ui,{accessBreadcrumb:()=>$u,accessResult:()=>kr,accessResultId:()=>Bu,accessResultUrl:()=>di,enrichReaderUrl:()=>li});var ci={};N(ci,{SearchPlaceConverter:()=>Te,SearchPlaceQueryParams:()=>L,isSearchPlaceQueryParams:()=>vc,serializeRequest:()=>Du});var Nu=r=>typeof r=="object"&&r!=null;var Pu=r=>typeof r=="number",xo=r=>typeof r=="string",si=r=>Nu(r)&&xo(r.endpoint)&&xo(r.method)&&xo(r.statusText)&&xo(r.body)&&Pu(r.status),Ms;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ms||(Ms={}));var Ds;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ds||(Ds={}));var Us;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Us||(Us={}));var ot;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(ot||(ot={}));var Bs;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Bs||(Bs={}));var $s;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})($s||($s={}));var So;(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(So||(So={}));var yt;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(yt||(yt={}));var Hs;(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Hs||(Hs={}));var Vs;(function(r){r.METADATA_FILTER="METADATA_FILTER",r.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Vs||(Vs={}));var zs;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(zs||(zs={}));var Ws;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(Ws||(Ws={}));var Gs;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Gs||(Gs={}));var js;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(js||(js={}));var Ks;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Ks||(Ks={}));var qs;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(qs||(qs={}));var Zs;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Zs||(Zs={}));var nt;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(nt||(nt={}));var Qs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Qs||(Qs={}));var Ys;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ys||(Ys={}));var bt;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(bt||(bt={}));var oc=r=>Object.keys(bt).includes(r);var Js;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Js||(Js={}));var Xs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Xs||(Xs={}));var ec;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(ec||(ec={}));var Yt;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Yt||(Yt={}));var nc=r=>Object.keys(Yt).includes(r);var Ue;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ue||(Ue={}));var Jt;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jt||(Jt={}));var tc;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tc||(tc={}));var B;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(B||(B={}));var Ce;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var rc;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(rc||(rc={}));var ic;(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ic||(ic={}));var ac;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(ac||(ac={}));var sc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(sc||(sc={}));var cc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(cc||(cc={}));var lc;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(lc||(lc={}));var dc;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(dc||(dc={}));var uc;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(uc||(uc={}));var pc;(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(pc||(pc={}));var fc;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(fc||(fc={}));var hc;(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(hc||(hc={}));var gc;(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gc||(gc={}));var Fu={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function mc(r,e){return r===e||(Fu[r]??[]).some(t=>mc(t,e))}function we(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>mc(o,e))}function yc(r,...e){return r==null?!1:e.some(t=>we(r,t))}function Mu(r){return`"${r}"`}function bc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Du(r,e){return new Te(r).serialize(e)}var L;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.NEGATIVE_VALUE_FILTERS="negative-value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(L||(L={}));var Uu=new Set(Object.values(L));function vc(r){return Uu.has(r)}var Te=class r{constructor(e,t=20,o=!1,i="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,t=!1){var o,i,a,s,l,d,p,f,h;let g=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&g.append(L.LOCALE,e.contentLocale):g.append(L.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(L.QUERY,e.query);let b=r.serializeValueFilters(e.metadataFilters);b&&g.append(L.VALUE_FILTERS,b);let x=r.serializeNegativeValueFilters(e.metadataFilters);x&&g.append(L.NEGATIVE_VALUE_FILTERS,x);let w=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(y=>y.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let y=w.map(m=>{var v;return`${m.key}~${(v=m.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");g.append(L.DATE_FILTERS,y)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(y=>y.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let y=E.map(m=>{var v,O;return`${m.key}~${(v=m.rangeFilter)===null||v===void 0?void 0:v.from}_${(O=m.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");g.append(L.RANGE_FILTERS,y)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(L.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(L.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(L.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&g.append(L.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(L.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let A=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let y in A)g.append(y,A[y]);let I=new Array;return g.forEach((y,m)=>{I.push(this.encodeQueryString(m)+"="+this.encodeQueryString(y))}),encodeURI(I.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,o,i,a,s,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let p=new URLSearchParams(e),f=(o=p.get(L.LOCALE))!==null&&o!==void 0?o:void 0,h=((i=p.get(L.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),g=(t=p.get(L.SORT))===null||t===void 0?void 0:t.toLowerCase(),b=(a=p.get(L.SCOPE))!==null&&a!==void 0?a:"default",x=+((s=p.get(L.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),w=p.get(L.KEYWORD_MATCH),E=w?w.toUpperCase()===nt.MANDATORY?nt.MANDATORY:nt.OPTIONAL:void 0,A={};for(let I of p.keys())vc(I)||(A[I]=p.get(I));return f==="all"?f=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!f||this.availableContentLocales.length>0&&!this.availableContentLocales.some(I=>I.lang===f))&&(f=this.defaultContentLocale),{contentLocale:f,query:(l=p.get(L.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[b])!==null&&d!==void 0?d:"DEFAULT",virtualField:oc(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:Re(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:E,otherQueryParams:A}}parseCompatFilters(e){var t,o,i,a,s,l,d;let p=[];return e.has(L.FILTERS)&&(p=r.parseValueFilters((t=e.get(L.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(L.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(L.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...r.parseValueFilters((a=e.get(L.VALUE_FILTERS))!==null&&a!==void 0?a:""),...r.parseValueFilters((s=e.get(L.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(L.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(L.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}static parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(bc).map(i=>this.unescapeFilterValue(i)),negative:t}}))}parseDateFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Yt[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}static escapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}static superEscapeFilters(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(i,t);return e}parseLegacyPeriodFilter(e){if(nc(e))return[{key:"ft:lastEdition",dateFilter:{type:Yt[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var t,o;let i=((o=(t=e.valueFilter)===null||t===void 0?void 0:t.values)!==null&&o!==void 0?o:[]).map(a=>r.escapeFilters(a)).map(a=>Mu(bc(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let t=new URL(e);return[L.LOCALE,L.FILTERS,L.VALUE_FILTERS,L.NEGATIVE_VALUE_FILTERS,L.DATE_FILTERS,L.RANGE_FILTERS].forEach(i=>{t.searchParams.delete(i)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(L.LOCALE),t!==void 0&&o.searchParams.append(L.LOCALE,t),o.toString()}};Te.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function kr(r){var e,t,o,i;return(i=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&i!==void 0?i:r?.htmlPackagePage}function Bu(r){var e,t,o,i,a,s,l,d,p;return(p=(d=(l=(s=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(t=r?.topic)===null||t===void 0?void 0:t.tocId)!==null&&l!==void 0?l:(o=r?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=r?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=r?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function di(r,e){var t,o,i,a,s,l,d,p,f;return(f=(p=(d=(l=li((t=r?.map)===null||t===void 0?void 0:t.readerUrl,e))!==null&&l!==void 0?l:li((o=r?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=r?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=r?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=r?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function $u(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}function li(r,e){if(e&&r){let t=URL.parse(r),o=Te.serializeValueFilters(e);if(o&&t?.searchParams.append(L.VALUE_FILTERS,o),t)return t.toString()}return r}function pi(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var Xt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,t,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let i=(o=(t=kr(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(pi(l)),s.push(pi(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",i,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>r.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,b)=>b.findIndex(x=>x.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,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==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(t,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var hi={};N(hi,{Debouncer:()=>V});var V=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){i(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 bi={};N(bi,{designSystemVariables:()=>Eo});var yi={};N(yi,{DesignSystemFamily:()=>Nr,DesignSystemSize:()=>Pr,FtCssVariableFactory:()=>n,badge:()=>op,banner:()=>rp,button:()=>zu,card:()=>Gu,chart:()=>vp,checkbox:()=>Zu,chip:()=>Xu,chipChoice:()=>Ju,chipGroup:()=>ep,collapsible:()=>yp,combobox:()=>gp,dateRangePicker:()=>wp,drawer:()=>dp,eventCard:()=>ju,floatingMenu:()=>hp,foundation:()=>c,link:()=>tp,modal:()=>cp,notice:()=>Sp,notification:()=>Ep,pageDesigner:()=>xp,pageFooter:()=>ap,pageHeader:()=>ip,pageLayout:()=>sp,popover:()=>mp,radio:()=>Qu,reorderableList:()=>lp,resolveFamilyClass:()=>gi,resolveSizeClass:()=>mi,semantic:()=>u,setVariable:()=>er,switch_:()=>bp,table:()=>Yu,tabs:()=>up,textArea:()=>fp,textInput:()=>pp,titleBreadcrumb:()=>np,toc:()=>qu,toggle:()=>Wu,tooltip:()=>Cp,treeList:()=>Ku,typographies:()=>Hu,typographyBody1Medium:()=>Oc,typographyBody1Regular:()=>wc,typographyBody1Semibold:()=>Ac,typographyBody2Medium:()=>Tc,typographyBody2MediumUnderline:()=>Ic,typographyBody2Regular:()=>Rc,typographyBody2Semibold:()=>_c,typographyCaption1Medium:()=>Lc,typographyCaption1Semibold:()=>kc,typographyCaption2Bold:()=>Fc,typographyCaption2Medium:()=>Nc,typographyCaption2Semibold:()=>Pc,typographyDisplay:()=>xc,typographyTitle1:()=>Sc,typographyTitle2:()=>Ec,typographyTitle3:()=>Cc,typographyVariants:()=>Vu});var it=r=>typeof r=="string"?vr(r):r,n=class{static create(e,t,o,i){let a=l=>it(l??i),s=_`var(${it(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${it(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=_`var(${it(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${it(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),i=_`var(${it(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>_`var(${it(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function er(r,e){return it(`${r.name}: ${e}`)}var c={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},xc={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Sc={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Ec={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Cc={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},wc={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Oc={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Ac={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Rc={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Tc={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Ic={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},_c={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Lc={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},kc={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Nc={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Pc={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Fc={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Hu={display:xc,"title-1":Sc,"title-2":Ec,"title-3":Cc,"body-1-regular":wc,"body-1-medium":Oc,"body-1-semibold":Ac,"body-2-regular":Rc,"body-2-medium":Tc,"body-2-medium-underline":Ic,"body-2-semibold":_c,"caption-1-medium":Lc,"caption-1-semibold":kc,"caption-2-medium":Nc,"caption-2-semibold":Pc,"caption-2-bold":Fc},Vu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var zu={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:n.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:n.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Wu={iconSize:n.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",c.spacing3),width:n.create("--ftds-toggle-width","","SIZE","36px"),height:n.create("--ftds-toggle-height","","SIZE","20px")};var Gu={borderRadius:n.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var ju={borderRadius:n.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Ku={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var qu={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:n.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:n.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:n.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:n.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:n.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:n.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:n.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:n.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:n.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:n.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:n.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:n.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:n.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:n.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:n.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:n.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:n.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:n.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:n.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var Zu={iconSize:n.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Qu={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var Yu={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Ju={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Xu={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var ep={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var tp={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",c.spacing1)};var rp={iconSize:n.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var op={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var np={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var ip={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var ap={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var sp={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var cp={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var lp={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var dp={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var up={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var pp={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:n.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var fp={fieldPaddingLeft:n.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:n.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:n.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:n.extend("--ftds-text-area-resize-right","",c.spacing05)};var hp={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var gp={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var mp={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",c.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var yp={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var bp={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var vp={color1Light:n.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var xp={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Sp={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:n.extend("--ftds-notice-gap","",c.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var Ep={iconSize:n.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Cp={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",c.spacing05)};var wp={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Nr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Nr||(Nr={}));var Pr;(function(r){r.large="large",r.medium="medium",r.small="small"})(Pr||(Pr={}));function gi(r){return`ftds--family-${r}`}function mi(r){return`ftds--size-${r}`}var Eo={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var vi={};N(vi,{DynamicImporter:()=>Co,dynamicImporter:()=>Op});var Co=class{async import(e){if(e)return import(e)}},Op=new Co;var Li={};N(Li,{computeOffsetAutoPosition:()=>Qp,computeOffsetPosition:()=>Zp});var Dc=["top","right","bottom","left"],Mc=["start","end"],Si=Dc.reduce((r,e)=>r.concat(e,e+"-"+Mc[0],e+"-"+Mc[1]),[]),vt=Math.min,Be=Math.max,Fr=Math.round;var $e=r=>({x:r,y:r}),Ap={left:"right",right:"left",bottom:"top",top:"bottom"};function Uc(r,e,t){return Be(r,vt(e,t))}function tr(r,e){return typeof r=="function"?r(e):r}function xt(r){return r.split("-")[0]}function He(r){return r.split("-")[1]}function Ei(r){return r==="x"?"y":"x"}function Ci(r){return r==="y"?"height":"width"}function rr(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function wi(r){return Ei(rr(r))}function Bc(r,e,t){t===void 0&&(t=!1);let o=He(r),i=wi(r),a=Ci(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=xi(s)),[s,xi(s)]}function $c(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function xi(r){let e=xt(r);return Ap[e]+r.slice(e.length)}function Rp(r){var e,t,o,i;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(i=r.left)!=null?i:0}}function Hc(r){return typeof r!="number"?Rp(r):{top:r,right:r,bottom:r,left:r}}function St(r){let{x:e,y:t,width:o,height:i}=r;return{width:o,height:i,top:t,left:e,right:e+o,bottom:t+i,x:e,y:t}}function Vc(r,e,t){let{reference:o,floating:i}=r,a=rr(e),s=wi(e),l=Ci(s),d=xt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,b;switch(d){case"top":b={x:f,y:o.y-i.height};break;case"bottom":b={x:f,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-i.width,y:h};break;default:b={x:o.x,y:o.y}}let x=He(e);return x&&(b[s]+=g*(x==="end"?1:-1)*(t&&p?-1:1)),b}async function zc(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=tr(e,r),x=Hc(b),E=l[g?h==="floating"?"reference":"floating":h],A=St(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(E)))==null||t?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),I=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),m=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},v=St(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:y,strategy:d}):I);return{top:(A.top-v.top+x.top)/m.y,bottom:(v.bottom-A.bottom+x.bottom)/m.y,left:(A.left-v.left+x.left)/m.x,right:(v.right-A.right+x.right)/m.x}}var Tp=50,Wc=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:zc},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:f,y:h}=Vc(p,o,d),g=o,b=0,x={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:A,fn:I}=E,{x:y,y:m,data:v,reset:O}=await I({x:f,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:x,rects:p,platform:l,elements:{reference:r,floating:e}});f=y??f,h=m??h,x[A]={...x[A],...v},O&&b<Tp&&(b++,typeof O=="object"&&(O.placement&&(g=O.placement),O.rects&&(p=O.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):O.rects),{x:f,y:h}=Vc(p,g,d)),w=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};function Ip(r,e,t){return(r?[...t.filter(i=>He(i)===r),...t.filter(i=>He(i)!==r)]:t.filter(i=>xt(i)===i)).filter(i=>r?He(i)===r||(e?$c(i)!==i:!1):!0)}var Gc=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:g=Si,autoAlignment:b=!0,...x}=tr(r,e),w=h!==void 0||g===Si?Ip(h||null,b,g):g,E=((t=s.autoPlacement)==null?void 0:t.index)||0,A=w[E];if(A==null)return{};if(l!==A)return{reset:{placement:w[0]}};let I=await d.detectOverflow(e,x),y=Bc(A,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),m=[I[xt(A)],I[y[0]],I[y[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:m}],O=w[E+1];if(O)return{data:{index:E+1,overflows:v},reset:{placement:O}};let k=v.map(T=>{let P=He(T.placement);return[T.placement,P&&f?T.overflows.slice(0,2).reduce((q,Pe)=>q+Pe,0):T.overflows[0],T.overflows]}).sort((T,P)=>T[1]-P[1]),G=((i=k.filter(T=>T[2].slice(0,He(T[0])?2:3).every(P=>P<=0))[0])==null?void 0:i[0])||k[0][0];return G!==l?{data:{index:E+1,overflows:v},reset:{placement:G}}:{}}}};var _p=new Set(["left","top"]);async function Lp(r,e){let{placement:t,platform:o,elements:i}=r,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=xt(t),l=He(t),d=rr(t)==="y",p=_p.has(s)?-1:1,f=a&&d?-1:1,h=tr(e,r),{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*f,y:g*p}:{x:g*p,y:b*f}}var jc=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:i,y:a,placement:s,middlewareData:l}=e,d=await Lp(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},Kc=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:I=>{let{x:y,y:m}=I;return{x:y,y:m}}},...p}=tr(r,e),f={x:t,y:o},h=await a.detectOverflow(e,p),g=rr(i),b=Ei(g),x=f[b],w=f[g],E=(I,y)=>Uc(y+h[I==="y"?"top":"left"],y,y-h[I==="y"?"bottom":"right"]);s&&(x=E(b,x)),l&&(w=E(g,w));let A=d.fn({...e,[b]:x,[g]:w});return{...A,data:{x:A.x-t,y:A.y-o,enabled:{[b]:s,[g]:l}}}}}};var qc=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...l}=tr(r,e),d=await i.detectOverflow(e,l),p=xt(t),f=He(t),h=rr(t)==="y",{width:g,height:b}=o.floating,x,w;p==="top"||p==="bottom"?(x=p,w=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,x=f==="end"?"top":"bottom");let E=b-d.top-d.bottom,A=g-d.left-d.right,I=vt(b-d[x],E),y=vt(g-d[w],A),m=e.middlewareData.shift,v=!m,O=I,k=y;m!=null&&m.enabled.x&&(k=A),m!=null&&m.enabled.y&&(O=E),v&&!f&&(h?k=g-2*Be(d.left,d.right):O=b-2*Be(d.top,d.bottom)),await s({...e,availableWidth:k,availableHeight:O});let M=await i.getDimensions(a.floating);return g!==M.width||b!==M.height?{reset:{rects:!0}}:{}}}};function Oo(){return typeof window<"u"}function Ct(r){return Qc(r)?(r.nodeName||"").toLowerCase():"#document"}function de(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ke(r){var e;return(e=(Qc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Qc(r){return Oo()?r instanceof Node||r instanceof de(r).Node:!1}function Ie(r){return Oo()?r instanceof Element||r instanceof de(r).Element:!1}function qe(r){return Oo()?r instanceof HTMLElement||r instanceof de(r).HTMLElement:!1}function Zc(r){return!Oo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof de(r).ShadowRoot}function Mr(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=_e(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&i!=="inline"&&i!=="contents"}function Yc(r){return/^(table|td|th)$/.test(Ct(r))}function Dr(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}var kp=/transform|translate|scale|rotate|perspective|filter/,Np=/paint|layout|strict|content/,Et=r=>!!r&&r!=="none",Oi;function or(r){let e=Ie(r)?_e(r):r;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!Ao()&&(Et(e.backdropFilter)||Et(e.filter))||kp.test(e.willChange||"")||Np.test(e.contain||"")}function Jc(r){let e=at(r);for(;qe(e)&&!nr(e);){if(or(e))return e;if(Dr(e))return null;e=at(e)}return null}function Ao(){return Oi==null&&(Oi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Oi}function nr(r){return/^(html|body|#document)$/.test(Ct(r))}function _e(r){return de(r).getComputedStyle(r)}function Ur(r){return Ie(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function at(r){if(Ct(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Zc(r)&&r.host||Ke(r);return Zc(e)?e.host:e}function Xc(r){let e=at(r);return nr(e)?(r.ownerDocument||r).body:qe(e)&&Mr(e)?e:Xc(e)}function wo(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=Xc(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=de(i);if(a){let l=Ro(s);return e.concat(s,s.visualViewport||[],Mr(i)?i:[],l&&t?wo(l):[])}else return e.concat(i,wo(i,[],t))}function Ro(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function rl(r){let e=_e(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=qe(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=Fr(t)!==a||Fr(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function ol(r){return Ie(r)?r:r.contextElement}function ir(r){let e=ol(r);if(!qe(e))return $e(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=rl(e),s=(a?Fr(t.width):t.width)/o,l=(a?Fr(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Pp=$e(0);function nl(r){let e=de(r);return!Ao()||!e.visualViewport?Pp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fp(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===de(r)}function Br(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=ol(r),s=$e(1);e&&(o?Ie(o)&&(s=ir(o)):s=ir(r));let l=Fp(a,t,o)?nl(a):$e(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let g=de(a),b=Ie(o)?de(o):o,x=g,w=Ro(x);for(;w&&b!==x;){let E=ir(w),A=w.getBoundingClientRect(),I=_e(w),y=A.left+(w.clientLeft+parseFloat(I.paddingLeft))*E.x,m=A.top+(w.clientTop+parseFloat(I.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=y,p+=m,x=de(w),w=Ro(x)}}return St({width:f,height:h,x:d,y:p})}function To(r,e){let t=Ur(r).scrollLeft;return e?e.left+t:Br(Ke(r)).left+t}function il(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-To(r,t),i=t.top+e.scrollTop;return{x:o,y:i}}function Mp(r){let{elements:e,rect:t,offsetParent:o,strategy:i}=r,a=i==="fixed",s=Ke(o),l=e?Dr(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},p=$e(1),f=$e(0),h=qe(o);if((h||!a)&&((Ct(o)!=="body"||Mr(s))&&(d=Ur(o)),h)){let b=Br(o);p=ir(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let g=s&&!h&&!a?il(s,d):$e(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+g.x,y:t.y*p.y-d.scrollTop*p.y+f.y+g.y}}function Dp(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function Up(r){let e=Ur(r),t=r.ownerDocument.body,o=Be(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),i=Be(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+To(r),s=-e.scrollTop;return _e(t).direction==="rtl"&&(a+=Be(r.clientWidth,t.clientWidth)-o),{width:o,height:i,x:a,y:s}}var Bp=25;function $p(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",i=de(r),a=Ke(r),s=i.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let g=!Ao()||e==="fixed";o?g||(p=-s.offsetLeft,f=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,f=s.offsetTop))}if(To(a)<=0){let g=a.ownerDocument,b=g.body,x=getComputedStyle(b),w=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(a.clientWidth-b.clientWidth-w),A=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;A<=Bp&&(l-=A)}return{width:l,height:d,x:p,y:f}}function Hp(r,e){let t=Br(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ir(r),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function el(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=$p(r,t,e);else if(e==="document")o=Up(Ke(r));else if(Ie(e))o=Hp(e,t);else{let i=nl(r);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return St(o)}function Vp(r,e){let t=e.get(r);if(t)return t;let o=wo(r,[],!1).filter(l=>Ie(l)&&Ct(l)!=="body"),i=null,a=_e(r).position==="fixed",s=a?at(r):r;for(;Ie(s)&&!nr(s);){let l=_e(s),d=or(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):i=l,s=at(s)}return e.set(r,o),o}function zp(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Dr(e)?[]:Vp(e,this._c):[].concat(t),o],l=el(e,s[0],i),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let b=el(e,s[g],i);d=Be(b.top,d),p=vt(b.right,p),f=vt(b.bottom,f),h=Be(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function Wp(r){let{width:e,height:t}=rl(r);return{width:e,height:t}}function Gp(r,e,t){let o=qe(e),i=Ke(e),a=t==="fixed",s=Br(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=$e(0);if((o||!a)&&((Ct(e)!=="body"||Mr(i))&&(l=Ur(e)),o)){let g=Br(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&i&&(d.x=To(i));let p=i&&!o&&!a?il(i,l):$e(0),f=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function Ai(r){return _e(r).position==="static"}function tl(r,e){if(!qe(r)||_e(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Ke(r)===t&&(t=t.ownerDocument.body),t}function al(r,e){let t=de(r);if(Dr(r))return t;if(!qe(r)){let i=at(r);for(;i&&!nr(i);){if(Ie(i)&&!Ai(i))return i;i=at(i)}return t}let o=tl(r,e);for(;o&&Yc(o)&&Ai(o);)o=tl(o,e);return o&&nr(o)&&Ai(o)&&!or(o)?t:o||Jc(r)||t}var jp=async function(r){let e=this.getOffsetParent||al,t=this.getDimensions,o=await t(r.floating);return{reference:Gp(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kp(r){return _e(r).direction==="rtl"}var ar={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:Ke,getClippingRect:zp,getOffsetParent:al,getElementRects:jp,getClientRects:Dp,getDimensions:Wp,getScale:ir,isElement:Ie,isRTL:Kp};var sl=jc,Ri=Gc,cl=Kc;var ll=qc;var Ti=(r,e,t)=>{let o=new Map,i=t??{},a={...ar,...i.platform,_c:o};return Wc(r,e,{...i,platform:a})};function _i(r){return qp(r)}function Ii(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function qp(r){for(let e=r;e;e=Ii(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ii(r);e;e=Ii(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||or(t)||e.tagName==="BODY"))return e}return null}async function Zp(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Ti(r,e,{strategy:o.strategy,platform:{...ar,getOffsetParent:i=>ar.getOffsetParent(i,_i)},middleware:[cl({crossAxis:!0}),Ri({allowedPlacements:[o.placement]})]})}async function Qp(r,e,t,o,i,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,i=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,Ti(r,e,{placement:l,strategy:i,platform:{...ar,getOffsetParent:p=>ar.getOffsetParent(p,_i)},middleware:[sl(s??4),Ri({allowedPlacements:o}),ll({apply({availableHeight:p,availableWidth:f,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,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var ki={};N(ki,{isSlotEmptyOrWithoutContent:()=>Yp});var Yp=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Ui={};N(Ui,{FtdsBase:()=>Di,toFtdsBase:()=>ml});var Mi={};N(Mi,{ExportpartsUpdatedEvent:()=>wt,FtLitElement:()=>Y});var Ni={};N(Ni,{ScopedRegistryLitElement:()=>$r});var $r=class extends Ge{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return xr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Tr(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}};var Fi={};N(Fi,{shadowQuerySelector:()=>Pi,shadowQuerySelectorAll:()=>Jp});function Pi(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function Jp(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return o}var sr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},fl,dl=Symbol("constructorPrototype"),ul=Symbol("constructorName"),hl=Symbol("exportpartsDebouncer"),pl=Symbol("dynamicDependenciesLoaded"),wt=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Y=class extends $r{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[fl]=new V(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[hl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[ul]=this.constructor.name,this[dl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ul]&&Object.setPrototypeOf(this,this[dl])}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 t=this.constructor;t[pl]||(t[pl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(wt.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 wt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];t=Pi(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.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((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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 t,o,i,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 f=new Set;for(let g of(a=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],x=(l=(i=g.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],w=[...b,...x].filter(d).map(E=>E.trim());for(let E of w)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};fl=hl;sr([S()],Y.prototype,"exportpartsPrefix",void 0);sr([he([])],Y.prototype,"exportpartsPrefixes",void 0);sr([S({reflect:!0})],Y.prototype,"exportparts",void 0);sr([S()],Y.prototype,"customStylesheet",void 0);sr([S()],Y.prototype,"elementToFocus",void 0);sr([H()],Y.prototype,"useAdoptedStyleSheets",void 0);var gl=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},ml=Q(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Pr.medium,this.family=Nr.neutral}getDesignSystemBaseClasses(){return{[gi(this.family)]:!0,[mi(this.size)]:!0}}}return gl([S()],e.prototype,"size",void 0),gl([S()],e.prototype,"family",void 0),e}),Di=class extends ml(Y){};var yl={};var Hi={};N(Hi,{highlightHtml:()=>$i,highlightHtmlColorCssVariable:()=>bl,highlightHtmlStyles:()=>ef});var Ot=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{t(p)&&(l++,o(f)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,f,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>d.push(b),i)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var Hr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ot(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-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:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,i=d+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return Ot.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!i(s.node))return!1;let p=t-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=f),e.nodes[x].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,g=>t(g,l,a.value.substring(p,f),d),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](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,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[i](f,1,(g,b)=>this.opt.filter(b,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&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(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 t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Ot.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Bi(r){let e=new Hr(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Xp=Bi,bl=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),ef=_`
|
|
1
|
+
"use strict";(()=>{var qd=Object.defineProperty;var N=(r,e)=>{for(var t in e)qd(r,t,{get:e[t],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=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,m){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(m)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let v=m.prototype.attributeChangedCallback,O=new Set(m.observedAttributes||[]);g(m,O,v);let k={elementClass:m,connectedCallback:m.prototype.connectedCallback,disconnectedCallback:m.prototype.disconnectedCallback,adoptedCallback:m.prototype.adoptedCallback,attributeChangedCallback:v,formAssociated:m.formAssociated,formAssociatedCallback:m.prototype.formAssociatedCallback,formDisabledCallback:m.prototype.formDisabledCallback,formResetCallback:m.prototype.formResetCallback,formStateRestoreCallback:m.prototype.formStateRestoreCallback,observedAttributes:O};this._definitionsByTag.set(y,k),this._definitionsByClass.set(m,k);let M=t.call(o,y);M||(M=h(y),e.call(o,y,M)),this===window.customElements&&(s.set(m,k),k.standInClass=M);let G=this._awaitingUpgrade.get(y);if(G){this._awaitingUpgrade.delete(y);for(let P of G)a.delete(P),x(P,k,!0)}let T=this._whenDefinedPromises.get(y);return T!==void 0&&(T.resolve(m),this._whenDefinedPromises.delete(y)),m}upgrade(){E.push(this),o.upgrade.apply(o,arguments),E.pop()}get(y){return this._definitionsByTag.get(y)?.elementClass}_getDefinition(y){return this._definitionsByTag.get(y)}whenDefined(y){let m=this._getDefinition(y);if(m!==void 0)return Promise.resolve(m.elementClass);let v=this._whenDefinedPromises.get(y);return v===void 0&&(v={},v.promise=new Promise(O=>v.resolve=O),this._whenDefinedPromises.set(y,v)),v.promise}_upgradeWhenDefined(y,m,v){let O=this._awaitingUpgrade.get(m);O||this._awaitingUpgrade.set(m,O=new Set),v?O.add(y):O.delete(y)}};let d;window.HTMLElement=function(){let m=d;if(m)return d=void 0,m;let v=s.get(this.constructor);if(!v)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return m=Reflect.construct(r,[],v.standInClass),Object.setPrototypeOf(m,this.constructor.prototype),i.set(m,v),m},window.HTMLElement.prototype=r.prototype;let p=y=>y===document||y instanceof ShadowRoot,f=y=>{let m=y.getRootNode();if(!p(m)){let v=E[E.length-1];if(v instanceof CustomElementRegistry)return v;m=v.getRootNode(),p(m)||(m=l.get(m)?.getRootNode()||document)}return m.customElements},h=y=>class{static get formAssociated(){return!0}constructor(){let v=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(v,HTMLElement.prototype);let O=f(v)||window.customElements,k=O._getDefinition(y);return k?x(v,k):a.set(v,O),v}connectedCallback(){let v=i.get(this);v?v.connectedCallback&&v.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!0)}disconnectedCallback(){let v=i.get(this);v?v.disconnectedCallback&&v.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,y,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let v=i.get(this);v&&v.formAssociated&&v?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let v=i.get(this);v?.formAssociated&&v?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let v=i.get(this);v?.formAssociated&&v?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let v=i.get(this);v?.formAssociated&&v?.formStateRestoreCallback?.apply(this,arguments)}},g=(y,m,v)=>{if(m.size===0||v===void 0)return;let O=y.prototype.setAttribute;O&&(y.prototype.setAttribute=function(G,T){let P=G.toLowerCase();if(m.has(P)){let q=this.getAttribute(P);O.call(this,P,T),v.call(this,P,q,T)}else O.call(this,P,T)});let k=y.prototype.removeAttribute;k&&(y.prototype.removeAttribute=function(G){let T=G.toLowerCase();if(m.has(T)){let P=this.getAttribute(T);k.call(this,T),v.call(this,T,P,null)}else k.call(this,T)});let M=y.prototype.toggleAttribute;M&&(y.prototype.toggleAttribute=function(G,T){let P=G.toLowerCase();if(m.has(P)){let q=this.getAttribute(P);M.call(this,P,T);let Pe=this.getAttribute(P);v.call(this,P,q,Pe)}else M.call(this,P,T)})},b=y=>{let m=Object.getPrototypeOf(y);if(m!==window.HTMLElement)return m===r?Object.setPrototypeOf(y,window.HTMLElement):b(m)},x=(y,m,v=!1)=>{Object.setPrototypeOf(y,m.elementClass.prototype),i.set(y,m),d=y;try{new m.elementClass}catch{b(m.elementClass),new m.elementClass}m.attributeChangedCallback&&m.observedAttributes.forEach(O=>{y.hasAttribute(O)&&m.attributeChangedCallback.call(y,O,null,y.getAttribute(O))}),v&&m.connectedCallback&&y.isConnected&&m.connectedCallback.call(y)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(y){let m=w.apply(this,arguments);return y.customElements&&(m.customElements=y.customElements),m};let E=[document],A=(y,m,v=void 0)=>{let O=(v?Object.getPrototypeOf(v):y.prototype)[m];y.prototype[m]=function(){E.push(this);let k=O.apply(v||this,arguments);return k!==void 0&&l.set(k,this),E.pop(),k}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let I=(y,m)=>{let v=Object.getOwnPropertyDescriptor(y.prototype,m);Object.defineProperty(y.prototype,m,{...v,set(O){E.push(this),v.set.call(this,O),E.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let y=new WeakMap,m=HTMLElement.prototype.attachInternals,v=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...G){let T=m.call(this,...G);return y.set(T,this),T},v.forEach(G=>{let T=window.ElementInternals.prototype,P=T[G];T[G]=function(...q){let Pe=y.get(this);if(i.get(Pe).formAssociated===!0)return P?.call(this,...q);throw new DOMException(`Failed to execute ${P} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class O extends Array{constructor(T){super(...T),this._elements=T}get value(){return this._elements.find(T=>T.checked===!0)?.value||""}}class k{constructor(T){let P=new Map;T.forEach((q,Pe)=>{let Ln=q.getAttribute("name"),ns=P.get(Ln)||[];this[+Pe]=q,ns.push(q),P.set(Ln,ns)}),this.length=T.length,P.forEach((q,Pe)=>{q&&(q.length===1?this[Pe]=q[0]:this[Pe]=new O(q))})}namedItem(T){return this[T]}}let M=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let G=M.get.call(this,[]),T=[];for(let P of G){let q=i.get(P);(!q||q.formAssociated===!0)&&T.push(P)}return new k(T)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},i):console.info(t,o,i,s)}}}var zn={};N(zn,{CSSResult:()=>jt,LitElement:()=>Ge,ReactiveElement:()=>xe,_$LE:()=>au,_$LH:()=>$n,adoptStyles:()=>xr,css:()=>_,defaultConverter:()=>Kt,getCompatibleStyle:()=>io,html:()=>$,isServer:()=>qh,mathml:()=>Bn,noChange:()=>Z,notEqual:()=>Er,nothing:()=>D,render:()=>Hn,supportsAdoptingStyleSheets:()=>br,svg:()=>Rr,unsafeCSS:()=>vr});var no=globalThis,br=no.ShadowRoot&&(no.ShadyCSS===void 0||no.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kn=Symbol(),is=new WeakMap,jt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==kn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(br&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=is.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&is.set(t,e))}return e}toString(){return this.cssText}},vr=r=>new jt(typeof r=="string"?r:r+"",void 0,kn),_=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,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.")})(i)+r[a+1],r[0]);return new jt(t,r,kn)},xr=(r,e)=>{if(br)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=no.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},io=br?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return vr(t)})(r):r;var{is:Zd,defineProperty:Qd,getOwnPropertyDescriptor:Yd,getOwnPropertyNames:Jd,getOwnPropertySymbols:Xd,getPrototypeOf:eu}=Object,ao=globalThis,as=ao.trustedTypes,tu=as?as.emptyScript:"",ru=ao.reactiveElementPolyfillSupport,Sr=(r,e)=>r,Kt={toAttribute(r,e){switch(e){case Boolean:r=r?tu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Er=(r,e)=>!Zd(r,e),ss={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:Er};Symbol.metadata??=Symbol("metadata"),ao.litPropertyMetadata??=new WeakMap;var xe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ss){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Qd(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Yd(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ss}static _$Ei(){if(this.hasOwnProperty(Sr("elementProperties")))return;let e=eu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Sr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sr("properties"))){let t=this.properties,o=[...Jd(t),...Xd(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(io(i))}else e!==void 0&&t.push(io(e));return t}static _$Eu(e,t){let o=t.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,t=this.constructor.elementProperties;for(let o of t.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 xr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Kt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kt;this._$Em=i;let l=s.fromAttribute(t,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Er)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:i,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Sr("elementProperties")]=new Map,xe[Sr("finalized")]=new Map,ru?.({ReactiveElement:xe}),(ao.reactiveElementVersions??=[]).push("2.1.2");var Pn=globalThis,cs=r=>r,so=Pn.trustedTypes,ls=so?so.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fn="$lit$",We=`lit$${Math.random().toFixed(9).slice(2)}$`,Mn="?"+We,ou=`<${Mn}>`,ft=document,wr=()=>ft.createComment(""),Or=r=>r===null||typeof r!="object"&&typeof r!="function",Dn=Array.isArray,gs=r=>Dn(r)||typeof r?.[Symbol.iterator]=="function",Nn=`[
|
|
2
|
+
\f\r]`,Cr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ds=/-->/g,us=/>/g,ut=RegExp(`>|${Nn}(?:([^\\s"'>=/]+)(${Nn}*=${Nn}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ps=/'/g,fs=/"/g,ms=/^(?:script|style|textarea|title)$/i,Un=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Un(1),Rr=Un(2),Bn=Un(3),Z=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),hs=new WeakMap,pt=ft.createTreeWalker(ft,129);function ys(r,e){if(!Dn(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ls!==void 0?ls.createHTML(e):e}var bs=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Cr;for(let l=0;l<t;l++){let d=r[l],p,f,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,f=s.exec(d),f!==null);)g=s.lastIndex,s===Cr?f[1]==="!--"?s=ds:f[1]!==void 0?s=us:f[2]!==void 0?(ms.test(f[2])&&(i=RegExp("</"+f[2],"g")),s=ut):f[3]!==void 0&&(s=ut):s===ut?f[0]===">"?(s=i??Cr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?ut:f[3]==='"'?fs:ps):s===fs||s===ps?s=ut:s===ds||s===us?s=Cr:(s=ut,i=void 0);let b=s===ut&&r[l+1].startsWith("/>")?" ":"";a+=s===Cr?d+ou:h>=0?(o.push(p),d.slice(0,h)+Fn+d.slice(h)+We+b):d+We+(h===-2?l:b)}return[ys(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ar=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,f]=bs(e,t);if(this.el=r.createElement(p,o),pt.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=pt.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Fn)){let g=f[s++],b=i.getAttribute(h).split(We),x=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?lo:x[1]==="?"?uo:x[1]==="@"?po:gt}),i.removeAttribute(h)}else h.startsWith(We)&&(d.push({type:6,index:a}),i.removeAttribute(h));if(ms.test(i.tagName)){let h=i.textContent.split(We),g=h.length-1;if(g>0){i.textContent=so?so.emptyScript:"";for(let b=0;b<g;b++)i.append(h[b],wr()),pt.nextNode(),d.push({type:2,index:++a});i.append(h[g],wr())}}}else if(i.nodeType===8)if(i.data===Mn)d.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(We,h+1))!==-1;)d.push({type:7,index:a}),h+=We.length-1}a++}}static createElement(e,t){let o=ft.createElement("template");return o.innerHTML=e,o}};function ht(r,e,t=r,o){if(e===Z)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Or(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ht(r,i._$AS(r,e.values),i,o)),e}var co=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??ft).importNode(t,!0);pt.currentNode=i;let a=pt.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new qt(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new fo(a,this,e)),this._$AV.push(p),d=o[++l]}s!==d?.index&&(a=pt.nextNode(),s++)}return pt.currentNode=ft,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},qt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ht(this,e,t),Or(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):gs(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!==D&&Or(this._$AH)?this._$AA.nextSibling.data=e:this.T(ft.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ar.createElement(ys(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new co(i,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=hs.get(e.strings);return t===void 0&&hs.set(e.strings,t=new Ar(e)),t}k(e){Dn(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.O(wr()),this.O(wr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=cs(e).nextSibling;cs(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=ht(this,e,t,0),s=!Or(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=ht(this,l[o+d],t,d),p===Z&&(p=this._$AH[d]),s||=!Or(p)||p!==this._$AH[d],p===D?e=D:e!==D&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},lo=class extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},uo=class extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==D)}},po=class extends gt{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=ht(this,e,t,0)??D)===Z)return;let o=this._$AH,i=e===D&&o!==D||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==D&&(o===D||i);i&&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)}},fo=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ht(this,e)}},$n={M:Fn,P:We,A:Mn,C:1,L:bs,R:co,D:gs,V:ht,I:qt,H:gt,N:uo,U:po,B:lo,F:fo},nu=Pn.litHtmlPolyfillSupport;nu?.(Ar,qt),(Pn.litHtmlVersions??=[]).push("3.3.3");var Hn=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new qt(e.insertBefore(wr(),a),a,void 0,t??{})}return i._$AI(r),i};var Vn=globalThis,Ge=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Hn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}};Ge._$litElement$=!0,Ge.finalized=!0,Vn.litElementHydrateSupport?.({LitElement:Ge});var iu=Vn.litElementPolyfillSupport;iu?.({LitElement:Ge});var au={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Vn.litElementVersions??=[]).push("4.2.2");var qh=!1;var Wn={};N(Wn,{customElement:()=>su,eventOptions:()=>lu,property:()=>S,query:()=>Fe,queryAll:()=>uu,queryAssignedElements:()=>fu,queryAssignedNodes:()=>hu,queryAsync:()=>pu,standardProperty:()=>vs,state:()=>H});var su=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var cu={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Er},vs=(r=cu,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r,!0,l)}}throw Error("Unsupported decorator location: "+o)};function S(r){return(e,t)=>typeof t=="object"?vs(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function H(r){return S({...r,state:!0,attribute:!1})}function lu(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Fe(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ae(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Ae(t,o,{get(){return a(this)}})}}var du;function uu(r){return(e,t)=>Ae(e,t,{get(){return(this.renderRoot??(du??=document.createDocumentFragment())).querySelectorAll(r)}})}function pu(r){return(e,t)=>Ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function fu(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function hu(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return Ae(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var Gn={};N(Gn,{repeat:()=>tt});var Me={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ue=r=>(...e)=>({_$litDirective$:r,values:e}),Se=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:gu}=$n,xs=r=>r;var Es=r=>r.strings===void 0,Ss=()=>document.createComment(""),Zt=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Ss(),i),s=o.insertBefore(Ss(),i);t=new gu(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==i||l){let d=t._$AA;for(;d!==a;){let p=xs(d).nextSibling;xs(o).insertBefore(d,i),d=p}}}return t},et=(r,e,t=r)=>(r._$AI(e,t),r),mu={},Cs=(r,e=mu)=>r._$AH=e,ws=r=>r._$AH,ho=r=>{r._$AR(),r._$AA.remove()};var Os=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},tt=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let i=ws(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,f,h=0,g=i.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(l[h]===s[b])d[b]=et(i[h],a[b]),h++,b++;else if(l[g]===s[x])d[x]=et(i[g],a[x]),g--,x--;else if(l[h]===s[x])d[x]=et(i[h],a[x]),Zt(r,d[x+1],i[h]),h++,x--;else if(l[g]===s[b])d[b]=et(i[g],a[b]),Zt(r,i[h],i[g]),g--,b++;else if(p===void 0&&(p=Os(s,b,x),f=Os(l,h,g)),p.has(l[h]))if(p.has(l[g])){let w=f.get(s[b]),E=w!==void 0?i[w]:null;if(E===null){let A=Zt(r,i[h]);et(A,a[b]),d[b]=A}else d[b]=et(E,a[b]),Zt(r,i[h],E),i[w]=null;b++}else ho(i[g]),g--;else ho(i[h]),h++;for(;b<=x;){let w=Zt(r,d[x+1]);et(w,a[b]),d[b++]=w}for(;h<=g;){let w=i[h++];w!==null&&ho(w)}return this.ut=s,Cs(r,d),Z}});var jn={};N(jn,{classMap:()=>yu});var yu=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let i=!!e[o];i===this.st.has(o)||this.nt?.has(o)||(i?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return Z}});var Kn={};N(Kn,{styleMap:()=>vu});var As="important",bu=" !"+As,vu=ue(class extends Se{constructor(r){if(super(r),r.type!==Me.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ft.add(o);let a=typeof i=="string"&&i.endsWith(bu);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?As:""):t[o]=i}}return Z}});var Zn={};N(Zn,{UnsafeHTMLDirective:()=>Qt,unsafeHTML:()=>qn});var Qt=class extends Se{constructor(e){if(super(e),this.it=D,e.type!==Me.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===D||e==null)return this._t=void 0,this.it=e;if(e===Z)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Qt.directiveName="unsafeHTML",Qt.resultType=1;var qn=ue(Qt);var Qn={};N(Qn,{splitBreadcrumbForMenu:()=>xu});function xu(r,e=0,t=0){if(r.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let o=Math.max(t,1),i=r.slice(o*-1);return e+o>=r.length?{beforeMenu:[],inMenu:[],afterMenu:r}:{beforeMenu:r.slice(0,e),inMenu:r.slice(e,r.length-i.length),afterMenu:i}}var ii={};N(ii,{CacheRegistry:()=>De,ClearCacheEvent:()=>Lr});var Yn={};N(Yn,{CancelablePromise:()=>go,CanceledPromiseError:()=>pe,cancelable:()=>rt});var pe=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},go=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new pe("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new pe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},rt=r=>new go((e,t)=>r.then(e).catch(t));var ni={};N(ni,{FtNotificationEvent:()=>_r,PostResizeEvent:()=>oi,PreResizeEvent:()=>ri,WithEventBus:()=>je,withEventBus:()=>bo});var ti={};N(ti,{applyMixinOnce:()=>Q,customElements:()=>oe,dateReviver:()=>wu,deepCopy:()=>fe,deepEqual:()=>re,delay:()=>yo,eventPathContainsMatchingElement:()=>Au,everyDeep:()=>Cu,flatDeep:()=>Ts,forEachDeep:()=>Is,getComposedPathTo:()=>Xn,groupBy:()=>Iu,hasChanged:()=>Ee,ignoreComposingEvents:()=>Tu,last:()=>Ru,minmax:()=>Re,parseDate:()=>Ls,randomId:()=>ei,someDeep:()=>_s,unslotText:()=>ks,waitFor:()=>mt,waitUntil:()=>Ir});var Jn={};N(Jn,{customElement:()=>Tr,dateProperty:()=>Eu,isNumber:()=>Rs,jsonProperty:()=>he,jsonPropertyConverter:()=>mo,numberProperty:()=>ie,optionalNumberProperty:()=>Su});var Tr=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)},mo=r=>({fromAttribute:e=>{if(e==null)return fe(r);try{return JSON.parse(e)}catch{return fe(r)}},toAttribute:e=>JSON.stringify(e)});function he(r,e){return S({type:Object,converter:mo(r),hasChanged:Ee,...e??{}})}function Su(r){return ie(r)}function ie(r){return S({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let i=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Rs(e)?Re(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Rs(r){return!isNaN(parseFloat(r))}function Eu(r){return S({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var yo=r=>new Promise(e=>setTimeout(e,r));async function Ir(r,e=10,t=2e4){await mt(async()=>await r()||void 0,e,t)}async function mt(r,e=10,t=2e4){let o=await r(),i=performance.now(),a=i;for(;o==null&&(!t||a-i<t);)await yo(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Ts(r,e){return r.flatMap(t=>[t,...Ts(e(t),e)])}function Is(r,e,t){let o=(i,a)=>{var s;for(let l=0;l<i.length;l++){let d=i[l];if(!(((s=t(d,l,i,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function _s(r,e,t){let o=!1;return Is(r,e,(i,a,s,l)=>(o=!!t(i,a,s,l),!o)),o}function Cu(r,e,t){return!_s(r,e,(o,i,a,s)=>!t(o,i,a,s))}function wu(...r){return(e,t)=>r.includes(e)?Ls(t):t}function Ls(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function Ou(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!re(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!re(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(r);if(t=a.length,t!==i(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!re(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function re(r,e){try{return Ou(r,e)}catch{return!1}}function Ee(r,e){return!re(r,e)}function Au(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Re(r,e,t){return Math.min(Math.max(r,e),t)}function Ru(r){return r[r.length-1]}function ks(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ks(e)).join(""):r?.textContent||""}function Xn(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function fe(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function ei(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Q(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let i=e(o);return i[r]=!0,i}}function Tu(){return function(r,e,t){let o=t.value;t.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return o.apply(this,[i].concat(a))}}}function oe(r){for(let[e,t]of Object.entries(r))Tr(e)(t)}function Iu(r,e){var t,o;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of r)((t=a[o=i(s)])!==null&&t!==void 0?t:a[o]=[]).push(s);return a}var _r=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ri=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},oi=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},bo=Q(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,i){this.eventBus.addEventListener(t,o,i)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,i){this.eventBus.removeEventListener(t,o,i)}}}),je=class extends bo(Object){};var Lr=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},De=class extends je{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Lr(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Lr([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,i;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let i=async()=>t,a="RESOLVED";this.content[e]={loader:i,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return t=t??i.loader,i.status="LOADING",i.promise=rt(t()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,o!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.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 t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var pi={};N(pi,{ClusteringHelper:()=>Xt,formatHierarchicalValues:()=>ui});var di={};N(di,{accessBreadcrumb:()=>Du,accessResult:()=>kr,accessResultId:()=>Mu,accessResultUrl:()=>li,enrichReaderUrl:()=>ci});var si={};N(si,{SearchPlaceConverter:()=>Te,SearchPlaceQueryParams:()=>L,isSearchPlaceQueryParams:()=>mc,serializeRequest:()=>Pu});var _u=r=>typeof r=="object"&&r!=null;var Lu=r=>typeof r=="number",vo=r=>typeof r=="string",ai=r=>_u(r)&&vo(r.endpoint)&&vo(r.method)&&vo(r.statusText)&&vo(r.body)&&Lu(r.status),Ns;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ns||(Ns={}));var Ps;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ps||(Ps={}));var Fs;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Fs||(Fs={}));var ot;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(ot||(ot={}));var Ms;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ms||(Ms={}));var Ds;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Ds||(Ds={}));var xo;(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(xo||(xo={}));var yt;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(yt||(yt={}));var Us;(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Us||(Us={}));var Bs;(function(r){r.METADATA_FILTER="METADATA_FILTER",r.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Bs||(Bs={}));var $s;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})($s||($s={}));var Hs;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(Hs||(Hs={}));var Vs;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Vs||(Vs={}));var zs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(zs||(zs={}));var Ws;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Ws||(Ws={}));var Gs;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Gs||(Gs={}));var js;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(js||(js={}));var nt;(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(nt||(nt={}));var Ks;(function(r){r.ASC="ASC",r.DESC="DESC"})(Ks||(Ks={}));var qs;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(qs||(qs={}));var bt;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(bt||(bt={}));var ec=r=>Object.keys(bt).includes(r);var Zs;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Zs||(Zs={}));var Qs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Qs||(Qs={}));var Ys;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Ys||(Ys={}));var Yt;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Yt||(Yt={}));var tc=r=>Object.keys(Yt).includes(r);var Ue;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ue||(Ue={}));var Jt;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jt||(Jt={}));var Js;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Js||(Js={}));var B;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(B||(B={}));var Ce;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var Xs;(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(Xs||(Xs={}));var rc;(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(rc||(rc={}));var oc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(oc||(oc={}));var nc;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(nc||(nc={}));var ic;(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(ic||(ic={}));var ac;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(ac||(ac={}));var sc;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(sc||(sc={}));var cc;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(cc||(cc={}));var lc;(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(lc||(lc={}));var dc;(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(dc||(dc={}));var uc;(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(uc||(uc={}));var pc;(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(pc||(pc={}));var ku={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function fc(r,e){return r===e||(ku[r]??[]).some(t=>fc(t,e))}function we(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>fc(o,e))}function hc(r,...e){return r==null?!1:e.some(t=>we(r,t))}function Nu(r){return`"${r}"`}function gc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Pu(r,e){return new Te(r).serialize(e)}var L;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.NEGATIVE_VALUE_FILTERS="negative-value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(L||(L={}));var Fu=new Set(Object.values(L));function mc(r){return Fu.has(r)}var Te=class r{constructor(e,t=20,o=!1,i="en-US",a=[]){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.availableContentLocales=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,t=!1){var o,i,a,s,l,d,p,f,h;let g=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&g.append(L.LOCALE,e.contentLocale):g.append(L.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append(L.QUERY,e.query);let b=r.serializeValueFilters(e.metadataFilters);b&&g.append(L.VALUE_FILTERS,b);let x=r.serializeNegativeValueFilters(e.metadataFilters);x&&g.append(L.NEGATIVE_VALUE_FILTERS,x);let w=(d=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(y=>y.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let y=w.map(m=>{var v;return`${m.key}~${(v=m.dateFilter)===null||v===void 0?void 0:v.type.toLowerCase()}`}).join("*");g.append(L.DATE_FILTERS,y)}let E=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(y=>y.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let y=E.map(m=>{var v,O;return`${m.key}~${(v=m.rangeFilter)===null||v===void 0?void 0:v.from}_${(O=m.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");g.append(L.RANGE_FILTERS,y)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append(L.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&g.append(L.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&g.append(L.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((f=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&f!==void 0?f:this.defaultPerPage)!=this.defaultPerPage&&g.append(L.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&g.append(L.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let A=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let y in A)g.append(y,A[y]);let I=new Array;return g.forEach((y,m)=>{I.push(this.encodeQueryString(m)+"="+this.encodeQueryString(y))}),encodeURI(I.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,o,i,a,s,l,d;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let p=new URLSearchParams(e),f=(o=p.get(L.LOCALE))!==null&&o!==void 0?o:void 0,h=((i=p.get(L.VIRTUAL_FIELD))!==null&&i!==void 0?i:"EVERYWHERE").toUpperCase(),g=(t=p.get(L.SORT))===null||t===void 0?void 0:t.toLowerCase(),b=(a=p.get(L.SCOPE))!==null&&a!==void 0?a:"default",x=+((s=p.get(L.PER_PAGE))!==null&&s!==void 0?s:this.defaultPerPage),w=p.get(L.KEYWORD_MATCH),E=w?w.toUpperCase()===nt.MANDATORY?nt.MANDATORY:nt.OPTIONAL:void 0,A={};for(let I of p.keys())mc(I)||(A[I]=p.get(I));return f==="all"?f=this.allLanguagesAllowed?void 0:this.defaultContentLocale:(!f||this.availableContentLocales.length>0&&!this.availableContentLocales.some(I=>I.lang===f))&&(f=this.defaultContentLocale),{contentLocale:f,query:(l=p.get(L.QUERY))!==null&&l!==void 0?l:"",scope:(d=this.scopeMapping[b])!==null&&d!==void 0?d:"DEFAULT",virtualField:ec(h)?h:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(p),facets:[],paging:{page:1,perPage:Re(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:E,otherQueryParams:A}}parseCompatFilters(e){var t,o,i,a,s,l,d;let p=[];return e.has(L.FILTERS)&&(p=r.parseValueFilters((t=e.get(L.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(L.PERIOD))!==null&&o!==void 0&&o&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(L.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...r.parseValueFilters((a=e.get(L.VALUE_FILTERS))!==null&&a!==void 0?a:""),...r.parseValueFilters((s=e.get(L.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(L.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(L.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}static parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(gc).map(i=>this.unescapeFilterValue(i)),negative:t}}))}parseDateFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Yt[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:r.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}static escapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}static superEscapeFilters(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(o,i);return e}static unescapeFilterValue(e){for(let[t,o,i]of r.filtersEscapeMapping)e=e.replaceAll(i,t);return e}parseLegacyPeriodFilter(e){if(tc(e))return[{key:"ft:lastEdition",dateFilter:{type:Yt[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}static serializeValueFilter(e){var t,o;let i=((o=(t=e.valueFilter)===null||t===void 0?void 0:t.values)!==null&&o!==void 0?o:[]).map(a=>r.escapeFilters(a)).map(a=>Nu(gc(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var t;let o=(t=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&t!==void 0?t:[];if(o.length>0)return o.map(r.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let t=new URL(e);return[L.LOCALE,L.FILTERS,L.VALUE_FILTERS,L.NEGATIVE_VALUE_FILTERS,L.DATE_FILTERS,L.RANGE_FILTERS].forEach(i=>{t.searchParams.delete(i)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(L.LOCALE),t!==void 0&&o.searchParams.append(L.LOCALE,t),o.toString()}};Te.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function kr(r){var e,t,o,i;return(i=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&i!==void 0?i:r?.htmlPackagePage}function Mu(r){var e,t,o,i,a,s,l,d,p;return(p=(d=(l=(s=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(t=r?.topic)===null||t===void 0?void 0:t.tocId)!==null&&l!==void 0?l:(o=r?.document)===null||o===void 0?void 0:o.documentId)!==null&&d!==void 0?d:(i=r?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=r?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function li(r,e){var t,o,i,a,s,l,d,p,f;return(f=(p=(d=(l=ci((t=r?.map)===null||t===void 0?void 0:t.readerUrl,e))!==null&&l!==void 0?l:ci((o=r?.topic)===null||o===void 0?void 0:o.readerUrl,e))!==null&&d!==void 0?d:(i=r?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=r?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&f!==void 0?f:(s=r?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function Du(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}function ci(r,e){if(e&&r){let t=URL.parse(r),o=Te.serializeValueFilters(e);if(o&&t?.searchParams.append(L.VALUE_FILTERS,o),t)return t.toString()}return r}function ui(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var Xt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static findResultWithMetadataValue(e,t,o){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let i=(o=(t=kr(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(ui(l)),s.push(ui(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",i,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=d?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(h=>r.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(h=>h??{key:e,label:p,value:void 0,displayValue:o}).filter(h=>h.value!=d?.value).filter((h,g,b)=>b.findIndex(x=>x.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,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==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(t,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var fi={};N(fi,{Debouncer:()=>V});var V=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){i(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 yi={};N(yi,{designSystemVariables:()=>So});var mi={};N(mi,{DesignSystemFamily:()=>Nr,DesignSystemSize:()=>Pr,FtCssVariableFactory:()=>n,badge:()=>ep,banner:()=>Xu,button:()=>$u,card:()=>Vu,chart:()=>mp,checkbox:()=>ju,chip:()=>Qu,chipChoice:()=>Zu,chipGroup:()=>Yu,collapsible:()=>hp,combobox:()=>pp,dateRangePicker:()=>Sp,drawer:()=>sp,eventCard:()=>zu,floatingMenu:()=>up,foundation:()=>c,link:()=>Ju,modal:()=>ip,notice:()=>bp,notification:()=>vp,pageDesigner:()=>yp,pageFooter:()=>op,pageHeader:()=>rp,pageLayout:()=>np,popover:()=>fp,radio:()=>Ku,reorderableList:()=>ap,resolveFamilyClass:()=>hi,resolveSizeClass:()=>gi,semantic:()=>u,setVariable:()=>er,switch_:()=>gp,table:()=>qu,tabs:()=>cp,textArea:()=>dp,textInput:()=>lp,titleBreadcrumb:()=>tp,toc:()=>Gu,toggle:()=>Hu,tooltip:()=>xp,treeList:()=>Wu,typographies:()=>Uu,typographyBody1Medium:()=>Ec,typographyBody1Regular:()=>Sc,typographyBody1Semibold:()=>Cc,typographyBody2Medium:()=>Oc,typographyBody2MediumUnderline:()=>Ac,typographyBody2Regular:()=>wc,typographyBody2Semibold:()=>Rc,typographyCaption1Medium:()=>Tc,typographyCaption1Semibold:()=>Ic,typographyCaption2Bold:()=>kc,typographyCaption2Medium:()=>_c,typographyCaption2Semibold:()=>Lc,typographyDisplay:()=>yc,typographyTitle1:()=>bc,typographyTitle2:()=>vc,typographyTitle3:()=>xc,typographyVariants:()=>Bu});var it=r=>typeof r=="string"?vr(r):r,n=class{static create(e,t,o,i){let a=l=>it(l??i),s=_`var(${it(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${it(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=_`var(${it(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>er(s,l??a(i)),s.get=l=>_`var(${it(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),i=_`var(${it(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.set=a=>e.set(a),i.get=a=>_`var(${it(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function er(r,e){return it(`${r.name}: ${e}`)}var c={colorWhite:n.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:n.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:n.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:n.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:n.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:n.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:n.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:n.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:n.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:n.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:n.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:n.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:n.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:n.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:n.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:n.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:n.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:n.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:n.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:n.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:n.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:n.create("--ftds-opacity-0","","NUMBER","0"),opacity4:n.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:n.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:n.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:n.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:n.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:n.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:n.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},yc={fontFamily:n.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:n.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-display-text-case","","UNKNOWN","none")},bc={fontFamily:n.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:n.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},vc={fontFamily:n.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:n.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},xc={fontFamily:n.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:n.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:n.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Sc={fontFamily:n.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Ec={fontFamily:n.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Cc={fontFamily:n.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:n.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},wc={fontFamily:n.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:n.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Oc={fontFamily:n.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Ac={fontFamily:n.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:n.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:n.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Rc={fontFamily:n.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:n.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:n.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:n.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:n.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Tc={fontFamily:n.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Ic={fontFamily:n.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:n.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},_c={fontFamily:n.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:n.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Lc={fontFamily:n.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:n.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},kc={fontFamily:n.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:n.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:n.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:n.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:n.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:n.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:n.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:n.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Uu={display:yc,"title-1":bc,"title-2":vc,"title-3":xc,"body-1-regular":Sc,"body-1-medium":Ec,"body-1-semibold":Cc,"body-2-regular":wc,"body-2-medium":Oc,"body-2-medium-underline":Ac,"body-2-semibold":Rc,"caption-1-medium":Tc,"caption-1-semibold":Ic,"caption-2-medium":_c,"caption-2-semibold":Lc,"caption-2-bold":kc},Bu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var u={backgroundActionPrimary:n.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:n.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:n.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:n.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:n.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:n.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:n.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:n.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:n.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:n.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:n.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:n.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:n.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:n.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:n.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:n.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:n.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:n.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
4
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:n.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:n.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:n.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:n.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:n.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:n.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:n.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:n.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:n.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:n.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:n.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:n.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:n.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:n.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:n.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:n.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var $u={largeHeight:n.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:n.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:n.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:n.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:n.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:n.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:n.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:n.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:n.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:n.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:n.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:n.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:n.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:n.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:n.extend("--ftds-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:n.extend("--ftds-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:n.extend("--ftds-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:n.extend("--ftds-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:n.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:n.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:n.extend("--ftds-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:n.extend("--ftds-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:n.extend("--ftds-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:n.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:n.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:n.extend("--ftds-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:n.extend("--ftds-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:n.extend("--ftds-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:n.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:n.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:n.extend("--ftds-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:n.extend("--ftds-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:n.extend("--ftds-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:n.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:n.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:n.extend("--ftds-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:n.extend("--ftds-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:n.extend("--ftds-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:n.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:n.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:n.extend("--ftds-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:n.extend("--ftds-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:n.extend("--ftds-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:n.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:n.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:n.extend("--ftds-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:n.extend("--ftds-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:n.extend("--ftds-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:n.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:n.extend("--ftds-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:n.extend("--ftds-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:n.extend("--ftds-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:n.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:n.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:n.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:n.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:n.extend("--ftds-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:n.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:n.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:n.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:n.extend("--ftds-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:n.extend("--ftds-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:n.extend("--ftds-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:n.extend("--ftds-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:n.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:n.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:n.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:n.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:n.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:n.extend("--ftds-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:n.extend("--ftds-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:n.extend("--ftds-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:n.extend("--ftds-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:n.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:n.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:n.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:n.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:n.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:n.extend("--ftds-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:n.extend("--ftds-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:n.extend("--ftds-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:n.extend("--ftds-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:n.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:n.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:n.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:n.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:n.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:n.extend("--ftds-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:n.extend("--ftds-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:n.extend("--ftds-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:n.extend("--ftds-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:n.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:n.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:n.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:n.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:n.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:n.extend("--ftds-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:n.extend("--ftds-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:n.extend("--ftds-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:n.extend("--ftds-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Hu={iconSize:n.extend("--ftds-toggle-icon-size","",c.iconSize1),offHoverStateLayerOpacity:n.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:n.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:n.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:n.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:n.extend("--ftds-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:n.extend("--ftds-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:n.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:n.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:n.extend("--ftds-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:n.extend("--ftds-toggle-on-icon-color","",u.contentActionPrimary),color:n.extend("--ftds-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:n.extend("--ftds-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:n.extend("--ftds-toggle-gap","",c.spacing3),width:n.create("--ftds-toggle-width","","SIZE","36px"),height:n.create("--ftds-toggle-height","","SIZE","20px")};var Vu={borderRadius:n.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:n.extend("--ftds-card-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:n.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:n.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:n.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:n.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:n.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:n.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:n.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:n.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:n.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:n.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:n.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:n.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:n.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:n.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:n.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:n.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:n.extend("--ftds-card-non-selectable-state-layer-color","",u.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:n.extend("--ftds-card-non-selectable-default-background-color","",u.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:n.extend("--ftds-card-non-selectable-default-border-color","",u.borderGlobalSecondary),nonSelectableHoverBorderColor:n.extend("--ftds-card-non-selectable-hover-border-color","",u.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:n.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:n.extend("--ftds-card-non-selectable-focus-border-color","",u.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:n.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:n.extend("--ftds-card-internal-border-color","",u.borderGlobalSecondary),selectableUnselectedBorderWidth:n.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:n.extend("--ftds-card-selectable-unselected-state-layer-color","",u.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:n.extend("--ftds-card-selectable-unselected-default-background-color","",u.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:n.extend("--ftds-card-selectable-unselected-default-border-color","",u.borderGlobalSecondary),selectableUnselectedHoverBorderColor:n.extend("--ftds-card-selectable-unselected-hover-border-color","",u.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:n.extend("--ftds-card-selectable-unselected-focus-border-color","",u.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:n.extend("--ftds-card-selectable-selected-border-color","",u.borderActionPrimary),selectableSelectedBorderWidth:n.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:n.extend("--ftds-card-selectable-selected-state-layer-color","",u.contentActionPrimary),selectableSelectedBackgroundColor:n.extend("--ftds-card-selectable-selected-background-color","",u.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:n.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:n.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:n.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:n.create("--ftds-card-internal-border-width","","SIZE","1px")};var zu={borderRadius:n.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:n.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:n.extend("--ftds-event-card-background-color","",u.backgroundGlobalSurface),thumbnailWidth:n.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:n.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:n.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:n.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:n.extend("--ftds-event-card-primary-thumbnail-icon-color","",u.contentGlobalOnColor),secondaryThumbnailBackgroundColor:n.extend("--ftds-event-card-secondary-thumbnail-background-color","",u.backgroundGlobalSurface)};var Wu={loadMoreIconSize:n.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:n.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:n.extend("--ftds-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:n.extend("--ftds-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:n.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:n.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:n.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:n.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:n.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:n.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),loadMoreLabelMarginLeft:n.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:n.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:n.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:n.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:n.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:n.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:n.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:n.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:n.extend("--ftds-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:n.extend("--ftds-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:n.extend("--ftds-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:n.extend("--ftds-tree-list-node-unselected-counter-color","",u.contentGlobalSecondary),nodeHoverBorderColor:n.extend("--ftds-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:n.extend("--ftds-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:n.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:n.extend("--ftds-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:n.extend("--ftds-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:n.extend("--ftds-tree-list-node-selected-counter-color","",u.contentGlobalSecondary),nodeSelectedBackgroundColor:n.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:n.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:n.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:n.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:n.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:n.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:n.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:n.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:n.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:n.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:n.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:n.extend("--ftds-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:n.extend("--ftds-tree-list-header-section-counter-color","",u.contentGlobalSecondary),listContainerBorderWidth:n.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:n.extend("--ftds-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:n.extend("--ftds-tree-list-list-container-border-color","",u.borderGlobalSubtle),emptyStateIllustrationWidth:n.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:n.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:n.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:n.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:n.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:n.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:n.extend("--ftds-tree-list-empty-state-title-label-color","",u.contentGlobalSecondary),emptyStateDescriptionLabelColor:n.extend("--ftds-tree-list-empty-state-description-label-color","",u.contentGlobalSecondary)};var Gu={titleColor:n.extend("--ftds-toc-title-color","",u.contentGlobalSubtle),titleGap:n.extend("--ftds-toc-title-gap","",c.spacing2),offsetTop:n.create("--ftds-toc-offset-top","","SIZE","160px"),itemGap:n.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:n.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:n.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:n.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:n.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:n.extend("--ftds-toc-item-focus-focus-ring-color","",u.borderActionFocusRing),itemFocusFocusRingWidth:n.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","2px"),itemInactiveLabelColor:n.extend("--ftds-toc-item-inactive-label-color","",u.contentGlobalSubtle),itemInactiveBorderColor:n.extend("--ftds-toc-item-inactive-border-color","",u.borderGlobalSubtle),itemInactiveStateLayerColor:n.extend("--ftds-toc-item-inactive-state-layer-color","",u.contentGlobalSecondary),itemInactiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-inactive-hover-state-layer-opacity","",c.opacity8),itemInactiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-inactive-focus-state-layer-opacity","",c.opacity8),itemActiveLabelColor:n.extend("--ftds-toc-item-active-label-color","",u.contentActionPrimary),itemActiveBorderColor:n.extend("--ftds-toc-item-active-border-color","",u.borderActionPrimary),itemActiveBorderWidth:n.create("--ftds-toc-item-active-border-width","","SIZE","3px"),itemActiveStateLayerColor:n.extend("--ftds-toc-item-active-state-layer-color","",u.backgroundActionPrimary),itemActiveDefaultStateLayerOpacity:n.extend("--ftds-toc-item-active-default-state-layer-opacity","",c.opacity8),itemActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-active-hover-state-layer-opacity","",c.opacity16),itemActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-active-focus-state-layer-opacity","",c.opacity16),itemChildActiveLabelColor:n.extend("--ftds-toc-item-child-active-label-color","",u.contentActionPrimary),itemChildActiveBorderColor:n.extend("--ftds-toc-item-child-active-border-color","",u.borderGlobalSubtle),itemChildActiveStateLayerColor:n.extend("--ftds-toc-item-child-active-state-layer-color","",u.contentGlobalSecondary),itemChildActiveHoverStateLayerOpacity:n.extend("--ftds-toc-item-child-active-hover-state-layer-opacity","",c.opacity8),itemChildActiveFocusStateLayerOpacity:n.extend("--ftds-toc-item-child-active-focus-state-layer-opacity","",c.opacity8)};var ju={iconSize:n.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:n.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:n.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:n.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:n.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing2),color:n.extend("--ftds-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ftds-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:n.extend("--ftds-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:n.extend("--ftds-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:n.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:n.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:n.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:n.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:n.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:n.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:n.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:n.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:n.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:n.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:n.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:n.extend("--ftds-checkbox-error-unchecked-border-color","",u.borderErrorPrimary),errorStateLayerColor:n.extend("--ftds-checkbox-error-state-layer-color","",u.contentErrorPrimary),errorHelperTextColor:n.extend("--ftds-checkbox-error-helper-text-color","",u.borderErrorPrimary),errorCheckedBackgroundColor:n.extend("--ftds-checkbox-error-checked-background-color","",u.contentErrorPrimary),helperTextColor:n.extend("--ftds-checkbox-helper-text-color","",u.contentGlobalSubtle),groupVerticalGap:n.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var Ku={circleSize:n.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:n.create("--ftds-radio-border-width","","SIZE","2px"),color:n.extend("--ftds-radio-color","",u.contentGlobalPrimary),selectedRadioColor:n.extend("--ftds-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:n.extend("--ftds-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:n.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:n.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:n.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:n.extend("--ftds-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:n.extend("--ftds-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:n.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:n.extend("--ftds-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:n.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:n.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var qu={headerRowBorderWidth:n.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:n.extend("--ftds-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:n.extend("--ftds-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:n.extend("--ftds-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:n.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:n.extend("--ftds-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:n.extend("--ftds-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:n.extend("--ftds-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:n.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:n.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:n.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:n.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:n.extend("--ftds-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:n.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:n.extend("--ftds-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:n.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:n.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:n.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:n.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:n.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:n.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:n.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:n.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var Zu={neutralOffHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:n.extend("--ftds-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ftds-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:n.extend("--ftds-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ftds-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:n.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:n.extend("--ftds-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ftds-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:n.extend("--ftds-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:n.extend("--ftds-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ftds-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:n.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:n.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:n.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:n.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:n.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var Qu={largeMinHeight:n.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:n.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:n.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:n.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:n.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:n.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:n.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:n.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:n.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:n.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:n.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:n.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:n.extend("--ftds-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:n.extend("--ftds-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:n.extend("--ftds-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:n.extend("--ftds-chip-neutral-border-color","",u.borderGlobalSecondary),infoBackgroundColor:n.extend("--ftds-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-chip-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-chip-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-chip-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-chip-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-chip-error-border-color","",u.borderErrorSubtle)};var Yu={horizontalGap:n.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:n.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:n.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:n.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:n.extend("--ftds-chip-group-count-chip-default-content-color","",u.contentActionPrimary),countChipHoverBackgroundColor:n.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:n.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:n.extend("--ftds-chip-group-count-chip-hover-content-color","",u.contentActionPrimary),countChipFocusedBackgroundColor:n.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:n.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:n.extend("--ftds-chip-group-count-chip-focused-content-color","",u.contentActionPrimary)};var Ju={brandHoverOpacity:n.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:n.extend("--ftds-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ftds-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:n.extend("--ftds-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:n.extend("--ftds-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:n.extend("--ftds-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:n.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:n.extend("--ftds-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ftds-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:n.extend("--ftds-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:n.extend("--ftds-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:n.extend("--ftds-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ftds-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:n.extend("--ftds-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:n.extend("--ftds-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:n.extend("--ftds-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:n.extend("--ftds-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:n.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:n.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Xu={iconSize:n.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:n.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:n.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:n.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:n.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:n.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:n.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:n.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:n.extend("--ftds-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-banner-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-banner-info-border-color","",u.borderInfoSubtle)};var ep={horizontalPadding:n.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:n.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:n.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:n.extend("--ftds-badge-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-badge-background-color","",u.contentActionPrimary)};var tp={horizontalGap:n.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:n.extend("--ftds-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:n.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:n.extend("--ftds-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var rp={parentHorizontalPadding:n.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:n.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:n.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:n.extend("--ftds-page-header-parent-help-left-margin","",c.spacing2),parentTitleColor:n.extend("--ftds-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:n.extend("--ftds-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:n.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:n.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:n.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:n.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:n.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:n.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:n.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:n.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:n.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:n.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:n.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:n.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:n.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:n.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:n.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:n.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:n.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:n.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:n.extend("--ftds-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:n.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var op={horizontalPadding:n.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:n.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:n.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:n.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:n.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:n.extend("--ftds-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:n.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:n.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var np={contentHorizontalPadding:n.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:n.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var ip={smallContainerTargetWidth:n.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:n.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:n.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:n.extend("--ftds-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-modal-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:n.extend("--ftds-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:n.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:n.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:n.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:n.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:n.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:n.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:n.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:n.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:n.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:n.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:n.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:n.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:n.extend("--ftds-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:n.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:n.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var ap={grabberIconSize:n.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:n.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:n.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:n.extend("--ftds-reorderable-list-item-gap","",c.spacing2),borderRadius:n.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:n.extend("--ftds-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:n.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:n.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:n.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:n.extend("--ftds-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:n.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:n.extend("--ftds-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:n.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:n.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:n.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:n.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:n.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:n.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:n.extend("--ftds-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:n.extend("--ftds-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var sp={overlayOpacity:n.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:n.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:n.extend("--ftds-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:n.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:n.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:n.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:n.extend("--ftds-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ftds-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:n.extend("--ftds-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ftds-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:n.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:n.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:n.extend("--ftds-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ftds-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:n.extend("--ftds-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:n.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:n.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:n.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var cp={offBorderBottomWidth:n.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:n.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:n.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:n.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:n.extend("--ftds-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:n.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:n.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:n.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:n.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:n.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:n.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:n.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:n.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:n.extend("--ftds-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ftds-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:n.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:n.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:n.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:n.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-tabs-focus-focus-ring-color","",u.borderActionFocusRing),mainIconIconSize:n.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:n.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var lp={largeFieldHorizontalPadding:n.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:n.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:n.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:n.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:n.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:n.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:n.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:n.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:n.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:n.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:n.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:n.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperVerticalGap:n.extend("--ftds-text-input-helper-vertical-gap","",c.spacing1),helperIconSize:n.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:n.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:n.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:n.extend("--ftds-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:n.extend("--ftds-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:n.extend("--ftds-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:n.extend("--ftds-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:n.extend("--ftds-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:n.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ftds-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:n.extend("--ftds-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:n.extend("--ftds-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:n.extend("--ftds-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:n.extend("--ftds-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:n.extend("--ftds-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:n.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:n.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var dp={fieldPaddingLeft:n.extend("--ftds-text-area-field-padding-left","",c.spacing4),fieldPaddingRight:n.extend("--ftds-text-area-field-padding-right","",c.spacing6),fieldMinHeight:n.create("--ftds-text-area-field-min-height","","SIZE","72px"),fieldMaxHeight:n.create("--ftds-text-area-field-max-height","","SIZE","300px"),resizeBottom:n.extend("--ftds-text-area-resize-bottom","",c.spacing05),resizeRight:n.extend("--ftds-text-area-resize-right","",c.spacing05)};var up={height:n.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:n.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:n.extend("--ftds-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:n.extend("--ftds-floating-menu-off-color","",u.contentGlobalPrimary),onColor:n.extend("--ftds-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:n.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:n.extend("--ftds-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:n.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:n.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:n.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:n.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:n.extend("--ftds-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:n.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",u.contentActionPrimary),multiselectCheckedColor:n.extend("--ftds-floating-menu-multiselect-checked-color","",u.contentGlobalPrimary),multiselectCheckedIconColor:n.extend("--ftds-floating-menu-multiselect-checked-icon-color","",u.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",u.contentActionPrimary),multiselectIndeterminatedColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-color","",u.contentGlobalPrimary),multiselectIndeterminatedIconColor:n.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",u.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:n.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",u.contentGlobalPrimary),multiselectUncheckedColor:n.extend("--ftds-floating-menu-multiselect-unchecked-color","",u.contentGlobalPrimary),multiselectUncheckedIconColor:n.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",u.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",u.contentActionPrimary),selectAllCheckedColor:n.extend("--ftds-floating-menu-select-all-checked-color","",u.contentGlobalPrimary),selectAllCheckedIconColor:n.extend("--ftds-floating-menu-select-all-checked-icon-color","",u.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:n.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",u.contentGlobalPrimary),selectAllIndeterminatedColor:n.extend("--ftds-floating-menu-select-all-indeterminated-color","",u.contentGlobalPrimary),selectAllIndeterminatedIconColor:n.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",u.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:n.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",u.contentGlobalPrimary),selectAllUncheckedColor:n.extend("--ftds-floating-menu-select-all-unchecked-color","",u.contentGlobalPrimary),selectAllUncheckedIconColor:n.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",u.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:n.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",u.contentGlobalPrimary),defaultUncheckedColor:n.extend("--ftds-floating-menu-default-unchecked-color","",u.contentGlobalPrimary),defaultUncheckedIconColor:n.extend("--ftds-floating-menu-default-unchecked-icon-color","",u.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:n.extend("--ftds-floating-menu-default-checked-state-layer-color","",u.contentActionPrimary),defaultCheckedColor:n.extend("--ftds-floating-menu-default-checked-color","",u.contentActionPrimary),defaultCheckedIconColor:n.extend("--ftds-floating-menu-default-checked-icon-color","",u.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:n.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var pp={menuVerticalGap:n.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:n.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:n.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:n.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:n.extend("--ftds-combobox-menu-new-value-label-color","",u.contentGlobalSubtle),menuNewValueBorderColor:n.extend("--ftds-combobox-menu-new-value-border-color","",u.borderGlobalPrimary),menuNewValueBorderWidth:n.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:n.extend("--ftds-combobox-menu-new-value-error-background-color","",u.backgroundErrorSubtle),menuNewValueErrorBorderColor:n.extend("--ftds-combobox-menu-new-value-error-border-color","",u.borderErrorPrimary),menuNewValueErrorStateLayerColor:n.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",u.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:n.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:n.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:n.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:n.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:n.extend("--ftds-combobox-menu-message-label-color","",u.contentGlobalSubtle),valuesChipBackgroundColor:n.extend("--ftds-combobox-values-chip-background-color","",u.backgroundGlobalOnSurface),valuesChipBorderColor:n.extend("--ftds-combobox-values-chip-border-color","",u.borderInputPrimary)};var fp={backgroundColor:n.extend("--ftds-popover-background-color","",u.backgroundGlobalOnSurface),titleColor:n.extend("--ftds-popover-title-color","",u.contentGlobalPrimary),bodyColor:n.extend("--ftds-popover-body-color","",u.contentGlobalSecondary),gap:n.extend("--ftds-popover-gap","",c.spacing2),borderRadius:n.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:n.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:n.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:n.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:n.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:n.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:n.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:n.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:n.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:n.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var hp={hoverStateLayerOpacity:n.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:n.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:n.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ftds-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:n.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:n.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:n.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:n.extend("--ftds-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:n.extend("--ftds-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:n.extend("--ftds-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:n.extend("--ftds-collapsible-border-color","",u.borderGlobalSubtle),iconSize:n.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var gp={groupHorizontalPadding:n.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:n.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:n.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:n.extend("--ftds-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:n.extend("--ftds-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:n.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:n.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:n.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:n.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:n.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:n.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:n.extend("--ftds-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:n.extend("--ftds-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:n.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:n.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:n.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:n.extend("--ftds-switch-on-color","",u.contentActionPrimary),onStateLayerColor:n.extend("--ftds-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:n.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:n.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:n.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ftds-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:n.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var mp={color1Light:n.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:n.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:n.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:n.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:n.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:n.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:n.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:n.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:n.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:n.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:n.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:n.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:n.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:n.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:n.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:n.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:n.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:n.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:n.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:n.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:n.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:n.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:n.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:n.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:n.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:n.extend("--ftds-chart-monochrome-60","",c.colorBrand200)};var yp={color1IconColor:n.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:n.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:n.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:n.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:n.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:n.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:n.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:n.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:n.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:n.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:n.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:n.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:n.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:n.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:n.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:n.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var bp={borderWidth:n.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:n.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:n.extend("--ftds-notice-gap","",c.spacing2),iconSize:n.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:n.extend("--ftds-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:n.extend("--ftds-notice-info-border-color","",u.borderInfoSubtle),infoColor:n.extend("--ftds-notice-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:n.extend("--ftds-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:n.extend("--ftds-notice-warning-border-color","",u.borderWarningSubtle),warningColor:n.extend("--ftds-notice-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:n.extend("--ftds-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:n.extend("--ftds-notice-error-border-color","",u.borderErrorSubtle),errorColor:n.extend("--ftds-notice-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:n.extend("--ftds-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:n.extend("--ftds-notice-success-border-color","",u.borderSuccessSubtle),successColor:n.extend("--ftds-notice-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:n.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:n.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:n.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:n.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:n.create("--ftds-notice-dense-border-width","","SIZE","0")};var vp={iconSize:n.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:n.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:n.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:n.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:n.extend("--ftds-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:n.extend("--ftds-notification-info-color","",u.contentInfoPrimary),infoIconColor:n.extend("--ftds-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:n.extend("--ftds-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:n.extend("--ftds-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:n.extend("--ftds-notification-success-color","",u.contentSuccessPrimary),successIconColor:n.extend("--ftds-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:n.extend("--ftds-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:n.extend("--ftds-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:n.extend("--ftds-notification-warning-color","",u.contentWarningPrimary),warningIconColor:n.extend("--ftds-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:n.extend("--ftds-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:n.extend("--ftds-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:n.extend("--ftds-notification-error-color","",u.contentErrorPrimary),errorIconColor:n.extend("--ftds-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:n.extend("--ftds-notification-error-border-color","",u.borderErrorSubtle),borderRadius:n.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:n.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:n.extend("--ftds-notification-trailing-gap","",c.spacing8)};var xp={horizontalPadding:n.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:n.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:n.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:n.extend("--ftds-tooltip-color","",u.contentGlobalOnColor),backgroundColor:n.extend("--ftds-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:n.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:n.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:n.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ftds-tooltip-gap","",c.spacing05)};var Sp={menuHorizontalPadding:n.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:n.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:n.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:n.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Nr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Nr||(Nr={}));var Pr;(function(r){r.large="large",r.medium="medium",r.small="small"})(Pr||(Pr={}));function hi(r){return`ftds--family-${r}`}function gi(r){return`ftds--size-${r}`}var So={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:n.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:n.create("--ft-color-warning","","COLOR","#B74706"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:n.create("--ft-color-success","","COLOR","#187856"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var bi={};N(bi,{DynamicImporter:()=>Eo,dynamicImporter:()=>Ep});var Eo=class{async import(e){if(e)return import(e)}},Ep=new Eo;var _i={};N(_i,{computeOffsetAutoPosition:()=>Kp,computeOffsetPosition:()=>jp});var Pc=["top","right","bottom","left"],Nc=["start","end"],xi=Pc.reduce((r,e)=>r.concat(e,e+"-"+Nc[0],e+"-"+Nc[1]),[]),vt=Math.min,Be=Math.max,Fr=Math.round;var $e=r=>({x:r,y:r}),Cp={left:"right",right:"left",bottom:"top",top:"bottom"};function Fc(r,e,t){return Be(r,vt(e,t))}function tr(r,e){return typeof r=="function"?r(e):r}function xt(r){return r.split("-")[0]}function He(r){return r.split("-")[1]}function Si(r){return r==="x"?"y":"x"}function Ei(r){return r==="y"?"height":"width"}function rr(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Ci(r){return Si(rr(r))}function Mc(r,e,t){t===void 0&&(t=!1);let o=He(r),i=Ci(r),a=Ei(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=vi(s)),[s,vi(s)]}function Dc(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function vi(r){let e=xt(r);return Cp[e]+r.slice(e.length)}function wp(r){var e,t,o,i;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(i=r.left)!=null?i:0}}function Uc(r){return typeof r!="number"?wp(r):{top:r,right:r,bottom:r,left:r}}function St(r){let{x:e,y:t,width:o,height:i}=r;return{width:o,height:i,top:t,left:e,right:e+o,bottom:t+i,x:e,y:t}}function Bc(r,e,t){let{reference:o,floating:i}=r,a=rr(e),s=Ci(e),l=Ei(s),d=xt(e),p=a==="y",f=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,b;switch(d){case"top":b={x:f,y:o.y-i.height};break;case"bottom":b={x:f,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-i.width,y:h};break;default:b={x:o.x,y:o.y}}let x=He(e);return x&&(b[s]+=g*(x==="end"?1:-1)*(t&&p?-1:1)),b}async function $c(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=tr(e,r),x=Uc(b),E=l[g?h==="floating"?"reference":"floating":h],A=St(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(E)))==null||t?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),I=h==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),m=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},v=St(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:y,strategy:d}):I);return{top:(A.top-v.top+x.top)/m.y,bottom:(v.bottom-A.bottom+x.bottom)/m.y,left:(A.left-v.left+x.left)/m.x,right:(v.right-A.right+x.right)/m.x}}var Op=50,Hc=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:$c},d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:f,y:h}=Bc(p,o,d),g=o,b=0,x={};for(let w=0;w<a.length;w++){let E=a[w];if(!E)continue;let{name:A,fn:I}=E,{x:y,y:m,data:v,reset:O}=await I({x:f,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:x,rects:p,platform:l,elements:{reference:r,floating:e}});f=y??f,h=m??h,x[A]={...x[A],...v},O&&b<Op&&(b++,typeof O=="object"&&(O.placement&&(g=O.placement),O.rects&&(p=O.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):O.rects),{x:f,y:h}=Bc(p,g,d)),w=-1)}return{x:f,y:h,placement:g,strategy:i,middlewareData:x}};function Ap(r,e,t){return(r?[...t.filter(i=>He(i)===r),...t.filter(i=>He(i)!==r)]:t.filter(i=>xt(i)===i)).filter(i=>r?He(i)===r||(e?Dc(i)!==i:!1):!0)}var Vc=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:g=xi,autoAlignment:b=!0,...x}=tr(r,e),w=h!==void 0||g===xi?Ap(h||null,b,g):g,E=((t=s.autoPlacement)==null?void 0:t.index)||0,A=w[E];if(A==null)return{};if(l!==A)return{reset:{placement:w[0]}};let I=await d.detectOverflow(e,x),y=Mc(A,a,await(d.isRTL==null?void 0:d.isRTL(p.floating))),m=[I[xt(A)],I[y[0]],I[y[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:m}],O=w[E+1];if(O)return{data:{index:E+1,overflows:v},reset:{placement:O}};let k=v.map(T=>{let P=He(T.placement);return[T.placement,P&&f?T.overflows.slice(0,2).reduce((q,Pe)=>q+Pe,0):T.overflows[0],T.overflows]}).sort((T,P)=>T[1]-P[1]),G=((i=k.filter(T=>T[2].slice(0,He(T[0])?2:3).every(P=>P<=0))[0])==null?void 0:i[0])||k[0][0];return G!==l?{data:{index:E+1,overflows:v},reset:{placement:G}}:{}}}};var Rp=new Set(["left","top"]);async function Tp(r,e){let{placement:t,platform:o,elements:i}=r,a=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=xt(t),l=He(t),d=rr(t)==="y",p=Rp.has(s)?-1:1,f=a&&d?-1:1,h=tr(e,r),{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*f,y:g*p}:{x:g*p,y:b*f}}var zc=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:i,y:a,placement:s,middlewareData:l}=e,d=await Tp(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},Wc=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:I=>{let{x:y,y:m}=I;return{x:y,y:m}}},...p}=tr(r,e),f={x:t,y:o},h=await a.detectOverflow(e,p),g=rr(i),b=Si(g),x=f[b],w=f[g],E=(I,y)=>Fc(y+h[I==="y"?"top":"left"],y,y-h[I==="y"?"bottom":"right"]);s&&(x=E(b,x)),l&&(w=E(g,w));let A=d.fn({...e,[b]:x,[g]:w});return{...A,data:{x:A.x-t,y:A.y-o,enabled:{[b]:s,[g]:l}}}}}};var Gc=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...l}=tr(r,e),d=await i.detectOverflow(e,l),p=xt(t),f=He(t),h=rr(t)==="y",{width:g,height:b}=o.floating,x,w;p==="top"||p==="bottom"?(x=p,w=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,x=f==="end"?"top":"bottom");let E=b-d.top-d.bottom,A=g-d.left-d.right,I=vt(b-d[x],E),y=vt(g-d[w],A),m=e.middlewareData.shift,v=!m,O=I,k=y;m!=null&&m.enabled.x&&(k=A),m!=null&&m.enabled.y&&(O=E),v&&!f&&(h?k=g-2*Be(d.left,d.right):O=b-2*Be(d.top,d.bottom)),await s({...e,availableWidth:k,availableHeight:O});let M=await i.getDimensions(a.floating);return g!==M.width||b!==M.height?{reset:{rects:!0}}:{}}}};function wo(){return typeof window<"u"}function Ct(r){return Kc(r)?(r.nodeName||"").toLowerCase():"#document"}function de(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ke(r){var e;return(e=(Kc(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Kc(r){return wo()?r instanceof Node||r instanceof de(r).Node:!1}function Ie(r){return wo()?r instanceof Element||r instanceof de(r).Element:!1}function qe(r){return wo()?r instanceof HTMLElement||r instanceof de(r).HTMLElement:!1}function jc(r){return!wo()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof de(r).ShadowRoot}function Mr(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=_e(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&i!=="inline"&&i!=="contents"}function qc(r){return/^(table|td|th)$/.test(Ct(r))}function Dr(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}var Ip=/transform|translate|scale|rotate|perspective|filter/,_p=/paint|layout|strict|content/,Et=r=>!!r&&r!=="none",wi;function or(r){let e=Ie(r)?_e(r):r;return Et(e.transform)||Et(e.translate)||Et(e.scale)||Et(e.rotate)||Et(e.perspective)||!Oo()&&(Et(e.backdropFilter)||Et(e.filter))||Ip.test(e.willChange||"")||_p.test(e.contain||"")}function Zc(r){let e=at(r);for(;qe(e)&&!nr(e);){if(or(e))return e;if(Dr(e))return null;e=at(e)}return null}function Oo(){return wi==null&&(wi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wi}function nr(r){return/^(html|body|#document)$/.test(Ct(r))}function _e(r){return de(r).getComputedStyle(r)}function Ur(r){return Ie(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function at(r){if(Ct(r)==="html")return r;let e=r.assignedSlot||r.parentNode||jc(r)&&r.host||Ke(r);return jc(e)?e.host:e}function Qc(r){let e=at(r);return nr(e)?(r.ownerDocument||r).body:qe(e)&&Mr(e)?e:Qc(e)}function Co(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=Qc(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=de(i);if(a){let l=Ao(s);return e.concat(s,s.visualViewport||[],Mr(i)?i:[],l&&t?Co(l):[])}else return e.concat(i,Co(i,[],t))}function Ao(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Xc(r){let e=_e(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=qe(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=Fr(t)!==a||Fr(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function el(r){return Ie(r)?r:r.contextElement}function ir(r){let e=el(r);if(!qe(e))return $e(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=Xc(e),s=(a?Fr(t.width):t.width)/o,l=(a?Fr(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Lp=$e(0);function tl(r){let e=de(r);return!Oo()||!e.visualViewport?Lp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function kp(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===de(r)}function Br(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=el(r),s=$e(1);e&&(o?Ie(o)&&(s=ir(o)):s=ir(r));let l=kp(a,t,o)?tl(a):$e(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a&&o){let g=de(a),b=Ie(o)?de(o):o,x=g,w=Ao(x);for(;w&&b!==x;){let E=ir(w),A=w.getBoundingClientRect(),I=_e(w),y=A.left+(w.clientLeft+parseFloat(I.paddingLeft))*E.x,m=A.top+(w.clientTop+parseFloat(I.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=y,p+=m,x=de(w),w=Ao(x)}}return St({width:f,height:h,x:d,y:p})}function Ro(r,e){let t=Ur(r).scrollLeft;return e?e.left+t:Br(Ke(r)).left+t}function rl(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-Ro(r,t),i=t.top+e.scrollTop;return{x:o,y:i}}function Np(r){let{elements:e,rect:t,offsetParent:o,strategy:i}=r,a=i==="fixed",s=Ke(o),l=e?Dr(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},p=$e(1),f=$e(0),h=qe(o);if((h||!a)&&((Ct(o)!=="body"||Mr(s))&&(d=Ur(o)),h)){let b=Br(o);p=ir(o),f.x=b.x+o.clientLeft,f.y=b.y+o.clientTop}let g=s&&!h&&!a?rl(s,d):$e(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-d.scrollLeft*p.x+f.x+g.x,y:t.y*p.y-d.scrollTop*p.y+f.y+g.y}}function Pp(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function Fp(r){let e=Ur(r),t=r.ownerDocument.body,o=Be(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),i=Be(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+Ro(r),s=-e.scrollTop;return _e(t).direction==="rtl"&&(a+=Be(r.clientWidth,t.clientWidth)-o),{width:o,height:i,x:a,y:s}}var Mp=25;function Dp(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",i=de(r),a=Ke(r),s=i.visualViewport,l=a.clientWidth,d=a.clientHeight,p=0,f=0;if(s){let g=!Oo()||e==="fixed";o?g||(p=-s.offsetLeft,f=-s.offsetTop):(l=s.width,d=s.height,g&&(p=s.offsetLeft,f=s.offsetTop))}if(Ro(a)<=0){let g=a.ownerDocument,b=g.body,x=getComputedStyle(b),w=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(a.clientWidth-b.clientWidth-w),A=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;A<=Mp&&(l-=A)}return{width:l,height:d,x:p,y:f}}function Up(r,e){let t=Br(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ir(r),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=i*a.x,p=o*a.y;return{width:s,height:l,x:d,y:p}}function Yc(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=Dp(r,t,e);else if(e==="document")o=Fp(Ke(r));else if(Ie(e))o=Up(e,t);else{let i=tl(r);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return St(o)}function Bp(r,e){let t=e.get(r);if(t)return t;let o=Co(r,[],!1).filter(l=>Ie(l)&&Ct(l)!=="body"),i=null,a=_e(r).position==="fixed",s=a?at(r):r;for(;Ie(s)&&!nr(s);){let l=_e(s),d=or(s),p=i?i.position:a?"fixed":"";!d&&(p==="fixed"||p==="absolute"&&l.position==="static")?o=o.filter(h=>h!==s):i=l,s=at(s)}return e.set(r,o),o}function $p(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Dr(e)?[]:Bp(e,this._c):[].concat(t),o],l=Yc(e,s[0],i),d=l.top,p=l.right,f=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let b=Yc(e,s[g],i);d=Be(b.top,d),p=vt(b.right,p),f=vt(b.bottom,f),h=Be(b.left,h)}return{width:p-h,height:f-d,x:h,y:d}}function Hp(r){let{width:e,height:t}=Xc(r);return{width:e,height:t}}function Vp(r,e,t){let o=qe(e),i=Ke(e),a=t==="fixed",s=Br(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=$e(0);if((o||!a)&&((Ct(e)!=="body"||Mr(i))&&(l=Ur(e)),o)){let g=Br(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!o&&i&&(d.x=Ro(i));let p=i&&!o&&!a?rl(i,l):$e(0),f=s.left+l.scrollLeft-d.x-p.x,h=s.top+l.scrollTop-d.y-p.y;return{x:f,y:h,width:s.width,height:s.height}}function Oi(r){return _e(r).position==="static"}function Jc(r,e){if(!qe(r)||_e(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return Ke(r)===t&&(t=t.ownerDocument.body),t}function ol(r,e){let t=de(r);if(Dr(r))return t;if(!qe(r)){let i=at(r);for(;i&&!nr(i);){if(Ie(i)&&!Oi(i))return i;i=at(i)}return t}let o=Jc(r,e);for(;o&&qc(o)&&Oi(o);)o=Jc(o,e);return o&&nr(o)&&Oi(o)&&!or(o)?t:o||Zc(r)||t}var zp=async function(r){let e=this.getOffsetParent||ol,t=this.getDimensions,o=await t(r.floating);return{reference:Vp(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Wp(r){return _e(r).direction==="rtl"}var ar={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Ke,getClippingRect:$p,getOffsetParent:ol,getElementRects:zp,getClientRects:Pp,getDimensions:Hp,getScale:ir,isElement:Ie,isRTL:Wp};var nl=zc,Ai=Vc,il=Wc;var al=Gc;var Ri=(r,e,t)=>{let o=new Map,i=t??{},a={...ar,...i.platform,_c:o};return Hc(r,e,{...i,platform:a})};function Ii(r){return Gp(r)}function Ti(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Gp(r){for(let e=r;e;e=Ti(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ti(r);e;e=Ti(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||or(t)||e.tagName==="BODY"))return e}return null}async function jp(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Ri(r,e,{strategy:o.strategy,platform:{...ar,getOffsetParent:i=>ar.getOffsetParent(i,Ii)},middleware:[il({crossAxis:!0}),Ai({allowedPlacements:[o.placement]})]})}async function Kp(r,e,t,o,i,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,i=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,Ri(r,e,{placement:l,strategy:i,platform:{...ar,getOffsetParent:p=>ar.getOffsetParent(p,Ii)},middleware:[nl(s??4),Ai({allowedPlacements:o}),al({apply({availableHeight:p,availableWidth:f,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,f)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,f)}px`}})]})}var Li={};N(Li,{isSlotEmptyOrWithoutContent:()=>qp});var qp=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var i;return o.nodeType===Node.TEXT_NODE?((i=o.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Di={};N(Di,{FtdsBase:()=>Mi,toFtdsBase:()=>fl});var Fi={};N(Fi,{ExportpartsUpdatedEvent:()=>wt,FtLitElement:()=>Y});var ki={};N(ki,{ScopedRegistryLitElement:()=>$r});var $r=class extends Ge{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return xr(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Tr(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}};var Pi={};N(Pi,{shadowQuerySelector:()=>Ni,shadowQuerySelectorAll:()=>Zp});function Ni(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function Zp(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return o}var sr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},dl,sl=Symbol("constructorPrototype"),cl=Symbol("constructorName"),ul=Symbol("exportpartsDebouncer"),ll=Symbol("dynamicDependenciesLoaded"),wt=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};wt.eventName="exportparts-updated";var Y=class extends $r{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[dl]=new V(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[ul].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[cl]=this.constructor.name,this[sl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[cl]&&Object.setPrototypeOf(this,this[sl])}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 t=this.constructor;t[ll]||(t[ll]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(wt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(wt.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 wt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:i}=this.elementToFocus;if(o!=null){let a=[...i??[],o];t=Ni(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.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((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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 t,o,i,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 f=new Set;for(let g of(a=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(o=g.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&s!==void 0?s:[],x=(l=(i=g.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],w=[...b,...x].filter(d).map(E=>E.trim());for(let E of w)f.add(E)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};dl=ul;sr([S()],Y.prototype,"exportpartsPrefix",void 0);sr([he([])],Y.prototype,"exportpartsPrefixes",void 0);sr([S({reflect:!0})],Y.prototype,"exportparts",void 0);sr([S()],Y.prototype,"customStylesheet",void 0);sr([S()],Y.prototype,"elementToFocus",void 0);sr([H()],Y.prototype,"useAdoptedStyleSheets",void 0);var pl=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},fl=Q(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Pr.medium,this.family=Nr.neutral}getDesignSystemBaseClasses(){return{[hi(this.family)]:!0,[gi(this.size)]:!0}}}return pl([S()],e.prototype,"size",void 0),pl([S()],e.prototype,"family",void 0),e}),Mi=class extends fl(Y){};var hl={};var $i={};N($i,{highlightHtml:()=>Bi,highlightHtmlColorCssVariable:()=>gl,highlightHtmlStyles:()=>Yp});var Ot=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{t(p)&&(l++,o(f)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(p,f,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>d.push(b),i)}),d.push(p);d.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var Hr=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Ot(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-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:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,i=d+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return Ot.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!i(s.node))return!1;let p=t-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=f),e.nodes[x].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!o(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>o(d[s],h),(h,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,g=>t(g,l,a.value.substring(p,f),d),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](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,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[i](f,1,(g,b)=>this.opt.filter(b,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&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(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 t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=Ot.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ui(r){let e=new Hr(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Qp=Ui,gl=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Yp=_`
|
|
5
5
|
.highlight-html-match {
|
|
6
|
-
background: ${
|
|
6
|
+
background: ${gl};
|
|
7
7
|
}
|
|
8
|
-
`;function
|
|
8
|
+
`;function Bi(r,e,t){var o,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Qp(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=p=>{for(let f in t.attributes)p.setAttribute(f,t.attributes[f])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Hi={};N(Hi,{noTextInputDefaultClearButton:()=>tf,noTextSelect:()=>Jp,safariEllipsisFix:()=>ef,wordWrap:()=>Xp});var Jp=_`
|
|
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:n.extend("--ftds-con
|
|
|
14
14
|
-ms-user-select: none;
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Xp=_`
|
|
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:n.extend("--ftds-con
|
|
|
26
26
|
-webkit-hyphens: auto;
|
|
27
27
|
hyphens: auto
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,ef=_`
|
|
30
30
|
.ft-safari-ellipsis-fix {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
|
|
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
37
37
|
display: inline-block;
|
|
38
38
|
width: 0;
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,tf=_`
|
|
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 vl={};var zi={};N(zi,{ParametrizedLabelResolver:()=>Vr});var Vr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var da={};N(da,{FtCommandQueue:()=>zr,FtLitElementRedux:()=>ge,FtReduxStore:()=>ke,FtStateManager:()=>Tt,ReduxWatcher:()=>Qe,clearAllStores:()=>rh,isFtReduxStore:()=>cr,redux:()=>F,reduxEventListener:()=>sf,reduxReactive:()=>af,watch:()=>la,withRedux:()=>xl});var af=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},F=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Ee,attribute:!1,...e};S(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[o]),store:e.store})}},sf=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var zr=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function cr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),st=Symbol("internalStoresUnsubscribers"),At=Symbol("internalStores"),xl=Q(Symbol("withRedux"),function(r){var e,t,o;class i extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=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[At].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[At].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[At].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[At].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[At].delete(l)}setupStores(){this.unsubscribeFromStores(),this[At].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[st].has(s.store):this[st].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d,p;this[st].set(s,l.subscribe(()=>this.updateFromStores())),this[Wr].set(s,[]),cr(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||l.name===f.store)){let g=b=>this[h](b);l.addEventListener(f.eventName,g),this[Wr].get(s).push(()=>l.removeEventListener(f.eventName,g))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[st].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[st].has(s)&&this[st].get(s)(),this[st].delete(s),(l=this[Wr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=st,t=At,o=Wr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ge=class extends xl(Y){};function ne(r){return`Minified Redux error #${r}; visit https://redux.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}var cf=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sl=cf,Wi=()=>Math.random().toString(36).substring(7).split("").join("."),lf={INIT:`@@redux/INIT${Wi()}`,REPLACE:`@@redux/REPLACE${Wi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wi()}`},Io=lf;function _o(r){if(typeof r!="object"||r===null)return!1;let e=r;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e||Object.getPrototypeOf(r)===null}function Gi(r,e,t){if(typeof r!="function")throw new Error(ne(2));if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ne(1));return t(Gi)(r,e)}let o=r,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,A)=>{s.set(A,E)}))}function f(){if(d)throw new Error(ne(3));return i}function h(E){if(typeof E!="function")throw new Error(ne(4));if(d)throw new Error(ne(5));let A=!0;p();let I=l++;return s.set(I,E),function(){if(A){if(d)throw new Error(ne(6));A=!1,p(),s.delete(I),a=null}}}function g(E){if(!_o(E))throw new Error(ne(7));if(typeof E.type>"u")throw new Error(ne(8));if(typeof E.type!="string")throw new Error(ne(17));if(d)throw new Error(ne(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(I=>{I()}),E}function b(E){if(typeof E!="function")throw new Error(ne(10));o=E,g({type:Io.REPLACE})}function x(){let E=h;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ne(11));function I(){let m=A;m.next&&m.next(f())}return I(),{unsubscribe:E(I)}},[Sl](){return this}}}return g({type:Io.INIT}),{dispatch:g,subscribe:h,getState:f,replaceReducer:b,[Sl]:x}}function df(r){Object.keys(r).forEach(e=>{let t=r[e];if(typeof t(void 0,{type:Io.INIT})>"u")throw new Error(ne(12));if(typeof t(void 0,{type:Io.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ne(13))})}function ji(r){let e=Object.keys(r),t={};for(let s=0;s<e.length;s++){let l=e[s];typeof r[l]=="function"&&(t[l]=r[l])}let o=Object.keys(t),i,a;try{df(t)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let g=o[h],b=t[g],x=l[g],w=b(x,d);if(typeof w>"u"){let E=d&&d.type;throw new Error(ne(14))}f[g]=w,p=p||w!==x}return p=p||o.length!==Object.keys(l).length,p?f:l}}function Gr(...r){return r.length===0?e=>e:r.length===1?r[0]:r.reduce((e,t)=>(...o)=>e(t(...o)))}function El(...r){return e=>(t,o)=>{let i=e(t,o),a=()=>{throw new Error(ne(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=r.map(d=>d(s));return a=Gr(...l)(i.dispatch),{...i,dispatch:a}}}function Cl(r){return _o(r)&&"type"in r&&typeof r.type=="string"}var kl=Symbol.for("immer-nothing"),wl=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Le(r,...e){throw new Error(`[Immer] minified error nr: ${r}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,dr=me.getPrototypeOf,Po="constructor",$o="prototype",Qi="configurable",Fo="enumerable",ko="writable",jr="value",Ve=r=>!!r&&!!r[ae];function ye(r){return r?Nl(r)||Vo(r)||!!r[wl]||!!r[Po]?.[wl]||zo(r)||Wo(r):!1}var uf=me[$o][Po].toString(),Ol=new WeakMap;function Nl(r){if(!r||!na(r))return!1;let e=dr(r);if(e===null||e===me[$o])return!0;let t=me.hasOwnProperty.call(e,Po)&&e[Po];if(t===Object)return!0;if(!lr(t))return!1;let o=Ol.get(t);return o===void 0&&(o=Function.toString.call(t),Ol.set(t,o)),o===uf}function Ho(r,e,t=!0){Zr(r)===0?(t?Reflect.ownKeys(r):me.keys(r)).forEach(i=>{e(i,r[i],r)}):r.forEach((o,i)=>e(i,o,r))}function Zr(r){let e=r[ae];return e?e.type_:Vo(r)?1:zo(r)?2:Wo(r)?3:0}var Ki=(r,e,t=Zr(r))=>t===2?r.has(e):me[$o].hasOwnProperty.call(r,e),Yi=(r,e,t=Zr(r))=>t===2?r.get(e):r[e],Mo=(r,e,t,o=Zr(r))=>{o===2?r.set(e,t):o===3?r.add(t):r[e]=t};function pf(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}var Vo=Array.isArray,zo=r=>r instanceof Map,Wo=r=>r instanceof Set,na=r=>typeof r=="object",lr=r=>typeof r=="function",qi=r=>typeof r=="boolean";function ff(r){let e=+r;return Number.isInteger(e)&&String(e)===r}var Ze=r=>r.copy_||r.base_;var ia=r=>r.modified_?r.copy_:r.base_;function Ji(r,e){if(zo(r))return new Map(r);if(Wo(r))return new Set(r);if(Vo(r))return Array[$o].slice.call(r);let t=Nl(r);if(e===!0||e==="class_only"&&!t){let o=me.getOwnPropertyDescriptors(r);delete o[ae];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],l=o[s];l[ko]===!1&&(l[ko]=!0,l[Qi]=!0),(l.get||l.set)&&(o[s]={[Qi]:!0,[ko]:!0,[Fo]:l[Fo],[jr]:r[s]})}return me.create(dr(r),o)}else{let o=dr(r);if(o!==null&&t)return{...r};let i=me.create(o);return me.assign(i,r)}}function Go(r,e=!1){return jo(r)||Ve(r)||!ye(r)||(Zr(r)>1&&me.defineProperties(r,{set:Lo,add:Lo,clear:Lo,delete:Lo}),me.freeze(r),e&&Ho(r,(t,o)=>{Go(o,!0)},!1)),r}function hf(){Le(2)}var Lo={[jr]:hf};function jo(r){return r===null||!na(r)?!0:me.isFrozen(r)}var Do="MapSet",Xi="Patches",Al="ArrayMethods",Pl={};function Rt(r){let e=Pl[r];return e||Le(0,r),e}var Rl=r=>!!Pl[r];var Kr,Fl=()=>Kr,gf=(r,e)=>({drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Rl(Do)?Rt(Do):void 0,arrayMethodsPlugin_:Rl(Al)?Rt(Al):void 0});function Tl(r,e){e&&(r.patchPlugin_=Rt(Xi),r.patches_=[],r.inversePatches_=[],r.patchListener_=e)}function ea(r){ta(r),r.drafts_.forEach(mf),r.drafts_=null}function ta(r){r===Kr&&(Kr=r.parent_)}var Il=r=>Kr=gf(Kr,r);function mf(r){let e=r[ae];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _l(r,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];if(r!==void 0&&r!==t){t[ae].modified_&&(ea(e),Le(4)),ye(r)&&(r=Ll(e,r));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(t[ae].base_,r,e)}else r=Ll(e,t);return yf(e,r,!0),ea(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),r!==kl?r:void 0}function Ll(r,e){if(jo(e))return e;let t=e[ae];if(!t)return Uo(e,r.handledSet_,r);if(!Ko(t,r))return e;if(!t.modified_)return t.base_;if(!t.finalized_){let{callbacks_:o}=t;if(o)for(;o.length>0;)o.pop()(r);Ul(t,r)}return t.copy_}function yf(r,e,t=!1){!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_&&Go(e,t)}function Ml(r){r.finalized_=!0,r.scope_.unfinalizedDrafts_--}var Ko=(r,e)=>r.scope_===e,bf=[];function Dl(r,e,t,o){let i=Ze(r),a=r.type_;if(o!==void 0&&Yi(i,o,a)===e){Mo(i,o,t,a);return}if(!r.draftLocations_){let l=r.draftLocations_=new Map;Ho(i,(d,p)=>{if(Ve(p)){let f=l.get(p)||[];f.push(d),l.set(p,f)}})}let s=r.draftLocations_.get(e)??bf;for(let l of s)Mo(i,l,t,a)}function vf(r,e,t){r.callbacks_.push(function(i){let a=e;if(!a||!Ko(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=ia(a);Dl(r,a.draft_??a,s,t),Ul(a,i)})}function Ul(r,e){if(r.modified_&&!r.finalized_&&(r.type_===3||r.type_===1&&r.allIndicesReassigned_||(r.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(r);i&&o.generatePatches_(r,i,e)}Ml(r)}}function xf(r,e,t){let{scope_:o}=r;if(Ve(t)){let i=t[ae];Ko(i,o)&&i.callbacks_.push(function(){No(r);let s=ia(i);Dl(r,t,s,e)})}else ye(t)&&r.callbacks_.push(function(){let a=Ze(r);r.type_===3?a.has(t)&&Uo(t,o.handledSet_,o):Yi(a,e,r.type_)===t&&o.drafts_.length>1&&(r.assigned_.get(e)??!1)===!0&&r.copy_&&Uo(Yi(r.copy_,e,r.type_),o.handledSet_,o)})}function Uo(r,e,t){return!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||Ve(r)||e.has(r)||!ye(r)||jo(r)||(e.add(r),Ho(r,(o,i)=>{if(Ve(i)){let a=i[ae];if(Ko(a,t)){let s=ia(a);Mo(r,o,s,r.type_),Ml(a)}}else ye(i)&&Uo(i,e,t)})),r}function Sf(r,e){let t=Vo(r),o={type_:t?1:0,scope_:e?e.scope_:Fl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=Bo;t&&(i=[o],a=qr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return o.draft_=l,o.revoke_=s,[l,o]}var Bo={get(r,e){if(e===ae)return r;let t=r.scope_.arrayMethodsPlugin_,o=r.type_===1&&typeof e=="string";if(o&&t?.isArrayOperationMethod(e))return t.createMethodInterceptor(r,e);let i=Ze(r);if(!Ki(i,e,r.type_))return Cf(r,i,e);let a=i[e];if(r.finalized_||!ye(a)||o&&r.operationMethod&&t?.isMutatingArrayMethod(r.operationMethod)&&ff(e))return a;if(a===Zi(r.base_,e)||Ef(r,e,a)){No(r);let s=r.type_===1?+e:e,l=oa(r.scope_,a,r,s);return r.copy_[s]=l}return a},has(r,e){return e in Ze(r)},ownKeys(r){return Reflect.ownKeys(Ze(r))},set(r,e,t){let o=Bl(Ze(r),e);if(o?.set)return o.set.call(r.draft_,t),!0;if(!r.modified_){let i=Zi(Ze(r),e),a=i?.[ae];if(a&&a.base_===t)return r.copy_[e]=t,r.assigned_.delete(e),!0;if(pf(t,i)&&(t!==void 0||Ki(r.base_,e,r.type_)))return!0;No(r),ra(r)}return r.copy_[e]===t&&(t!==void 0||Ki(r.copy_,e,r.type_))||Number.isNaN(t)&&Number.isNaN(r.copy_[e])||(r.copy_[e]=t,r.assigned_.set(e,!0),xf(r,e,t)),!0},deleteProperty(r,e){return No(r),Zi(r.base_,e)!==void 0||e in r.base_?(r.assigned_.set(e,!1),ra(r)):r.assigned_.delete(e),r.copy_&&delete r.copy_[e],!0},getOwnPropertyDescriptor(r,e){let t=Ze(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{[ko]:!0,[Qi]:r.type_!==1||e!=="length",[Fo]:o[Fo],[jr]:t[e]}},defineProperty(){Le(11)},getPrototypeOf(r){return dr(r.base_)},setPrototypeOf(){Le(12)}},qr={};for(let r in Bo){let e=Bo[r];qr[r]=function(){let t=arguments;return t[0]=t[0][0],e.apply(this,t)}}qr.deleteProperty=function(r,e){return qr.set.call(this,r,e,void 0)};qr.set=function(r,e,t){return Bo.set.call(this,r[0],e,t,r[0])};function Zi(r,e){let t=r[ae];return(t?Ze(t):r)[e]}function Ef(r,e,t){return r.type_!==1||!r.allIndicesReassigned_||r.assigned_?.get(e)||!ye(t)||t[ae]?!1:r.baseRefs_.has(t)}function Cf(r,e,t){let o=Bl(e,t);return o?jr in o?o[jr]:o.get?.call(r.draft_):void 0}function Bl(r,e){if(!(e in r))return;let t=dr(r);for(;t;){let o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=dr(t)}}function ra(r){r.modified_||(r.modified_=!0,r.parent_&&ra(r.parent_))}function No(r){r.copy_||(r.assigned_=new Map,r.copy_=Ji(r.base_,r.scope_.immer_.useStrictShallowCopy_))}var wf=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,o)=>{if(lr(e)&&!lr(t)){let a=t;t=e;let s=this;return function(d=a,...p){return s.produce(d,f=>t.call(this,f,...p))}}lr(t)||Le(6),o!==void 0&&!lr(o)&&Le(7);let i;if(ye(e)){let a=Il(this),s=oa(a,e,void 0),l=!0;try{i=t(s),l=!1}finally{l?ea(a):ta(a)}return Tl(a,o),_l(i,a)}else if(!e||!na(e)){if(i=t(e),i===void 0&&(i=e),i===kl&&(i=void 0),this.autoFreeze_&&Go(i,!0),o){let a=[],s=[];Rt(Xi).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Le(1,e)},this.produceWithPatches=(e,t)=>{if(lr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,i;return[this.produce(e,t,(s,l)=>{o=s,i=l}),o,i]},qi(r?.autoFreeze)&&this.setAutoFreeze(r.autoFreeze),qi(r?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),qi(r?.useStrictIteration)&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){ye(r)||Le(8),Ve(r)&&(r=$l(r));let e=Il(this),t=oa(e,r,void 0);return t[ae].isManual_=!0,ta(e),t}finishDraft(r,e){let t=r&&r[ae];(!t||!t.isManual_)&&Le(9);let{scope_:o}=t;return Tl(o,e),_l(void 0,o)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,e){let t;for(t=e.length-1;t>=0;t--){let i=e[t];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}t>-1&&(e=e.slice(t+1));let o=Rt(Xi).applyPatches_;return Ve(r)?o(r,e):this.produce(r,i=>o(i,e))}};function oa(r,e,t,o){let[i,a]=zo(e)?Rt(Do).proxyMap_(e,t):Wo(e)?Rt(Do).proxySet_(e,t):Sf(e,t);return(t?.scope_??Fl()).drafts_.push(i),a.callbacks_=t?.callbacks_??[],a.key_=o,t&&o!==void 0?vf(t,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function $l(r){return Ve(r)||Le(10,r),Hl(r)}function Hl(r){if(!ye(r)||jo(r))return r;let e=r[ae],t,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,t=Ji(r,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else t=Ji(r,!0);return Ho(t,(i,a)=>{Mo(t,i,Hl(a))},o),e&&(e.finalized_=!1),t}var Of=globalThis.Iterator,Yx=typeof Of?.from=="function";var Af=new wf,aa=Af.produce;function Vl(r){return({dispatch:t,getState:o})=>i=>a=>typeof a=="function"?a(t,o,r):i(a)}var zl=Vl(),Wl=Vl;var Rf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Tf=r=>r&&typeof r.match=="function";function ct(r,e){function t(...o){if(e){let i=e(...o);if(!i)throw new Error(ze(0));return{type:r,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:r,payload:o[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=o=>Cl(o)&&o.type===r,t}var Zl=class Qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qr(...e[0].concat(this)):new Qr(...e.concat(this))}};function Gl(r){return ye(r)?aa(r,()=>{}):r}function qo(r,e,t){return r.has(e)?r.get(e):r.set(e,t(e)).get(e)}function If(r){return typeof r=="boolean"}var _f=()=>function(e){let{thunk:t=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Zl;return t&&(If(t)?s.push(zl):s.push(Wl(t.extraArgument))),s},Lf="RTK_autoBatch";var jl=r=>e=>{setTimeout(e,r)},kf=(r,e)=>t=>{let o=!1,i,a,s=()=>{o||(o=!0,cancelAnimationFrame(i),clearTimeout(a),t())};i=r(s),a=setTimeout(s,e)},Nf=(r={type:"raf"})=>e=>(...t)=>{let o=e(...t),i=!0,a=!1,s=!1,l=new Set,d=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?kf(window.requestAnimationFrame,100):jl(10):r.type==="callback"?r.queueNotification:jl(r.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),g=o.subscribe(h);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){try{return i=!f?.meta?.[Lf],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Pf=r=>function(t){let{autoBatch:o=!0}=t??{},i=new Zl(r);return o&&i.push(Nf(typeof o=="object"?o:void 0)),i};function Ql(r){let e=_f(),{reducer:t=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=r||{},d;if(typeof t=="function")d=t;else if(_o(t))d=ji(t);else throw new Error(ze(1));let p;typeof o=="function"?p=o(e):p=e();let f=Gr;i&&(f=Rf({trace:!1,...typeof i=="object"&&i}));let h=El(...p),g=Pf(h),b=typeof l=="function"?l(g):g(),x=f(...b);return Gi(d,s,x)}function Yl(r){let e={},t=[],o,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(ze(28));if(l in e)throw new Error(ze(29));return e[l]=s,i},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&&t.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return r(i),[e,t,o]}function Ff(r){return typeof r=="function"}function Mf(r,e){let[t,o,i]=Yl(e),a;if(Ff(r))a=()=>Gl(r());else{let l=Gl(r);a=()=>l}function s(l=a(),d){let p=[t[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(Ve(f)){let g=h(f,d);return g===void 0?f:g}else{if(ye(f))return aa(f,g=>h(g,d));{let g=h(f,d);if(g===void 0){if(f===null)return f;throw new Error(ze(9))}return g}}return f},l)}return s.getInitialState=a,s}var Df=(r,e)=>Tf(r)?r.match(e):r(e);function Uf(...r){return e=>r.some(t=>Df(t,e))}var Bf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$f=(r=21)=>{let e="",t=r;for(;t--;)e+=Bf[Math.random()*64|0];return e},Hf=["name","message","stack","code"],sa=class{payload;meta;_type;constructor(r,e){this.payload=r,this.meta=e}},Kl=class{payload;meta;_type;constructor(r,e){this.payload=r,this.meta=e}},Vf=r=>{if(typeof r=="object"&&r!==null){let e={};for(let t of Hf)typeof r[t]=="string"&&(e[t]=r[t]);return e}return{message:String(r)}},ql="External signal was aborted",zf=(()=>{function r(e,t,o){let i=ct(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=ct(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=ct(e+"/rejected",(d,p,f,h,g)=>({payload:h,error:(o&&o.serializeError||Vf)(d||"Rejected"),meta:{...g||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(f,h,g)=>{let b=o?.idGenerator?o.idGenerator(d):$f(),x=new AbortController,w,E;function A(y){E=y,x.abort()}p&&(p.aborted?A(ql):p.addEventListener("abort",()=>A(ql),{once:!0}));let I=(async function(){let y;try{let m=o?.condition?.(d,{getState:h,extra:g});if(Gf(m)&&(m=await m),m===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let v=new Promise((O,k)=>{w=()=>{k({name:"AbortError",message:E||"Aborted"})},x.signal.addEventListener("abort",w,{once:!0})});f(a(b,d,o?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:g}))),y=await Promise.race([v,Promise.resolve(t(d,{dispatch:f,getState:h,extra:g,requestId:b,signal:x.signal,abort:A,rejectWithValue:((O,k)=>new sa(O,k)),fulfillWithValue:((O,k)=>new Kl(O,k))})).then(O=>{if(O instanceof sa)throw O;return O instanceof Kl?i(O.payload,b,d,O.meta):i(O,b,d)})])}catch(m){y=m instanceof sa?s(null,b,d,m.payload,m.meta):s(m,b,d)}finally{w&&x.signal.removeEventListener("abort",w)}return o&&!o.dispatchConditionRejection&&s.match(y)&&y.meta.condition||f(y),y})();return Object.assign(I,{abort:A,requestId:b,arg:d,unwrap(){return I.then(Wf)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:Uf(s,i),typePrefix:e})}return r.withTypes=()=>r,r})();function Wf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Gf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Jl=Symbol.for("rtk-slice-createasyncthunk"),i0={[Jl]:zf};function jf(r,e){return`${r}/${e}`}function Kf({creators:r}={}){let e=r?.asyncThunk?.[Jl];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(ze(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(Zf()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,m){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(ze(12));if(v in d.sliceCaseReducersByType)throw new Error(ze(13));return d.sliceCaseReducersByType[v]=m,p},addMatcher(y,m){return d.sliceMatchers.push({matcher:y,reducer:m}),p},exposeAction(y,m){return d.actionCreators[y]=m,p},exposeCaseReducer(y,m){return d.sliceCaseReducersByName[y]=m,p}};l.forEach(y=>{let m=s[y],v={reducerName:y,type:jf(i,y),createNotation:typeof o.reducers=="function"};Yf(m)?Xf(v,m,p,e):Qf(v,m,p)});function f(){let[y={},m=[],v=void 0]=typeof o.extraReducers=="function"?Yl(o.extraReducers):[o.extraReducers],O={...y,...d.sliceCaseReducersByType};return Mf(o.initialState,k=>{for(let M in O)k.addCase(M,O[M]);for(let M of d.sliceMatchers)k.addMatcher(M.matcher,M.reducer);for(let M of m)k.addMatcher(M.matcher,M.reducer);v&&k.addDefaultCase(v)})}let h=y=>y,g=new Map,b=new WeakMap,x;function w(y,m){return x||(x=f()),x(y,m)}function E(){return x||(x=f()),x.getInitialState()}function A(y,m=!1){function v(k){let M=k[y];return typeof M>"u"&&m&&(M=qo(b,v,E)),M}function O(k=h){return qo(qo(g,m,()=>new WeakMap),k,()=>{let M={};for(let[G,T]of Object.entries(o.selectors??{}))M[G]=qf(T,k,()=>qo(b,k,E),m);return M})}return{reducerPath:y,getSelectors:O,get selectors(){return O(v)},selectSlice:v}}let I={name:i,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...A(a),injectInto(y,{reducerPath:m,...v}={}){let O=m??a;return y.inject({reducerPath:O,reducer:w},v),{...I,...A(O,!0)}}};return I}}function qf(r,e,t,o){function i(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=t()),r(l,...s)}return i.unwrapped=r,i}var Xl=Kf();function Zf(){function r(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return r.withTypes=()=>r,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:r}}function Qf({type:r,reducerName:e,createNotation:t},o,i){let a,s;if("reducer"in o){if(t&&!Jf(o))throw new Error(ze(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(r,a).exposeCaseReducer(e,a).exposeAction(e,s?ct(r,s):ct(r))}function Yf(r){return r._reducerDefinitionType==="asyncThunk"}function Jf(r){return r._reducerDefinitionType==="reducerWithPrepare"}function Xf({type:r,reducerName:e},t,o,i){if(!i)throw new Error(ze(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:f}=t,h=i(r,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),l&&o.addCase(h.pending,l),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||Zo,pending:l||Zo,rejected:d||Zo,settled:p||Zo})}function Zo(){}var ed="listener",td="completed",rd="cancelled",a0=`task-${rd}`,s0=`task-${td}`,c0=`${ed}-${rd}`,l0=`${ed}-${td}`;var{assign:od}=Object;var ca="listenerMiddleware";var eh=od(ct(`${ca}/add`),{withTypes:()=>eh}),d0=ct(`${ca}/removeAll`),th=od(ct(`${ca}/remove`),{withTypes:()=>th});function ze(r){return`Minified Redux Toolkit error #${r}; visit https://redux-toolkit.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var ke=class r extends je{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(cr(a))return a;if(i==null)return;let s=Xl({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=Ql({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=fe(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new r(s,l,i.eventBus,i.deprecatedKeys)}constructor(e,t,o,i){super(),this.reduxSlice=e,this.reduxStore=t,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new zr,this.injectInto=(s,l)=>this.reduxSlice.injectInto(s,l),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let p=l,f=s[p];return f?(...h)=>{let g=f(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{let g=p,b=this.getState()[g];re(b,h)||this.setState({[g]:a(h)})}}}),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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function rh(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))cr(e)&&e.clear()}var Qe=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ee(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function la(r,e,t){return new Qe(r,e,t).watch()}var Tt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var fa={};N(fa,{scrollHelper:()=>ur});var ua,Qo=new Map,pa=class{lock(e,t){if(t){let o=Qo.get(t);if(o==null||o===e)return Qo.set(t,e),t}}release(e,t){t&&Qo.get(t)===e&&Qo.delete(t)}findFirstScrollableParent(e){var t;let o,i;for(let a of ei(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(t=o??i)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,i;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((i=t?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=Re(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.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=(ua=window.FluidTopicsScrollHelper)!==null&&ua!==void 0?ua:new pa;var ur=window.FluidTopicsScrollHelper;var ga={};N(ga,{toFtFormComponent:()=>oh});var ha=Symbol("elementInternals"),oh=Q(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[ha].form}constructor(...o){super(o),this[ha]=this.attachInternals()}setFormValue(o){this[ha].setFormValue(o)}}return e});var ma={};N(ma,{DateFormatter:()=>It});var It=class{static format(e,t,o,i,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,t,o,i,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}};var ba={};N(ba,{ALL_KEYS_VALUE:()=>ya,SameWindowStorageEvent:()=>pr});var ya="__all__",pr=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ya}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new pr(ya))}});var xa={};N(xa,{FocusMainContentEvent:()=>va});var va=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var nd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function nh(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function ih(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}document.addEventListener("keydown",nh);document.addEventListener("click",ih);var id=_`
|
|
47
|
+
`;var ml={};var Vi={};N(Vi,{ParametrizedLabelResolver:()=>Vr});var Vr=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var la={};N(la,{FtCommandQueue:()=>zr,FtLitElementRedux:()=>ge,FtReduxStore:()=>ke,FtStateManager:()=>Tt,ReduxWatcher:()=>Qe,clearAllStores:()=>Xf,isFtReduxStore:()=>cr,redux:()=>F,reduxEventListener:()=>of,reduxReactive:()=>rf,watch:()=>ca,withRedux:()=>yl});var rf=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},F=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Ee,attribute:!1,...e};S(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[o]),store:e.store})}},of=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var zr=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function cr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),st=Symbol("internalStoresUnsubscribers"),At=Symbol("internalStores"),yl=Q(Symbol("withRedux"),function(r){var e,t,o;class i extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=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[At].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[At].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[At].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[At].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[At].delete(l)}setupStores(){this.unsubscribeFromStores(),this[At].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[st].has(s.store):this[st].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d,p;this[st].set(s,l.subscribe(()=>this.updateFromStores())),this[Wr].set(s,[]),cr(l)&&(!((d=l.deprecatedKeys)===null||d===void 0)&&d.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===l&&l.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",l.name)}),l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||l.name===f.store)){let g=b=>this[h](b);l.addEventListener(f.eventName,g),this[Wr].get(s).push(()=>l.removeEventListener(f.eventName,g))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[st].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[st].has(s)&&this[st].get(s)(),this[st].delete(s),(l=this[Wr].get(s))===null||l===void 0||l.forEach(d=>d()),this[Wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=st,t=At,o=Wr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ge=class extends yl(Y){};function ne(r){return`Minified Redux error #${r}; visit https://redux.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}var nf=typeof Symbol=="function"&&Symbol.observable||"@@observable",bl=nf,zi=()=>Math.random().toString(36).substring(7).split("").join("."),af={INIT:`@@redux/INIT${zi()}`,REPLACE:`@@redux/REPLACE${zi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zi()}`},To=af;function Io(r){if(typeof r!="object"||r===null)return!1;let e=r;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e||Object.getPrototypeOf(r)===null}function Wi(r,e,t){if(typeof r!="function")throw new Error(ne(2));if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ne(1));return t(Wi)(r,e)}let o=r,i=e,a=new Map,s=a,l=0,d=!1;function p(){s===a&&(s=new Map,a.forEach((E,A)=>{s.set(A,E)}))}function f(){if(d)throw new Error(ne(3));return i}function h(E){if(typeof E!="function")throw new Error(ne(4));if(d)throw new Error(ne(5));let A=!0;p();let I=l++;return s.set(I,E),function(){if(A){if(d)throw new Error(ne(6));A=!1,p(),s.delete(I),a=null}}}function g(E){if(!Io(E))throw new Error(ne(7));if(typeof E.type>"u")throw new Error(ne(8));if(typeof E.type!="string")throw new Error(ne(17));if(d)throw new Error(ne(9));try{d=!0,i=o(i,E)}finally{d=!1}return(a=s).forEach(I=>{I()}),E}function b(E){if(typeof E!="function")throw new Error(ne(10));o=E,g({type:To.REPLACE})}function x(){let E=h;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ne(11));function I(){let m=A;m.next&&m.next(f())}return I(),{unsubscribe:E(I)}},[bl](){return this}}}return g({type:To.INIT}),{dispatch:g,subscribe:h,getState:f,replaceReducer:b,[bl]:x}}function sf(r){Object.keys(r).forEach(e=>{let t=r[e];if(typeof t(void 0,{type:To.INIT})>"u")throw new Error(ne(12));if(typeof t(void 0,{type:To.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ne(13))})}function Gi(r){let e=Object.keys(r),t={};for(let s=0;s<e.length;s++){let l=e[s];typeof r[l]=="function"&&(t[l]=r[l])}let o=Object.keys(t),i,a;try{sf(t)}catch(s){a=s}return function(l={},d){if(a)throw a;let p=!1,f={};for(let h=0;h<o.length;h++){let g=o[h],b=t[g],x=l[g],w=b(x,d);if(typeof w>"u"){let E=d&&d.type;throw new Error(ne(14))}f[g]=w,p=p||w!==x}return p=p||o.length!==Object.keys(l).length,p?f:l}}function Gr(...r){return r.length===0?e=>e:r.length===1?r[0]:r.reduce((e,t)=>(...o)=>e(t(...o)))}function vl(...r){return e=>(t,o)=>{let i=e(t,o),a=()=>{throw new Error(ne(15))},s={getState:i.getState,dispatch:(d,...p)=>a(d,...p)},l=r.map(d=>d(s));return a=Gr(...l)(i.dispatch),{...i,dispatch:a}}}function xl(r){return Io(r)&&"type"in r&&typeof r.type=="string"}var Il=Symbol.for("immer-nothing"),Sl=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Le(r,...e){throw new Error(`[Immer] minified error nr: ${r}. Full error at: https://bit.ly/3cXEKWf`)}var me=Object,dr=me.getPrototypeOf,No="constructor",Bo="prototype",Zi="configurable",Po="enumerable",Lo="writable",jr="value",Ve=r=>!!r&&!!r[ae];function ye(r){return r?_l(r)||Ho(r)||!!r[Sl]||!!r[No]?.[Sl]||Vo(r)||zo(r):!1}var cf=me[Bo][No].toString(),El=new WeakMap;function _l(r){if(!r||!oa(r))return!1;let e=dr(r);if(e===null||e===me[Bo])return!0;let t=me.hasOwnProperty.call(e,No)&&e[No];if(t===Object)return!0;if(!lr(t))return!1;let o=El.get(t);return o===void 0&&(o=Function.toString.call(t),El.set(t,o)),o===cf}function $o(r,e,t=!0){Zr(r)===0?(t?Reflect.ownKeys(r):me.keys(r)).forEach(i=>{e(i,r[i],r)}):r.forEach((o,i)=>e(i,o,r))}function Zr(r){let e=r[ae];return e?e.type_:Ho(r)?1:Vo(r)?2:zo(r)?3:0}var ji=(r,e,t=Zr(r))=>t===2?r.has(e):me[Bo].hasOwnProperty.call(r,e),Qi=(r,e,t=Zr(r))=>t===2?r.get(e):r[e],Fo=(r,e,t,o=Zr(r))=>{o===2?r.set(e,t):o===3?r.add(t):r[e]=t};function lf(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}var Ho=Array.isArray,Vo=r=>r instanceof Map,zo=r=>r instanceof Set,oa=r=>typeof r=="object",lr=r=>typeof r=="function",Ki=r=>typeof r=="boolean";function df(r){let e=+r;return Number.isInteger(e)&&String(e)===r}var Ze=r=>r.copy_||r.base_;var na=r=>r.modified_?r.copy_:r.base_;function Yi(r,e){if(Vo(r))return new Map(r);if(zo(r))return new Set(r);if(Ho(r))return Array[Bo].slice.call(r);let t=_l(r);if(e===!0||e==="class_only"&&!t){let o=me.getOwnPropertyDescriptors(r);delete o[ae];let i=Reflect.ownKeys(o);for(let a=0;a<i.length;a++){let s=i[a],l=o[s];l[Lo]===!1&&(l[Lo]=!0,l[Zi]=!0),(l.get||l.set)&&(o[s]={[Zi]:!0,[Lo]:!0,[Po]:l[Po],[jr]:r[s]})}return me.create(dr(r),o)}else{let o=dr(r);if(o!==null&&t)return{...r};let i=me.create(o);return me.assign(i,r)}}function Wo(r,e=!1){return Go(r)||Ve(r)||!ye(r)||(Zr(r)>1&&me.defineProperties(r,{set:_o,add:_o,clear:_o,delete:_o}),me.freeze(r),e&&$o(r,(t,o)=>{Wo(o,!0)},!1)),r}function uf(){Le(2)}var _o={[jr]:uf};function Go(r){return r===null||!oa(r)?!0:me.isFrozen(r)}var Mo="MapSet",Ji="Patches",Cl="ArrayMethods",Ll={};function Rt(r){let e=Ll[r];return e||Le(0,r),e}var wl=r=>!!Ll[r];var Kr,kl=()=>Kr,pf=(r,e)=>({drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:wl(Mo)?Rt(Mo):void 0,arrayMethodsPlugin_:wl(Cl)?Rt(Cl):void 0});function Ol(r,e){e&&(r.patchPlugin_=Rt(Ji),r.patches_=[],r.inversePatches_=[],r.patchListener_=e)}function Xi(r){ea(r),r.drafts_.forEach(ff),r.drafts_=null}function ea(r){r===Kr&&(Kr=r.parent_)}var Al=r=>Kr=pf(Kr,r);function ff(r){let e=r[ae];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Rl(r,e){e.unfinalizedDrafts_=e.drafts_.length;let t=e.drafts_[0];if(r!==void 0&&r!==t){t[ae].modified_&&(Xi(e),Le(4)),ye(r)&&(r=Tl(e,r));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(t[ae].base_,r,e)}else r=Tl(e,t);return hf(e,r,!0),Xi(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),r!==Il?r:void 0}function Tl(r,e){if(Go(e))return e;let t=e[ae];if(!t)return Do(e,r.handledSet_,r);if(!jo(t,r))return e;if(!t.modified_)return t.base_;if(!t.finalized_){let{callbacks_:o}=t;if(o)for(;o.length>0;)o.pop()(r);Fl(t,r)}return t.copy_}function hf(r,e,t=!1){!r.parent_&&r.immer_.autoFreeze_&&r.canAutoFreeze_&&Wo(e,t)}function Nl(r){r.finalized_=!0,r.scope_.unfinalizedDrafts_--}var jo=(r,e)=>r.scope_===e,gf=[];function Pl(r,e,t,o){let i=Ze(r),a=r.type_;if(o!==void 0&&Qi(i,o,a)===e){Fo(i,o,t,a);return}if(!r.draftLocations_){let l=r.draftLocations_=new Map;$o(i,(d,p)=>{if(Ve(p)){let f=l.get(p)||[];f.push(d),l.set(p,f)}})}let s=r.draftLocations_.get(e)??gf;for(let l of s)Fo(i,l,t,a)}function mf(r,e,t){r.callbacks_.push(function(i){let a=e;if(!a||!jo(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=na(a);Pl(r,a.draft_??a,s,t),Fl(a,i)})}function Fl(r,e){if(r.modified_&&!r.finalized_&&(r.type_===3||r.type_===1&&r.allIndicesReassigned_||(r.assigned_?.size??0)>0)){let{patchPlugin_:o}=e;if(o){let i=o.getPath(r);i&&o.generatePatches_(r,i,e)}Nl(r)}}function yf(r,e,t){let{scope_:o}=r;if(Ve(t)){let i=t[ae];jo(i,o)&&i.callbacks_.push(function(){ko(r);let s=na(i);Pl(r,t,s,e)})}else ye(t)&&r.callbacks_.push(function(){let a=Ze(r);r.type_===3?a.has(t)&&Do(t,o.handledSet_,o):Qi(a,e,r.type_)===t&&o.drafts_.length>1&&(r.assigned_.get(e)??!1)===!0&&r.copy_&&Do(Qi(r.copy_,e,r.type_),o.handledSet_,o)})}function Do(r,e,t){return!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||Ve(r)||e.has(r)||!ye(r)||Go(r)||(e.add(r),$o(r,(o,i)=>{if(Ve(i)){let a=i[ae];if(jo(a,t)){let s=na(a);Fo(r,o,s,r.type_),Nl(a)}}else ye(i)&&Do(i,e,t)})),r}function bf(r,e){let t=Ho(r),o={type_:t?1:0,scope_:e?e.scope_:kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=o,a=Uo;t&&(i=[o],a=qr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return o.draft_=l,o.revoke_=s,[l,o]}var Uo={get(r,e){if(e===ae)return r;let t=r.scope_.arrayMethodsPlugin_,o=r.type_===1&&typeof e=="string";if(o&&t?.isArrayOperationMethod(e))return t.createMethodInterceptor(r,e);let i=Ze(r);if(!ji(i,e,r.type_))return xf(r,i,e);let a=i[e];if(r.finalized_||!ye(a)||o&&r.operationMethod&&t?.isMutatingArrayMethod(r.operationMethod)&&df(e))return a;if(a===qi(r.base_,e)||vf(r,e,a)){ko(r);let s=r.type_===1?+e:e,l=ra(r.scope_,a,r,s);return r.copy_[s]=l}return a},has(r,e){return e in Ze(r)},ownKeys(r){return Reflect.ownKeys(Ze(r))},set(r,e,t){let o=Ml(Ze(r),e);if(o?.set)return o.set.call(r.draft_,t),!0;if(!r.modified_){let i=qi(Ze(r),e),a=i?.[ae];if(a&&a.base_===t)return r.copy_[e]=t,r.assigned_.delete(e),!0;if(lf(t,i)&&(t!==void 0||ji(r.base_,e,r.type_)))return!0;ko(r),ta(r)}return r.copy_[e]===t&&(t!==void 0||ji(r.copy_,e,r.type_))||Number.isNaN(t)&&Number.isNaN(r.copy_[e])||(r.copy_[e]=t,r.assigned_.set(e,!0),yf(r,e,t)),!0},deleteProperty(r,e){return ko(r),qi(r.base_,e)!==void 0||e in r.base_?(r.assigned_.set(e,!1),ta(r)):r.assigned_.delete(e),r.copy_&&delete r.copy_[e],!0},getOwnPropertyDescriptor(r,e){let t=Ze(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{[Lo]:!0,[Zi]:r.type_!==1||e!=="length",[Po]:o[Po],[jr]:t[e]}},defineProperty(){Le(11)},getPrototypeOf(r){return dr(r.base_)},setPrototypeOf(){Le(12)}},qr={};for(let r in Uo){let e=Uo[r];qr[r]=function(){let t=arguments;return t[0]=t[0][0],e.apply(this,t)}}qr.deleteProperty=function(r,e){return qr.set.call(this,r,e,void 0)};qr.set=function(r,e,t){return Uo.set.call(this,r[0],e,t,r[0])};function qi(r,e){let t=r[ae];return(t?Ze(t):r)[e]}function vf(r,e,t){return r.type_!==1||!r.allIndicesReassigned_||r.assigned_?.get(e)||!ye(t)||t[ae]?!1:r.baseRefs_.has(t)}function xf(r,e,t){let o=Ml(e,t);return o?jr in o?o[jr]:o.get?.call(r.draft_):void 0}function Ml(r,e){if(!(e in r))return;let t=dr(r);for(;t;){let o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=dr(t)}}function ta(r){r.modified_||(r.modified_=!0,r.parent_&&ta(r.parent_))}function ko(r){r.copy_||(r.assigned_=new Map,r.copy_=Yi(r.base_,r.scope_.immer_.useStrictShallowCopy_))}var Sf=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,o)=>{if(lr(e)&&!lr(t)){let a=t;t=e;let s=this;return function(d=a,...p){return s.produce(d,f=>t.call(this,f,...p))}}lr(t)||Le(6),o!==void 0&&!lr(o)&&Le(7);let i;if(ye(e)){let a=Al(this),s=ra(a,e,void 0),l=!0;try{i=t(s),l=!1}finally{l?Xi(a):ea(a)}return Ol(a,o),Rl(i,a)}else if(!e||!oa(e)){if(i=t(e),i===void 0&&(i=e),i===Il&&(i=void 0),this.autoFreeze_&&Wo(i,!0),o){let a=[],s=[];Rt(Ji).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Le(1,e)},this.produceWithPatches=(e,t)=>{if(lr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let o,i;return[this.produce(e,t,(s,l)=>{o=s,i=l}),o,i]},Ki(r?.autoFreeze)&&this.setAutoFreeze(r.autoFreeze),Ki(r?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),Ki(r?.useStrictIteration)&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){ye(r)||Le(8),Ve(r)&&(r=Dl(r));let e=Al(this),t=ra(e,r,void 0);return t[ae].isManual_=!0,ea(e),t}finishDraft(r,e){let t=r&&r[ae];(!t||!t.isManual_)&&Le(9);let{scope_:o}=t;return Ol(o,e),Rl(void 0,o)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,e){let t;for(t=e.length-1;t>=0;t--){let i=e[t];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}t>-1&&(e=e.slice(t+1));let o=Rt(Ji).applyPatches_;return Ve(r)?o(r,e):this.produce(r,i=>o(i,e))}};function ra(r,e,t,o){let[i,a]=Vo(e)?Rt(Mo).proxyMap_(e,t):zo(e)?Rt(Mo).proxySet_(e,t):bf(e,t);return(t?.scope_??kl()).drafts_.push(i),a.callbacks_=t?.callbacks_??[],a.key_=o,t&&o!==void 0?mf(t,a,o):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=d;a.modified_&&p&&p.generatePatches_(a,[],d)}),i}function Dl(r){return Ve(r)||Le(10,r),Ul(r)}function Ul(r){if(!ye(r)||Go(r))return r;let e=r[ae],t,o=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,t=Yi(r,e.scope_.immer_.useStrictShallowCopy_),o=e.scope_.immer_.shouldUseStrictIteration()}else t=Yi(r,!0);return $o(t,(i,a)=>{Fo(t,i,Ul(a))},o),e&&(e.finalized_=!1),t}var Ef=globalThis.Iterator,Zx=typeof Ef?.from=="function";var Cf=new Sf,ia=Cf.produce;function Bl(r){return({dispatch:t,getState:o})=>i=>a=>typeof a=="function"?a(t,o,r):i(a)}var $l=Bl(),Hl=Bl;var wf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gr:Gr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Of=r=>r&&typeof r.match=="function";function ct(r,e){function t(...o){if(e){let i=e(...o);if(!i)throw new Error(ze(0));return{type:r,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:r,payload:o[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=o=>xl(o)&&o.type===r,t}var jl=class Qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qr(...e[0].concat(this)):new Qr(...e.concat(this))}};function Vl(r){return ye(r)?ia(r,()=>{}):r}function Ko(r,e,t){return r.has(e)?r.get(e):r.set(e,t(e)).get(e)}function Af(r){return typeof r=="boolean"}var Rf=()=>function(e){let{thunk:t=!0,immutableCheck:o=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new jl;return t&&(Af(t)?s.push($l):s.push(Hl(t.extraArgument))),s},Tf="RTK_autoBatch";var zl=r=>e=>{setTimeout(e,r)},If=(r,e)=>t=>{let o=!1,i,a,s=()=>{o||(o=!0,cancelAnimationFrame(i),clearTimeout(a),t())};i=r(s),a=setTimeout(s,e)},_f=(r={type:"raf"})=>e=>(...t)=>{let o=e(...t),i=!0,a=!1,s=!1,l=new Set,d=r.type==="tick"?queueMicrotask:r.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?If(window.requestAnimationFrame,100):zl(10):r.type==="callback"?r.queueNotification:zl(r.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(f=>f()))};return Object.assign({},o,{subscribe(f){let h=()=>i&&f(),g=o.subscribe(h);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){try{return i=!f?.meta?.[Tf],a=!i,a&&(s||(s=!0,d(p))),o.dispatch(f)}finally{i=!0}}})},Lf=r=>function(t){let{autoBatch:o=!0}=t??{},i=new jl(r);return o&&i.push(_f(typeof o=="object"?o:void 0)),i};function Kl(r){let e=Rf(),{reducer:t=void 0,middleware:o,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=r||{},d;if(typeof t=="function")d=t;else if(Io(t))d=Gi(t);else throw new Error(ze(1));let p;typeof o=="function"?p=o(e):p=e();let f=Gr;i&&(f=wf({trace:!1,...typeof i=="object"&&i}));let h=vl(...p),g=Lf(h),b=typeof l=="function"?l(g):g(),x=f(...b);return Wi(d,s,x)}function ql(r){let e={},t=[],o,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(ze(28));if(l in e)throw new Error(ze(29));return e[l]=s,i},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&&t.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase(a){return o=a,i}};return r(i),[e,t,o]}function kf(r){return typeof r=="function"}function Nf(r,e){let[t,o,i]=ql(e),a;if(kf(r))a=()=>Vl(r());else{let l=Vl(r);a=()=>l}function s(l=a(),d){let p=[t[d.type],...o.filter(({matcher:f})=>f(d)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[i]),p.reduce((f,h)=>{if(h)if(Ve(f)){let g=h(f,d);return g===void 0?f:g}else{if(ye(f))return ia(f,g=>h(g,d));{let g=h(f,d);if(g===void 0){if(f===null)return f;throw new Error(ze(9))}return g}}return f},l)}return s.getInitialState=a,s}var Pf=(r,e)=>Of(r)?r.match(e):r(e);function Ff(...r){return e=>r.some(t=>Pf(t,e))}var Mf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Df=(r=21)=>{let e="",t=r;for(;t--;)e+=Mf[Math.random()*64|0];return e},Uf=["name","message","stack","code"],aa=class{payload;meta;_type;constructor(r,e){this.payload=r,this.meta=e}},Wl=class{payload;meta;_type;constructor(r,e){this.payload=r,this.meta=e}},Bf=r=>{if(typeof r=="object"&&r!==null){let e={};for(let t of Uf)typeof r[t]=="string"&&(e[t]=r[t]);return e}return{message:String(r)}},Gl="External signal was aborted",$f=(()=>{function r(e,t,o){let i=ct(e+"/fulfilled",(d,p,f,h)=>({payload:d,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),a=ct(e+"/pending",(d,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:d,requestStatus:"pending"}})),s=ct(e+"/rejected",(d,p,f,h,g)=>({payload:h,error:(o&&o.serializeError||Bf)(d||"Rejected"),meta:{...g||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(f,h,g)=>{let b=o?.idGenerator?o.idGenerator(d):Df(),x=new AbortController,w,E;function A(y){E=y,x.abort()}p&&(p.aborted?A(Gl):p.addEventListener("abort",()=>A(Gl),{once:!0}));let I=(async function(){let y;try{let m=o?.condition?.(d,{getState:h,extra:g});if(Vf(m)&&(m=await m),m===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let v=new Promise((O,k)=>{w=()=>{k({name:"AbortError",message:E||"Aborted"})},x.signal.addEventListener("abort",w,{once:!0})});f(a(b,d,o?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:g}))),y=await Promise.race([v,Promise.resolve(t(d,{dispatch:f,getState:h,extra:g,requestId:b,signal:x.signal,abort:A,rejectWithValue:((O,k)=>new aa(O,k)),fulfillWithValue:((O,k)=>new Wl(O,k))})).then(O=>{if(O instanceof aa)throw O;return O instanceof Wl?i(O.payload,b,d,O.meta):i(O,b,d)})])}catch(m){y=m instanceof aa?s(null,b,d,m.payload,m.meta):s(m,b,d)}finally{w&&x.signal.removeEventListener("abort",w)}return o&&!o.dispatchConditionRejection&&s.match(y)&&y.meta.condition||f(y),y})();return Object.assign(I,{abort:A,requestId:b,arg:d,unwrap(){return I.then(Hf)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:Ff(s,i),typePrefix:e})}return r.withTypes=()=>r,r})();function Hf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Vf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Zl=Symbol.for("rtk-slice-createasyncthunk"),o0={[Zl]:$f};function zf(r,e){return`${r}/${e}`}function Wf({creators:r}={}){let e=r?.asyncThunk?.[Zl];return function(o){let{name:i,reducerPath:a=i}=o;if(!i)throw new Error(ze(11));typeof process<"u";let s=(typeof o.reducers=="function"?o.reducers(jf()):o.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(y,m){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(ze(12));if(v in d.sliceCaseReducersByType)throw new Error(ze(13));return d.sliceCaseReducersByType[v]=m,p},addMatcher(y,m){return d.sliceMatchers.push({matcher:y,reducer:m}),p},exposeAction(y,m){return d.actionCreators[y]=m,p},exposeCaseReducer(y,m){return d.sliceCaseReducersByName[y]=m,p}};l.forEach(y=>{let m=s[y],v={reducerName:y,type:zf(i,y),createNotation:typeof o.reducers=="function"};qf(m)?Qf(v,m,p,e):Kf(v,m,p)});function f(){let[y={},m=[],v=void 0]=typeof o.extraReducers=="function"?ql(o.extraReducers):[o.extraReducers],O={...y,...d.sliceCaseReducersByType};return Nf(o.initialState,k=>{for(let M in O)k.addCase(M,O[M]);for(let M of d.sliceMatchers)k.addMatcher(M.matcher,M.reducer);for(let M of m)k.addMatcher(M.matcher,M.reducer);v&&k.addDefaultCase(v)})}let h=y=>y,g=new Map,b=new WeakMap,x;function w(y,m){return x||(x=f()),x(y,m)}function E(){return x||(x=f()),x.getInitialState()}function A(y,m=!1){function v(k){let M=k[y];return typeof M>"u"&&m&&(M=Ko(b,v,E)),M}function O(k=h){return Ko(Ko(g,m,()=>new WeakMap),k,()=>{let M={};for(let[G,T]of Object.entries(o.selectors??{}))M[G]=Gf(T,k,()=>Ko(b,k,E),m);return M})}return{reducerPath:y,getSelectors:O,get selectors(){return O(v)},selectSlice:v}}let I={name:i,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:E,...A(a),injectInto(y,{reducerPath:m,...v}={}){let O=m??a;return y.inject({reducerPath:O,reducer:w},v),{...I,...A(O,!0)}}};return I}}function Gf(r,e,t,o){function i(a,...s){let l=e(a);return typeof l>"u"&&o&&(l=t()),r(l,...s)}return i.unwrapped=r,i}var Ql=Wf();function jf(){function r(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return r.withTypes=()=>r,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}},asyncThunk:r}}function Kf({type:r,reducerName:e,createNotation:t},o,i){let a,s;if("reducer"in o){if(t&&!Zf(o))throw new Error(ze(17));a=o.reducer,s=o.prepare}else a=o;i.addCase(r,a).exposeCaseReducer(e,a).exposeAction(e,s?ct(r,s):ct(r))}function qf(r){return r._reducerDefinitionType==="asyncThunk"}function Zf(r){return r._reducerDefinitionType==="reducerWithPrepare"}function Qf({type:r,reducerName:e},t,o,i){if(!i)throw new Error(ze(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:p,options:f}=t,h=i(r,a,f);o.exposeAction(e,h),s&&o.addCase(h.fulfilled,s),l&&o.addCase(h.pending,l),d&&o.addCase(h.rejected,d),p&&o.addMatcher(h.settled,p),o.exposeCaseReducer(e,{fulfilled:s||qo,pending:l||qo,rejected:d||qo,settled:p||qo})}function qo(){}var Yl="listener",Jl="completed",Xl="cancelled",n0=`task-${Xl}`,i0=`task-${Jl}`,a0=`${Yl}-${Xl}`,s0=`${Yl}-${Jl}`;var{assign:ed}=Object;var sa="listenerMiddleware";var Yf=ed(ct(`${sa}/add`),{withTypes:()=>Yf}),c0=ct(`${sa}/removeAll`),Jf=ed(ct(`${sa}/remove`),{withTypes:()=>Jf});function ze(r){return`Minified Redux Toolkit error #${r}; visit https://redux-toolkit.js.org/Errors?code=${r} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var ke=class r extends je{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(cr(a))return a;if(i==null)return;let s=Ql({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=Kl({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=fe(s.getInitialState());for(let h of p.keeping)f[h]=(d??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[i.name]=new r(s,l,i.eventBus,i.deprecatedKeys)}constructor(e,t,o,i){super(),this.reduxSlice=e,this.reduxStore=t,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new zr,this.injectInto=(s,l)=>this.reduxSlice.injectInto(s,l),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let p=l,f=s[p];return f?(...h)=>{let g=f(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{let g=p,b=this.getState()[g];re(b,h)||this.setState({[g]:a(h)})}}}),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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function Xf(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))cr(e)&&e.clear()}var Qe=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ee(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function ca(r,e,t){return new Qe(r,e,t).watch()}var Tt=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var pa={};N(pa,{scrollHelper:()=>ur});var da,Zo=new Map,ua=class{lock(e,t){if(t){let o=Zo.get(t);if(o==null||o===e)return Zo.set(t,e),t}}release(e,t){t&&Zo.get(t)===e&&Zo.delete(t)}findFirstScrollableParent(e){var t;let o,i;for(let a of Xn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&i==null&&(i=s)}return(t=o??i)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,i;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((i=t?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=Re(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.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=(da=window.FluidTopicsScrollHelper)!==null&&da!==void 0?da:new ua;var ur=window.FluidTopicsScrollHelper;var ha={};N(ha,{toFtFormComponent:()=>eh});var fa=Symbol("elementInternals"),eh=Q(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[fa].form}constructor(...o){super(o),this[fa]=this.attachInternals()}setFormValue(o){this[fa].setFormValue(o)}}return e});var ga={};N(ga,{DateFormatter:()=>It});var It=class{static format(e,t,o,i,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,t,o,i,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:i?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}};var ya={};N(ya,{ALL_KEYS_VALUE:()=>ma,SameWindowStorageEvent:()=>pr});var ma="__all__",pr=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ma}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new pr(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new pr(ma))}});var va={};N(va,{FocusMainContentEvent:()=>ba});var ba=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var td={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function th(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function rh(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}document.addEventListener("keydown",th);document.addEventListener("click",rh);var rd=_`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
|
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
68
68
|
width:auto;
|
|
69
69
|
height:auto;
|
|
70
70
|
}
|
|
71
|
-
`;var
|
|
71
|
+
`;var xa={};N(xa,{withAriaNotification:()=>nh});var oh={checkVisibility:!0},nh=Q(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,i){let{checkVisibility:a}={...oh,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new _r({type:"aria",message:o})))},20)}}return e});var Sa={};N(Sa,{withConditionalVisibility:()=>ih});var od=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function ih(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,i){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,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(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return od([S({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),od([H()],e.prototype,"isVisible",void 0),e}var Ca={};N(Ca,{FormController:()=>Ea});function ah(r){let e={};for(let t of Object.keys(r))e[t]=r[t].initial;return e}var Ea=class{constructor(e,t){this.host=e,this.config=t,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=ah(t),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,t){if(this.data[e]===t)return;let o={...this.data};o[e]=t,this.data=o,this.checkValidity()}bind(e){return t=>this.setValue(e,t.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,t){var o,i;let a=(i=(o=this.config[e]).validator)===null||i===void 0?void 0:i.call(o,this.value(e),this.data,t);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(t=>{this.validateField(t,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let t=this.config[e].selector;if(this.errors.has(e)&&t!==void 0)return t}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let t=this.host.renderRoot.querySelector(e);t instanceof HTMLElement&&t.focus()}async submit(e){var t,o,i;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(t=e.onInvalid)===null||t===void 0||t.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=ai(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(o=e.onInvalid)===null||o===void 0||o.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Oa={};N(Oa,{MetadataValueLocalizer:()=>wa});var wa=class{constructor(e){this.contentLocales=e}localize(e){var t,o;return e?.key!=="ft:locale"?e:{...e,displayValue:(t=this.findLocaleValue(e))!==null&&t!==void 0?t:e.displayValue,displayTooltipValue:(o=this.findLocaleValue(e))!==null&&o!==void 0?o:e.displayTooltipValue}}findLocaleValue(e){var t;return(t=this.contentLocales.find(o=>o.lang===e.value))===null||t===void 0?void 0:t.label}};function Aa(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}function nd(r,e,t){return r?e(r):t?.(r)}var J=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},_t;(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(_t||(_t={}));var lt;(function(r){r.default="default",r.warning="warning",r.error="error"})(lt||(lt={}));var Ra=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var K0=Q(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=_t.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=lt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===_t.blur||this.validateOn===_t.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==lt.default&&this.validateOn===_t.blurWithStatusResolutionOnInput||this.validateOn===_t.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Aa(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Aa(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ra(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return $`
|
|
72
72
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
73
73
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
74
74
|
${tt(this.errorMessages,o=>$`
|
|
@@ -77,13 +77,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
77
77
|
${tt(this.warningMessages,o=>$`
|
|
78
78
|
<li>${o}</li>
|
|
79
79
|
`)}
|
|
80
|
-
${
|
|
80
|
+
${nd(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>$`
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?lt.error:this.warningMessages.length?lt.warning:lt.default}}return J([S()],e.prototype,"warningRules",void 0),J([S()],e.prototype,"errorRules",void 0),J([S()],e.prototype,"validateOn",void 0),J([S({type:Boolean})],e.prototype,"validateAtRender",void 0),J([S()],e.prototype,"label",void 0),J([S({type:Boolean})],e.prototype,"hideLabel",void 0),J([S()],e.prototype,"name",void 0),J([S({type:Boolean})],e.prototype,"disabled",void 0),J([S()],e.prototype,"helperText",void 0),J([S()],e.prototype,"forceStatus",void 0),J([S({reflect:!0})],e.prototype,"value",void 0),J([H()],e.prototype,"errorMessages",void 0),J([H()],e.prototype,"warningMessages",void 0),J([H()],e.prototype,"status",void 0),J([H()],e.prototype,"focused",void 0),J([H()],e.prototype,"additionalWarningRules",void 0),J([H()],e.prototype,"additionalErrorRules",void 0),J([H()],e.prototype,"forceErrorMessages",void 0),e});var Yr=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),Yr(o,e);return!0},Yo=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},cd=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),fh(e)}};function uh(r){this._$AN!==void 0?(Yo(this),this._$AM=r,cd(this)):this._$AM=r}function ph(r,e=!1,t=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)Yr(o[a],!1),Yo(o[a]);else o!=null&&(Yr(o,!1),Yo(o));else Yr(this,r)}var fh=r=>{r.type==Me.CHILD&&(r._$AP??=ph,r._$AQ??=uh)},fr=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),cd(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Yr(this,e),Yo(this))}setValue(e){if(Os(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ia=class extends fr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Z}update(e){return this.part=e,this.ensureFocusTrap(e.element),Z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.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 t=this.getChildren(e);for(let o=0;o<t.length;o++){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof xe&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)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}},wS=ue(Ia);var ld;(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(ld||(ld={}));var hh={sm:640,md:768,lg:1024,xl:1280},_a=class extends fr{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,i]){return this.lastArgs=[t,o,i],this.render(t,o,i)}render(e,t,o){let i=this.resolveThreshold(e),a=o??(()=>D);return this.size>i?t():a()}resolveThreshold(e){return typeof e=="number"?e:hh[e]}},TS=ue(_a);var Jo=class{constructor(e,t=20){this.onChange=e,this.maxCapacity=t,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let t=JSON.stringify(e);window.localStorage.setItem(this.storageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}};var Jr=class r{static isShadowRoot(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}static getShadowRoots(e){let t=[],o=e.getRootNode();for(;r.isShadowRoot(o);)t.push(o),o=o.host.getRootNode();return t}static compareDeepPosition(e,t){if(e===t)return 0;let o=r.getShadowRoots(e),i=r.getShadowRoots(t),a=o.findIndex(p=>i.includes(p)),s=a<0?-1:i.findIndex(p=>p===o[a]),l=a===0||o.length===0?e:o[(a<0?o.length:a)-1].host,d=s===0||i.length===0?t:i[(s<0?i.length:s)-1].host;return l===d?l===e?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_CONTAINS:l.compareDocumentPosition(d)}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let t=document.activeElement;for(;!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement;)t=t.shadowRoot.activeElement;return t}};var La=class r{static autoFocus(e){r.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(ka)return!1;let t=Jr.getDeepActiveElement();if(!t)return!0;let o=Jr.compareDeepPosition(t,e);return(o&(Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))!==0?!1:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(o&Node.DOCUMENT_POSITION_CONTAINS)===0||(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}};window.FluidTopicsFocusHelper=La;var Na,Pa,Fa,Ma,gh=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Fa=(Pa=(Na=window.safari)===null||Na===void 0?void 0:Na.pushNotification)===null||Pa===void 0?void 0:Pa.toString())!==null&&Fa!==void 0?Fa:"")==="[object SafariRemoteNotification]",ka="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ma=window.ftGlobals)!==null&&Ma!==void 0?Ma:{lit:Wn,litDecorators:Gn,litRepeat:jn,litClassMap:Kn,litStyleMap:qn,litUnsafeHTML:Qn,wcUtils:{...Yn,...ai,...Jn,...fi,...ma,...hi,...Xn,...bi,...ii,...Li,...xa,...nd,...fa,...ki,...yi,...Ui,...ga,...Mi,...Sa,...Ea,...yl,...ri,...Hi,...Aa,...vi,...Vi,...id,...vl,...zi,...da,...ba,...Ni,...Fi,...ci,...ui,...wa,isSafari:gh,isTouchScreen:ka,setVariable:er}};var Ye;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found",r.requestedTopicFiltered="requested-topic-filtered"})(Ye||(Ye={}));var Xo=class extends CustomEvent{constructor(e){super(Ye.requestedTopicFiltered,{detail:e})}},Je;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Je||(Je={}));var mh=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ua=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Da=Symbol("registerInterval"),yh=Q(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Da]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Da]):this.dispatchEvent(new Ua)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Da,mh([H()],t.prototype,"stateManager",void 0),t}),hr=class extends yh(ge){};var Ba={padding:n.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:n.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:n.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},dd=_`
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?lt.error:this.warningMessages.length?lt.warning:lt.default}}return J([S()],e.prototype,"warningRules",void 0),J([S()],e.prototype,"errorRules",void 0),J([S()],e.prototype,"validateOn",void 0),J([S({type:Boolean})],e.prototype,"validateAtRender",void 0),J([S()],e.prototype,"label",void 0),J([S({type:Boolean})],e.prototype,"hideLabel",void 0),J([S()],e.prototype,"name",void 0),J([S({type:Boolean})],e.prototype,"disabled",void 0),J([S()],e.prototype,"helperText",void 0),J([S()],e.prototype,"forceStatus",void 0),J([S({reflect:!0})],e.prototype,"value",void 0),J([H()],e.prototype,"errorMessages",void 0),J([H()],e.prototype,"warningMessages",void 0),J([H()],e.prototype,"status",void 0),J([H()],e.prototype,"focused",void 0),J([H()],e.prototype,"additionalWarningRules",void 0),J([H()],e.prototype,"additionalErrorRules",void 0),J([H()],e.prototype,"forceErrorMessages",void 0),e});var Yr=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),Yr(o,e);return!0},Qo=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},id=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),dh(e)}};function ch(r){this._$AN!==void 0?(Qo(this),this._$AM=r,id(this)):this._$AM=r}function lh(r,e=!1,t=0){let o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)Yr(o[a],!1),Qo(o[a]);else o!=null&&(Yr(o,!1),Qo(o));else Yr(this,r)}var dh=r=>{r.type==Me.CHILD&&(r._$AP??=lh,r._$AQ??=ch)},fr=class extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),id(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Yr(this,e),Qo(this))}setValue(e){if(Es(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ta=class extends fr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Z}update(e){return this.part=e,this.ensureFocusTrap(e.element),Z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(i=this.lastTrap)===null||i===void 0||i.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 t=this.getChildren(e);for(let o=0;o<t.length;o++){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let i=t[o];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof xe&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)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}},ES=ue(Ta);var ad;(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(ad||(ad={}));var uh={sm:640,md:768,lg:1024,xl:1280},Ia=class extends fr{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,i]){return this.lastArgs=[t,o,i],this.render(t,o,i)}render(e,t,o){let i=this.resolveThreshold(e),a=o??(()=>D);return this.size>i?t():a()}resolveThreshold(e){return typeof e=="number"?e:uh[e]}},AS=ue(Ia);var Yo=class{constructor(e,t=20){this.onChange=e,this.maxCapacity=t,this.recentQueries=[],this.storageKey="",this.onStorageEvent=o=>{o.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t).slice(0,this.maxCapacity-1);o.unshift(e),this.saveRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.recentQueries.filter(i=>i.toLowerCase()!==t);this.recentQueries.length!==o.length&&this.saveRecentQueries(o)}saveRecentQueries(e){if(this.storageKey==="")return;let t=JSON.stringify(e);window.localStorage.setItem(this.storageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}};var _a,La,ka,Na,ph=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ka=(La=(_a=window.safari)===null||_a===void 0?void 0:_a.pushNotification)===null||La===void 0?void 0:La.toString())!==null&&ka!==void 0?ka:"")==="[object SafariRemoteNotification]",fh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Na=window.ftGlobals)!==null&&Na!==void 0?Na:{lit:zn,litDecorators:Wn,litRepeat:Gn,litClassMap:jn,litStyleMap:Kn,litUnsafeHTML:Zn,wcUtils:{...Qn,...ii,...Yn,...pi,...ga,...fi,...Jn,...yi,...ni,..._i,...va,...td,...pa,...Li,...mi,...Di,...ha,...Fi,...xa,...Sa,...hl,...ti,...$i,...Oa,...bi,...Hi,...rd,...ml,...Vi,...la,...ya,...ki,...Pi,...si,...di,...Ca,isSafari:ph,isTouchScreen:fh,setVariable:er}};var Ye;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found",r.requestedTopicFiltered="requested-topic-filtered"})(Ye||(Ye={}));var Jo=class extends CustomEvent{constructor(e){super(Ye.requestedTopicFiltered,{detail:e})}},Je;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Je||(Je={}));var hh=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Fa=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Pa=Symbol("registerInterval"),gh=Q(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Pa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Pa]):this.dispatchEvent(new Fa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pa,hh([H()],t.prototype,"stateManager",void 0),t}),hr=class extends gh(ge){};var Ma={padding:n.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:n.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:n.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},sd=_`
|
|
85
85
|
.items-container {
|
|
86
|
-
padding: ${
|
|
86
|
+
padding: ${Ma.padding};
|
|
87
87
|
outline: none;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -100,7 +100,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
100
100
|
By adding this gap we ensure that the previous item will be fully hidden
|
|
101
101
|
and even if its size changes, it will not impact the scroll offset
|
|
102
102
|
*/
|
|
103
|
-
margin-top: ${
|
|
103
|
+
margin-top: ${Ma.itemsGap};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.item-container:not(.rendered) {
|
|
@@ -109,9 +109,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
109
109
|
|
|
110
110
|
.item-container.rendered {
|
|
111
111
|
display: flow-root;
|
|
112
|
-
min-height: ${
|
|
112
|
+
min-height: ${Ma.itemContainerMinHeight};
|
|
113
113
|
}
|
|
114
|
-
`;var se=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}
|
|
114
|
+
`;var se=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Da=class extends CustomEvent{constructor(e,t){super("visible-items-change",{detail:{indexes:e,items:t,visibleIndexes:e,visibleItems:t}})}},Ua=class extends CustomEvent{constructor(e,t){super("rendered-items-change",{detail:{indexes:e,items:t}})}},Ba=class extends Event{constructor(){super("scrolled-to-target")}},mh=r=>(r??[])[(r??[]).length-1],W=class extends Y{constructor(){super(...arguments),this.items=[],this.renderItem=()=>$``,this.getItemKey=(e,t)=>`${t} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.unRenderDistance=20,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new V(5),this.scrollDoneDebouncer=new V(10),this.onVisibilityChange=e=>{let t=new Set(this.visibleItems),o=new Set;for(let i of e){let a=+i.target.getAttribute("data-item-index");i.intersectionRect.height>0?(t.add(a),o.add(a)):o.has(a)||t.delete(a)}this.visibleItems=[...t].sort((i,a)=>i-a)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new V(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let t=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,t||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let o=this.scrollable.scrollTop,i=o-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=o,this.scrolledToTarget&&(this.restoreScrollIfNeeded(t?0:i),!t||this.scrollRestorationItem==null)){let a=this.searchFirstVisibleItem(o,this.itemsContainer.children);this.scrollRestorationItem=a?+a.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=o-this.getOffset(a)}},this.restoreScrollIfNeeded=(e=0)=>{var t;let o=this.scrollable.scrollHeight,i=o-((t=this.lastScrollHeight)!==null&&t!==void 0?t:o);if(this.lastScrollHeight=o,i!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let a=this.getItem(this.scrollRestorationItem),s=this.getOffset(a),l=Re(this.scrollRestorationItem===0?-s:1,this.scrollRestorationOffset,a.clientHeight-1),d=s+l+e-this.scrollable.scrollTop;(Math.abs(i-d)<4||Math.abs(d)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=d)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new V(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var t,o,i;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),ur.release(this,this._scrollable)),this._scrollable=ur.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(t=this._scrollable)===null||t===void 0||t.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(o=this._scrollable)===null||o===void 0?void 0:o.scrollTop,this.lastScrollHeight=(i=this._scrollable)===null||i===void 0?void 0:i.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return $`
|
|
115
115
|
<div @scroll-into-view=${this.onScrollIntoView} class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
|
|
116
116
|
${tt(this.items,(e,t)=>this.getItemKey(e,t),(e,t)=>this.renderItemContainer(e,t))}
|
|
117
117
|
</div>
|
|
@@ -119,23 +119,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
119
119
|
<div id="item-${t}"
|
|
120
120
|
class="item-container ${i?"rendered":""} ${o?"visible":""}"
|
|
121
121
|
data-item-index="${t}">
|
|
122
|
-
${i?(()=>{let s=this.renderItem(e,t);return typeof s=="string"?
|
|
122
|
+
${i?(()=>{let s=this.renderItem(e,t);return typeof s=="string"?qn(s):s})():D}
|
|
123
123
|
</div>
|
|
124
|
-
`}prepareRenderIfNeeded(e){let t=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!t&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}removeRenderedIndex(e){this.renderApprovalTimeouts[e]&&(clearTimeout(this.renderApprovalTimeouts[e]),this.renderApprovalTimeouts[e]=void 0),this.renderedIndexes.delete(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=
|
|
125
|
-
`;var
|
|
124
|
+
`}prepareRenderIfNeeded(e){let t=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!t&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}removeRenderedIndex(e){this.renderApprovalTimeouts[e]&&(clearTimeout(this.renderApprovalTimeouts[e]),this.renderApprovalTimeouts[e]=void 0),this.renderedIndexes.delete(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=mh(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect();let t=this.resolveScrollToIndex();this.cleanRenderedItems(t),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e),this.addRenderedIndex(t),this.updateComplete.then(()=>{this.scrollToTarget(t),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(t),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(t)})})}cleanRenderedItems(e){let t=e-this.renderBeforeFirst-this.unRenderDistance,o=e+this.renderAfterLast+this.unRenderDistance;this.renderedIndexes.forEach(i=>{(i<t||i>o)&&this.removeRenderedIndex(i)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=ur.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let t=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return t>=this.items.length?-1:t}getItem(e){var t,o;return(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelector(`#item-${e}`))!==null&&o!==void 0?o:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var t;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let o=e.composedPath()[0],i=this.getOffset(o),a=(t=e.composedPath().find(s=>typeof s.matches=="function"&&s.matches(".item-container")))===null||t===void 0?void 0:t.getAttribute("data-item-index");this.scrollRestorationItem=a==null?this.scrollRestorationItem:+a,this.scrollRestorationOffset=i-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=i}getOffset(e){let t=typeof e=="number"?this.getItem(e):e;return t?ur.getAbsoluteScrollOffset(this.scrollable,t):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,t,o,i){if(o=o??0,i=i??t.length-1,i<=o)return t[o];let a=Math.floor((i-o)/2)+o,s=t[a],l=this.getOffset(s);return l>e?this.searchFirstVisibleItem(e,t,o,a-1):l+s.clientHeight<e?this.searchFirstVisibleItem(e,t,a+1,i):s}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let t=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,t&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(o=>clearTimeout(o)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&mt(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Ba)}contentAvailableCallback(e){var t,o;super.contentAvailableCallback(e);let i=[...(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".item-container.rendered"))!==null&&o!==void 0?o:[]].map(a=>+a.getAttribute("data-item-index"));this.lastRenderedItemsLength!==i.length&&(this.dispatchRenderedItemsChangeEvent(i),this.lastRenderedItemsLength=i.length)}dispatchRenderedItemsChangeEvent(e){let t=e??[...this.renderedIndexes].sort((o,i)=>o-i);this.dispatchEvent(new Ua(t,t.map(o=>this.items[o])))}onVisibleItemsChange(){this.visibleItems.every((t,o)=>this.visibleItems[o+1]==null||t+1===this.visibleItems[o+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=rt(Ir(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Da(this.visibleItems,this.visibleItems.map(t=>this.items[t])))).catch(()=>null)}};W.styles=sd;se([S({attribute:!1,hasChanged:Ee})],W.prototype,"items",void 0);se([S({attribute:!1})],W.prototype,"renderItem",void 0);se([S({attribute:!1})],W.prototype,"getItemKey",void 0);se([S({type:Object})],W.prototype,"scrollToItem",void 0);se([ie()],W.prototype,"scrollToIndex",void 0);se([S({type:Boolean})],W.prototype,"internalScroll",void 0);se([ie({min:1})],W.prototype,"renderBeforeFirst",void 0);se([ie({min:1})],W.prototype,"renderAfterLast",void 0);se([ie({min:0})],W.prototype,"unRenderDistance",void 0);se([S({type:Boolean})],W.prototype,"ensureScrollToTarget",void 0);se([S({type:Boolean})],W.prototype,"disableScrollManagement",void 0);se([H({hasChanged(r,e){return r!=null&&e==null||r.length!==e.length||r[0]!==e[0]}})],W.prototype,"visibleItems",void 0);se([Fe(".scrollable")],W.prototype,"internalScrollable",void 0);se([Fe(".items-container")],W.prototype,"itemsContainer",void 0);se([H()],W.prototype,"scrolledToTarget",void 0);se([H()],W.prototype,"scrolling",void 0);var cd={"ft-infinite-scroll":W};oe(cd);var ld=_`
|
|
125
|
+
`;var dd=_`
|
|
126
126
|
`;var dt=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},be=class extends hr{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return $`
|
|
127
127
|
<article id="${this.tocId}">
|
|
128
128
|
<slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
|
|
129
129
|
</article>
|
|
130
|
-
`}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift,e.headingStartLevel=this.headingStartLevel}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(t=>e.has(t))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(t=>t.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};be.styles=
|
|
131
|
-
`;var vh={setTranslationDestinationLanguage:(r,e)=>{r.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(r,e)=>{r.translation.sourceLanguage=e.payload},setTranslationProfileId:(r,e)=>{r.translation.profileId=e.payload},setTranslationLoading:(r,e)=>{r.translation.isLoading=e.payload},setTranslationError:(r,e)=>{r.translation.isError=e.payload},setTopicsRating:(r,e)=>{for(let t in e.payload)r.topicsRating[t]=e.payload[t]}},md=r=>ke.get({name:"ft-reader-"+r,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0,metadataFilters:[]},reducers:vh});var za=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,t,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]})}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:t,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,g={number:this.pages.length+1,title:(l=e.title)!==null&&l!==void 0?l:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},b=(E,A)=>(A?g.topics:g.hiddenTopics).push(E),x=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];g.breadcrumb.forEach((E,A)=>{b(E,x[A])}),e.tocId&&b(e.tocId,e.pageConfiguration.isVisible),g.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let w=this.resolveOverridenRootTocIdByParentForcedByPagination(g.breadcrumb,x);return g.rootTocId=w??g.rootTocId,g.rootDepth=w?this.nodeByTocId[w].depth:g.rootDepth,g}resolveOverridenRootTocIdByParentForcedByPagination(e,t){for(let o=0;o<e.length;o++)if(t[o])return e[o]}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},en=class{convertPaginatedToc(e,t){return new za(e,t).build()}};var xh="ft-app-info",ve=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};ve.eventName="authentication-change";var Xr=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Xr.eventName="ui-locale-changed";var Sh={session:(r,e)=>{re(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>C.dispatchEvent(new ve(e.payload)),0))}},C=ke.get({name:xh,reducers:Sh,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var tn=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},IC=Q(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(C)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>It.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return tn([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),tn([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),tn([F({store:C.name,selector:t=>{var o,i;return(i=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),tn([F({store:C.name})],e.prototype,"uiLocale",void 0),e});var Lt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=C.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=C.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var gr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Lt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Lt.await()}};var X=class extends gr{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new De,this.cache=e?i.commonCache:new De}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}};var rn=class extends X{async listMySearches(){let{session:e}=C.getState();return we(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var on=class extends X{async listMyBookmarks(){let e=C.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var nn=class extends X{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=C.getState().session;return!!e?.sessionAuthenticated}};var an=class extends X{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=C.getState().session;return!!e?.sessionAuthenticated}};var Eh="ft-user-assets",Ch={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Ce).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:i}=e.payload;Ga(r,t,[...Wa(r,t),i]),yd(r,t,1,o),bd(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Ga(r,t,Wa(r,t).map(i=>i.id===o.id?o:i)),bd(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:i}=e.payload;Ga(r,t,Wa(r,t).filter(a=>a.id!==i)),yd(r,t,-1,o)}},vd={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Wa=(r,e)=>{var t;let o=vd[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Ga=(r,e,t)=>{let o=vd[e];o&&(r[o]=t)},yd=(r,e,t,o)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===Ce.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},bd=(r,e)=>{let t=r.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!t.includes(i)).map(i=>({title:i}));r.assetLabels.push(...o)},le=ke.get({name:Eh,reducers:Ch,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ja=class{constructor(e=new nn,t=new an){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new on,this.savedSearchesService=new rn,C.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=C.getState();re((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),le.actions.clearAssetCount(),le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();le.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&le.getState().assetCounts.allAsset[e]!==t.count&&le.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&le.getState().assetCounts.bookmarkByMap[e]!==t.count&&le.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(le.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&t&&le.actions.clearBookmarkCountByMap(),le.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;le.actions.bookmarks(t)}}},Ka=new ja;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ka);var qa=class{addCommand(e,t=!1){C.commands.add(e,t)}consumeCommand(e){return C.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qa;var xd,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},wh=Symbol("clearAfterUnitTest"),sn=class extends vo(X){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xd]=()=>{this.defaultMessages={},this.cache=new De,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=C.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};re(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Vr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(i){!(i instanceof pe)&&t&&console.error(i)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>bo(0).then(()=>o()).catch(()=>null)))}};xd=wh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Sd=window.FluidTopicsI18nService,fw=window.FluidTopicsCustomI18nService;var Za=class{highlightHtml(e,t,o){$i(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Za;var Qa=class{isDate(e){var t,o,i,a;return(a=(o=((i=(t=C.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a,s;if(e==null)return"";try{return It.format(e,(o=t?.locale)!==null&&o!==void 0?o:C.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Qa;var eo=class{static get(e,t,{baseUrl:o,localesConfiguration:i,availableContentLocales:a}=C.getState()){var s;if(!t||a.length>0&&!a.some(l=>l.lang===t)){let l=i?.defaultLocales.defaultContentLocale;t=l?`${l.lang}-${l.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new Te(o,e??20,i?.allLanguagesAllowed,t,a)}};var yr=class extends X{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(t),console.debug(i),o)),1e3)}};var Ya=class{urlToSearchRequest(e){return eo.get().parse(e)}searchRequestToUrl(e){return eo.get().serialize(e)}};window.FluidTopicsUrlService=new Ya;var kt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{nextLocation:e}})}};kt.eventName="before-location-change";var Nt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Ja=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ed=new Ja;var cn=class r extends je{static build(){return new r(window.history,Ed,()=>window.location,!1)}constructor(e,t,o,i){var a,s;super(),this.history=e,this.historyStorage=t,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(i)}setCurrentState(e,t=!1){let o=t&&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),re(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=t=>(o,i,[a,s,l])=>{let d=new kt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=t(),f={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(i,[f,s,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return fe(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 fe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return fe(t.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 fe(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let i=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r),addBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(r),removeBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(r)});var Cd=_`
|
|
132
|
-
`;function
|
|
130
|
+
`}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift,e.headingStartLevel=this.headingStartLevel}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(t=>e.has(t))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(t=>t.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};be.styles=dd;dt([F({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.id}})],be.prototype,"mapId",void 0);dt([F({selector:r=>r.translation.profileId})],be.prototype,"translationProfileId",void 0);dt([F({selector:r=>r.translation.destinationLanguage})],be.prototype,"translationDestinationLanguage",void 0);dt([S()],be.prototype,"tocId",void 0);dt([S({type:Boolean})],be.prototype,"disableContextInteractions",void 0);dt([S({type:Number})],be.prototype,"headingLevelsShift",void 0);dt([ie()],be.prototype,"headingStartLevel",void 0);dt([H()],be.prototype,"tocNode",void 0);var ud={"ft-reader-topic-context":be};oe(ud);var pd=_`
|
|
131
|
+
`;var yh={setTranslationDestinationLanguage:(r,e)=>{r.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(r,e)=>{r.translation.sourceLanguage=e.payload},setTranslationProfileId:(r,e)=>{r.translation.profileId=e.payload},setTranslationLoading:(r,e)=>{r.translation.isLoading=e.payload},setTranslationError:(r,e)=>{r.translation.isError=e.payload},setTopicsRating:(r,e)=>{for(let t in e.payload)r.topicsRating[t]=e.payload[t]}},fd=r=>ke.get({name:"ft-reader-"+r,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,filteredTocNodes:{},paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0,metadataFilters:[]},reducers:yh});var $a=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError,filteredTocNodes:this.paginatedToc.filteredTocNodes}}extractPagesToc(e,t,o){return e.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]})}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((s=i.pageToc)!==null&&s!==void 0?s:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let d=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,contentTag:i.contentTag,contentClass:i.contentClass,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:t,parentTocId:o,children:[]};this.register(p);let f=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,d,p,f;let h=(s=e.tocId)!==null&&s!==void 0?s:(i=(o=e.pageToc)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.tocId,g={number:this.pages.length+1,title:(l=e.title)!==null&&l!==void 0?l:"",untranslatedTitle:e.untranslatedTitle,rootTocId:h??"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(E=>this.nodeByTocId[E.tocId]),topics:[],hiddenTopics:[],rootDepth:h?this.nodeByTocId[h].depth:1,breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},b=(E,A)=>(A?g.topics:g.hiddenTopics).push(E),x=(p=(a=e.pageConfiguration)===null||a===void 0?void 0:a.parentsVisibility)!==null&&p!==void 0?p:[];g.breadcrumb.forEach((E,A)=>{b(E,x[A])}),e.tocId&&b(e.tocId,e.pageConfiguration.isVisible),g.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[]));let w=this.resolveOverridenRootTocIdByParentForcedByPagination(g.breadcrumb,x);return g.rootTocId=w??g.rootTocId,g.rootDepth=w?this.nodeByTocId[w].depth:g.rootDepth,g}resolveOverridenRootTocIdByParentForcedByPagination(e,t){for(let o=0;o<e.length;o++)if(t[o])return e[o]}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Xo=class{convertPaginatedToc(e,t){return new $a(e,t).build()}};var bh="ft-app-info",ve=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};ve.eventName="authentication-change";var Jr=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Jr.eventName="ui-locale-changed";var vh={session:(r,e)=>{re(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>C.dispatchEvent(new ve(e.payload)),0))}},C=ke.get({name:bh,reducers:vh,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var en=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},EC=Q(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(C)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>It.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),en([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),en([F({store:C.name,selector:t=>{var o,i;return(i=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),en([F({store:C.name})],e.prototype,"uiLocale",void 0),e});var Lt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=C.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=C.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var gr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Lt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Lt.await()}};var X=class extends gr{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new De,this.cache=e?i.commonCache:new De}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}};var tn=class extends X{async listMySearches(){let{session:e}=C.getState();return we(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rn=class extends X{async listMyBookmarks(){let e=C.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var on=class extends X{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=C.getState().session;return!!e?.sessionAuthenticated}};var nn=class extends X{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=C.getState().session;return!!e?.sessionAuthenticated}};var xh="ft-user-assets",Sh={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Ce).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:i}=e.payload;Va(r,t,[...Ha(r,t),i]),hd(r,t,1,o),gd(r,i)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Va(r,t,Ha(r,t).map(i=>i.id===o.id?o:i)),gd(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:i}=e.payload;Va(r,t,Ha(r,t).filter(a=>a.id!==i)),hd(r,t,-1,o)}},md={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},Ha=(r,e)=>{var t;let o=md[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Va=(r,e,t)=>{let o=md[e];o&&(r[o]=t)},hd=(r,e,t,o)=>{let i=r.assetCounts.allAsset[e];if(i!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,i+t),e===Ce.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},gd=(r,e)=>{let t=r.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!t.includes(i)).map(i=>({title:i}));r.assetLabels.push(...o)},le=ke.get({name:xh,reducers:Sh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),za=class{constructor(e=new on,t=new nn){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,C.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=C.getState();re((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),le.actions.clearAssetCount(),le.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),le.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),le.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();le.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();le.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&le.getState().assetCounts.allAsset[e]!==t.count&&le.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&le.getState().assetCounts.bookmarkByMap[e]!==t.count&&le.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(le.getState().assetCounts.bookmarkByMap).length!==0;e===Ce.BOOKMARKS&&t&&le.actions.clearBookmarkCountByMap(),le.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;le.actions.bookmarks(t)}}},Wa=new za;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Wa);var Ga=class{addCommand(e,t=!1){C.commands.add(e,t)}consumeCommand(e){return C.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ga;var yd,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Eh=Symbol("clearAfterUnitTest"),an=class extends bo(X){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yd]=()=>{this.defaultMessages={},this.cache=new De,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=C.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};re(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Vr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(i){!(i instanceof pe)&&t&&console.error(i)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>yo(0).then(()=>o()).catch(()=>null)))}};yd=Eh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends an{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var bd=window.FluidTopicsI18nService,aw=window.FluidTopicsCustomI18nService;var ja=class{highlightHtml(e,t,o){Bi(e,t,o)}};window.FluidTopicsHighlightHtmlService=new ja;var Ka=class{isDate(e){var t,o,i,a;return(a=(o=((i=(t=C.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a,s;if(e==null)return"";try{return It.format(e,(o=t?.locale)!==null&&o!==void 0?o:C.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ka;var Xr=class{static get(e,t,{baseUrl:o,localesConfiguration:i,availableContentLocales:a}=C.getState()){var s;if(!t||a.length>0&&!a.some(l=>l.lang===t)){let l=i?.defaultLocales.defaultContentLocale;t=l?`${l.lang}-${l.region}`:(s=a[0])===null||s===void 0?void 0:s.lang}return new Te(o,e??20,i?.allLanguagesAllowed,t,a)}};var yr=class extends X{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,i])=>Array.isArray(i)?[o,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[o,this.sortEventArrays(i)]:[o,i]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(i=>(console.info(t),console.debug(i),o)),1e3)}};var qa=class{urlToSearchRequest(e){return Xr.get().parse(e)}searchRequestToUrl(e){return Xr.get().serialize(e)}};window.FluidTopicsUrlService=new qa;var kt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{nextLocation:e}})}};kt.eventName="before-location-change";var Nt=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var Za=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},vd=new Za;var sn=class r extends je{static build(){return new r(window.history,vd,()=>window.location,!1)}constructor(e,t,o,i){var a,s;super(),this.history=e,this.historyStorage=t,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(i)}setCurrentState(e,t=!1){let o=t&&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),re(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=t=>(o,i,[a,s,l])=>{let d=new kt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let p=t(),f={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:d.detail.nextLocation.href};o.apply(i,[f,s,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener(kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return fe(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 fe(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return fe(t.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 fe(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let i=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r),addBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(r),removeBeforeLocationChangeListener:r=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(r)});var xd=_`
|
|
132
|
+
`;function Sd(r,e){let{authenticationRequired:t,session:o}=C.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var cn=class extends gr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Qa=class r extends Tt{static build(e){return new r(C,e)}constructor(e,t){super(),this.store=e,this.cache=new De,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new V,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new V(500),this.apiProvider=t??(()=>Lt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ve.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ve.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});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 t=await this.cache.get("availableContentLocales",()=>Sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,t){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:t}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Jr(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)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return hc(C.getState().session,...e)}},ln=Qa.build();var Pt=class extends Event{constructor(e,t,o,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=i??!1}};var eo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:i,callbackRef:a}of o){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Pt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(t);a===void 0&&i.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),i.requests.push({elementRef:new WeakRef(t),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)}};var ee=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},z=class extends ge{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=ln,this.contextRoot=new eo}render(){return $`
|
|
133
133
|
<slot></slot>
|
|
134
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Sd.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")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=Cd;ee([S()],z.prototype,"baseUrl",void 0);ee([S()],z.prototype,"tenantId",void 0);ee([S()],z.prototype,"apiIntegrationIdentifier",void 0);ee([S()],z.prototype,"apiIntegrationAppVersion",void 0);ee([S()],z.prototype,"uiLocale",void 0);ee([he(null)],z.prototype,"availableUiLocales",void 0);ee([he(null)],z.prototype,"metadataConfiguration",void 0);ee([S({type:Boolean})],z.prototype,"editorMode",void 0);ee([S({type:Boolean})],z.prototype,"noCustom",void 0);ee([S({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],z.prototype,"noCustomComponent",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],z.prototype,"noCustomCode",void 0);ee([S({type:Boolean})],z.prototype,"withManualResources",void 0);ee([S({type:Boolean})],z.prototype,"navigatorOnline",void 0);ee([S({type:Boolean})],z.prototype,"forcedOffline",void 0);ee([S({type:Boolean})],z.prototype,"authenticationRequired",void 0);ee([he([])],z.prototype,"messageContexts",void 0);ee([he(void 0)],z.prototype,"session",void 0);var Od={"ft-app-context":z};oe(Od);var un=class extends X{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o,i){super(!1,t),this.converter=e,this._mapId=o,this._metadataFilters=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return we((t=(e=C.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,t,o){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e,this.metadataFilters),()=>this.fetchPages(this.mapId,this.metadataFilters,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getFilteredTocNodes(e){var t;return(t=(await this.getEnrichedToc(e)).filteredTocNodes)!==null&&t!==void 0?t:{}}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var o;return(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var o,i;let a=this.getMapNow(t);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(t))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,t){let o=await this.getEnrichedToc(t);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,t){let o=await this.getEnrichedToc(t);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}async getTopicMetadataValue(e,t){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==t)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,o,i){let a=this.getNavigationData(e,t,o),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),l=new URL(s,this.api.tenantBaseUrl);if(a.page!=null&&l.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&l.searchParams.set("tocId",a.tocId),a.section!=null&&l.searchParams.set("section",a.section),i&&a.metadataFilters){let d=Te.serializeValueFilters(a.metadataFilters);d&&l.searchParams.set(L.VALUE_FILTERS,d)}return l.href}getLinkWithFilter(e,t,o){return this.getLink(e,t,o,!0)}getNavigationData(e,t,o,i){var a,s;e=e||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:t&&d&&d.number!==t?t:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,t,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,t,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=C.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o,i){return this.makeTopicFeedbackRequest(e,t,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let o=this.getTocNodeNow(e,t);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,t);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,t);return i}isFeatureAccessible(e,{session:t}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Je.FEEDBACK:return we(t??[],B.FEEDBACK_USER);case Je.RATING:return we(t??[],B.RATING_USER);case Je.PRINT:return we(t??[],B.PRINT_USER);case Je.BOOKMARK:return!!t?.sessionAuthenticated;case Je.COLLECTIONS:return we(t??[],B.COLLECTION_USER);case Je.PERSONAL_BOOKS:return we(t??[],B.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var pn=class r extends un{static async build(e){return new r(new en,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let o=await this.api.getMap(e,t);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t,o){return await this.getMap(o),t?.length?this.api.getFilteredPages(e,o,t):this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o,i){return this.api.sendTopicFeedback(this.mapId,e,t,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Rh="topicPivot";function Ad(r,e){let t=new URL(r);return e?.values.forEach(o=>{t.searchParams.append(Rh,o)}),t.href}var fn=class r{static build(e,t){return new r(md(e.trim()||"context"),t??pn.build)}loaded(){return Ir(()=>this._loaded)}constructor(e,t,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new V(10),this.analyticsEventsService=i??new yr,this.initService(t)}async initService(e){this.service=await e();let{mapId:t,metadataFilters:o}=this.store.getState();return this.service.mapId=t,this.service.metadataFilters=o,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async setFilters(e){re(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return mt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:t}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!t&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,t){var o,i,a;let s=await this.awaitService();if(t)return s.getPage(t,this.getTranslationSettings());if(!e)return s.getPageByTocId("root",this.getTranslationSettings());let l=(o=this.store.getState().filteredTocNodes)===null||o===void 0?void 0:o[e],d=((i=this.service)===null||i===void 0?void 0:i.getTocNodeNow(e))!=null;return l&&l.reason!=="ACCESS_RIGHTS_FILTER"&&!d?s.getPageByTocId((a=l.closestParent)!==null&&a!==void 0?a:"root",this.getTranslationSettings()):s.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,t){var o,i,a,s,l;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:t.rootTocId;if(!t.topics.includes(d)){if(e!="root"&&!t.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Xo(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(Ye.requestedTopicNotFound))}return(l=(s=t.topics[0])!==null&&s!==void 0?s:t.hiddenTopics[0])!==null&&l!==void 0?l:"root"}return d}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromFilter(e,t){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:l,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:l?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,t)}async fetchDataFromFilter(){var e,t,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(t=this.service)===null||t===void 0?void 0:t.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof pe))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,t,o,i,a,s,l;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(t=this.service)===null||t===void 0?void 0:t.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof pe))throw d&&this.setTranslationError(!0),(l=this.errorHandler)===null||l===void 0||l.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(t=>this.store.actions.configuration(t))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,t;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);if(o!==void 0&&o.length>0){let i=await((t=this.service)===null||t===void 0?void 0:t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Ye.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=C.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Xt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await mt(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=d?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var t;let o=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getAccurateNavigationData(e,t,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,t?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Ye.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var t,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Xt.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=di(a);if(s){let l=this.store.getState().visibleTopics[0],d=(t=this.store.getState().configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata;if(d&&l){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(l,d));s=Ad(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var t;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=C.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(t=l.untranslatedTitle)!==null&&t!==void 0?t:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:So.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,t){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=C.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(t.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(b=>{var x;return{tocId:b.tocId,title:(x=b.untranslatedTitle)!==null&&x!==void 0?x:b.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let t=e.split("-");return t.length===2?{languageCode:t[0],countryCode:t[1]}:{languageCode:t[0],countryCode:""}}};var hn=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},gn=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},mn=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},yn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},bn=class extends Event{constructor(){super("ft-reader-map-not-found")}},vn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},xn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Sn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Rd=_`
|
|
135
|
-
`;var ro;(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ro||(ro={}));var Th={setRequest:(r,e)=>{r.request=e.payload}},Td=r=>ke.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Th,deprecatedKeys:["locales"]});var En=class extends X{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((t,o)=>t.key.localeCompare(o.key))}};var Cn=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},wn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},On=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o},composed:!0,bubbles:!0})}},oo=class r extends Event{constructor(){super(r.eventName)}};oo.eventName="search-context-clear-all-filters";var Ih=r=>r.request.virtualField===bt.TITLE_ONLY&&r.request.scope===Jt.DOCUMENTS,_h=r=>r.request.keywordMatch==nt.MANDATORY,no=class r extends Tt{static build(e,t){return new r(Td(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Jo(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==ro.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(we(C.getState().session,B.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.updateLocales=(o=C.getState().availableContentLocales)=>{this.store.actions.locales(o),o.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new V(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new V(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=t??new En,this.searchWatcher=new Qe(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Qe(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new Qe(C,o=>o.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new Qe(C,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),C.addEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(C.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),C.removeEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return C.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=fe(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t;let o=this.store.getState().request.contentLocale;return e!==o&&(e=r.findKnownContentLocale(e,o),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((t=C.getState().localesConfiguration)===null||t===void 0)&&t.searchLanguageSetsUiLanguage)&&e&&dn.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:t,localesConfiguration:o}=C.getState();if(t.length===0)return e[0];let i=s=>t.some(l=>l.lang==s);for(let s of e)if(i(s))return s;let a=o?.defaultLocales.defaultContentLocale;return a?`${a.lang}-${a.region}`:t[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:r.findKnownContentLocale(e)})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:Re(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let i=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:bt.TITLE_ONLY,scope:Jt.DOCUMENTS},!0):this.updateSearchRequest({virtualField:bt.EVERYWHERE,scope:Jt.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Ih(this.store.getState())}get keywordMatch(){return _h(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new oo)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(i=>i!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let t=new Set(this.store.getState().propagatedFacets);t.add(e),this.store.actions.propagatedFacets([...t])}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.dateFilter),...t.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.rangeFilter),...t.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var t,o,i,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(ro.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=rt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof pe||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=rt(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof pe)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var es=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},rs=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Id=Symbol("registerInterval"),ts=Symbol("registerAttempts"),Lh=40,kh=Q(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ts]=0,this.tryToRegisterToContext(),this[Id]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[ts]>Lh?window.clearInterval(this[Id]):(this[ts]++,this.dispatchEvent(new rs(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return es([H()],e.prototype,"stateManager",void 0),es([H({hasChanged:Ee})],e.prototype,"neededSearchRequests",void 0),es([S()],e.prototype,"searchRegistrationId",void 0),e}),_d=class extends kh(ge){};function An(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Rn(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var Tn=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=t??new yr,this.resultsWatcher=la(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=C.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=C.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:An(e.metadataFilters),facets:e.metadataFilters.map(a=>Rn(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Ue.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:An(o.metadataFilters),facets:o.metadataFilters.map(s=>Rn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Ue.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:An(o.metadataFilters),facets:o.metadataFilters.map(s=>Rn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Ue.MAP:return{id:e.map.mapId,title:e.map.title,type:ot.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Ue.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:ot.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Ue.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:ot.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case Ue.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:ot.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case Ue.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:ot.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=kr(e))===null||t===void 0?void 0:t.originUrl}};var j=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},U=class extends ge{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=no.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Tn(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(C)}render(){return $`
|
|
134
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>bd.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")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=xd;ee([S()],z.prototype,"baseUrl",void 0);ee([S()],z.prototype,"tenantId",void 0);ee([S()],z.prototype,"apiIntegrationIdentifier",void 0);ee([S()],z.prototype,"apiIntegrationAppVersion",void 0);ee([S()],z.prototype,"uiLocale",void 0);ee([he(null)],z.prototype,"availableUiLocales",void 0);ee([he(null)],z.prototype,"metadataConfiguration",void 0);ee([S({type:Boolean})],z.prototype,"editorMode",void 0);ee([S({type:Boolean})],z.prototype,"noCustom",void 0);ee([S({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],z.prototype,"noCustomComponent",void 0);ee([S({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],z.prototype,"noCustomCode",void 0);ee([S({type:Boolean})],z.prototype,"withManualResources",void 0);ee([S({type:Boolean})],z.prototype,"navigatorOnline",void 0);ee([S({type:Boolean})],z.prototype,"forcedOffline",void 0);ee([S({type:Boolean})],z.prototype,"authenticationRequired",void 0);ee([he([])],z.prototype,"messageContexts",void 0);ee([he(void 0)],z.prototype,"session",void 0);var Ed={"ft-app-context":z};oe(Ed);var dn=class extends X{get metadataFilters(){return this._metadataFilters}set metadataFilters(e){this._metadataFilters=e}get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o,i){super(!1,t),this.converter=e,this._mapId=o,this._metadataFilters=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register(this.makeCacheKey("enrichedToc",void 0,this.metadataFilters),()=>this.withMapId(e=>this.fetchPages(e,this._metadataFilters).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return we((t=(e=C.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,t,o){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")+(!o||o.length==0?"":"-metadataFilters-"+this.hash(o))}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e,this.metadataFilters),()=>this.fetchPages(this.mapId,this.metadataFilters,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e,this.metadataFilters))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getFilteredTocNodes(e){var t;return(t=(await this.getEnrichedToc(e)).filteredTocNodes)!==null&&t!==void 0?t:{}}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var o;return(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var o,i;let a=this.getMapNow(t);return a?.prettyUrl==e||`${a?.id}/root`===e?(o=this.getEnrichedTocNow(t))===null||o===void 0?void 0:o.toc[0]:(i=this.getEnrichedTocNow(t))===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e,t){let o=await this.getEnrichedToc(t);return o.pages[e-1]||o.pages[0]}async getPageByTocId(e,t){let o=await this.getEnrichedToc(t);return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}async getTopicMetadataValue(e,t){let o=this.getTocNodeNow(e);if(!o)return;let i=await this.getTopicInfo(o);return i?.metadata.find(a=>a.key==t)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,o,i){let a=this.getNavigationData(e,t,o),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),l=new URL(s,this.api.tenantBaseUrl);if(a.page!=null&&l.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&l.searchParams.set("tocId",a.tocId),a.section!=null&&l.searchParams.set("section",a.section),i&&a.metadataFilters){let d=Te.serializeValueFilters(a.metadataFilters);d&&l.searchParams.set(L.VALUE_FILTERS,d)}return l.href}getLinkWithFilter(e,t,o){return this.getLink(e,t,o,!0)}getNavigationData(e,t,o,i){var a,s;e=e||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:t&&d&&d.number!==t?t:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(f??""))!==null&&s!==void 0?s:!1,section:o,metadataFilters:this.metadataFilters}}async getAccurateNavigationData(e,t,o,i){return await this.getEnrichedToc(i),this.getNavigationData(e,t,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=C.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o,i){return this.makeTopicFeedbackRequest(e,t,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let o=this.getTocNodeNow(e,t);if(!o)return[];let i=[{tocId:o.tocId,title:o.title,untranslatedTitle:o.untranslatedTitle}],a=this.getTocNodeNow(o.parentTocId,t);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,t);return i}isFeatureAccessible(e,{session:t}){var o;if(!this.isFeatureAvailable(e))return!1;switch(e){case Je.FEEDBACK:return we(t??[],B.FEEDBACK_USER);case Je.RATING:return we(t??[],B.RATING_USER);case Je.PRINT:return we(t??[],B.PRINT_USER);case Je.BOOKMARK:return!!t?.sessionAuthenticated;case Je.COLLECTIONS:return we(t??[],B.COLLECTION_USER);case Je.PERSONAL_BOOKS:return we(t??[],B.PERSONAL_BOOK_USER)&&!(!((o=this.getMapNow())===null||o===void 0)&&o.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var un=class r extends dn{static async build(e){return new r(new Xo,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let o=await this.api.getMap(e,t);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t,o){return await this.getMap(o),t?.length?this.api.getFilteredPages(e,o,t):this.api.getPages(e,this.fingerprint,o)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o,i){return this.api.sendTopicFeedback(this.mapId,e,t,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Oh="topicPivot";function Cd(r,e){let t=new URL(r);return e?.values.forEach(o=>{t.searchParams.append(Oh,o)}),t.href}var pn=class r{static build(e,t){return new r(fd(e.trim()||"context"),t??un.build)}loaded(){return Ir(()=>this._loaded)}constructor(e,t,o,i){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new V(10),this.analyticsEventsService=i??new yr,this.initService(t)}async initService(e){this.service=await e();let{mapId:t,metadataFilters:o}=this.store.getState();return this.service.mapId=t,this.service.metadataFilters=o,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async setFilters(e){re(e,this.store.getState().metadataFilters)||(this.store.actions.metadataFilters(e),this.service&&(this.service.metadataFilters=e))}async awaitService(){return mt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.resolvePage(e,o);this.store.actions.currentPage(i);let a=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:a,section:t}),this.store.getState().visibleTopics[0]!==a&&this.store.actions.visibleTopics([]),e&&!t&&(this.store.commands.clear(/^focus-topic-/),this.store.commands.add({type:`focus-topic-${e}`}))}async resolvePage(e,t){var o,i,a;let s=await this.awaitService();if(t)return s.getPage(t,this.getTranslationSettings());if(!e)return s.getPageByTocId("root",this.getTranslationSettings());let l=(o=this.store.getState().filteredTocNodes)===null||o===void 0?void 0:o[e],d=((i=this.service)===null||i===void 0?void 0:i.getTocNodeNow(e))!=null;return l&&l.reason!=="ACCESS_RIGHTS_FILTER"&&!d?s.getPageByTocId((a=l.closestParent)!==null&&a!==void 0?a:"root",this.getTranslationSettings()):s.getPageByTocId(e,this.getTranslationSettings())}resolveValidNonRootTocId(e,t){var o,i,a,s,l;let d=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:t.rootTocId;if(!t.topics.includes(d)){if(e!="root"&&!t.hiddenTopics.includes(d)){let p=this.store.getState().filteredTocNodes[d];if(p){this.store.dispatchEvent(new Jo(p));let f=((o=this.service)===null||o===void 0?void 0:o.getTocNodeNow(p.tocId))!=null;return p.reason==="ACCESS_RIGHTS_FILTER"||f?p.tocId:(a=p.closestParent)!==null&&a!==void 0?a:"root"}this.store.dispatchEvent(new CustomEvent(Ye.requestedTopicNotFound))}return(l=(s=t.topics[0])!==null&&s!==void 0?s:t.hiddenTopics[0])!==null&&l!==void 0?l:"root"}return d}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}clearFromFilter(){this._loaded=!1,this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0)}async reloadFromFilter(e,t){var o,i,a;this.clearFromFilter();let{scrollTarget:s,visibleTopics:l,currentPage:d}=this.store.getState(),p=(a=(i=(o=s?.tocId)!==null&&o!==void 0?o:l?.[0])!==null&&i!==void 0?i:d?.rootTocId)!==null&&a!==void 0?a:"root";await this.fetchDataFromFilter(),this.navigateToTopic(p,e,t)}async fetchDataFromFilter(){var e,t,o,i;let a=this.getTranslationSettings();try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getToc(a).then(s=>this.store.actions.toc(s)),(t=this.service)===null||t===void 0?void 0:t.getPagesToc(a).then(s=>this.store.actions.pagesToc(s)),(o=this.service)===null||o===void 0?void 0:o.getFilteredTocNodes(a).then(s=>this.store.actions.filteredTocNodes(s))]),this._loaded=!0}catch(s){if(!(s instanceof pe))throw a&&this.setTranslationError(!0),(i=this.errorHandler)===null||i===void 0||i.call(this,s),s}}async fetchData(){var e,t,o,i,a,s,l;let d=this.getTranslationSettings();try{d&&this.setTranslationLoading(!0),await Promise.all([this.loadConfiguration(),(e=this.service)===null||e===void 0?void 0:e.getMap(d).then(p=>this.store.actions.map(p)),(t=this.service)===null||t===void 0?void 0:t.getToc(d).then(p=>this.store.actions.toc(p)),(o=this.service)===null||o===void 0?void 0:o.getPagesToc(d).then(p=>this.store.actions.pagesToc(p)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)),(a=this.service)===null||a===void 0?void 0:a.getFilteredTocNodes(d).then(p=>this.store.actions.filteredTocNodes(p)),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(d).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,d&&this.setTranslationLoading(!1)}catch(p){if(!(p instanceof pe))throw d&&this.setTranslationError(!0),(l=this.errorHandler)===null||l===void 0||l.call(this,p),p}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(t=>this.store.actions.configuration(t))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,t;let o=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var a;return i.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(i=>i.values);if(o!==void 0&&o.length>0){let i=await((t=this.service)===null||t===void 0?void 0:t.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,o)),a=i?.results.flatMap(s=>s.entries);this.store.actions.relatives(a)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Ye.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=C.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Xt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await mt(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=d?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData())}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var t;let o=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(e));o&&this.store.actions.setTopicsRating({[e]:o})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getAccurateNavigationData(e,t,o){return await this.awaitService(),this.service.getAccurateNavigationData(e,t?.number,o?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,o;let i=this.getTranslationSettings();return i?(this.sendTopicAiTranslateEvent(i.destinationLanguage,e),(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content))):(o=this.service)===null||o===void 0?void 0:o.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Ye.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var t,o,i;this.store.getState().relatives==null&&await this.fetchRelatives();let a=Xt.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e),s=li(a);if(s){let l=this.store.getState().visibleTopics[0],d=(t=this.store.getState().configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata;if(d&&l){let p=await((o=this.service)===null||o===void 0?void 0:o.getTopicMetadataValue(l,d));s=Cd(s,p)}}return s}sendDocumentOnDemandTranslateEvent(e){var t;let{editorMode:o,apiIntegrationIdentifier:i,apiIntegrationAppVersion:a}=C.getState(),s=this.store.getState(),l=s.map,d=s.translation.profileId;if(!(o||!l||!i||!a||!d))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(l),title:(t=l.untranslatedTitle)!==null&&t!==void 0?t:l.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:i,appVersion:a,sourceLanguage:this.parseLanguageToAnalyticsFormat(l.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:d,document:f,translationOrigin:xo.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,t){var o;let{editorMode:i,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=C.getState(),l=this.store.getState(),d=l.map,p=l.translation.profileId;if(!(i||!d||!a||!s||!p))try{let f=this.buildBreadcrumb(t.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(o=d.untranslatedTitle)!==null&&o!==void 0?o:d.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(b=>{var x;return{tocId:b.tocId,title:(x=b.untranslatedTitle)!==null&&x!==void 0?x:b.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let t=e.split("-");return t.length===2?{languageCode:t[0],countryCode:t[1]}:{languageCode:t[0],countryCode:""}}};var fn=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},hn=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},gn=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},mn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},yn=class extends Event{constructor(){super("ft-reader-map-not-found")}},bn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},vn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},xn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var wd=_`
|
|
135
|
+
`;var to;(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(to||(to={}));var Ah={setRequest:(r,e)=>{r.request=e.payload}},Od=r=>ke.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Ah,deprecatedKeys:["locales"]});var Sn=class extends X{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,i)=>o.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,i)=>o.localeCompare(i))}}).sort((t,o)=>t.key.localeCompare(o.key))}};var En=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},Cn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},wn=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o},composed:!0,bubbles:!0})}},ro=class r extends Event{constructor(){super(r.eventName)}};ro.eventName="search-context-clear-all-filters";var Rh=r=>r.request.virtualField===bt.TITLE_ONLY&&r.request.scope===Jt.DOCUMENTS,Th=r=>r.request.keywordMatch==nt.MANDATORY,oo=class r extends Tt{static build(e,t){return new r(Od(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new Yo(this.store.actions.recentQueries),this.onNewNeededRequest=o=>{o==to.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=o=>{o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let i;if(we(C.getState().session,B.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.updateLocales=(o=C.getState().availableContentLocales)=>{this.store.actions.locales(o),o.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new V(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest())),this.buildSearchRequest=(o=this.store.getState())=>{var i;return{...o.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new V(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest())),this.buildSuggestRequest=(o=this.store.getState())=>{var i,a;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(a=o.request.sort)!==null&&a!==void 0?a:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=C.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=t??new Sn,this.searchWatcher=new Qe(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Qe(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new Qe(C,o=>o.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new Qe(C,o=>{var i;return(i=o.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),C.addEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(C.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),C.removeEventListener(ve.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return C.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=fe(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t;let o=this.store.getState().request.contentLocale;return e!==o&&(e=r.findKnownContentLocale(e,o),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((t=C.getState().localesConfiguration)===null||t===void 0)&&t.searchLanguageSetsUiLanguage)&&e&&ln.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:t,localesConfiguration:o}=C.getState();if(t.length===0)return e[0];let i=s=>t.some(l=>l.lang==s);for(let s of e)if(i(s))return s;let a=o?.defaultLocales.defaultContentLocale;return a?`${a.lang}-${a.region}`:t[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:r.findKnownContentLocale(e)})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:Re(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let i=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:bt.TITLE_ONLY,scope:Jt.DOCUMENTS},!0):this.updateSearchRequest({virtualField:bt.EVERYWHERE,scope:Jt.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Rh(this.store.getState())}get keywordMatch(){return Th(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new ro)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(i=>i!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:o})}addPropagatedFacet(e){let t=new Set(this.store.getState().propagatedFacets);t.add(e),this.store.actions.propagatedFacets([...t])}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.dateFilter),...t.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(i=>!i.rangeFilter),...t.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var t,o,i,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(to.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=rt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof pe||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=rt(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof pe)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var Ya=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Xa=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Ad=Symbol("registerInterval"),Ja=Symbol("registerAttempts"),Ih=40,_h=Q(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var i,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=o.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ja]=0,this.tryToRegisterToContext(),this[Ad]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ja]>Ih?window.clearInterval(this[Ad]):(this[Ja]++,this.dispatchEvent(new Xa(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ya([H()],e.prototype,"stateManager",void 0),Ya([H({hasChanged:Ee})],e.prototype,"neededSearchRequests",void 0),Ya([S()],e.prototype,"searchRegistrationId",void 0),e}),Rd=class extends _h(ge){};function On(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function An(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var Rn=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,i])=>{if(!this.canSendEvent()||!o||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,i):this.sendDocumentSearchEvent(a,o,i)},this.eventsService=t??new yr,this.resultsWatcher=ca(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=C.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=C.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:On(e.metadataFilters),facets:e.metadataFilters.map(a=>An(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Ue.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:On(o.metadataFilters),facets:o.metadataFilters.map(s=>An(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,i;e.type==Ue.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yt.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:On(o.metadataFilters),facets:o.metadataFilters.map(s=>An(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Ue.MAP:return{id:e.map.mapId,title:e.map.title,type:ot.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Ue.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:ot.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Ue.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:ot.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case Ue.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:ot.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case Ue.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:ot.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=kr(e))===null||t===void 0?void 0:t.originUrl}};var j=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},U=class extends ge{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=oo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Rn(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(C)}render(){return $`
|
|
136
136
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
137
137
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
138
|
-
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
138
|
+
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Cn(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new wn(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var t;if(e.stopPropagation(),((t=e.detail)===null||t===void 0?void 0:t.registrationId)==this.registrationId){let o=e.composedPath()[0];this.register(o)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new En(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};U.elementDefinitions={};U.styles=wd;j([F({store:C.name})],U.prototype,"session",void 0);j([S()],U.prototype,"query",void 0);j([S()],U.prototype,"contentLocale",void 0);j([ie()],U.prototype,"pageSize",void 0);j([S({type:Boolean})],U.prototype,"searchInDocumentTitlesOnly",void 0);j([S()],U.prototype,"keywordMatch",void 0);j([S()],U.prototype,"scope",void 0);j([S()],U.prototype,"virtualField",void 0);j([S()],U.prototype,"registrationId",void 0);j([S({type:Boolean})],U.prototype,"ignoreEmptyQuery",void 0);j([S({type:Boolean})],U.prototype,"applyStickyFilters",void 0);j([F({store:C.name})],U.prototype,"openExternalDocumentInNewTab",void 0);j([he([])],U.prototype,"filters",void 0);j([S()],U.prototype,"sortId",void 0);j([he([])],U.prototype,"sort",void 0);j([he({})],U.prototype,"otherQueryParams",void 0);j([F({store:"search"})],U.prototype,"request",void 0);j([F({store:"search"})],U.prototype,"paging",void 0);j([F({store:"search",selector:r=>r.spellcheck})],U.prototype,"spellcheckAutocorrect",void 0);j([F({store:C.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],U.prototype,"_appIntegrationInfoReady",void 0);j([S({attribute:!1})],U.prototype,"searchServiceProvider",void 0);j([S({type:Boolean})],U.prototype,"disableAnalyticsEvents",void 0);var Td={"ft-search-context":U};oe(Td);var ce=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},es=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},K=class extends ge{constructor(){super(),this.metadataFilters=[],this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new V(5),this.navigationDebouncer=new V(10),this.mapLoadedEventDebouncer=new V(50),this.addStore(C)}render(){return $`
|
|
139
139
|
${this.importStyleIfNeeded()}
|
|
140
140
|
<ft-toc-filtering-search-context
|
|
141
141
|
disableAnalyticsEvents
|
|
@@ -151,7 +151,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
151
151
|
<style>
|
|
152
152
|
@import "${o}"
|
|
153
153
|
</style>
|
|
154
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
154
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=pn.build(this.id||ei(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.mapId]}},...this.metadataFilters]}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}window.FluidTopicsReaderService=new es(this.stateManager)}),C.addEventListener(ve.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),C.addEventListener(ve.eventName,this.updateConfiguration)}update(e){var t;super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider);let o=e.has("metadataFilters")&&e.get("metadataFilters")!=null;o&&this.stateManager.setFilters((t=this.metadataFilters)!==null&&t!==void 0?t:[]),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),e.has("session")?this.reload():o?this.stateManager.reloadFromFilter(this.section,this.page):["tocId","section","page","mapId","topicPivot"].some(i=>e.has(i))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new gn(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new hn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new xn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new bn):t.status===403?this.dispatchEvent(new vn):t.status===404?this.dispatchEvent(new yn):this.dispatchEvent(new mn(e))}reloadBookmarks(){Wa.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new fn(this.map,this.toc))})}};K.elementDefinitions={"ft-toc-filtering-search-context":U};K.styles=pd;ce([F({store:C.name})],K.prototype,"baseUrl",void 0);ce([F({store:C.name})],K.prototype,"session",void 0);ce([S()],K.prototype,"mapId",void 0);ce([S()],K.prototype,"tocId",void 0);ce([S()],K.prototype,"section",void 0);ce([S()],K.prototype,"topicPivot",void 0);ce([S()],K.prototype,"searchInDocumentQuery",void 0);ce([F({store:"reader",converter:mo([]),attribute:!0})],K.prototype,"metadataFilters",void 0);ce([ie({min:1})],K.prototype,"page",void 0);ce([F({store:"reader"})],K.prototype,"map",void 0);ce([F({store:"reader"})],K.prototype,"toc",void 0);ce([F({store:"reader"})],K.prototype,"visibleTopics",void 0);ce([F({store:"reader"})],K.prototype,"currentPage",void 0);ce([F({store:"reader"})],K.prototype,"scrollTarget",void 0);ce([S({attribute:!1})],K.prototype,"readerServiceProvider",void 0);ce([Fe("ft-toc-filtering-search-context")],K.prototype,"tocFilteringContext",void 0);var Id={"ft-reader-context":K};oe(Id);var Lh={position:n.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},_d=_`
|
|
155
155
|
:host {
|
|
156
156
|
position: absolute;
|
|
157
157
|
top: 0;
|
|
@@ -162,7 +162,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.ft-watermark-container {
|
|
165
|
-
position: ${
|
|
165
|
+
position: ${Lh.position};
|
|
166
166
|
top: 0;
|
|
167
167
|
text-align: center;
|
|
168
168
|
}
|
|
@@ -170,7 +170,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
170
170
|
.ft-watermark {
|
|
171
171
|
z-index: 79;
|
|
172
172
|
}
|
|
173
|
-
`;var
|
|
173
|
+
`;var kd=Symbol.for(""),kh=r=>{if(r?.r===kd)return r?._$litStatic$},ts=r=>({_$litStatic$:r,r:kd});var Ld=new Map,rs=r=>(e,...t)=>{let o=t.length,i,a,s=[],l=[],d,p=0,f=!1;for(;p<o;){for(d=e[p];p<o&&(a=t[p],(i=kh(a))!==void 0);)d+=i+e[++p],f=!0;p!==o&&l.push(a),s.push(d),p++}if(p===o&&s.push(e[o]),f){let h=s.join("$$lit$$");(e=Ld.get(h))===void 0&&(s.raw=s,Ld.set(h,e=s)),t=l}return r(e,...t)},os=rs($),UR=rs(Rr),BR=rs(Bn);var Tn;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(Tn||(Tn={}));var Nd=n.extend("--ft-typography-font-family","",So.titleFont),Xe=n.extend("--ft-typography-font-family","",So.contentFont),R={fontFamily:Xe,fontSize:n.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:n.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:n.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:n.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:n.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:n.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Ft={fontFamily:n.extend("--ft-typography-title-font-family","",Nd),fontSize:n.extend("--ft-typography-title-font-size","",R.fontSize,"20px"),fontWeight:n.extend("--ft-typography-title-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-letter-spacing","",R.letterSpacing,"0.15px"),lineHeight:n.extend("--ft-typography-title-line-height","",R.lineHeight,"1.2"),textTransform:n.extend("--ft-typography-title-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-text-decoration","",R.textDecoration,"inherit")},Mt={fontFamily:n.extend("--ft-typography-title-dense-font-family","",Nd),fontSize:n.extend("--ft-typography-title-dense-font-size","",R.fontSize,"14px"),fontWeight:n.extend("--ft-typography-title-dense-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-title-dense-letter-spacing","",R.letterSpacing,"0.105px"),lineHeight:n.extend("--ft-typography-title-dense-line-height","",R.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-title-dense-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-title-dense-text-decoration","",R.textDecoration,"inherit")},Dt={fontFamily:n.extend("--ft-typography-subtitle1-font-family","",Xe),fontSize:n.extend("--ft-typography-subtitle1-font-size","",R.fontSize,"16px"),fontWeight:n.extend("--ft-typography-subtitle1-font-weight","",R.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-subtitle1-letter-spacing","",R.letterSpacing,"0.144px"),lineHeight:n.extend("--ft-typography-subtitle1-line-height","",R.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-subtitle1-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle1-text-decoration","",R.textDecoration,"inherit")},Ut={fontFamily:n.extend("--ft-typography-subtitle2-font-family","",Xe),fontSize:n.extend("--ft-typography-subtitle2-font-size","",R.fontSize,"14px"),fontWeight:n.extend("--ft-typography-subtitle2-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-subtitle2-letter-spacing","",R.letterSpacing,"0.098px"),lineHeight:n.extend("--ft-typography-subtitle2-line-height","",R.lineHeight,"1.7"),textTransform:n.extend("--ft-typography-subtitle2-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-subtitle2-text-decoration","",R.textDecoration,"inherit")},Bt={fontFamily:n.extend("--ft-typography-body1-font-family","",Xe),fontSize:n.extend("--ft-typography-body1-font-size","",R.fontSize,"16px"),fontWeight:n.extend("--ft-typography-body1-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body1-letter-spacing","",R.letterSpacing,"0.496px"),lineHeight:n.extend("--ft-typography-body1-line-height","",R.lineHeight,"1.5"),textTransform:n.extend("--ft-typography-body1-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body1-text-decoration","",R.textDecoration,"inherit")},$t={fontFamily:n.extend("--ft-typography-body2-font-family","",Xe),fontSize:n.extend("--ft-typography-body2-font-size","",R.fontSize,"14px"),fontWeight:n.extend("--ft-typography-body2-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-body2-letter-spacing","",R.letterSpacing,"0.252px"),lineHeight:n.extend("--ft-typography-body2-line-height","",R.lineHeight,"1.4"),textTransform:n.extend("--ft-typography-body2-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-body2-text-decoration","",R.textDecoration,"inherit")},Ht={fontFamily:n.extend("--ft-typography-caption-font-family","",Xe),fontSize:n.extend("--ft-typography-caption-font-size","",R.fontSize,"12px"),fontWeight:n.extend("--ft-typography-caption-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-caption-letter-spacing","",R.letterSpacing,"0.396px"),lineHeight:n.extend("--ft-typography-caption-line-height","",R.lineHeight,"1.33"),textTransform:n.extend("--ft-typography-caption-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-caption-text-decoration","",R.textDecoration,"inherit")},Vt={fontFamily:n.extend("--ft-typography-breadcrumb-font-family","",Xe),fontSize:n.extend("--ft-typography-breadcrumb-font-size","",R.fontSize,"10px"),fontWeight:n.extend("--ft-typography-breadcrumb-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-breadcrumb-letter-spacing","",R.letterSpacing,"0.33px"),lineHeight:n.extend("--ft-typography-breadcrumb-line-height","",R.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-breadcrumb-text-transform","",R.textTransform,"inherit"),textDecoration:n.extend("--ft-typography-breadcrumb-text-decoration","",R.textDecoration,"inherit")},zt={fontFamily:n.extend("--ft-typography-overline-font-family","",Xe),fontSize:n.extend("--ft-typography-overline-font-size","",R.fontSize,"10px"),fontWeight:n.extend("--ft-typography-overline-font-weight","",R.fontWeight,"normal"),letterSpacing:n.extend("--ft-typography-overline-letter-spacing","",R.letterSpacing,"1.5px"),lineHeight:n.extend("--ft-typography-overline-line-height","",R.lineHeight,"1.6"),textTransform:n.extend("--ft-typography-overline-text-transform","",R.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-overline-text-decoration","",R.textDecoration,"inherit")},Wt={fontFamily:n.extend("--ft-typography-button-font-family","",Xe),fontSize:n.extend("--ft-typography-button-font-size","",R.fontSize,"14px"),fontWeight:n.extend("--ft-typography-button-font-weight","",R.fontWeight,"600"),letterSpacing:n.extend("--ft-typography-button-letter-spacing","",R.letterSpacing,"1.246px"),lineHeight:n.extend("--ft-typography-button-line-height","",R.lineHeight,"1.15"),textTransform:n.extend("--ft-typography-button-text-transform","",R.textTransform,"uppercase"),textDecoration:n.extend("--ft-typography-button-text-decoration","",R.textDecoration,"inherit")},Pd=_`
|
|
174
174
|
.ft-typography--title {
|
|
175
175
|
font-family: ${Ft.fontFamily};
|
|
176
176
|
font-size: ${Ft.fontSize};
|
|
@@ -180,7 +180,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
180
180
|
text-transform: ${Ft.textTransform};
|
|
181
181
|
text-decoration: ${Ft.textDecoration};
|
|
182
182
|
}
|
|
183
|
-
`,
|
|
183
|
+
`,Fd=_`
|
|
184
184
|
.ft-typography--title-dense {
|
|
185
185
|
font-family: ${Mt.fontFamily};
|
|
186
186
|
font-size: ${Mt.fontSize};
|
|
@@ -190,7 +190,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
190
190
|
text-transform: ${Mt.textTransform};
|
|
191
191
|
text-decoration: ${Mt.textDecoration};
|
|
192
192
|
}
|
|
193
|
-
`,
|
|
193
|
+
`,Md=_`
|
|
194
194
|
.ft-typography--subtitle1 {
|
|
195
195
|
font-family: ${Dt.fontFamily};
|
|
196
196
|
font-size: ${Dt.fontSize};
|
|
@@ -200,7 +200,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
200
200
|
text-transform: ${Dt.textTransform};
|
|
201
201
|
text-decoration: ${Dt.textDecoration};
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
`,Dd=_`
|
|
204
204
|
.ft-typography--subtitle2 {
|
|
205
205
|
font-family: ${Ut.fontFamily};
|
|
206
206
|
font-size: ${Ut.fontSize};
|
|
@@ -211,7 +211,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
211
211
|
text-decoration: ${Ut.textDecoration};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
`,
|
|
214
|
+
`,In=_`
|
|
215
215
|
.ft-typography--body1 {
|
|
216
216
|
font-family: ${Bt.fontFamily};
|
|
217
217
|
font-size: ${Bt.fontSize};
|
|
@@ -221,7 +221,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
221
221
|
text-transform: ${Bt.textTransform};
|
|
222
222
|
text-decoration: ${Bt.textDecoration};
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,Ud=_`
|
|
225
225
|
.ft-typography--body2 {
|
|
226
226
|
font-family: ${$t.fontFamily};
|
|
227
227
|
font-size: ${$t.fontSize};
|
|
@@ -231,7 +231,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
231
231
|
text-transform: ${$t.textTransform};
|
|
232
232
|
text-decoration: ${$t.textDecoration};
|
|
233
233
|
}
|
|
234
|
-
`,
|
|
234
|
+
`,Bd=_`
|
|
235
235
|
.ft-typography--caption {
|
|
236
236
|
font-family: ${Ht.fontFamily};
|
|
237
237
|
font-size: ${Ht.fontSize};
|
|
@@ -241,7 +241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
241
241
|
text-transform: ${Ht.textTransform};
|
|
242
242
|
text-decoration: ${Ht.textDecoration};
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
`,$d=_`
|
|
245
245
|
.ft-typography--breadcrumb {
|
|
246
246
|
font-family: ${Vt.fontFamily};
|
|
247
247
|
font-size: ${Vt.fontSize};
|
|
@@ -251,7 +251,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
251
251
|
text-transform: ${Vt.textTransform};
|
|
252
252
|
text-decoration: ${Vt.textDecoration};
|
|
253
253
|
}
|
|
254
|
-
`,
|
|
254
|
+
`,Hd=_`
|
|
255
255
|
.ft-typography--overline {
|
|
256
256
|
font-family: ${zt.fontFamily};
|
|
257
257
|
font-size: ${zt.fontSize};
|
|
@@ -261,7 +261,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
261
261
|
text-transform: ${zt.textTransform};
|
|
262
262
|
text-decoration: ${zt.textDecoration};
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
264
|
+
`,Vd=_`
|
|
265
265
|
.ft-typography--button {
|
|
266
266
|
font-family: ${Wt.fontFamily};
|
|
267
267
|
font-size: ${Wt.fontSize};
|
|
@@ -271,19 +271,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
271
271
|
text-transform: ${Wt.textTransform};
|
|
272
272
|
text-decoration: ${Wt.textDecoration};
|
|
273
273
|
}
|
|
274
|
-
`,
|
|
274
|
+
`,zd=_`
|
|
275
275
|
.ft-typography {
|
|
276
276
|
vertical-align: inherit;
|
|
277
277
|
}
|
|
278
|
-
`;var
|
|
279
|
-
<${
|
|
278
|
+
`;var Wd=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Gt=class extends Y{constructor(){super(...arguments),this.variant=Tn.body1}render(){return this.element?os`
|
|
279
|
+
<${ts(this.element)}
|
|
280
280
|
part="text"
|
|
281
281
|
class="ft-typography ft-typography--${this.variant}">
|
|
282
282
|
<slot></slot>
|
|
283
|
-
</${
|
|
284
|
-
`:
|
|
283
|
+
</${ts(this.element)}>
|
|
284
|
+
`:os`
|
|
285
285
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
286
|
-
`}};Gt.styles=[Dd,Ud,Bd,$d,
|
|
286
|
+
`}};Gt.styles=[Pd,Fd,Md,Dd,In,Ud,Bd,$d,Hd,Vd,zd];Wd([S()],Gt.prototype,"element",void 0);Wd([S()],Gt.prototype,"variant",void 0);var Gd={"ft-typography":Gt};oe(Gd);var _n=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Ne=class extends Y{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,t,o;return this.watermark?$`
|
|
287
287
|
<style>
|
|
288
288
|
.ft-watermark {
|
|
289
289
|
height: ${this.height}px;
|
|
@@ -302,7 +302,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
302
302
|
</text>
|
|
303
303
|
</svg>
|
|
304
304
|
</div>
|
|
305
|
-
`:D}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ne.styles=[
|
|
305
|
+
`:D}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let t=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",t.x+" "+t.y+" "+t.width+" "+t.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Ne.styles=[_d,In];_n([Fe(".ft-watermark")],Ne.prototype,"svg",void 0);_n([S({attribute:!1})],Ne.prototype,"watermark",void 0);_n([S({attribute:!1})],Ne.prototype,"heightReference",void 0);_n([H()],Ne.prototype,"height",void 0);var jd={"ft-content-watermark":Ne};oe(jd);var Oe=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},te=class extends hr{constructor(){super(...arguments),this.renderTopic=()=>$`
|
|
306
306
|
<ft-reader-topic-title></ft-reader-topic-title>
|
|
307
307
|
<ft-reader-topic-content></ft-reader-topic-content>
|
|
308
308
|
`,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,t)=>this.renderTopicInContext(e,t),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new V(50),this.visibleTopicsDebouncer=new V(50)}render(){var e,t;let o=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return $`
|
|
@@ -331,7 +331,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
331
331
|
headingStartLevel="${this.headingStartLevel}">
|
|
332
332
|
${this.renderTopic(e,t)}
|
|
333
333
|
</ft-reader-topic-context>
|
|
334
|
-
`}getScrollTarget(){var e,t,o;if(this.disableContextInteractions)return null;let i=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId);return!((o=this.scrollTarget)===null||o===void 0)&&o.tocId&&(!i||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var t;return(t=this.stateManager)===null||t===void 0?void 0:t.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var t;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setVisibleTopics(e.detail.items)}),(t=this.stateManager)===null||t===void 0||t.store.dispatchEvent(new Event(Ye.visibleTopicChange))}onScrollDone(){var e,t;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((t=this.stateManager)===null||t===void 0||t.scrollDone())}};te.elementDefinitions={"ft-infinite-scroll":W,"ft-content-watermark":Ne};te.styles=
|
|
334
|
+
`}getScrollTarget(){var e,t,o;if(this.disableContextInteractions)return null;let i=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId);return!((o=this.scrollTarget)===null||o===void 0)&&o.tocId&&(!i||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var t;return(t=this.stateManager)===null||t===void 0?void 0:t.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var t;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setVisibleTopics(e.detail.items)}),(t=this.stateManager)===null||t===void 0||t.store.dispatchEvent(new Event(Ye.visibleTopicChange))}onScrollDone(){var e,t;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((t=this.stateManager)===null||t===void 0||t.scrollDone())}};te.elementDefinitions={"ft-infinite-scroll":W,"ft-content-watermark":Ne};te.styles=ld;Oe([S()],te.prototype,"renderTopic",void 0);Oe([S({type:Boolean})],te.prototype,"disableContextInteractions",void 0);Oe([ie()],te.prototype,"headingLevelsShift",void 0);Oe([ie()],te.prototype,"headingStartLevel",void 0);Oe([F()],te.prototype,"currentPage",void 0);Oe([F()],te.prototype,"scrollTarget",void 0);Oe([F()],te.prototype,"visibleTopics",void 0);Oe([F({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderBeforeFirst",void 0);Oe([F({selector:r=>{var e,t;return(t=(e=r.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&t!==void 0?t:5}})],te.prototype,"renderAfterLast",void 0);Oe([F()],te.prototype,"mapId",void 0);Oe([Fe(".ft-reader-content")],te.prototype,"contentContainer",void 0);Oe([F({selector:r=>{var e;return(e=r.map)===null||e===void 0?void 0:e.watermark}})],te.prototype,"watermark",void 0);var Kd={"ft-reader-content":te};oe(Kd);})();
|
|
335
335
|
/*! Bundled license information:
|
|
336
336
|
|
|
337
337
|
.store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js:
|