@fluid-topics/ft-modal 2.2.32 → 2.2.33

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.
@@ -52,20 +52,10 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
52
52
  ${(0,Jn.unsafeHTML)(this.resolvedIcon)}
53
53
  <slot ?hidden=${o}></slot>
54
54
  </i>
55
- `}getTextContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let n=this.value||this.getTextContent();switch(this.variant){case Be.file_format:this.resolvedIcon=(t=b[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Be.material:this.resolvedIcon=this.value||Wt.nothing;break;default:this.resolvedIcon=(o=Et[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=Zn;Vt([(0,Fe.property)()],J.prototype,"variant",void 0);Vt([(0,Fe.property)()],J.prototype,"value",void 0);Vt([(0,Fe.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);Vt([(0,Fe.state)()],J.prototype,"resolvedIcon",void 0);Vt([(0,Fe.query)("slot")],J.prototype,"slottedContent",void 0);var ei=g(T());var Qn={"ft-icon":J};(0,ei.customElements)(Qn);var Bo=globalThis,ti=e=>e,Or=Bo.trustedTypes,ri=Or?Or.createPolicy("lit-html",{createHTML:e=>e}):void 0,ci="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,li="?"+$e,tl=`<${li}>`,Ye=document,Ar=()=>Ye.createComment(""),jt=e=>e===null||typeof e!="object"&&typeof e!="function",Fo=Array.isArray,rl=e=>Fo(e)||typeof e?.[Symbol.iterator]=="function",ko=`[
56
- \f\r]`,Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ni=/>/g,Ze=RegExp(`>|${ko}(?:([^\\s"'>=/]+)(${ko}*=${ko}*(?:[^
57
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ii=/'/g,ai=/"/g,di=/^(?:script|style|textarea|title)$/i,$o=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),ui=$o(1),pi=$o(2),fi=$o(3),Zt=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),si=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function hi(e,t){if(!Fo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ri!==void 0?ri.createHTML(t):t}var ol=(e,t)=>{let o=e.length-1,n=[],a,s=t===2?"<svg>":t===3?"<math>":"",c=Kt;for(let d=0;d<o;d++){let u=e[d],p,f,h=-1,y=0;for(;y<u.length&&(c.lastIndex=y,f=c.exec(u),f!==null);)y=c.lastIndex,c===Kt?f[1]==="!--"?c=oi:f[1]!==void 0?c=ni:f[2]!==void 0?(di.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=Ze):f[3]!==void 0&&(c=Ze):c===Ze?f[0]===">"?(c=a??Kt,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?Ze:f[3]==='"'?ai:ii):c===ai||c===ii?c=Ze:c===oi||c===ni?c=Kt:(c=Ze,a=void 0);let x=c===Ze&&e[d+1].startsWith("/>")?" ":"";s+=c===Kt?u+tl:h>=0?(n.push(p),u.slice(0,h)+ci+u.slice(h)+$e+x):u+$e+(h===-2?d:x)}return[hi(e,s+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},qt=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let s=0,c=0,d=t.length-1,u=this.parts,[p,f]=ol(t,o);if(this.el=e.createElement(p,n),qe.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=qe.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ci)){let y=f[c++],x=a.getAttribute(h).split($e),C=/([.?@])?(.*)/.exec(y);u.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?Po:C[1]==="?"?Do:C[1]==="@"?Mo:At}),a.removeAttribute(h)}else h.startsWith($e)&&(u.push({type:6,index:s}),a.removeAttribute(h));if(di.test(a.tagName)){let h=a.textContent.split($e),y=h.length-1;if(y>0){a.textContent=Or?Or.emptyScript:"";for(let x=0;x<y;x++)a.append(h[x],Ar()),qe.nextNode(),u.push({type:2,index:++s});a.append(h[y],Ar())}}}else if(a.nodeType===8)if(a.data===li)u.push({type:2,index:s});else{let h=-1;for(;(h=a.data.indexOf($e,h+1))!==-1;)u.push({type:7,index:s}),h+=$e.length-1}s++}}static createElement(t,o){let n=Ye.createElement("template");return n.innerHTML=t,n}};function Ot(e,t,o=e,n){if(t===Zt)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,s=jt(t)?void 0:t._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=Ot(e,a._$AS(e,t.values),a,n)),t}var Io=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??Ye).importNode(o,!0);qe.currentNode=a;let s=qe.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new wr(s,s.nextSibling,this,t):u.type===1?p=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(p=new Uo(s,this,t)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=qe.nextNode(),c++)}return qe.currentNode=Ye,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},wr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Ot(this,t,o),jt(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==Zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):rl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ye.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=qt.createElement(hi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let s=new Io(a,this),c=s.u(this.options);s.p(o),this.T(c),this._$AH=s}}_$AC(t){let o=si.get(t.strings);return o===void 0&&si.set(t.strings,o=new qt(t)),o}k(t){Fo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let s of t)a===o.length?o.push(n=new e(this.O(Ar()),this.O(Ar()),this,this.options)):n=o[a],n._$AI(s),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t!==this._$AB;){let n=ti(t).nextSibling;ti(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},At=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,o=this,n,a){let s=this.strings,c=!1;if(s===void 0)t=Ot(this,t,o,0),c=!jt(t)||t!==this._$AH&&t!==Zt,c&&(this._$AH=t);else{let d=t,u,p;for(t=s[0],u=0;u<s.length-1;u++)p=Ot(this,d[n+u],o,u),p===Zt&&(p=this._$AH[u]),c||=!jt(p)||p!==this._$AH[u],p===H?t=H:t!==H&&(t+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Po=class extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Do=class extends At{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},Mo=class extends At{constructor(t,o,n,a,s){super(t,o,n,a,s),this.type=5}_$AI(t,o=this){if((t=Ot(this,t,o,0)??H)===Zt)return;let n=this._$AH,a=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Uo=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ot(this,t)}};var nl=Bo.litHtmlPolyfillSupport;nl?.(qt,wr),(Bo.litHtmlVersions??=[]).push("3.3.3");var mi=Symbol.for(""),il=e=>{if(e?.r===mi)return e?._$litStatic$},Ho=e=>({_$litStatic$:e,r:mi});var yi=new Map,zo=e=>(t,...o)=>{let n=o.length,a,s,c=[],d=[],u,p=0,f=!1;for(;p<n;){for(u=t[p];p<n&&(s=o[p],(a=il(s))!==void 0);)u+=a+t[++p],f=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(t[n]),f){let h=c.join("$$lit$$");(t=yi.get(h))===void 0&&(c.raw=c,yi.set(h,t=c)),o=d}return e(t,...o)},Go=zo(ui),Py=zo(pi),Dy=zo(fi);var Wo=g(te()),Li=g(T());var Ae;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ae||(Ae={}));var de=g($()),m=g(T()),gi=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ke=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),S={fontFamily:ke,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Xe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",gi),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",S.textDecoration,"inherit")},Je={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",gi),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",S.textDecoration,"inherit")},Qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",S.textDecoration,"inherit")},et={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",S.textDecoration,"inherit")},tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",S.textDecoration,"inherit")},rt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",S.textDecoration,"inherit")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",S.textDecoration,"inherit")},nt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",S.textDecoration,"inherit")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",S.textDecoration,"inherit")},be={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",S.textDecoration,"inherit")},bi=de.css`
55
+ `}getTextContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let n=this.value||this.getTextContent();switch(this.variant){case Be.file_format:this.resolvedIcon=(t=b[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Be.material:this.resolvedIcon=this.value||Wt.nothing;break;default:this.resolvedIcon=(o=Et[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=Zn;Vt([(0,Fe.property)()],J.prototype,"variant",void 0);Vt([(0,Fe.property)()],J.prototype,"value",void 0);Vt([(0,Fe.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);Vt([(0,Fe.state)()],J.prototype,"resolvedIcon",void 0);Vt([(0,Fe.query)("slot")],J.prototype,"slottedContent",void 0);var ei=g(T());var Qn={"ft-icon":J};(0,ei.customElements)(Qn);var Bo=globalThis,ti=e=>e,Or=Bo.trustedTypes,ri=Or?Or.createPolicy("lit-html",{createHTML:e=>e}):void 0,ci="$lit$",$e=`lit$${Math.random().toFixed(9).slice(2)}$`,li="?"+$e,tl=`<${li}>`,Xe=document,Ar=()=>Xe.createComment(""),jt=e=>e===null||typeof e!="object"&&typeof e!="function",Fo=Array.isArray,rl=e=>Fo(e)||typeof e?.[Symbol.iterator]=="function",ko=`[
56
+ \f\r]`,Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ni=/>/g,qe=RegExp(`>|${ko}(?:([^\\s"'>=/]+)(${ko}*=${ko}*(?:[^
57
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ii=/'/g,ai=/"/g,di=/^(?:script|style|textarea|title)$/i,$o=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),ui=$o(1),pi=$o(2),fi=$o(3),Zt=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),si=new WeakMap,Ye=Xe.createTreeWalker(Xe,129);function hi(e,t){if(!Fo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ri!==void 0?ri.createHTML(t):t}var ol=(e,t)=>{let o=e.length-1,n=[],a,s=t===2?"<svg>":t===3?"<math>":"",c=Kt;for(let d=0;d<o;d++){let u=e[d],p,f,h=-1,y=0;for(;y<u.length&&(c.lastIndex=y,f=c.exec(u),f!==null);)y=c.lastIndex,c===Kt?f[1]==="!--"?c=oi:f[1]!==void 0?c=ni:f[2]!==void 0?(di.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=qe):f[3]!==void 0&&(c=qe):c===qe?f[0]===">"?(c=a??Kt,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?qe:f[3]==='"'?ai:ii):c===ai||c===ii?c=qe:c===oi||c===ni?c=Kt:(c=qe,a=void 0);let x=c===qe&&e[d+1].startsWith("/>")?" ":"";s+=c===Kt?u+tl:h>=0?(n.push(p),u.slice(0,h)+ci+u.slice(h)+$e+x):u+$e+(h===-2?d:x)}return[hi(e,s+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},qt=class e{constructor({strings:t,_$litType$:o},n){let a;this.parts=[];let s=0,c=0,d=t.length-1,u=this.parts,[p,f]=ol(t,o);if(this.el=e.createElement(p,n),Ye.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=Ye.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(ci)){let y=f[c++],x=a.getAttribute(h).split($e),C=/([.?@])?(.*)/.exec(y);u.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?Po:C[1]==="?"?Do:C[1]==="@"?Mo:At}),a.removeAttribute(h)}else h.startsWith($e)&&(u.push({type:6,index:s}),a.removeAttribute(h));if(di.test(a.tagName)){let h=a.textContent.split($e),y=h.length-1;if(y>0){a.textContent=Or?Or.emptyScript:"";for(let x=0;x<y;x++)a.append(h[x],Ar()),Ye.nextNode(),u.push({type:2,index:++s});a.append(h[y],Ar())}}}else if(a.nodeType===8)if(a.data===li)u.push({type:2,index:s});else{let h=-1;for(;(h=a.data.indexOf($e,h+1))!==-1;)u.push({type:7,index:s}),h+=$e.length-1}s++}}static createElement(t,o){let n=Xe.createElement("template");return n.innerHTML=t,n}};function Ot(e,t,o=e,n){if(t===Zt)return t;let a=n!==void 0?o._$Co?.[n]:o._$Cl,s=jt(t)?void 0:t._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(t=Ot(e,a._$AS(e,t.values),a,n)),t}var Io=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:n}=this._$AD,a=(t?.creationScope??Xe).importNode(o,!0);Ye.currentNode=a;let s=Ye.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new wr(s,s.nextSibling,this,t):u.type===1?p=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(p=new Uo(s,this,t)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ye.nextNode(),c++)}return Ye.currentNode=Xe,a}p(t){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,o),o+=n.strings.length-2):n._$AI(t[o])),o++}},wr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Ot(this,t,o),jt(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==Zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):rl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&jt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Xe.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:n}=t,a=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=qt.createElement(hi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let s=new Io(a,this),c=s.u(this.options);s.p(o),this.T(c),this._$AH=s}}_$AC(t){let o=si.get(t.strings);return o===void 0&&si.set(t.strings,o=new qt(t)),o}k(t){Fo(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let s of t)a===o.length?o.push(n=new e(this.O(Ar()),this.O(Ar()),this,this.options)):n=o[a],n._$AI(s),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t!==this._$AB;){let n=ti(t).nextSibling;ti(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},At=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,n,a,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=o,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,o=this,n,a){let s=this.strings,c=!1;if(s===void 0)t=Ot(this,t,o,0),c=!jt(t)||t!==this._$AH&&t!==Zt,c&&(this._$AH=t);else{let d=t,u,p;for(t=s[0],u=0;u<s.length-1;u++)p=Ot(this,d[n+u],o,u),p===Zt&&(p=this._$AH[u]),c||=!jt(p)||p!==this._$AH[u],p===H?t=H:t!==H&&(t+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Po=class extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Do=class extends At{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},Mo=class extends At{constructor(t,o,n,a,s){super(t,o,n,a,s),this.type=5}_$AI(t,o=this){if((t=Ot(this,t,o,0)??H)===Zt)return;let n=this._$AH,a=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Uo=class{constructor(t,o,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ot(this,t)}};var nl=Bo.litHtmlPolyfillSupport;nl?.(qt,wr),(Bo.litHtmlVersions??=[]).push("3.3.3");var mi=Symbol.for(""),il=e=>{if(e?.r===mi)return e?._$litStatic$},Ho=e=>({_$litStatic$:e,r:mi});var yi=new Map,zo=e=>(t,...o)=>{let n=o.length,a,s,c=[],d=[],u,p=0,f=!1;for(;p<n;){for(u=t[p];p<n&&(s=o[p],(a=il(s))!==void 0);)u+=a+t[++p],f=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(t[n]),f){let h=c.join("$$lit$$");(t=yi.get(h))===void 0&&(c.raw=c,yi.set(h,t=c)),o=d}return e(t,...o)},Go=zo(ui),Py=zo(pi),Dy=zo(fi);var Wo=g(te()),Li=g(T());var Ae;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(Ae||(Ae={}));var de=g($()),m=g(T()),gi=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ke=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),S={fontFamily:ke,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Je={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",gi),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",S.textDecoration,"inherit")},Qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",gi),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",S.textDecoration,"inherit")},et={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",S.textDecoration,"inherit")},tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",S.textDecoration,"inherit")},rt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",S.textDecoration,"inherit")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",S.textDecoration,"inherit")},nt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",S.textDecoration,"inherit")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",S.textDecoration,"inherit")},at={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",S.textDecoration,"inherit")},be={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ke),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",S.textDecoration,"inherit")},bi=de.css`
58
58
  .ft-typography--title {
59
- font-family: ${Xe.fontFamily};
60
- font-size: ${Xe.fontSize};
61
- font-weight: ${Xe.fontWeight};
62
- letter-spacing: ${Xe.letterSpacing};
63
- line-height: ${Xe.lineHeight};
64
- text-transform: ${Xe.textTransform};
65
- text-decoration: ${Xe.textDecoration};
66
- }
67
- `,xi=de.css`
68
- .ft-typography--title-dense {
69
59
  font-family: ${Je.fontFamily};
70
60
  font-size: ${Je.fontSize};
71
61
  font-weight: ${Je.fontWeight};
@@ -74,8 +64,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
74
64
  text-transform: ${Je.textTransform};
75
65
  text-decoration: ${Je.textDecoration};
76
66
  }
77
- `,Si=de.css`
78
- .ft-typography--subtitle1 {
67
+ `,xi=de.css`
68
+ .ft-typography--title-dense {
79
69
  font-family: ${Qe.fontFamily};
80
70
  font-size: ${Qe.fontSize};
81
71
  font-weight: ${Qe.fontWeight};
@@ -84,8 +74,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
84
74
  text-transform: ${Qe.textTransform};
85
75
  text-decoration: ${Qe.textDecoration};
86
76
  }
87
- `,vi=de.css`
88
- .ft-typography--subtitle2 {
77
+ `,Si=de.css`
78
+ .ft-typography--subtitle1 {
89
79
  font-family: ${et.fontFamily};
90
80
  font-size: ${et.fontSize};
91
81
  font-weight: ${et.fontWeight};
@@ -94,9 +84,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
94
84
  text-transform: ${et.textTransform};
95
85
  text-decoration: ${et.textDecoration};
96
86
  }
97
-
98
- `,Ci=de.css`
99
- .ft-typography--body1 {
87
+ `,vi=de.css`
88
+ .ft-typography--subtitle2 {
100
89
  font-family: ${tt.fontFamily};
101
90
  font-size: ${tt.fontSize};
102
91
  font-weight: ${tt.fontWeight};
@@ -105,8 +94,9 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
105
94
  text-transform: ${tt.textTransform};
106
95
  text-decoration: ${tt.textDecoration};
107
96
  }
108
- `,Ei=de.css`
109
- .ft-typography--body2 {
97
+
98
+ `,Ci=de.css`
99
+ .ft-typography--body1 {
110
100
  font-family: ${rt.fontFamily};
111
101
  font-size: ${rt.fontSize};
112
102
  font-weight: ${rt.fontWeight};
@@ -115,8 +105,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
115
105
  text-transform: ${rt.textTransform};
116
106
  text-decoration: ${rt.textDecoration};
117
107
  }
118
- `,Oi=de.css`
119
- .ft-typography--caption {
108
+ `,Ei=de.css`
109
+ .ft-typography--body2 {
120
110
  font-family: ${ot.fontFamily};
121
111
  font-size: ${ot.fontSize};
122
112
  font-weight: ${ot.fontWeight};
@@ -125,8 +115,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
125
115
  text-transform: ${ot.textTransform};
126
116
  text-decoration: ${ot.textDecoration};
127
117
  }
128
- `,Ai=de.css`
129
- .ft-typography--breadcrumb {
118
+ `,Oi=de.css`
119
+ .ft-typography--caption {
130
120
  font-family: ${nt.fontFamily};
131
121
  font-size: ${nt.fontSize};
132
122
  font-weight: ${nt.fontWeight};
@@ -135,8 +125,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
135
125
  text-transform: ${nt.textTransform};
136
126
  text-decoration: ${nt.textDecoration};
137
127
  }
138
- `,wi=de.css`
139
- .ft-typography--overline {
128
+ `,Ai=de.css`
129
+ .ft-typography--breadcrumb {
140
130
  font-family: ${it.fontFamily};
141
131
  font-size: ${it.fontSize};
142
132
  font-weight: ${it.fontWeight};
@@ -145,6 +135,16 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
145
135
  text-transform: ${it.textTransform};
146
136
  text-decoration: ${it.textDecoration};
147
137
  }
138
+ `,wi=de.css`
139
+ .ft-typography--overline {
140
+ font-family: ${at.fontFamily};
141
+ font-size: ${at.fontSize};
142
+ font-weight: ${at.fontWeight};
143
+ letter-spacing: ${at.letterSpacing};
144
+ line-height: ${at.lineHeight};
145
+ text-transform: ${at.textTransform};
146
+ text-decoration: ${at.textDecoration};
147
+ }
148
148
  `,_i=de.css`
149
149
  .ft-typography--button {
150
150
  font-family: ${be.fontFamily};
@@ -167,10 +167,10 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
167
167
  </${Ho(this.element)}>
168
168
  `:Go`
169
169
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
170
- `}};ie.styles=[bi,xi,Si,vi,Ci,Ei,Oi,Ai,wi,_i,Ri];Ti([(0,Wo.property)()],ie.prototype,"element",void 0);Ti([(0,Wo.property)()],ie.prototype,"variant",void 0);var ki=g(T());var Ni={"ft-typography":ie};(0,ki.customElements)(Ni);var fn=g(te());var Ii=g(te(),1);var Vo=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},al=e=>({fromAttribute:t=>{if(t==null)return Yt(e);try{return JSON.parse(t)}catch{return Yt(e)}},toAttribute:t=>JSON.stringify(t)});function Pi(e,t){return(0,Ii.property)({type:Object,converter:al(e),hasChanged:Xt,...t??{}})}function sl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!wt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=c=>Object.keys(c).filter(d=>c[d]!=null),s=a(e);if(o=s.length,o!==a(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=o;n--!==0;){let c=s[n];if(!wt(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wt(e,t){try{return sl(e,t)}catch{return!1}}function Xt(e,t){return!wt(e,t)}function Yt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function _r(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var Di=g(te(),1);var Ko=e=>{let t=e??{};return(o,n)=>{var a;let s={hasChanged:Xt,attribute:!1,...t};(0,Di.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:(d=>d[n]),store:t.store})}};var Rr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var at=g(te(),1);var Tr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(o=this.resolvePromise)!==null&&o!==void 0?o:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Nr=g($(),1);var Lr=class extends Nr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return(0,Nr.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([o,n])=>this.defineScopedElement(o,n))}static defineScopedElement(t,o){Vo(t)(o),this.canDefineScopedElement(t)&&this.registry.define(t,o)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,o){this.scopedRegistryConstructor.defineScopedElement(t,o)}};function Mi(e,t,...o){var n;let a=e.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Rt=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},$i,Ui=Symbol("constructorPrototype"),Bi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer"),Fi=Symbol("dynamicDependenciesLoaded"),_t=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};_t.eventName="exportparts-updated";var we=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$i]=new Tr(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Hi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Bi]=this.constructor.name,this[Ui]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Bi]&&Object.setPrototypeOf(this,this[Ui])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Fi]||(o[Fi]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(_t.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(_t.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new _t)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=Mi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var o,n,a,s,c,d;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let y of(s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let x=(c=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&c!==void 0?c:[],C=(d=(a=y.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[],A=[...x,...C].filter(u).map(v=>v.trim());for(let v of A)f.add(v)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(y=>p.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...h].join(", ")}};$i=Hi;Rt([(0,at.property)()],we.prototype,"exportpartsPrefix",void 0);Rt([Pi([])],we.prototype,"exportpartsPrefixes",void 0);Rt([(0,at.property)({reflect:!0})],we.prototype,"exportparts",void 0);Rt([(0,at.property)()],we.prototype,"customStylesheet",void 0);Rt([(0,at.property)()],we.prototype,"elementToFocus",void 0);Rt([(0,at.state)()],we.prototype,"useAdoptedStyleSheets",void 0);function kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Jt=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),st=Symbol("internalStores"),cl=_r(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[st].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[st].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[st].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[st].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[st].delete(d)}setupStores(){this.unsubscribeFromStores(),this[st].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[He].has(c.store):this[He].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u,p;this[He].set(c,d.subscribe(()=>this.updateFromStores())),this[Jt].set(c,[]),kr(d)&&(!((u=d.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===d&&d.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",d.name)}),d.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||d.name===f.store)){let y=x=>this[h](x);d.addEventListener(f.eventName,y),this[Jt].get(c).push(()=>d.removeEventListener(f.eventName,y))}}))),this.onStoreAvailable(c)}unsubscribeFromStores(){this[He].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[He].has(c)&&this[He].get(c)(),this[He].delete(c),(d=this[Jt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Jt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=He,o=st,n=Jt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),zi=class extends cl(we){};function Z(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ll=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gi=ll,jo=()=>Math.random().toString(36).substring(7).split("").join("."),dl={INIT:`@@redux/INIT${jo()}`,REPLACE:`@@redux/REPLACE${jo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jo()}`},Ir=dl;function Pr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Zo(e,t,o){if(typeof e!="function")throw new Error(Z(2));if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(Zo)(e,t)}let n=e,a=t,s=new Map,c=s,d=0,u=!1;function p(){c===s&&(c=new Map,s.forEach((v,_)=>{c.set(_,v)}))}function f(){if(u)throw new Error(Z(3));return a}function h(v){if(typeof v!="function")throw new Error(Z(4));if(u)throw new Error(Z(5));let _=!0;p();let I=d++;return c.set(I,v),function(){if(_){if(u)throw new Error(Z(6));_=!1,p(),c.delete(I),s=null}}}function y(v){if(!Pr(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(typeof v.type!="string")throw new Error(Z(17));if(u)throw new Error(Z(9));try{u=!0,a=n(a,v)}finally{u=!1}return(s=c).forEach(I=>{I()}),v}function x(v){if(typeof v!="function")throw new Error(Z(10));n=v,y({type:Ir.REPLACE})}function C(){let v=h;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Z(11));function I(){let O=_;O.next&&O.next(f())}return I(),{unsubscribe:v(I)}},[Gi](){return this}}}return y({type:Ir.INIT}),{dispatch:y,subscribe:h,getState:f,replaceReducer:x,[Gi]:C}}function ul(e){Object.keys(e).forEach(t=>{let o=e[t];if(typeof o(void 0,{type:Ir.INIT})>"u")throw new Error(Z(12));if(typeof o(void 0,{type:Ir.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function qo(e){let t=Object.keys(e),o={};for(let c=0;c<t.length;c++){let d=t[c];typeof e[d]=="function"&&(o[d]=e[d])}let n=Object.keys(o),a,s;try{ul(o)}catch(c){s=c}return function(d={},u){if(s)throw s;let p=!1,f={};for(let h=0;h<n.length;h++){let y=n[h],x=o[y],C=d[y],A=x(C,u);if(typeof A>"u"){let v=u&&u.type;throw new Error(Z(14))}f[y]=A,p=p||A!==C}return p=p||n.length!==Object.keys(d).length,p?f:d}}function Qt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...n)=>t(o(...n)))}function Wi(...e){return t=>(o,n)=>{let a=t(o,n),s=()=>{throw new Error(Z(15))},c={getState:a.getState,dispatch:(u,...p)=>s(u,...p)},d=e.map(u=>u(c));return s=Qt(...d)(a.dispatch),{...a,dispatch:s}}}function Vi(e){return Pr(e)&&"type"in e&&typeof e.type=="string"}var ea=Symbol.for("immer-nothing"),Ki=Symbol.for("immer-draftable"),X=Symbol.for("immer-state");function xe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ae=Object,Lt=ae.getPrototypeOf,Br="constructor",Wr="prototype",Qo="configurable",Fr="enumerable",Mr="writable",er="value",_e=e=>!!e&&!!e[X];function se(e){return e?ta(e)||Kr(e)||!!e[Ki]||!!e[Br]?.[Ki]||jr(e)||Zr(e):!1}var pl=ae[Wr][Br].toString(),ji=new WeakMap;function ta(e){if(!e||!cn(e))return!1;let t=Lt(e);if(t===null||t===ae[Wr])return!0;let o=ae.hasOwnProperty.call(t,Br)&&t[Br];if(o===Object)return!0;if(!Tt(o))return!1;let n=ji.get(o);return n===void 0&&(n=Function.toString.call(o),ji.set(o,n)),n===pl}function Vr(e,t,o=!0){or(e)===0?(o?Reflect.ownKeys(e):ae.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function or(e){let t=e[X];return t?t.type_:Kr(e)?1:jr(e)?2:Zr(e)?3:0}var Yo=(e,t,o=or(e))=>o===2?e.has(t):ae[Wr].hasOwnProperty.call(e,t),en=(e,t,o=or(e))=>o===2?e.get(t):e[t],$r=(e,t,o,n=or(e))=>{n===2?e.set(t,o):n===3?e.add(o):e[t]=o};function fl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Kr=Array.isArray,jr=e=>e instanceof Map,Zr=e=>e instanceof Set,cn=e=>typeof e=="object",Tt=e=>typeof e=="function",Xo=e=>typeof e=="boolean";function hl(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ie=e=>e.copy_||e.base_;var ln=e=>e.modified_?e.copy_:e.base_;function tn(e,t){if(jr(e))return new Map(e);if(Zr(e))return new Set(e);if(Kr(e))return Array[Wr].slice.call(e);let o=ta(e);if(t===!0||t==="class_only"&&!o){let n=ae.getOwnPropertyDescriptors(e);delete n[X];let a=Reflect.ownKeys(n);for(let s=0;s<a.length;s++){let c=a[s],d=n[c];d[Mr]===!1&&(d[Mr]=!0,d[Qo]=!0),(d.get||d.set)&&(n[c]={[Qo]:!0,[Mr]:!0,[Fr]:d[Fr],[er]:e[c]})}return ae.create(Lt(e),n)}else{let n=Lt(e);if(n!==null&&o)return{...e};let a=ae.create(n);return ae.assign(a,e)}}function qr(e,t=!1){return Yr(e)||_e(e)||!se(e)||(or(e)>1&&ae.defineProperties(e,{set:Dr,add:Dr,clear:Dr,delete:Dr}),ae.freeze(e),t&&Vr(e,(o,n)=>{qr(n,!0)},!1)),e}function yl(){xe(2)}var Dr={[er]:yl};function Yr(e){return e===null||!cn(e)?!0:ae.isFrozen(e)}var Hr="MapSet",rn="Patches",Zi="ArrayMethods",ra={};function ct(e){let t=ra[e];return t||xe(0,e),t}var qi=e=>!!ra[e];var tr,oa=()=>tr,ml=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qi(Hr)?ct(Hr):void 0,arrayMethodsPlugin_:qi(Zi)?ct(Zi):void 0});function Yi(e,t){t&&(e.patchPlugin_=ct(rn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function on(e){nn(e),e.drafts_.forEach(gl),e.drafts_=null}function nn(e){e===tr&&(tr=e.parent_)}var Xi=e=>tr=ml(tr,e);function gl(e){let t=e[X];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ji(e,t){t.unfinalizedDrafts_=t.drafts_.length;let o=t.drafts_[0];if(e!==void 0&&e!==o){o[X].modified_&&(on(t),xe(4)),se(e)&&(e=Qi(t,e));let{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(o[X].base_,e,t)}else e=Qi(t,o);return bl(t,e,!0),on(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ea?e:void 0}function Qi(e,t){if(Yr(t))return t;let o=t[X];if(!o)return zr(t,e.handledSet_,e);if(!Xr(o,e))return t;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(e);aa(o,e)}return o.copy_}function bl(e,t,o=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qr(t,o)}function na(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xr=(e,t)=>e.scope_===t,xl=[];function ia(e,t,o,n){let a=Ie(e),s=e.type_;if(n!==void 0&&en(a,n,s)===t){$r(a,n,o,s);return}if(!e.draftLocations_){let d=e.draftLocations_=new Map;Vr(a,(u,p)=>{if(_e(p)){let f=d.get(p)||[];f.push(u),d.set(p,f)}})}let c=e.draftLocations_.get(t)??xl;for(let d of c)$r(a,d,o,s)}function Sl(e,t,o){e.callbacks_.push(function(a){let s=t;if(!s||!Xr(s,a))return;a.mapSetPlugin_?.fixSetContents(s);let c=ln(s);ia(e,s.draft_??s,c,o),aa(s,a)})}function aa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let a=n.getPath(e);a&&n.generatePatches_(e,a,t)}na(e)}}function vl(e,t,o){let{scope_:n}=e;if(_e(o)){let a=o[X];Xr(a,n)&&a.callbacks_.push(function(){Ur(e);let c=ln(a);ia(e,o,c,t)})}else se(o)&&e.callbacks_.push(function(){let s=Ie(e);e.type_===3?s.has(o)&&zr(o,n.handledSet_,n):en(s,t,e.type_)===o&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&zr(en(e.copy_,t,e.type_),n.handledSet_,n)})}function zr(e,t,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||_e(e)||t.has(e)||!se(e)||Yr(e)||(t.add(e),Vr(e,(n,a)=>{if(_e(a)){let s=a[X];if(Xr(s,o)){let c=ln(s);$r(e,n,c,e.type_),na(s)}}else se(a)&&zr(a,t,o)})),e}function Cl(e,t){let o=Kr(e),n={type_:o?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=n,s=Gr;o&&(a=[n],s=rr);let{revoke:c,proxy:d}=Proxy.revocable(a,s);return n.draft_=d,n.revoke_=c,[d,n]}var Gr={get(e,t){if(t===X)return e;let o=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&o?.isArrayOperationMethod(t))return o.createMethodInterceptor(e,t);let a=Ie(e);if(!Yo(a,t,e.type_))return Ol(e,a,t);let s=a[t];if(e.finalized_||!se(s)||n&&e.operationMethod&&o?.isMutatingArrayMethod(e.operationMethod)&&hl(t))return s;if(s===Jo(e.base_,t)||El(e,t,s)){Ur(e);let c=e.type_===1?+t:t,d=sn(e.scope_,s,e,c);return e.copy_[c]=d}return s},has(e,t){return t in Ie(e)},ownKeys(e){return Reflect.ownKeys(Ie(e))},set(e,t,o){let n=sa(Ie(e),t);if(n?.set)return n.set.call(e.draft_,o),!0;if(!e.modified_){let a=Jo(Ie(e),t),s=a?.[X];if(s&&s.base_===o)return e.copy_[t]=o,e.assigned_.delete(t),!0;if(fl(o,a)&&(o!==void 0||Yo(e.base_,t,e.type_)))return!0;Ur(e),an(e)}return e.copy_[t]===o&&(o!==void 0||Yo(e.copy_,t,e.type_))||Number.isNaN(o)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=o,e.assigned_.set(t,!0),vl(e,t,o)),!0},deleteProperty(e,t){return Ur(e),Jo(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),an(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let o=Ie(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{[Mr]:!0,[Qo]:e.type_!==1||t!=="length",[Fr]:n[Fr],[er]:o[t]}},defineProperty(){xe(11)},getPrototypeOf(e){return Lt(e.base_)},setPrototypeOf(){xe(12)}},rr={};for(let e in Gr){let t=Gr[e];rr[e]=function(){let o=arguments;return o[0]=o[0][0],t.apply(this,o)}}rr.deleteProperty=function(e,t){return rr.set.call(this,e,t,void 0)};rr.set=function(e,t,o){return Gr.set.call(this,e[0],t,o,e[0])};function Jo(e,t){let o=e[X];return(o?Ie(o):e)[t]}function El(e,t,o){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!se(o)||o[X]?!1:e.baseRefs_.has(o)}function Ol(e,t,o){let n=sa(t,o);return n?er in n?n[er]:n.get?.call(e.draft_):void 0}function sa(e,t){if(!(t in e))return;let o=Lt(e);for(;o;){let n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Lt(o)}}function an(e){e.modified_||(e.modified_=!0,e.parent_&&an(e.parent_))}function Ur(e){e.copy_||(e.assigned_=new Map,e.copy_=tn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Al=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,o,n)=>{if(Tt(t)&&!Tt(o)){let s=o;o=t;let c=this;return function(u=s,...p){return c.produce(u,f=>o.call(this,f,...p))}}Tt(o)||xe(6),n!==void 0&&!Tt(n)&&xe(7);let a;if(se(t)){let s=Xi(this),c=sn(s,t,void 0),d=!0;try{a=o(c),d=!1}finally{d?on(s):nn(s)}return Yi(s,n),Ji(a,s)}else if(!t||!cn(t)){if(a=o(t),a===void 0&&(a=t),a===ea&&(a=void 0),this.autoFreeze_&&qr(a,!0),n){let s=[],c=[];ct(rn).generateReplacementPatches_(t,a,{patches_:s,inversePatches_:c}),n(s,c)}return a}else xe(1,t)},this.produceWithPatches=(t,o)=>{if(Tt(t))return(c,...d)=>this.produceWithPatches(c,u=>t(u,...d));let n,a;return[this.produce(t,o,(c,d)=>{n=c,a=d}),n,a]},Xo(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Xo(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Xo(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){se(e)||xe(8),_e(e)&&(e=ca(e));let t=Xi(this),o=sn(t,e,void 0);return o[X].isManual_=!0,nn(t),o}finishDraft(e,t){let o=e&&e[X];(!o||!o.isManual_)&&xe(9);let{scope_:n}=o;return Yi(n,t),Ji(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let o;for(o=t.length-1;o>=0;o--){let a=t[o];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}o>-1&&(t=t.slice(o+1));let n=ct(rn).applyPatches_;return _e(e)?n(e,t):this.produce(e,a=>n(a,t))}};function sn(e,t,o,n){let[a,s]=jr(t)?ct(Hr).proxyMap_(t,o):Zr(t)?ct(Hr).proxySet_(t,o):Cl(t,o);return(o?.scope_??oa()).drafts_.push(a),s.callbacks_=o?.callbacks_??[],s.key_=n,o&&n!==void 0?Sl(o,s,n):s.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:p}=u;s.modified_&&p&&p.generatePatches_(s,[],u)}),a}function ca(e){return _e(e)||xe(10,e),la(e)}function la(e){if(!se(e)||Yr(e))return e;let t=e[X],o,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,o=tn(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else o=tn(e,!0);return Vr(o,(a,s)=>{$r(o,a,la(s))},n),t&&(t.finalized_=!1),o}var wl=globalThis.Iterator,Cm=typeof wl?.from=="function";var _l=new Al,dn=_l.produce;function da(e){return({dispatch:o,getState:n})=>a=>s=>typeof s=="function"?s(o,n,e):a(s)}var ua=da(),pa=da;var Rl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qt:Qt.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Tl=e=>e&&typeof e.match=="function";function ze(e,t){function o(...n){if(t){let a=t(...n);if(!a)throw new Error(Re(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return o.toString=()=>`${e}`,o.type=e,o.match=n=>Vi(n)&&n.type===e,o}var ga=class nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nr.prototype)}static get[Symbol.species](){return nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nr(...t[0].concat(this)):new nr(...t.concat(this))}};function fa(e){return se(e)?dn(e,()=>{}):e}function Jr(e,t,o){return e.has(t)?e.get(t):e.set(t,o(t)).get(t)}function Ll(e){return typeof e=="boolean"}var Nl=()=>function(t){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:s=!0}=t??{},c=new ga;return o&&(Ll(o)?c.push(ua):c.push(pa(o.extraArgument))),c},kl="RTK_autoBatch";var ha=e=>t=>{setTimeout(t,e)},Il=(e,t)=>o=>{let n=!1,a,s,c=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())};a=e(c),s=setTimeout(c,t)},Pl=(e={type:"raf"})=>t=>(...o)=>{let n=t(...o),a=!0,s=!1,c=!1,d=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Il(window.requestAnimationFrame,100):ha(10):e.type==="callback"?e.queueNotification:ha(e.timeout),p=()=>{c=!1,s&&(s=!1,d.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){let h=()=>a&&f(),y=n.subscribe(h);return d.add(f),()=>{y(),d.delete(f)}},dispatch(f){try{return a=!f?.meta?.[kl],s=!a,s&&(c||(c=!0,u(p))),n.dispatch(f)}finally{a=!0}}})},Dl=e=>function(o){let{autoBatch:n=!0}=o??{},a=new ga(e);return n&&a.push(Pl(typeof n=="object"?n:void 0)),a};function ba(e){let t=Nl(),{reducer:o=void 0,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{},u;if(typeof o=="function")u=o;else if(Pr(o))u=qo(o);else throw new Error(Re(1));let p;typeof n=="function"?p=n(t):p=t();let f=Qt;a&&(f=Rl({trace:!1,...typeof a=="object"&&a}));let h=Wi(...p),y=Dl(h),x=typeof d=="function"?d(y):y(),C=f(...x);return Zo(u,c,C)}function xa(e){let t={},o=[],n,a={addCase(s,c){let d=typeof s=="string"?s:s.type;if(!d)throw new Error(Re(28));if(d in t)throw new Error(Re(29));return t[d]=c,a},addAsyncThunk(s,c){return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&o.push({matcher:s.settled,reducer:c.settled}),a},addMatcher(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase(s){return n=s,a}};return e(a),[t,o,n]}function Ml(e){return typeof e=="function"}function Ul(e,t){let[o,n,a]=xa(t),s;if(Ml(e))s=()=>fa(e());else{let d=fa(e);s=()=>d}function c(d=s(),u){let p=[o[u.type],...n.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[a]),p.reduce((f,h)=>{if(h)if(_e(f)){let y=h(f,u);return y===void 0?f:y}else{if(se(f))return dn(f,y=>h(y,u));{let y=h(f,u);if(y===void 0){if(f===null)return f;throw new Error(Re(9))}return y}}return f},d)}return c.getInitialState=s,c}var Bl=(e,t)=>Tl(e)?e.match(t):e(t);function Fl(...e){return t=>e.some(o=>Bl(o,t))}var $l="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hl=(e=21)=>{let t="",o=e;for(;o--;)t+=$l[Math.random()*64|0];return t},zl=["name","message","stack","code"],un=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},ya=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Gl=e=>{if(typeof e=="object"&&e!==null){let t={};for(let o of zl)typeof e[o]=="string"&&(t[o]=e[o]);return t}return{message:String(e)}},ma="External signal was aborted",Wl=(()=>{function e(t,o,n){let a=ze(t+"/fulfilled",(u,p,f,h)=>({payload:u,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),s=ze(t+"/pending",(u,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:u,requestStatus:"pending"}})),c=ze(t+"/rejected",(u,p,f,h,y)=>({payload:h,error:(n&&n.serializeError||Gl)(u||"Rejected"),meta:{...y||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function d(u,{signal:p}={}){return(f,h,y)=>{let x=n?.idGenerator?n.idGenerator(u):Hl(),C=new AbortController,A,v;function _(E){v=E,C.abort()}p&&(p.aborted?_(ma):p.addEventListener("abort",()=>_(ma),{once:!0}));let I=(async function(){let E;try{let O=n?.condition?.(u,{getState:h,extra:y});if(Kl(O)&&(O=await O),O===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(C.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let P=new Promise((N,V)=>{A=()=>{V({name:"AbortError",message:v||"Aborted"})},C.signal.addEventListener("abort",A,{once:!0})});f(s(x,u,n?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:y}))),E=await Promise.race([P,Promise.resolve(o(u,{dispatch:f,getState:h,extra:y,requestId:x,signal:C.signal,abort:_,rejectWithValue:((N,V)=>new un(N,V)),fulfillWithValue:((N,V)=>new ya(N,V))})).then(N=>{if(N instanceof un)throw N;return N instanceof ya?a(N.payload,x,u,N.meta):a(N,x,u)})])}catch(O){E=O instanceof un?c(null,x,u,O.payload,O.meta):c(O,x,u)}finally{A&&C.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&c.match(E)&&E.meta.condition||f(E),E})();return Object.assign(I,{abort:_,requestId:x,arg:u,unwrap(){return I.then(Vl)}})}}return Object.assign(d,{pending:s,rejected:c,fulfilled:a,settled:Fl(c,a),typePrefix:t})}return e.withTypes=()=>e,e})();function Vl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sa=Symbol.for("rtk-slice-createasyncthunk"),Lm={[Sa]:Wl};function jl(e,t){return`${e}/${t}`}function Zl({creators:e}={}){let t=e?.asyncThunk?.[Sa];return function(n){let{name:a,reducerPath:s=a}=n;if(!a)throw new Error(Re(11));typeof process<"u";let c=(typeof n.reducers=="function"?n.reducers(Yl()):n.reducers)||{},d=Object.keys(c),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(E,O){let P=typeof E=="string"?E:E.type;if(!P)throw new Error(Re(12));if(P in u.sliceCaseReducersByType)throw new Error(Re(13));return u.sliceCaseReducersByType[P]=O,p},addMatcher(E,O){return u.sliceMatchers.push({matcher:E,reducer:O}),p},exposeAction(E,O){return u.actionCreators[E]=O,p},exposeCaseReducer(E,O){return u.sliceCaseReducersByName[E]=O,p}};d.forEach(E=>{let O=c[E],P={reducerName:E,type:jl(a,E),createNotation:typeof n.reducers=="function"};Jl(O)?ed(P,O,p,t):Xl(P,O,p)});function f(){let[E={},O=[],P=void 0]=typeof n.extraReducers=="function"?xa(n.extraReducers):[n.extraReducers],N={...E,...u.sliceCaseReducersByType};return Ul(n.initialState,V=>{for(let Y in N)V.addCase(Y,N[Y]);for(let Y of u.sliceMatchers)V.addMatcher(Y.matcher,Y.reducer);for(let Y of O)V.addMatcher(Y.matcher,Y.reducer);P&&V.addDefaultCase(P)})}let h=E=>E,y=new Map,x=new WeakMap,C;function A(E,O){return C||(C=f()),C(E,O)}function v(){return C||(C=f()),C.getInitialState()}function _(E,O=!1){function P(V){let Y=V[E];return typeof Y>"u"&&O&&(Y=Jr(x,P,v)),Y}function N(V=h){return Jr(Jr(y,O,()=>new WeakMap),V,()=>{let Y={};for(let[vr,le]of Object.entries(n.selectors??{}))Y[vr]=ql(le,V,()=>Jr(x,V,v),O);return Y})}return{reducerPath:E,getSelectors:N,get selectors(){return N(P)},selectSlice:P}}let I={name:a,reducer:A,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,..._(s),injectInto(E,{reducerPath:O,...P}={}){let N=O??s;return E.inject({reducerPath:N,reducer:A},P),{...I,..._(N,!0)}}};return I}}function ql(e,t,o,n){function a(s,...c){let d=t(s);return typeof d>"u"&&n&&(d=o()),e(d,...c)}return a.unwrapped=e,a}var va=Zl();function Yl(){function e(t,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...o}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...o){return t(...o)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:o}},asyncThunk:e}}function Xl({type:e,reducerName:t,createNotation:o},n,a){let s,c;if("reducer"in n){if(o&&!Ql(n))throw new Error(Re(17));s=n.reducer,c=n.prepare}else s=n;a.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?ze(e,c):ze(e))}function Jl(e){return e._reducerDefinitionType==="asyncThunk"}function Ql(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ed({type:e,reducerName:t},o,n,a){if(!a)throw new Error(Re(18));let{payloadCreator:s,fulfilled:c,pending:d,rejected:u,settled:p,options:f}=o,h=a(e,s,f);n.exposeAction(t,h),c&&n.addCase(h.fulfilled,c),d&&n.addCase(h.pending,d),u&&n.addCase(h.rejected,u),p&&n.addMatcher(h.settled,p),n.exposeCaseReducer(t,{fulfilled:c||Qr,pending:d||Qr,rejected:u||Qr,settled:p||Qr})}function Qr(){}var Ca="listener",Ea="completed",Oa="cancelled",Nm=`task-${Oa}`,km=`task-${Ea}`,Im=`${Ca}-${Oa}`,Pm=`${Ca}-${Ea}`;var{assign:Aa}=Object;var pn="listenerMiddleware";var td=Aa(ze(`${pn}/add`),{withTypes:()=>td}),Dm=ze(`${pn}/removeAll`),rd=Aa(ze(`${pn}/remove`),{withTypes:()=>rd});function Re(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var od=_r(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),eo=class extends od(Object){};window.ftReduxStores||(window.ftReduxStores={});var wa=class e extends eo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(kr(s))return s;if(a==null)return;let c=va({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=ba({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=Yt(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new e(c,d,a.eventBus,a.deprecatedKeys)}constructor(t,o,n,a){super(),this.reduxSlice=t,this.reduxStore=o,this.deprecatedKeys=a,this.isFtReduxStore=!0,this.commands=new Rr,this.injectInto=(c,d)=>this.reduxSlice.injectInto(c,d),this.selectSlice=c=>this.reduxSlice.selectSlice(c);let s=c=>c!=null?JSON.parse(JSON.stringify(c)):c;this.actions=new Proxy(this.reduxSlice.actions,{get:(c,d,u)=>{let p=d,f=c[p];return f?(...h)=>{let y=f(...h.map(s));return this.reduxStore.dispatch(y),y}:h=>{let y=p,x=this.getState()[y];wt(x,h)||this.setState({[y]:s(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}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()}};var to=class{static format(t,o,n,a,s){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(t,o,n,a,!!s)}static getMomentDateFormat(t,o,n){return n?"LT":t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a,s){let c=typeof t=="string"?new Date(t):t,d=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ro=g(T()),nd="ft-app-info",lt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};lt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var id={session:(e,t)=>{(0,ro.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>R.dispatchEvent(new lt(t.payload)),0))}},R=ro.FtReduxStore.get({name:nd,reducers:id,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 _a=g(T()),oo=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},ug=(0,_a.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>to.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return oo([(0,fn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),oo([(0,fn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),oo([Ko({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),oo([Ko({store:R.name})],t.prototype,"uiLocale",void 0),t});var Ra;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ra||(Ra={}));var Ta;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ta||(Ta={}));var La;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(La||(La={}));var Na;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Na||(Na={}));var ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ka||(ka={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Pa||(Pa={}));var Da;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Da||(Da={}));var Ma;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ma||(Ma={}));var Ua;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ua||(Ua={}));var Ba;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ba||(Ba={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var $a;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})($a||($a={}));var Ha;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ha||(Ha={}));var za;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(za||(za={}));var Ga;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ga||(Ga={}));var Wa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Wa||(Wa={}));var Va;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Va||(Va={}));var Ka;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ka||(Ka={}));var ja;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ja||(ja={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var qa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(qa||(qa={}));var Ya;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ya||(Ya={}));var Xa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Xa||(Xa={}));var Ja;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ja||(Ja={}));var Qa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Qa||(Qa={}));var es;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(es||(es={}));var ts;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ts||(ts={}));var z;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(z||(z={}));var ue;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var rs;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(rs||(rs={}));var os;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(os||(os={}));var ns;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ns||(ns={}));var is;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(is||(is={}));var as;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(as||(as={}));var ss;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ss||(ss={}));var cs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(cs||(cs={}));var ls;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ls||(ls={}));var ds;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(ds||(ds={}));var us;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(us||(us={}));var ps;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(ps||(ps={}));var fs;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fs||(fs={}));var ad={[z.PERSONAL_BOOK_SHARE_USER]:[z.PERSONAL_BOOK_USER],[z.HTML_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.PDF_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.KHUB_ADMIN]:[z.CONTENT_PUBLISHER],[z.ADMIN]:[z.KHUB_ADMIN,z.USERS_ADMIN,z.PORTAL_ADMIN,z.BEHAVIOR_DATA_USER],[z.GENERATIVE_AI_EXPORT_USER]:[z.GENERATIVE_AI_USER]};function hs(e,t){return e===t||(ad[e]??[]).some(o=>hs(o,t))}function hn(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>hs(n,t))}function ys(e,...t){return e==null?!1:t.some(o=>hn(e,o))}var co=g(T());var yn=g(T());var dt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=R.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=R.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Nt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):dt.await()}};var ce=class extends Nt{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yn.CacheRegistry,this.cache=t?a.commonCache:new yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var no=class extends ce{async listMySearches(){let{session:t}=R.getState();return hn(t,z.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var io=class extends ce{async listMyBookmarks(){let t=R.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var ao=class extends ce{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var so=class extends ce{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 t=R.getState().session;return!!t?.sessionAuthenticated}};var sd="ft-user-assets",cd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(ue).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;gn(e,o,[...mn(e,o),a]),ms(e,o,1,n),gs(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;gn(e,o,mn(e,o).map(a=>a.id===n.id?n:a)),gs(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;gn(e,o,mn(e,o).filter(s=>s.id!==a)),ms(e,o,-1,n)}},bs={[ue.SEARCHES]:"savedSearches",[ue.BOOKMARKS]:"bookmarks",[ue.BOOKS]:void 0,[ue.COLLECTIONS]:void 0},mn=(e,t)=>{var o;let n=bs[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},gn=(e,t,o)=>{let n=bs[t];n&&(e[n]=o)},ms=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===ue.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+o)}},gs=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Q=co.FtReduxStore.get({name:sd,reducers:cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ue).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bn=class{constructor(t=new ao,o=new so){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new io,this.savedSearchesService=new no,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=R.getState();(0,co.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Q.actions.clearAssetCount(),Q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Q.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Q.getState().assetCounts.allAsset[t]!==o.count&&Q.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Q.getState().assetCounts.bookmarkByMap[t]!==o.count&&Q.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Q.getState().assetCounts.bookmarkByMap).length!==0;t===ue.BOOKMARKS&&o&&Q.actions.clearBookmarkCountByMap(),Q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Q.actions.bookmarks(o)}}},ld=new bn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ld);var xn=class{addCommand(t,o=!1){R.commands.add(t,o)}consumeCommand(t){return R.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new xn;var pe=g(T());var xs,kt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},dd=Symbol("clearAfterUnitTest"),lo=class extends(0,pe.withEventBus)(ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xs]=()=>{this.defaultMessages={},this.cache=new pe.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=R.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,pe.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let s=t.toLowerCase(),c=this.resolveContext(s);return new pe.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof pe.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new kt({loadedContexts:t})),this.dispatchEvent(new kt({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new kt({loadedContexts:[t]})),this.dispatchEvent(new kt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,pe.delay)(0).then(()=>n()).catch(()=>null)))}};xs=dd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends lo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends lo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var It=window.FluidTopicsI18nService,uo=window.FluidTopicsCustomI18nService;var Ss=g(T()),Sn=class{highlightHtml(t,o,n){(0,Ss.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Sn;var vs=g(T());var vn=class{isDate(t){var o,n,a,s;return(s=(n=((a=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]).find(d=>d.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,o){var n,a,s,c;if(t==null)return"";try{return vs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:R.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(s=o?.withTime)!==null&&s!==void 0?s:!1,(c=o?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(t)} is not valid`,d),d}}};window.FluidTopicsDateService=new vn;var Cs=g(T());var ar=class{static get(t,o,{baseUrl:n,localesConfiguration:a,availableContentLocales:s}=R.getState()){var c;if(!o||s.length>0&&!s.some(d=>d.lang===o)){let d=a?.defaultLocales.defaultContentLocale;o=d?`${d.lang}-${d.region}`:(c=s[0])===null||c===void 0?void 0:c.lang}return new Cs.SearchPlaceConverter(n,t??20,a?.allLanguagesAllowed,o,s)}};var Cn=class{urlToSearchRequest(t){return ar.get().parse(t)}searchRequestToUrl(t){return ar.get().serialize(t)}};window.FluidTopicsUrlService=new Cn;var Pe=g(T());var ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};ut.eventName="before-location-change";var pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};pt.eventName="change";var En=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Es=new En;var po=class e extends Pe.WithEventBus{static build(){return new e(window.history,Es,()=>window.location,!1)}constructor(t,o,n,a){var s,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new pt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[s,c,d])=>{let u=new ut(new URL(typeof d=="string"?d:(d??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let p=o(),f={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:u.detail.nextLocation.href};n.apply(a,[f,c,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(ut.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(ut.eventName,t)}addHistoryChangeListener(t){this.addEventListener(pt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(pt.eventName,t)}currentItem(){return(0,Pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Pe.deepCopy)(o.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Os=g($());var As=Os.css`
171
- `;var Rs=g($()),ee=g(te()),yt=g(T());var ft=g(T());function ws(e,t){let{authenticationRequired:o,session:n}=R.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var fo=class extends Nt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var On=class e extends ft.FtStateManager{static build(t){return new e(R,t)}constructor(t,o){super(),this.store=t,this.cache=new ft.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new fo,this.cleanSessionDebouncer=new ft.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ft.Debouncer(500),this.apiProvider=o??(()=>dt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(lt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(lt.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 t=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},o.idleTimeoutInMillis),o});this.setSession(t)}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 t;let o=await this.cache.get("availableContentLocales",()=>ws(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=o.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,o){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:o}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ir(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return ys(R.getState().session,...t)}},_s=On.build();var ht=class extends Event{constructor(t,o,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o,this.callback=n,this.subscribe=a??!1}};var sr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let o=this.pendingContextRequests.get(t.context);if(o===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=o;for(let{elementRef:a,callbackRef:s}of n){let c=a.deref(),d=s.deref();c===void 0||d===void 0||c.dispatchEvent(new ht(t.context,c,d,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let o=t.contextTarget??t.composedPath()[0],n=t.callback,a=this.pendingContextRequests.get(t.context);a===void 0&&this.pendingContextRequests.set(t.context,a={callbacks:new WeakMap,requests:[]});let s=a.callbacks.get(o);s===void 0&&a.callbacks.set(o,s=new WeakSet),s.has(n)||(s.add(n),a.requests.push({elementRef:new WeakRef(o),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var j=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},B=class extends yt.FtLitElementRedux{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=_s,this.contextRoot=new sr}render(){return Rs.html`
170
+ `}};ie.styles=[bi,xi,Si,vi,Ci,Ei,Oi,Ai,wi,_i,Ri];Ti([(0,Wo.property)()],ie.prototype,"element",void 0);Ti([(0,Wo.property)()],ie.prototype,"variant",void 0);var ki=g(T());var Ni={"ft-typography":ie};(0,ki.customElements)(Ni);var fn=g(te());var Ii=g(te(),1);var Vo=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},al=e=>({fromAttribute:t=>{if(t==null)return Yt(e);try{return JSON.parse(t)}catch{return Yt(e)}},toAttribute:t=>JSON.stringify(t)});function Pi(e,t){return(0,Ii.property)({type:Object,converter:al(e),hasChanged:Xt,...t??{}})}function sl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!wt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!wt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=c=>Object.keys(c).filter(d=>c[d]!=null),s=a(e);if(o=s.length,o!==a(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=o;n--!==0;){let c=s[n];if(!wt(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function wt(e,t){try{return sl(e,t)}catch{return!1}}function Xt(e,t){return!wt(e,t)}function Yt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function _r(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var Di=g(te(),1);var Ko=e=>{let t=e??{};return(o,n)=>{var a;let s={hasChanged:Xt,attribute:!1,...t};(0,Di.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:(d=>d[n]),store:t.store})}};var Rr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var st=g(te(),1);var Tr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(o=this.resolvePromise)!==null&&o!==void 0?o:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Nr=g($(),1);var Lr=class extends Nr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return(0,Nr.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([o,n])=>this.defineScopedElement(o,n))}static defineScopedElement(t,o){Vo(t)(o),this.canDefineScopedElement(t)&&this.registry.define(t,o)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,o){this.scopedRegistryConstructor.defineScopedElement(t,o)}};function Mi(e,t,...o){var n;let a=e.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Rt=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},$i,Ui=Symbol("constructorPrototype"),Bi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer"),Fi=Symbol("dynamicDependenciesLoaded"),_t=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};_t.eventName="exportparts-updated";var we=class extends Lr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$i]=new Tr(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Hi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Bi]=this.constructor.name,this[Ui]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Bi]&&Object.setPrototypeOf(this,this[Ui])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Fi]||(o[Fi]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(_t.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(_t.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new _t)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=Mi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var o,n,a,s,c,d;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let y of(s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let x=(c=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&c!==void 0?c:[],C=(d=(a=y.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[],A=[...x,...C].filter(u).map(v=>v.trim());for(let v of A)f.add(v)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(y=>p.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...h].join(", ")}};$i=Hi;Rt([(0,st.property)()],we.prototype,"exportpartsPrefix",void 0);Rt([Pi([])],we.prototype,"exportpartsPrefixes",void 0);Rt([(0,st.property)({reflect:!0})],we.prototype,"exportparts",void 0);Rt([(0,st.property)()],we.prototype,"customStylesheet",void 0);Rt([(0,st.property)()],we.prototype,"elementToFocus",void 0);Rt([(0,st.state)()],we.prototype,"useAdoptedStyleSheets",void 0);function kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Jt=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),ct=Symbol("internalStores"),cl=_r(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[ct].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ct].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[ct].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[ct].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[ct].delete(d)}setupStores(){this.unsubscribeFromStores(),this[ct].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[He].has(c.store):this[He].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u,p;this[He].set(c,d.subscribe(()=>this.updateFromStores())),this[Jt].set(c,[]),kr(d)&&(!((u=d.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((f,h)=>{this.getStore(f.store)===d&&d.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",d.name)}),d.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||d.name===f.store)){let y=x=>this[h](x);d.addEventListener(f.eventName,y),this[Jt].get(c).push(()=>d.removeEventListener(f.eventName,y))}}))),this.onStoreAvailable(c)}unsubscribeFromStores(){this[He].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[He].has(c)&&this[He].get(c)(),this[He].delete(c),(d=this[Jt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Jt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=He,o=ct,n=Jt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),zi=class extends cl(we){};function Z(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ll=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gi=ll,jo=()=>Math.random().toString(36).substring(7).split("").join("."),dl={INIT:`@@redux/INIT${jo()}`,REPLACE:`@@redux/REPLACE${jo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jo()}`},Ir=dl;function Pr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Zo(e,t,o){if(typeof e!="function")throw new Error(Z(2));if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(Zo)(e,t)}let n=e,a=t,s=new Map,c=s,d=0,u=!1;function p(){c===s&&(c=new Map,s.forEach((v,_)=>{c.set(_,v)}))}function f(){if(u)throw new Error(Z(3));return a}function h(v){if(typeof v!="function")throw new Error(Z(4));if(u)throw new Error(Z(5));let _=!0;p();let I=d++;return c.set(I,v),function(){if(_){if(u)throw new Error(Z(6));_=!1,p(),c.delete(I),s=null}}}function y(v){if(!Pr(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(typeof v.type!="string")throw new Error(Z(17));if(u)throw new Error(Z(9));try{u=!0,a=n(a,v)}finally{u=!1}return(s=c).forEach(I=>{I()}),v}function x(v){if(typeof v!="function")throw new Error(Z(10));n=v,y({type:Ir.REPLACE})}function C(){let v=h;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Z(11));function I(){let O=_;O.next&&O.next(f())}return I(),{unsubscribe:v(I)}},[Gi](){return this}}}return y({type:Ir.INIT}),{dispatch:y,subscribe:h,getState:f,replaceReducer:x,[Gi]:C}}function ul(e){Object.keys(e).forEach(t=>{let o=e[t];if(typeof o(void 0,{type:Ir.INIT})>"u")throw new Error(Z(12));if(typeof o(void 0,{type:Ir.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function qo(e){let t=Object.keys(e),o={};for(let c=0;c<t.length;c++){let d=t[c];typeof e[d]=="function"&&(o[d]=e[d])}let n=Object.keys(o),a,s;try{ul(o)}catch(c){s=c}return function(d={},u){if(s)throw s;let p=!1,f={};for(let h=0;h<n.length;h++){let y=n[h],x=o[y],C=d[y],A=x(C,u);if(typeof A>"u"){let v=u&&u.type;throw new Error(Z(14))}f[y]=A,p=p||A!==C}return p=p||n.length!==Object.keys(d).length,p?f:d}}function Qt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...n)=>t(o(...n)))}function Wi(...e){return t=>(o,n)=>{let a=t(o,n),s=()=>{throw new Error(Z(15))},c={getState:a.getState,dispatch:(u,...p)=>s(u,...p)},d=e.map(u=>u(c));return s=Qt(...d)(a.dispatch),{...a,dispatch:s}}}function Vi(e){return Pr(e)&&"type"in e&&typeof e.type=="string"}var ea=Symbol.for("immer-nothing"),Ki=Symbol.for("immer-draftable"),X=Symbol.for("immer-state");function xe(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ae=Object,Lt=ae.getPrototypeOf,Br="constructor",Wr="prototype",Qo="configurable",Fr="enumerable",Mr="writable",er="value",_e=e=>!!e&&!!e[X];function se(e){return e?ta(e)||Kr(e)||!!e[Ki]||!!e[Br]?.[Ki]||jr(e)||Zr(e):!1}var pl=ae[Wr][Br].toString(),ji=new WeakMap;function ta(e){if(!e||!cn(e))return!1;let t=Lt(e);if(t===null||t===ae[Wr])return!0;let o=ae.hasOwnProperty.call(t,Br)&&t[Br];if(o===Object)return!0;if(!Tt(o))return!1;let n=ji.get(o);return n===void 0&&(n=Function.toString.call(o),ji.set(o,n)),n===pl}function Vr(e,t,o=!0){or(e)===0?(o?Reflect.ownKeys(e):ae.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function or(e){let t=e[X];return t?t.type_:Kr(e)?1:jr(e)?2:Zr(e)?3:0}var Yo=(e,t,o=or(e))=>o===2?e.has(t):ae[Wr].hasOwnProperty.call(e,t),en=(e,t,o=or(e))=>o===2?e.get(t):e[t],$r=(e,t,o,n=or(e))=>{n===2?e.set(t,o):n===3?e.add(o):e[t]=o};function fl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Kr=Array.isArray,jr=e=>e instanceof Map,Zr=e=>e instanceof Set,cn=e=>typeof e=="object",Tt=e=>typeof e=="function",Xo=e=>typeof e=="boolean";function hl(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ie=e=>e.copy_||e.base_;var ln=e=>e.modified_?e.copy_:e.base_;function tn(e,t){if(jr(e))return new Map(e);if(Zr(e))return new Set(e);if(Kr(e))return Array[Wr].slice.call(e);let o=ta(e);if(t===!0||t==="class_only"&&!o){let n=ae.getOwnPropertyDescriptors(e);delete n[X];let a=Reflect.ownKeys(n);for(let s=0;s<a.length;s++){let c=a[s],d=n[c];d[Mr]===!1&&(d[Mr]=!0,d[Qo]=!0),(d.get||d.set)&&(n[c]={[Qo]:!0,[Mr]:!0,[Fr]:d[Fr],[er]:e[c]})}return ae.create(Lt(e),n)}else{let n=Lt(e);if(n!==null&&o)return{...e};let a=ae.create(n);return ae.assign(a,e)}}function qr(e,t=!1){return Yr(e)||_e(e)||!se(e)||(or(e)>1&&ae.defineProperties(e,{set:Dr,add:Dr,clear:Dr,delete:Dr}),ae.freeze(e),t&&Vr(e,(o,n)=>{qr(n,!0)},!1)),e}function yl(){xe(2)}var Dr={[er]:yl};function Yr(e){return e===null||!cn(e)?!0:ae.isFrozen(e)}var Hr="MapSet",rn="Patches",Zi="ArrayMethods",ra={};function lt(e){let t=ra[e];return t||xe(0,e),t}var qi=e=>!!ra[e];var tr,oa=()=>tr,ml=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qi(Hr)?lt(Hr):void 0,arrayMethodsPlugin_:qi(Zi)?lt(Zi):void 0});function Yi(e,t){t&&(e.patchPlugin_=lt(rn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function on(e){nn(e),e.drafts_.forEach(gl),e.drafts_=null}function nn(e){e===tr&&(tr=e.parent_)}var Xi=e=>tr=ml(tr,e);function gl(e){let t=e[X];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ji(e,t){t.unfinalizedDrafts_=t.drafts_.length;let o=t.drafts_[0];if(e!==void 0&&e!==o){o[X].modified_&&(on(t),xe(4)),se(e)&&(e=Qi(t,e));let{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(o[X].base_,e,t)}else e=Qi(t,o);return bl(t,e,!0),on(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ea?e:void 0}function Qi(e,t){if(Yr(t))return t;let o=t[X];if(!o)return zr(t,e.handledSet_,e);if(!Xr(o,e))return t;if(!o.modified_)return o.base_;if(!o.finalized_){let{callbacks_:n}=o;if(n)for(;n.length>0;)n.pop()(e);aa(o,e)}return o.copy_}function bl(e,t,o=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qr(t,o)}function na(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xr=(e,t)=>e.scope_===t,xl=[];function ia(e,t,o,n){let a=Ie(e),s=e.type_;if(n!==void 0&&en(a,n,s)===t){$r(a,n,o,s);return}if(!e.draftLocations_){let d=e.draftLocations_=new Map;Vr(a,(u,p)=>{if(_e(p)){let f=d.get(p)||[];f.push(u),d.set(p,f)}})}let c=e.draftLocations_.get(t)??xl;for(let d of c)$r(a,d,o,s)}function Sl(e,t,o){e.callbacks_.push(function(a){let s=t;if(!s||!Xr(s,a))return;a.mapSetPlugin_?.fixSetContents(s);let c=ln(s);ia(e,s.draft_??s,c,o),aa(s,a)})}function aa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let a=n.getPath(e);a&&n.generatePatches_(e,a,t)}na(e)}}function vl(e,t,o){let{scope_:n}=e;if(_e(o)){let a=o[X];Xr(a,n)&&a.callbacks_.push(function(){Ur(e);let c=ln(a);ia(e,o,c,t)})}else se(o)&&e.callbacks_.push(function(){let s=Ie(e);e.type_===3?s.has(o)&&zr(o,n.handledSet_,n):en(s,t,e.type_)===o&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&zr(en(e.copy_,t,e.type_),n.handledSet_,n)})}function zr(e,t,o){return!o.immer_.autoFreeze_&&o.unfinalizedDrafts_<1||_e(e)||t.has(e)||!se(e)||Yr(e)||(t.add(e),Vr(e,(n,a)=>{if(_e(a)){let s=a[X];if(Xr(s,o)){let c=ln(s);$r(e,n,c,e.type_),na(s)}}else se(a)&&zr(a,t,o)})),e}function Cl(e,t){let o=Kr(e),n={type_:o?1:0,scope_:t?t.scope_:oa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=n,s=Gr;o&&(a=[n],s=rr);let{revoke:c,proxy:d}=Proxy.revocable(a,s);return n.draft_=d,n.revoke_=c,[d,n]}var Gr={get(e,t){if(t===X)return e;let o=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&o?.isArrayOperationMethod(t))return o.createMethodInterceptor(e,t);let a=Ie(e);if(!Yo(a,t,e.type_))return Ol(e,a,t);let s=a[t];if(e.finalized_||!se(s)||n&&e.operationMethod&&o?.isMutatingArrayMethod(e.operationMethod)&&hl(t))return s;if(s===Jo(e.base_,t)||El(e,t,s)){Ur(e);let c=e.type_===1?+t:t,d=sn(e.scope_,s,e,c);return e.copy_[c]=d}return s},has(e,t){return t in Ie(e)},ownKeys(e){return Reflect.ownKeys(Ie(e))},set(e,t,o){let n=sa(Ie(e),t);if(n?.set)return n.set.call(e.draft_,o),!0;if(!e.modified_){let a=Jo(Ie(e),t),s=a?.[X];if(s&&s.base_===o)return e.copy_[t]=o,e.assigned_.delete(t),!0;if(fl(o,a)&&(o!==void 0||Yo(e.base_,t,e.type_)))return!0;Ur(e),an(e)}return e.copy_[t]===o&&(o!==void 0||Yo(e.copy_,t,e.type_))||Number.isNaN(o)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=o,e.assigned_.set(t,!0),vl(e,t,o)),!0},deleteProperty(e,t){return Ur(e),Jo(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),an(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let o=Ie(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{[Mr]:!0,[Qo]:e.type_!==1||t!=="length",[Fr]:n[Fr],[er]:o[t]}},defineProperty(){xe(11)},getPrototypeOf(e){return Lt(e.base_)},setPrototypeOf(){xe(12)}},rr={};for(let e in Gr){let t=Gr[e];rr[e]=function(){let o=arguments;return o[0]=o[0][0],t.apply(this,o)}}rr.deleteProperty=function(e,t){return rr.set.call(this,e,t,void 0)};rr.set=function(e,t,o){return Gr.set.call(this,e[0],t,o,e[0])};function Jo(e,t){let o=e[X];return(o?Ie(o):e)[t]}function El(e,t,o){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!se(o)||o[X]?!1:e.baseRefs_.has(o)}function Ol(e,t,o){let n=sa(t,o);return n?er in n?n[er]:n.get?.call(e.draft_):void 0}function sa(e,t){if(!(t in e))return;let o=Lt(e);for(;o;){let n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Lt(o)}}function an(e){e.modified_||(e.modified_=!0,e.parent_&&an(e.parent_))}function Ur(e){e.copy_||(e.assigned_=new Map,e.copy_=tn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Al=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,o,n)=>{if(Tt(t)&&!Tt(o)){let s=o;o=t;let c=this;return function(u=s,...p){return c.produce(u,f=>o.call(this,f,...p))}}Tt(o)||xe(6),n!==void 0&&!Tt(n)&&xe(7);let a;if(se(t)){let s=Xi(this),c=sn(s,t,void 0),d=!0;try{a=o(c),d=!1}finally{d?on(s):nn(s)}return Yi(s,n),Ji(a,s)}else if(!t||!cn(t)){if(a=o(t),a===void 0&&(a=t),a===ea&&(a=void 0),this.autoFreeze_&&qr(a,!0),n){let s=[],c=[];lt(rn).generateReplacementPatches_(t,a,{patches_:s,inversePatches_:c}),n(s,c)}return a}else xe(1,t)},this.produceWithPatches=(t,o)=>{if(Tt(t))return(c,...d)=>this.produceWithPatches(c,u=>t(u,...d));let n,a;return[this.produce(t,o,(c,d)=>{n=c,a=d}),n,a]},Xo(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Xo(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Xo(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){se(e)||xe(8),_e(e)&&(e=ca(e));let t=Xi(this),o=sn(t,e,void 0);return o[X].isManual_=!0,nn(t),o}finishDraft(e,t){let o=e&&e[X];(!o||!o.isManual_)&&xe(9);let{scope_:n}=o;return Yi(n,t),Ji(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let o;for(o=t.length-1;o>=0;o--){let a=t[o];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}o>-1&&(t=t.slice(o+1));let n=lt(rn).applyPatches_;return _e(e)?n(e,t):this.produce(e,a=>n(a,t))}};function sn(e,t,o,n){let[a,s]=jr(t)?lt(Hr).proxyMap_(t,o):Zr(t)?lt(Hr).proxySet_(t,o):Cl(t,o);return(o?.scope_??oa()).drafts_.push(a),s.callbacks_=o?.callbacks_??[],s.key_=n,o&&n!==void 0?Sl(o,s,n):s.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:p}=u;s.modified_&&p&&p.generatePatches_(s,[],u)}),a}function ca(e){return _e(e)||xe(10,e),la(e)}function la(e){if(!se(e)||Yr(e))return e;let t=e[X],o,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,o=tn(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else o=tn(e,!0);return Vr(o,(a,s)=>{$r(o,a,la(s))},n),t&&(t.finalized_=!1),o}var wl=globalThis.Iterator,Cm=typeof wl?.from=="function";var _l=new Al,dn=_l.produce;function da(e){return({dispatch:o,getState:n})=>a=>s=>typeof s=="function"?s(o,n,e):a(s)}var ua=da(),pa=da;var Rl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qt:Qt.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Tl=e=>e&&typeof e.match=="function";function ze(e,t){function o(...n){if(t){let a=t(...n);if(!a)throw new Error(Re(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return o.toString=()=>`${e}`,o.type=e,o.match=n=>Vi(n)&&n.type===e,o}var ga=class nr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,nr.prototype)}static get[Symbol.species](){return nr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new nr(...t[0].concat(this)):new nr(...t.concat(this))}};function fa(e){return se(e)?dn(e,()=>{}):e}function Jr(e,t,o){return e.has(t)?e.get(t):e.set(t,o(t)).get(t)}function Ll(e){return typeof e=="boolean"}var Nl=()=>function(t){let{thunk:o=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:s=!0}=t??{},c=new ga;return o&&(Ll(o)?c.push(ua):c.push(pa(o.extraArgument))),c},kl="RTK_autoBatch";var ha=e=>t=>{setTimeout(t,e)},Il=(e,t)=>o=>{let n=!1,a,s,c=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),o())};a=e(c),s=setTimeout(c,t)},Pl=(e={type:"raf"})=>t=>(...o)=>{let n=t(...o),a=!0,s=!1,c=!1,d=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Il(window.requestAnimationFrame,100):ha(10):e.type==="callback"?e.queueNotification:ha(e.timeout),p=()=>{c=!1,s&&(s=!1,d.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){let h=()=>a&&f(),y=n.subscribe(h);return d.add(f),()=>{y(),d.delete(f)}},dispatch(f){try{return a=!f?.meta?.[kl],s=!a,s&&(c||(c=!0,u(p))),n.dispatch(f)}finally{a=!0}}})},Dl=e=>function(o){let{autoBatch:n=!0}=o??{},a=new ga(e);return n&&a.push(Pl(typeof n=="object"?n:void 0)),a};function ba(e){let t=Nl(),{reducer:o=void 0,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c=void 0,enhancers:d=void 0}=e||{},u;if(typeof o=="function")u=o;else if(Pr(o))u=qo(o);else throw new Error(Re(1));let p;typeof n=="function"?p=n(t):p=t();let f=Qt;a&&(f=Rl({trace:!1,...typeof a=="object"&&a}));let h=Wi(...p),y=Dl(h),x=typeof d=="function"?d(y):y(),C=f(...x);return Zo(u,c,C)}function xa(e){let t={},o=[],n,a={addCase(s,c){let d=typeof s=="string"?s:s.type;if(!d)throw new Error(Re(28));if(d in t)throw new Error(Re(29));return t[d]=c,a},addAsyncThunk(s,c){return c.pending&&(t[s.pending.type]=c.pending),c.rejected&&(t[s.rejected.type]=c.rejected),c.fulfilled&&(t[s.fulfilled.type]=c.fulfilled),c.settled&&o.push({matcher:s.settled,reducer:c.settled}),a},addMatcher(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase(s){return n=s,a}};return e(a),[t,o,n]}function Ml(e){return typeof e=="function"}function Ul(e,t){let[o,n,a]=xa(t),s;if(Ml(e))s=()=>fa(e());else{let d=fa(e);s=()=>d}function c(d=s(),u){let p=[o[u.type],...n.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return p.filter(f=>!!f).length===0&&(p=[a]),p.reduce((f,h)=>{if(h)if(_e(f)){let y=h(f,u);return y===void 0?f:y}else{if(se(f))return dn(f,y=>h(y,u));{let y=h(f,u);if(y===void 0){if(f===null)return f;throw new Error(Re(9))}return y}}return f},d)}return c.getInitialState=s,c}var Bl=(e,t)=>Tl(e)?e.match(t):e(t);function Fl(...e){return t=>e.some(o=>Bl(o,t))}var $l="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hl=(e=21)=>{let t="",o=e;for(;o--;)t+=$l[Math.random()*64|0];return t},zl=["name","message","stack","code"],un=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},ya=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Gl=e=>{if(typeof e=="object"&&e!==null){let t={};for(let o of zl)typeof e[o]=="string"&&(t[o]=e[o]);return t}return{message:String(e)}},ma="External signal was aborted",Wl=(()=>{function e(t,o,n){let a=ze(t+"/fulfilled",(u,p,f,h)=>({payload:u,meta:{...h||{},arg:f,requestId:p,requestStatus:"fulfilled"}})),s=ze(t+"/pending",(u,p,f)=>({payload:void 0,meta:{...f||{},arg:p,requestId:u,requestStatus:"pending"}})),c=ze(t+"/rejected",(u,p,f,h,y)=>({payload:h,error:(n&&n.serializeError||Gl)(u||"Rejected"),meta:{...y||{},arg:f,requestId:p,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function d(u,{signal:p}={}){return(f,h,y)=>{let x=n?.idGenerator?n.idGenerator(u):Hl(),C=new AbortController,A,v;function _(E){v=E,C.abort()}p&&(p.aborted?_(ma):p.addEventListener("abort",()=>_(ma),{once:!0}));let I=(async function(){let E;try{let O=n?.condition?.(u,{getState:h,extra:y});if(Kl(O)&&(O=await O),O===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(C.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let D=new Promise((N,V)=>{A=()=>{V({name:"AbortError",message:v||"Aborted"})},C.signal.addEventListener("abort",A,{once:!0})});f(s(x,u,n?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:y}))),E=await Promise.race([D,Promise.resolve(o(u,{dispatch:f,getState:h,extra:y,requestId:x,signal:C.signal,abort:_,rejectWithValue:((N,V)=>new un(N,V)),fulfillWithValue:((N,V)=>new ya(N,V))})).then(N=>{if(N instanceof un)throw N;return N instanceof ya?a(N.payload,x,u,N.meta):a(N,x,u)})])}catch(O){E=O instanceof un?c(null,x,u,O.payload,O.meta):c(O,x,u)}finally{A&&C.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&c.match(E)&&E.meta.condition||f(E),E})();return Object.assign(I,{abort:_,requestId:x,arg:u,unwrap(){return I.then(Vl)}})}}return Object.assign(d,{pending:s,rejected:c,fulfilled:a,settled:Fl(c,a),typePrefix:t})}return e.withTypes=()=>e,e})();function Vl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sa=Symbol.for("rtk-slice-createasyncthunk"),Lm={[Sa]:Wl};function jl(e,t){return`${e}/${t}`}function Zl({creators:e}={}){let t=e?.asyncThunk?.[Sa];return function(n){let{name:a,reducerPath:s=a}=n;if(!a)throw new Error(Re(11));typeof process<"u";let c=(typeof n.reducers=="function"?n.reducers(Yl()):n.reducers)||{},d=Object.keys(c),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(E,O){let D=typeof E=="string"?E:E.type;if(!D)throw new Error(Re(12));if(D in u.sliceCaseReducersByType)throw new Error(Re(13));return u.sliceCaseReducersByType[D]=O,p},addMatcher(E,O){return u.sliceMatchers.push({matcher:E,reducer:O}),p},exposeAction(E,O){return u.actionCreators[E]=O,p},exposeCaseReducer(E,O){return u.sliceCaseReducersByName[E]=O,p}};d.forEach(E=>{let O=c[E],D={reducerName:E,type:jl(a,E),createNotation:typeof n.reducers=="function"};Jl(O)?ed(D,O,p,t):Xl(D,O,p)});function f(){let[E={},O=[],D=void 0]=typeof n.extraReducers=="function"?xa(n.extraReducers):[n.extraReducers],N={...E,...u.sliceCaseReducersByType};return Ul(n.initialState,V=>{for(let Y in N)V.addCase(Y,N[Y]);for(let Y of u.sliceMatchers)V.addMatcher(Y.matcher,Y.reducer);for(let Y of O)V.addMatcher(Y.matcher,Y.reducer);D&&V.addDefaultCase(D)})}let h=E=>E,y=new Map,x=new WeakMap,C;function A(E,O){return C||(C=f()),C(E,O)}function v(){return C||(C=f()),C.getInitialState()}function _(E,O=!1){function D(V){let Y=V[E];return typeof Y>"u"&&O&&(Y=Jr(x,D,v)),Y}function N(V=h){return Jr(Jr(y,O,()=>new WeakMap),V,()=>{let Y={};for(let[vr,le]of Object.entries(n.selectors??{}))Y[vr]=ql(le,V,()=>Jr(x,V,v),O);return Y})}return{reducerPath:E,getSelectors:N,get selectors(){return N(D)},selectSlice:D}}let I={name:a,reducer:A,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,..._(s),injectInto(E,{reducerPath:O,...D}={}){let N=O??s;return E.inject({reducerPath:N,reducer:A},D),{...I,..._(N,!0)}}};return I}}function ql(e,t,o,n){function a(s,...c){let d=t(s);return typeof d>"u"&&n&&(d=o()),e(d,...c)}return a.unwrapped=e,a}var va=Zl();function Yl(){function e(t,o){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...o}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...o){return t(...o)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,o){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:o}},asyncThunk:e}}function Xl({type:e,reducerName:t,createNotation:o},n,a){let s,c;if("reducer"in n){if(o&&!Ql(n))throw new Error(Re(17));s=n.reducer,c=n.prepare}else s=n;a.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,c?ze(e,c):ze(e))}function Jl(e){return e._reducerDefinitionType==="asyncThunk"}function Ql(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ed({type:e,reducerName:t},o,n,a){if(!a)throw new Error(Re(18));let{payloadCreator:s,fulfilled:c,pending:d,rejected:u,settled:p,options:f}=o,h=a(e,s,f);n.exposeAction(t,h),c&&n.addCase(h.fulfilled,c),d&&n.addCase(h.pending,d),u&&n.addCase(h.rejected,u),p&&n.addMatcher(h.settled,p),n.exposeCaseReducer(t,{fulfilled:c||Qr,pending:d||Qr,rejected:u||Qr,settled:p||Qr})}function Qr(){}var Ca="listener",Ea="completed",Oa="cancelled",Nm=`task-${Oa}`,km=`task-${Ea}`,Im=`${Ca}-${Oa}`,Pm=`${Ca}-${Ea}`;var{assign:Aa}=Object;var pn="listenerMiddleware";var td=Aa(ze(`${pn}/add`),{withTypes:()=>td}),Dm=ze(`${pn}/removeAll`),rd=Aa(ze(`${pn}/remove`),{withTypes:()=>rd});function Re(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var od=_r(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),eo=class extends od(Object){};window.ftReduxStores||(window.ftReduxStores={});var wa=class e extends eo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(kr(s))return s;if(a==null)return;let c=va({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=ba({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=Yt(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new e(c,d,a.eventBus,a.deprecatedKeys)}constructor(t,o,n,a){super(),this.reduxSlice=t,this.reduxStore=o,this.deprecatedKeys=a,this.isFtReduxStore=!0,this.commands=new Rr,this.injectInto=(c,d)=>this.reduxSlice.injectInto(c,d),this.selectSlice=c=>this.reduxSlice.selectSlice(c);let s=c=>c!=null?JSON.parse(JSON.stringify(c)):c;this.actions=new Proxy(this.reduxSlice.actions,{get:(c,d,u)=>{let p=d,f=c[p];return f?(...h)=>{let y=f(...h.map(s));return this.reduxStore.dispatch(y),y}:h=>{let y=p,x=this.getState()[y];wt(x,h)||this.setState({[y]:s(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}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()}};var to=class{static format(t,o,n,a,s){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(t,o,n,a,!!s)}static getMomentDateFormat(t,o,n){return n?"LT":t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a,s){let c=typeof t=="string"?new Date(t):t,d=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ro=g(T()),nd="ft-app-info",dt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};dt.eventName="authentication-change";var ir=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ir.eventName="ui-locale-changed";var id={session:(e,t)=>{(0,ro.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>R.dispatchEvent(new dt(t.payload)),0))}},R=ro.FtReduxStore.get({name:nd,reducers:id,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 _a=g(T()),oo=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},ug=(0,_a.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>to.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return oo([(0,fn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),oo([(0,fn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),oo([Ko({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),oo([Ko({store:R.name})],t.prototype,"uiLocale",void 0),t});var Ra;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ra||(Ra={}));var Ta;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ta||(Ta={}));var La;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(La||(La={}));var Na;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Na||(Na={}));var ka;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ka||(ka={}));var Ia;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ia||(Ia={}));var Pa;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Pa||(Pa={}));var Da;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Da||(Da={}));var Ma;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ma||(Ma={}));var Ua;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ua||(Ua={}));var Ba;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ba||(Ba={}));var Fa;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Fa||(Fa={}));var $a;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})($a||($a={}));var Ha;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ha||(Ha={}));var za;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(za||(za={}));var Ga;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ga||(Ga={}));var Wa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Wa||(Wa={}));var Va;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Va||(Va={}));var Ka;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ka||(Ka={}));var ja;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ja||(ja={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var qa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(qa||(qa={}));var Ya;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ya||(Ya={}));var Xa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Xa||(Xa={}));var Ja;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ja||(Ja={}));var Qa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Qa||(Qa={}));var es;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(es||(es={}));var ts;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ts||(ts={}));var z;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(z||(z={}));var ue;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var rs;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(rs||(rs={}));var os;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(os||(os={}));var ns;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ns||(ns={}));var is;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(is||(is={}));var as;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(as||(as={}));var ss;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ss||(ss={}));var cs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(cs||(cs={}));var ls;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ls||(ls={}));var ds;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(ds||(ds={}));var us;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(us||(us={}));var ps;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(ps||(ps={}));var fs;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(fs||(fs={}));var ad={[z.PERSONAL_BOOK_SHARE_USER]:[z.PERSONAL_BOOK_USER],[z.HTML_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.PDF_EXPORT_USER]:[z.PERSONAL_BOOK_USER],[z.KHUB_ADMIN]:[z.CONTENT_PUBLISHER],[z.ADMIN]:[z.KHUB_ADMIN,z.USERS_ADMIN,z.PORTAL_ADMIN,z.BEHAVIOR_DATA_USER],[z.GENERATIVE_AI_EXPORT_USER]:[z.GENERATIVE_AI_USER]};function hs(e,t){return e===t||(ad[e]??[]).some(o=>hs(o,t))}function hn(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>hs(n,t))}function ys(e,...t){return e==null?!1:t.some(o=>hn(e,o))}var co=g(T());var yn=g(T());var ut=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=R.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=R.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Nt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}};var ce=class extends Nt{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yn.CacheRegistry,this.cache=t?a.commonCache:new yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var no=class extends ce{async listMySearches(){let{session:t}=R.getState();return hn(t,z.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var io=class extends ce{async listMyBookmarks(){let t=R.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var ao=class extends ce{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var so=class extends ce{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 t=R.getState().session;return!!t?.sessionAuthenticated}};var sd="ft-user-assets",cd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(ue).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;gn(e,o,[...mn(e,o),a]),ms(e,o,1,n),gs(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;gn(e,o,mn(e,o).map(a=>a.id===n.id?n:a)),gs(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;gn(e,o,mn(e,o).filter(s=>s.id!==a)),ms(e,o,-1,n)}},bs={[ue.SEARCHES]:"savedSearches",[ue.BOOKMARKS]:"bookmarks",[ue.BOOKS]:void 0,[ue.COLLECTIONS]:void 0},mn=(e,t)=>{var o;let n=bs[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},gn=(e,t,o)=>{let n=bs[t];n&&(e[n]=o)},ms=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===ue.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+o)}},gs=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Q=co.FtReduxStore.get({name:sd,reducers:cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ue).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bn=class{constructor(t=new ao,o=new so){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new io,this.savedSearchesService=new no,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=R.getState();(0,co.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Q.actions.clearAssetCount(),Q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Q.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Q.getState().assetCounts.allAsset[t]!==o.count&&Q.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Q.getState().assetCounts.bookmarkByMap[t]!==o.count&&Q.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Q.getState().assetCounts.bookmarkByMap).length!==0;t===ue.BOOKMARKS&&o&&Q.actions.clearBookmarkCountByMap(),Q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Q.actions.bookmarks(o)}}},ld=new bn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ld);var xn=class{addCommand(t,o=!1){R.commands.add(t,o)}consumeCommand(t){return R.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new xn;var pe=g(T());var xs,kt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},dd=Symbol("clearAfterUnitTest"),lo=class extends(0,pe.withEventBus)(ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xs]=()=>{this.defaultMessages={},this.cache=new pe.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=R.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,pe.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let s=t.toLowerCase(),c=this.resolveContext(s);return new pe.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof pe.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new kt({loadedContexts:t})),this.dispatchEvent(new kt({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new kt({loadedContexts:[t]})),this.dispatchEvent(new kt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,pe.delay)(0).then(()=>n()).catch(()=>null)))}};xs=dd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends lo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends lo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var It=window.FluidTopicsI18nService,uo=window.FluidTopicsCustomI18nService;var Ss=g(T()),Sn=class{highlightHtml(t,o,n){(0,Ss.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Sn;var vs=g(T());var vn=class{isDate(t){var o,n,a,s;return(s=(n=((a=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]).find(d=>d.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,o){var n,a,s,c;if(t==null)return"";try{return vs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:R.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(s=o?.withTime)!==null&&s!==void 0?s:!1,(c=o?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(t)} is not valid`,d),d}}};window.FluidTopicsDateService=new vn;var Cs=g(T());var ar=class{static get(t,o,{baseUrl:n,localesConfiguration:a,availableContentLocales:s}=R.getState()){var c;if(!o||s.length>0&&!s.some(d=>d.lang===o)){let d=a?.defaultLocales.defaultContentLocale;o=d?`${d.lang}-${d.region}`:(c=s[0])===null||c===void 0?void 0:c.lang}return new Cs.SearchPlaceConverter(n,t??20,a?.allLanguagesAllowed,o,s)}};var Cn=class{urlToSearchRequest(t){return ar.get().parse(t)}searchRequestToUrl(t){return ar.get().serialize(t)}};window.FluidTopicsUrlService=new Cn;var Pe=g(T());var pt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};pt.eventName="before-location-change";var ft=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ft.eventName="change";var En=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Es=new En;var po=class e extends Pe.WithEventBus{static build(){return new e(window.history,Es,()=>window.location,!1)}constructor(t,o,n,a){var s,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ft(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[s,c,d])=>{let u=new pt(new URL(typeof d=="string"?d:(d??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let p=o(),f={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:u.detail.nextLocation.href};n.apply(a,[f,c,f.href]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(pt.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(pt.eventName,t)}addHistoryChangeListener(t){this.addEventListener(ft.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ft.eventName,t)}currentItem(){return(0,Pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let o=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Pe.deepCopy)(o.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=po.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Os=g($());var As=Os.css`
171
+ `;var Rs=g($()),ee=g(te()),mt=g(T());var ht=g(T());function ws(e,t){let{authenticationRequired:o,session:n}=R.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var fo=class extends Nt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var On=class e extends ht.FtStateManager{static build(t){return new e(R,t)}constructor(t,o){super(),this.store=t,this.cache=new ht.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new fo,this.cleanSessionDebouncer=new ht.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ht.Debouncer(500),this.apiProvider=o??(()=>ut.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(dt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(dt.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 t=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},o.idleTimeoutInMillis),o});this.setSession(t)}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 t;let o=await this.cache.get("availableContentLocales",()=>ws(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=o.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,o){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:o}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ir(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return ys(R.getState().session,...t)}},_s=On.build();var yt=class extends Event{constructor(t,o,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=o,this.callback=n,this.subscribe=a??!1}};var sr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let o=this.pendingContextRequests.get(t.context);if(o===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=o;for(let{elementRef:a,callbackRef:s}of n){let c=a.deref(),d=s.deref();c===void 0||d===void 0||c.dispatchEvent(new yt(t.context,c,d,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let o=t.contextTarget??t.composedPath()[0],n=t.callback,a=this.pendingContextRequests.get(t.context);a===void 0&&this.pendingContextRequests.set(t.context,a={callbacks:new WeakMap,requests:[]});let s=a.callbacks.get(o);s===void 0&&a.callbacks.set(o,s=new WeakSet),s.has(n)||(s.add(n),a.requests.push({elementRef:new WeakRef(o),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var j=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},B=class extends mt.FtLitElementRedux{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=_s,this.contextRoot=new sr}render(){return Rs.html`
172
172
  <slot></slot>
173
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var o;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>It.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((o=this.stateManager)===null||o===void 0||o.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};B.elementDefinitions={};B.styles=As;j([(0,ee.property)()],B.prototype,"baseUrl",void 0);j([(0,ee.property)()],B.prototype,"tenantId",void 0);j([(0,ee.property)()],B.prototype,"apiIntegrationIdentifier",void 0);j([(0,ee.property)()],B.prototype,"apiIntegrationAppVersion",void 0);j([(0,ee.property)()],B.prototype,"uiLocale",void 0);j([(0,yt.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);j([(0,yt.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"editorMode",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"noCustom",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);j([(0,ee.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);j([(0,ee.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomCode",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"withManualResources",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);j([(0,yt.jsonProperty)([])],B.prototype,"messageContexts",void 0);j([(0,yt.jsonProperty)(void 0)],B.prototype,"session",void 0);var Ls=g(T());var Ts={"ft-app-context":B};(0,Ls.customElements)(Ts);var ho=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?uo:It}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};var Dt=g(T());var Ns=g(te());var An=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,n]=t.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Pt=new An;var fd=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},lr=Symbol("i18nAttributes"),ks=Symbol("i18nListAttributes"),Is=Symbol("i18nProperties"),yo=Symbol("i18nContexts"),cr=Symbol("i18nUnsubs"),bo=(0,Dt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?uo:It}i18n(s){let{context:c,key:d,message:u}=s,{custom:p,args:f,argsProvider:h}=s;if(c&&d){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let y=f??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,d,...y)}return u}async awaitI18n(s){let{context:c,custom:d}=s;return c&&await this.getI18nService(d).prepareContext(c),this.i18n(s)}customI18n(s,c){if(Pt.isI18nKey(s)){let[d,u]=s.split(".");return this.i18n({custom:!0,context:d,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,d,u)=>s.has(d)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,d,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,d;let u=this,p=(f,h,y)=>y?.context&&y.key&&s(f,h,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...f})}:y;(c=this[lr])===null||c===void 0||c.forEach((f,h)=>u[h]=p(f,h,u[h])),(d=this[ks])===null||d===void 0||d.forEach((f,h)=>{var y;return u[h]=(y=u[h])===null||y===void 0?void 0:y.map(x=>p(f,h,x))})}updateI18nProperties(s){var c;(c=this[Is])===null||c===void 0||c.forEach((d,u)=>{s(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(s,c,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,d)}addI18nContext(s,c,d){let u=(typeof s=="string"?s:s.name).toLowerCase();d=typeof s=="string"?d:s.custom,this[yo].set(u,{isCustomContext:d}),this[cr].has(u)||this[cr].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,c)}hasI18nContext(s){return this[yo].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[yo].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[cr].forEach(s=>s()),this[cr].clear()}}return t=yo,o=cr,fd([(0,Ns.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),mo=class extends bo(Dt.FtLitElement){},go=class extends bo(Dt.FtLitElementRedux){};var Ps=g($());var Ds=Ps.css`
173
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var o;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>It.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((o=this.stateManager)===null||o===void 0||o.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};B.elementDefinitions={};B.styles=As;j([(0,ee.property)()],B.prototype,"baseUrl",void 0);j([(0,ee.property)()],B.prototype,"tenantId",void 0);j([(0,ee.property)()],B.prototype,"apiIntegrationIdentifier",void 0);j([(0,ee.property)()],B.prototype,"apiIntegrationAppVersion",void 0);j([(0,ee.property)()],B.prototype,"uiLocale",void 0);j([(0,mt.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);j([(0,mt.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"editorMode",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"noCustom",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);j([(0,ee.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);j([(0,ee.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomCode",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"withManualResources",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);j([(0,ee.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);j([(0,mt.jsonProperty)([])],B.prototype,"messageContexts",void 0);j([(0,mt.jsonProperty)(void 0)],B.prototype,"session",void 0);var Ls=g(T());var Ts={"ft-app-context":B};(0,Ls.customElements)(Ts);var ho=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?uo:It}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};var Dt=g(T());var Ns=g(te());var An=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,n]=t.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Pt=new An;var fd=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},lr=Symbol("i18nAttributes"),ks=Symbol("i18nListAttributes"),Is=Symbol("i18nProperties"),yo=Symbol("i18nContexts"),cr=Symbol("i18nUnsubs"),bo=(0,Dt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?uo:It}i18n(s){let{context:c,key:d,message:u}=s,{custom:p,args:f,argsProvider:h}=s;if(c&&d){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let y=f??(h?h(this):[]);return this.getI18nService(p).resolveMessage(c,d,...y)}return u}async awaitI18n(s){let{context:c,custom:d}=s;return c&&await this.getI18nService(d).prepareContext(c),this.i18n(s)}customI18n(s,c){if(Pt.isI18nKey(s)){let[d,u]=s.split(".");return this.i18n({custom:!0,context:d,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,d,u)=>s.has(d)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,d,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,d;let u=this,p=(f,h,y)=>y?.context&&y.key&&s(f,h,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...f})}:y;(c=this[lr])===null||c===void 0||c.forEach((f,h)=>u[h]=p(f,h,u[h])),(d=this[ks])===null||d===void 0||d.forEach((f,h)=>{var y;return u[h]=(y=u[h])===null||y===void 0?void 0:y.map(x=>p(f,h,x))})}updateI18nProperties(s){var c;(c=this[Is])===null||c===void 0||c.forEach((d,u)=>{s(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(s,c,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,d)}addI18nContext(s,c,d){let u=(typeof s=="string"?s:s.name).toLowerCase();d=typeof s=="string"?d:s.custom,this[yo].set(u,{isCustomContext:d}),this[cr].has(u)||this[cr].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,c)}hasI18nContext(s){return this[yo].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[yo].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[cr].forEach(s=>s()),this[cr].clear()}}return t=yo,o=cr,fd([(0,Ns.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),mo=class extends bo(Dt.FtLitElement){},go=class extends bo(Dt.FtLitElementRedux){};var Ps=g($());var Ds=Ps.css`
174
174
  `;var xo=g($()),Ut=g(te()),So=g(T());var Mt=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},fe=class extends go{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:xo.nothing:xo.html`
175
175
  <span class="ft-i18n">
176
176
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -329,7 +329,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
329
329
  position: relative;
330
330
  word-break: break-word;
331
331
  }
332
- `;var Js=["top","right","bottom","left"],Xs=["start","end"],_n=Js.reduce((e,t)=>e.concat(t,t+"-"+Xs[0],t+"-"+Xs[1]),[]),pr=Math.min,We=Math.max,fr=Math.round;var Te=e=>({x:e,y:e}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Qs(e,t,o){return We(e,pr(t,o))}function vo(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function Rn(e){return e==="x"?"y":"x"}function Tn(e){return e==="y"?"height":"width"}function Co(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ln(e){return Rn(Co(e))}function ec(e,t,o){o===void 0&&(o=!1);let n=Ve(e),a=Ln(e),s=Tn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=wn(c)),[c,wn(c)]}function tc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function wn(e){let t=hr(e);return hd[t]+e.slice(t.length)}function yd(e){var t,o,n,a;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(n=e.bottom)!=null?n:0,left:(a=e.left)!=null?a:0}}function rc(e){return typeof e!="number"?yd(e):{top:e,right:e,bottom:e,left:e}}function mt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function oc(e,t,o){let{reference:n,floating:a}=e,s=Co(t),c=Ln(t),d=Tn(c),u=hr(t),p=s==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,y=n[d]/2-a[d]/2,x;switch(u){case"top":x={x:f,y:n.y-a.height};break;case"bottom":x={x:f,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:h};break;case"left":x={x:n.x-a.width,y:h};break;default:x={x:n.x,y:n.y}}let C=Ve(t);return C&&(x[c]+=y*(C==="end"?1:-1)*(o&&p?-1:1)),x}async function nc(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:s,rects:c,elements:d,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:x=0}=vo(t,e),C=rc(x),v=d[y?h==="floating"?"reference":"floating":h],_=mt(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(v)))==null||o?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:f,strategy:u})),I=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),O=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},P=mt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:I,offsetParent:E,strategy:u}):I);return{top:(_.top-P.top+C.top)/O.y,bottom:(P.bottom-_.bottom+C.bottom)/O.y,left:(_.left-P.left+C.left)/O.x,right:(P.right-_.right+C.right)/O.x}}var md=50,ic=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:c}=o,d=c.detectOverflow?c:{...c,detectOverflow:nc},u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:h}=oc(p,n,u),y=n,x=0,C={};for(let A=0;A<s.length;A++){let v=s[A];if(!v)continue;let{name:_,fn:I}=v,{x:E,y:O,data:P,reset:N}=await I({x:f,y:h,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:p,platform:d,elements:{reference:e,floating:t}});f=E??f,h=O??h,C[_]={...C[_],...P},N&&x<md&&(x++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(p=N.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):N.rects),{x:f,y:h}=oc(p,y,u)),A=-1)}return{x:f,y:h,placement:y,strategy:a,middlewareData:C}};function gd(e,t,o){return(e?[...o.filter(a=>Ve(a)===e),...o.filter(a=>Ve(a)!==e)]:o.filter(a=>hr(a)===a)).filter(a=>e?Ve(a)===e||(t?tc(a)!==a:!1):!0)}var ac=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:s,middlewareData:c,placement:d,platform:u,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=_n,autoAlignment:x=!0,...C}=vo(e,t),A=h!==void 0||y===_n?gd(h||null,x,y):y,v=((o=c.autoPlacement)==null?void 0:o.index)||0,_=A[v];if(_==null)return{};if(d!==_)return{reset:{placement:A[0]}};let I=await u.detectOverflow(t,C),E=ec(_,s,await(u.isRTL==null?void 0:u.isRTL(p.floating))),O=[I[hr(_)],I[E[0]],I[E[1]]],P=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:O}],N=A[v+1];if(N)return{data:{index:v+1,overflows:P},reset:{placement:N}};let V=P.map(le=>{let zt=Ve(le.placement);return[le.placement,zt&&f?le.overflows.slice(0,2).reduce((jc,Zc)=>jc+Zc,0):le.overflows[0],le.overflows]}).sort((le,zt)=>le[1]-zt[1]),vr=((a=V.filter(le=>le[2].slice(0,Ve(le[0])?2:3).every(zt=>zt<=0))[0])==null?void 0:a[0])||V[0][0];return vr!==d?{data:{index:v+1,overflows:P},reset:{placement:vr}}:{}}}};var sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:s}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:u={fn:I=>{let{x:E,y:O}=I;return{x:E,y:O}}},...p}=vo(e,t),f={x:o,y:n},h=await s.detectOverflow(t,p),y=Co(a),x=Rn(y),C=f[x],A=f[y],v=(I,E)=>Qs(E+h[I==="y"?"top":"left"],E,E-h[I==="y"?"bottom":"right"]);c&&(C=v(x,C)),d&&(A=v(y,A));let _=u.fn({...t,[x]:C,[y]:A});return{..._,data:{x:_.x-o,y:_.y-n,enabled:{[x]:c,[y]:d}}}}}};function Oo(){return typeof window<"u"}function bt(e){return lc(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(lc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lc(e){return Oo()?e instanceof Node||e instanceof ne(e).Node:!1}function Se(e){return Oo()?e instanceof Element||e instanceof ne(e).Element:!1}function Me(e){return Oo()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function cc(e){return!Oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function yr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function dc(e){return/^(table|td|th)$/.test(bt(e))}function mr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var bd=/transform|translate|scale|rotate|perspective|filter/,xd=/paint|layout|strict|content/,gt=e=>!!e&&e!=="none",Nn;function Bt(e){let t=Se(e)?ve(e):e;return gt(t.transform)||gt(t.translate)||gt(t.scale)||gt(t.rotate)||gt(t.perspective)||!Ao()&&(gt(t.backdropFilter)||gt(t.filter))||bd.test(t.willChange||"")||xd.test(t.contain||"")}function uc(e){let t=Ke(e);for(;Me(t)&&!Ft(t);){if(Bt(t))return t;if(mr(t))return null;t=Ke(t)}return null}function Ao(){return Nn==null&&(Nn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nn}function Ft(e){return/^(html|body|#document)$/.test(bt(e))}function ve(e){return ne(e).getComputedStyle(e)}function gr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ke(e){if(bt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||cc(e)&&e.host||De(e);return cc(t)?t.host:t}function pc(e){let t=Ke(e);return Ft(t)?(e.ownerDocument||e).body:Me(t)&&yr(t)?t:pc(t)}function Eo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=pc(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),c=ne(a);if(s){let d=wo(c);return t.concat(c,c.visualViewport||[],yr(a)?a:[],d&&o?Eo(d):[])}else return t.concat(a,Eo(a,[],o))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yc(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Me(e),s=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=fr(o)!==s||fr(n)!==c;return d&&(o=s,n=c),{width:o,height:n,$:d}}function mc(e){return Se(e)?e:e.contextElement}function $t(e){let t=mc(e);if(!Me(t))return Te(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:s}=yc(t),c=(s?fr(o.width):o.width)/n,d=(s?fr(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var Sd=Te(0);function gc(e){let t=ne(e);return!Ao()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vd(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===ne(e)}function br(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),s=mc(e),c=Te(1);t&&(n?Se(n)&&(c=$t(n)):c=$t(e));let d=vd(s,o,n)?gc(s):Te(0),u=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,f=a.width/c.x,h=a.height/c.y;if(s&&n){let y=ne(s),x=Se(n)?ne(n):n,C=y,A=wo(C);for(;A&&x!==C;){let v=$t(A),_=A.getBoundingClientRect(),I=ve(A),E=_.left+(A.clientLeft+parseFloat(I.paddingLeft))*v.x,O=_.top+(A.clientTop+parseFloat(I.paddingTop))*v.y;u*=v.x,p*=v.y,f*=v.x,h*=v.y,u+=E,p+=O,C=ne(A),A=wo(C)}}return mt({width:f,height:h,x:u,y:p})}function _o(e,t){let o=gr(e).scrollLeft;return t?t.left+o:br(De(e)).left+o}function bc(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-_o(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function Cd(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,s=a==="fixed",c=De(n),d=t?mr(t.floating):!1;if(n===c||d&&s)return o;let u={scrollLeft:0,scrollTop:0},p=Te(1),f=Te(0),h=Me(n);if((h||!s)&&((bt(n)!=="body"||yr(c))&&(u=gr(n)),h)){let x=br(n);p=$t(n),f.x=x.x+n.clientLeft,f.y=x.y+n.clientTop}let y=c&&!h&&!s?bc(c,u):Te(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-u.scrollLeft*p.x+f.x+y.x,y:o.y*p.y-u.scrollTop*p.y+f.y+y.y}}function Ed(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Od(e){let t=gr(e),o=e.ownerDocument.body,n=We(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=We(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+_o(e),c=-t.scrollTop;return ve(o).direction==="rtl"&&(s+=We(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:c}}var Ad=25;function wd(e,t,o){o===void 0&&(o="viewport");let n=o==="layoutViewport",a=ne(e),s=De(e),c=a.visualViewport,d=s.clientWidth,u=s.clientHeight,p=0,f=0;if(c){let y=!Ao()||t==="fixed";n?y||(p=-c.offsetLeft,f=-c.offsetTop):(d=c.width,u=c.height,y&&(p=c.offsetLeft,f=c.offsetTop))}if(_o(s)<=0){let y=s.ownerDocument,x=y.body,C=getComputedStyle(x),A=y.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,v=Math.abs(s.clientWidth-x.clientWidth-A),_=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;_<=Ad&&(d-=_)}return{width:d,height:u,x:p,y:f}}function _d(e,t){let o=br(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,s=$t(e),c=e.clientWidth*s.x,d=e.clientHeight*s.y,u=a*s.x,p=n*s.y;return{width:c,height:d,x:u,y:p}}function fc(e,t,o){let n;if(t==="viewport"||t==="layoutViewport")n=wd(e,o,t);else if(t==="document")n=Od(De(e));else if(Se(t))n=_d(t,o);else{let a=gc(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return mt(n)}function Rd(e,t){let o=t.get(e);if(o)return o;let n=Eo(e,[],!1).filter(d=>Se(d)&&bt(d)!=="body"),a=null,s=ve(e).position==="fixed",c=s?Ke(e):e;for(;Se(c)&&!Ft(c);){let d=ve(c),u=Bt(c),p=a?a.position:s?"fixed":"";!u&&(p==="fixed"||p==="absolute"&&d.position==="static")?n=n.filter(h=>h!==c):a=d,c=Ke(c)}return t.set(e,n),n}function Td(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?mr(t)?[]:Rd(t,this._c):[].concat(o),n],d=fc(t,c[0],a),u=d.top,p=d.right,f=d.bottom,h=d.left;for(let y=1;y<c.length;y++){let x=fc(t,c[y],a);u=We(x.top,u),p=pr(x.right,p),f=pr(x.bottom,f),h=We(x.left,h)}return{width:p-h,height:f-u,x:h,y:u}}function Ld(e){let{width:t,height:o}=yc(e);return{width:t,height:o}}function Nd(e,t,o){let n=Me(t),a=De(t),s=o==="fixed",c=br(e,!0,s,t),d={scrollLeft:0,scrollTop:0},u=Te(0);if((n||!s)&&((bt(t)!=="body"||yr(a))&&(d=gr(t)),n)){let y=br(t,!0,s,t);u.x=y.x+t.clientLeft,u.y=y.y+t.clientTop}!n&&a&&(u.x=_o(a));let p=a&&!n&&!s?bc(a,d):Te(0),f=c.left+d.scrollLeft-u.x-p.x,h=c.top+d.scrollTop-u.y-p.y;return{x:f,y:h,width:c.width,height:c.height}}function kn(e){return ve(e).position==="static"}function hc(e,t){if(!Me(e)||ve(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return De(e)===o&&(o=o.ownerDocument.body),o}function xc(e,t){let o=ne(e);if(mr(e))return o;if(!Me(e)){let a=Ke(e);for(;a&&!Ft(a);){if(Se(a)&&!kn(a))return a;a=Ke(a)}return o}let n=hc(e,t);for(;n&&dc(n)&&kn(n);)n=hc(n,t);return n&&Ft(n)&&kn(n)&&!Bt(n)?o:n||uc(e)||o}var kd=async function(e){let t=this.getOffsetParent||xc,o=this.getDimensions,n=await o(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Id(e){return ve(e).direction==="rtl"}var Ro={convertOffsetParentRelativeRectToViewportRelativeRect:Cd,getDocumentElement:De,getClippingRect:Td,getOffsetParent:xc,getElementRects:kd,getClientRects:Ed,getDimensions:Ld,getScale:$t,isElement:Se,isRTL:Id};var Sc=ac,vc=sc;var Cc=(e,t,o)=>{let n=new Map,a=o??{},s={...Ro,...a.platform,_c:n};return ic(e,t,{...a,platform:s})};function Ec(e){return Pd(e)}function In(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Pd(e){for(let t=e;t;t=In(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=In(e);t;t=In(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||Bt(o)||t.tagName==="BODY"))return t}return null}async function Oc(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},Cc(e,t,{strategy:n.strategy,platform:{...Ro,getOffsetParent:a=>Ro.getOffsetParent(a,Ec)},middleware:[vc({crossAxis:!0}),Sc({allowedPlacements:[n.placement]})]})}var Ac=g(T());var Pn=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Pt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Dd=new Pn;var wc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Ac.hasChanged,converter:Pt,...t}),o[lr]=(a=o[lr])!==null&&a!==void 0?a:new Map,o[lr].set(n,e??{})};var Ce=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},K=class extends mo{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new he.Debouncer,this.revealDebouncer=new he.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,o;return _c.html`
332
+ `;var Js=["top","right","bottom","left"],Xs=["start","end"],_n=Js.reduce((e,t)=>e.concat(t,t+"-"+Xs[0],t+"-"+Xs[1]),[]),pr=Math.min,We=Math.max,fr=Math.round;var Te=e=>({x:e,y:e}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Qs(e,t,o){return We(e,pr(t,o))}function vo(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function Rn(e){return e==="x"?"y":"x"}function Tn(e){return e==="y"?"height":"width"}function Co(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ln(e){return Rn(Co(e))}function ec(e,t,o){o===void 0&&(o=!1);let n=Ve(e),a=Ln(e),s=Tn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=wn(c)),[c,wn(c)]}function tc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function wn(e){let t=hr(e);return hd[t]+e.slice(t.length)}function yd(e){var t,o,n,a;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(n=e.bottom)!=null?n:0,left:(a=e.left)!=null?a:0}}function rc(e){return typeof e!="number"?yd(e):{top:e,right:e,bottom:e,left:e}}function gt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function oc(e,t,o){let{reference:n,floating:a}=e,s=Co(t),c=Ln(t),d=Tn(c),u=hr(t),p=s==="y",f=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,y=n[d]/2-a[d]/2,x;switch(u){case"top":x={x:f,y:n.y-a.height};break;case"bottom":x={x:f,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:h};break;case"left":x={x:n.x-a.width,y:h};break;default:x={x:n.x,y:n.y}}let C=Ve(t);return C&&(x[c]+=y*(C==="end"?1:-1)*(o&&p?-1:1)),x}async function nc(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:s,rects:c,elements:d,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:x=0}=vo(t,e),C=rc(x),v=d[y?h==="floating"?"reference":"floating":h],_=gt(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(v)))==null||o?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:f,strategy:u})),I=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),O=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},D=gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:I,offsetParent:E,strategy:u}):I);return{top:(_.top-D.top+C.top)/O.y,bottom:(D.bottom-_.bottom+C.bottom)/O.y,left:(_.left-D.left+C.left)/O.x,right:(D.right-_.right+C.right)/O.x}}var md=50,ic=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:c}=o,d=c.detectOverflow?c:{...c,detectOverflow:nc},u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:h}=oc(p,n,u),y=n,x=0,C={};for(let A=0;A<s.length;A++){let v=s[A];if(!v)continue;let{name:_,fn:I}=v,{x:E,y:O,data:D,reset:N}=await I({x:f,y:h,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:p,platform:d,elements:{reference:e,floating:t}});f=E??f,h=O??h,C[_]={...C[_],...D},N&&x<md&&(x++,typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(p=N.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):N.rects),{x:f,y:h}=oc(p,y,u)),A=-1)}return{x:f,y:h,placement:y,strategy:a,middlewareData:C}};function gd(e,t,o){return(e?[...o.filter(a=>Ve(a)===e),...o.filter(a=>Ve(a)!==e)]:o.filter(a=>hr(a)===a)).filter(a=>e?Ve(a)===e||(t?tc(a)!==a:!1):!0)}var ac=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:s,middlewareData:c,placement:d,platform:u,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=_n,autoAlignment:x=!0,...C}=vo(e,t),A=h!==void 0||y===_n?gd(h||null,x,y):y,v=((o=c.autoPlacement)==null?void 0:o.index)||0,_=A[v];if(_==null)return{};if(d!==_)return{reset:{placement:A[0]}};let I=await u.detectOverflow(t,C),E=ec(_,s,await(u.isRTL==null?void 0:u.isRTL(p.floating))),O=[I[hr(_)],I[E[0]],I[E[1]]],D=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:O}],N=A[v+1];if(N)return{data:{index:v+1,overflows:D},reset:{placement:N}};let V=D.map(le=>{let zt=Ve(le.placement);return[le.placement,zt&&f?le.overflows.slice(0,2).reduce((jc,Zc)=>jc+Zc,0):le.overflows[0],le.overflows]}).sort((le,zt)=>le[1]-zt[1]),vr=((a=V.filter(le=>le[2].slice(0,Ve(le[0])?2:3).every(zt=>zt<=0))[0])==null?void 0:a[0])||V[0][0];return vr!==d?{data:{index:v+1,overflows:D},reset:{placement:vr}}:{}}}};var sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:s}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:u={fn:I=>{let{x:E,y:O}=I;return{x:E,y:O}}},...p}=vo(e,t),f={x:o,y:n},h=await s.detectOverflow(t,p),y=Co(a),x=Rn(y),C=f[x],A=f[y],v=(I,E)=>Qs(E+h[I==="y"?"top":"left"],E,E-h[I==="y"?"bottom":"right"]);c&&(C=v(x,C)),d&&(A=v(y,A));let _=u.fn({...t,[x]:C,[y]:A});return{..._,data:{x:_.x-o,y:_.y-n,enabled:{[x]:c,[y]:d}}}}}};function Oo(){return typeof window<"u"}function xt(e){return lc(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(lc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lc(e){return Oo()?e instanceof Node||e instanceof ne(e).Node:!1}function Se(e){return Oo()?e instanceof Element||e instanceof ne(e).Element:!1}function Me(e){return Oo()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function cc(e){return!Oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function yr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function dc(e){return/^(table|td|th)$/.test(xt(e))}function mr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var bd=/transform|translate|scale|rotate|perspective|filter/,xd=/paint|layout|strict|content/,bt=e=>!!e&&e!=="none",Nn;function Bt(e){let t=Se(e)?ve(e):e;return bt(t.transform)||bt(t.translate)||bt(t.scale)||bt(t.rotate)||bt(t.perspective)||!Ao()&&(bt(t.backdropFilter)||bt(t.filter))||bd.test(t.willChange||"")||xd.test(t.contain||"")}function uc(e){let t=Ke(e);for(;Me(t)&&!Ft(t);){if(Bt(t))return t;if(mr(t))return null;t=Ke(t)}return null}function Ao(){return Nn==null&&(Nn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nn}function Ft(e){return/^(html|body|#document)$/.test(xt(e))}function ve(e){return ne(e).getComputedStyle(e)}function gr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ke(e){if(xt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||cc(e)&&e.host||De(e);return cc(t)?t.host:t}function pc(e){let t=Ke(e);return Ft(t)?(e.ownerDocument||e).body:Me(t)&&yr(t)?t:pc(t)}function Eo(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=pc(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),c=ne(a);if(s){let d=wo(c);return t.concat(c,c.visualViewport||[],yr(a)?a:[],d&&o?Eo(d):[])}else return t.concat(a,Eo(a,[],o))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yc(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Me(e),s=a?e.offsetWidth:o,c=a?e.offsetHeight:n,d=fr(o)!==s||fr(n)!==c;return d&&(o=s,n=c),{width:o,height:n,$:d}}function mc(e){return Se(e)?e:e.contextElement}function $t(e){let t=mc(e);if(!Me(t))return Te(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:s}=yc(t),c=(s?fr(o.width):o.width)/n,d=(s?fr(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}var Sd=Te(0);function gc(e){let t=ne(e);return!Ao()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vd(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===ne(e)}function br(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),s=mc(e),c=Te(1);t&&(n?Se(n)&&(c=$t(n)):c=$t(e));let d=vd(s,o,n)?gc(s):Te(0),u=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,f=a.width/c.x,h=a.height/c.y;if(s&&n){let y=ne(s),x=Se(n)?ne(n):n,C=y,A=wo(C);for(;A&&x!==C;){let v=$t(A),_=A.getBoundingClientRect(),I=ve(A),E=_.left+(A.clientLeft+parseFloat(I.paddingLeft))*v.x,O=_.top+(A.clientTop+parseFloat(I.paddingTop))*v.y;u*=v.x,p*=v.y,f*=v.x,h*=v.y,u+=E,p+=O,C=ne(A),A=wo(C)}}return gt({width:f,height:h,x:u,y:p})}function _o(e,t){let o=gr(e).scrollLeft;return t?t.left+o:br(De(e)).left+o}function bc(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-_o(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function Cd(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,s=a==="fixed",c=De(n),d=t?mr(t.floating):!1;if(n===c||d&&s)return o;let u={scrollLeft:0,scrollTop:0},p=Te(1),f=Te(0),h=Me(n);if((h||!s)&&((xt(n)!=="body"||yr(c))&&(u=gr(n)),h)){let x=br(n);p=$t(n),f.x=x.x+n.clientLeft,f.y=x.y+n.clientTop}let y=c&&!h&&!s?bc(c,u):Te(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-u.scrollLeft*p.x+f.x+y.x,y:o.y*p.y-u.scrollTop*p.y+f.y+y.y}}function Ed(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Od(e){let t=gr(e),o=e.ownerDocument.body,n=We(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=We(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+_o(e),c=-t.scrollTop;return ve(o).direction==="rtl"&&(s+=We(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:c}}var Ad=25;function wd(e,t,o){o===void 0&&(o="viewport");let n=o==="layoutViewport",a=ne(e),s=De(e),c=a.visualViewport,d=s.clientWidth,u=s.clientHeight,p=0,f=0;if(c){let y=!Ao()||t==="fixed";n?y||(p=-c.offsetLeft,f=-c.offsetTop):(d=c.width,u=c.height,y&&(p=c.offsetLeft,f=c.offsetTop))}if(_o(s)<=0){let y=s.ownerDocument,x=y.body,C=getComputedStyle(x),A=y.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,v=Math.abs(s.clientWidth-x.clientWidth-A),_=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;_<=Ad&&(d-=_)}return{width:d,height:u,x:p,y:f}}function _d(e,t){let o=br(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,s=$t(e),c=e.clientWidth*s.x,d=e.clientHeight*s.y,u=a*s.x,p=n*s.y;return{width:c,height:d,x:u,y:p}}function fc(e,t,o){let n;if(t==="viewport"||t==="layoutViewport")n=wd(e,o,t);else if(t==="document")n=Od(De(e));else if(Se(t))n=_d(t,o);else{let a=gc(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return gt(n)}function Rd(e,t){let o=t.get(e);if(o)return o;let n=Eo(e,[],!1).filter(d=>Se(d)&&xt(d)!=="body"),a=null,s=ve(e).position==="fixed",c=s?Ke(e):e;for(;Se(c)&&!Ft(c);){let d=ve(c),u=Bt(c),p=a?a.position:s?"fixed":"";!u&&(p==="fixed"||p==="absolute"&&d.position==="static")?n=n.filter(h=>h!==c):a=d,c=Ke(c)}return t.set(e,n),n}function Td(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?mr(t)?[]:Rd(t,this._c):[].concat(o),n],d=fc(t,c[0],a),u=d.top,p=d.right,f=d.bottom,h=d.left;for(let y=1;y<c.length;y++){let x=fc(t,c[y],a);u=We(x.top,u),p=pr(x.right,p),f=pr(x.bottom,f),h=We(x.left,h)}return{width:p-h,height:f-u,x:h,y:u}}function Ld(e){let{width:t,height:o}=yc(e);return{width:t,height:o}}function Nd(e,t,o){let n=Me(t),a=De(t),s=o==="fixed",c=br(e,!0,s,t),d={scrollLeft:0,scrollTop:0},u=Te(0);if((n||!s)&&((xt(t)!=="body"||yr(a))&&(d=gr(t)),n)){let y=br(t,!0,s,t);u.x=y.x+t.clientLeft,u.y=y.y+t.clientTop}!n&&a&&(u.x=_o(a));let p=a&&!n&&!s?bc(a,d):Te(0),f=c.left+d.scrollLeft-u.x-p.x,h=c.top+d.scrollTop-u.y-p.y;return{x:f,y:h,width:c.width,height:c.height}}function kn(e){return ve(e).position==="static"}function hc(e,t){if(!Me(e)||ve(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return De(e)===o&&(o=o.ownerDocument.body),o}function xc(e,t){let o=ne(e);if(mr(e))return o;if(!Me(e)){let a=Ke(e);for(;a&&!Ft(a);){if(Se(a)&&!kn(a))return a;a=Ke(a)}return o}let n=hc(e,t);for(;n&&dc(n)&&kn(n);)n=hc(n,t);return n&&Ft(n)&&kn(n)&&!Bt(n)?o:n||uc(e)||o}var kd=async function(e){let t=this.getOffsetParent||xc,o=this.getDimensions,n=await o(e.floating);return{reference:Nd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Id(e){return ve(e).direction==="rtl"}var Ro={convertOffsetParentRelativeRectToViewportRelativeRect:Cd,getDocumentElement:De,getClippingRect:Td,getOffsetParent:xc,getElementRects:kd,getClientRects:Ed,getDimensions:Ld,getScale:$t,isElement:Se,isRTL:Id};var Sc=ac,vc=sc;var Cc=(e,t,o)=>{let n=new Map,a=o??{},s={...Ro,...a.platform,_c:n};return ic(e,t,{...a,platform:s})};function Ec(e){return Pd(e)}function In(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Pd(e){for(let t=e;t;t=In(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=In(e);t;t=In(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||Bt(o)||t.tagName==="BODY"))return t}return null}async function Oc(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},Cc(e,t,{strategy:n.strategy,platform:{...Ro,getOffsetParent:a=>Ro.getOffsetParent(a,Ec)},middleware:[vc({crossAxis:!0}),Sc({allowedPlacements:[n.placement]})]})}var Ac=g(T());var Pn=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Pt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Dd=new Pn;var wc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Ac.hasChanged,converter:Pt,...t}),o[lr]=(a=o[lr])!==null&&a!==void 0?a:new Map,o[lr].set(n,e??{})};var Ce=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},K=class extends mo{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new he.Debouncer,this.revealDebouncer=new he.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,o;return _c.html`
333
333
  <div part="container"
334
334
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
335
335
  <slot part="slot"></slot>
@@ -344,7 +344,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
344
344
  </div>
345
345
  </div>
346
346
  </div>
347
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var o,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(o=this.tooltip)===null||o===void 0||o.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Oc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${o}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${he.designSystemVariables.transitionDuration}, left ${he.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,he.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};K.elementDefinitions={"ft-typography":ie};K.styles=Ys;Ce([wc()],K.prototype,"text",void 0);Ce([(0,ye.property)({type:Boolean})],K.prototype,"manual",void 0);Ce([(0,ye.property)({type:Boolean})],K.prototype,"inline",void 0);Ce([(0,he.numberProperty)()],K.prototype,"delay",void 0);Ce([(0,ye.property)()],K.prototype,"position",void 0);Ce([(0,he.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Ce([(0,ye.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Ce([(0,ye.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Ce([(0,ye.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Ce([(0,ye.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Ce([(0,ye.state)()],K.prototype,"visible",void 0);var Tc=g(T());var Rc={"ft-tooltip":K};(0,Tc.customElements)(Rc);var Lc=g($()),xr=g(T()),xt={color:xr.FtCssVariableFactory.extend("--ft-loader-color","",xr.designSystemVariables.colorPrimary),size:xr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Nc=Lc.css`
347
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var o,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(o=this.tooltip)===null||o===void 0||o.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Oc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${o}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${he.designSystemVariables.transitionDuration}, left ${he.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,he.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};K.elementDefinitions={"ft-typography":ie};K.styles=Ys;Ce([wc()],K.prototype,"text",void 0);Ce([(0,ye.property)({type:Boolean})],K.prototype,"manual",void 0);Ce([(0,ye.property)({type:Boolean})],K.prototype,"inline",void 0);Ce([(0,he.numberProperty)()],K.prototype,"delay",void 0);Ce([(0,ye.property)()],K.prototype,"position",void 0);Ce([(0,he.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Ce([(0,ye.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Ce([(0,ye.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Ce([(0,ye.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Ce([(0,ye.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Ce([(0,ye.state)()],K.prototype,"visible",void 0);var Tc=g(T());var Rc={"ft-tooltip":K};(0,Tc.customElements)(Rc);var Lc=g($()),xr=g(T()),St={color:xr.FtCssVariableFactory.extend("--ft-loader-color","",xr.designSystemVariables.colorPrimary),size:xr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Nc=Lc.css`
348
348
  :host {
349
349
  line-height: 0;
350
350
  }
@@ -353,8 +353,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
353
353
  display: inline-block;
354
354
  position: relative;
355
355
 
356
- width: ${xt.size};
357
- height: ${xt.size};
356
+ width: ${St.size};
357
+ height: ${St.size};
358
358
  }
359
359
 
360
360
  .ft-loader div {
@@ -363,7 +363,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
363
363
  width: 25%;
364
364
  height: 25%;
365
365
  border-radius: 50%;
366
- background: ${xt.color};
366
+ background: ${St.color};
367
367
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
368
368
  }
369
369
 
@@ -410,17 +410,17 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
410
410
  transform: translate(0, 0);
411
411
  }
412
412
  100% {
413
- transform: translate(calc(0.35 * ${xt.size}), 0);
413
+ transform: translate(calc(0.35 * ${St.size}), 0);
414
414
  }
415
415
  }
416
- `;var kc=g($()),Ic=g(T());var St=class extends Ic.FtLitElement{render(){return kc.html`
416
+ `;var kc=g($()),Ic=g(T());var vt=class extends Ic.FtLitElement{render(){return kc.html`
417
417
  <div class="ft-loader">
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  <div></div>
422
422
  </div>
423
- `}};St.styles=Nc;var Dc=g(T());var Pc={"ft-loader":St};(0,Dc.customElements)(Pc);var je=g($()),Lo=g(Cr()),D=g(te());var vt=e=>e??H;var To=g($()),w=g(T());var Mc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),W={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Mc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Mc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},Uc=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Dn={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:Uc,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Uc)},Ee={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Bc=To.css`
423
+ `}};vt.styles=Nc;var Dc=g(T());var Pc={"ft-loader":vt};(0,Dc.customElements)(Pc);var Ze=g($()),Lo=g(Cr()),P=g(te());var je=e=>e??H;var To=g($()),w=g(T());var Mc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),W={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Mc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Mc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},Uc=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Dn={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:Uc,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Uc)},Ee={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Bc=To.css`
424
424
  :host {
425
425
  display: inline-block;
426
426
  max-width: 100%;
@@ -559,10 +559,10 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
559
559
  }
560
560
 
561
561
  ft-loader {
562
- ${(0,w.setVariable)(xt.size,W.iconSize)};
563
- ${(0,w.setVariable)(xt.color,"var(--button-internal-color)")};
562
+ ${(0,w.setVariable)(St.size,W.iconSize)};
563
+ ${(0,w.setVariable)(St.color,"var(--button-internal-color)")};
564
564
  }
565
- `;var U=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},L=class e extends(0,Le.toFtFormComponent)(Le.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,n;let a={"ft-button--label":!0,"ft-safari-ellipsis-fix":Le.isSafari},s=je.html`
565
+ `;var M=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},L=class e extends(0,Le.toFtFormComponent)(Le.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,n;let a={"ft-button--label":!0,"ft-safari-ellipsis-fix":Le.isSafari},s=Ze.html`
566
566
  <ft-ripple part="ripple"
567
567
  ?disabled=${this.isDisabled()}
568
568
  ?activated=${this.activated}
@@ -574,36 +574,37 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
574
574
  <slot></slot>
575
575
  </ft-typography>
576
576
  ${this.resolveIcon()}
577
- `,c=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(c?je.html`
577
+ `,c=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(c?Ze.html`
578
578
  <a href="${c}"
579
579
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
580
580
  part="button"
581
581
  class="${(0,Lo.classMap)(this.buttonClasses)}"
582
- aria-label="${vt((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
582
+ aria-label="${je((o=this.ariaLabel)!==null&&o!==void 0?o:this.label)}"
583
583
  ?disabled=${this.isDisabled()}>
584
584
  ${s}
585
585
  </a>
586
- `:je.html`
586
+ `:Ze.html`
587
587
  <button part="button"
588
588
  class="${(0,Lo.classMap)(this.buttonClasses)}"
589
- aria-label="${vt((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
590
- aria-haspopup="${vt(this.ariaHasPopup)}"
591
- aria-pressed="${vt(this.ariaPressed)}"
589
+ aria-label="${je((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
590
+ aria-haspopup="${je(this.ariaHasPopup)}"
591
+ aria-pressed="${je(this.ariaPressed)}"
592
+ aria-expanded="${je(this.ariaExpanded)}"
592
593
  ?disabled=${this.isDisabled()}>
593
594
  ${s}
594
595
  </button>
595
- `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?je.html`
596
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Ze.html`
596
597
  <ft-tooltip part="tooltip"
597
598
  text="${this.label}"
598
599
  position="${this.tooltipPosition}">
599
600
  ${t}
600
601
  </ft-tooltip>
601
- `:t}resolveIcon(){return this.loading?je.html`
602
- <ft-loader part="loader icon"></ft-loader> `:this.icon?je.html`
602
+ `:t}resolveIcon(){return this.loading?Ze.html`
603
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Ze.html`
603
604
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
604
- `:je.html`
605
+ `:Ze.html`
605
606
  <slot part="icon" name="icon"></slot>
606
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};L.elementDefinitions={"ft-ripple":F,"ft-tooltip":K,"ft-icon":J,"ft-loader":St,"ft-typography":ie};L.styles=[Le.safariEllipsisFix,Bc,Le.noTextSelect];L.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let o=t.target.getRootNode();o instanceof ShadowRoot&&o.host?o.host.hasTextContent=t.boundingClientRect.width>0:L.labelsObserver.unobserve(t.target)}});U([(0,D.property)({type:Boolean})],L.prototype,"primary",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"outlined",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"dense",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"round",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"disabled",void 0);U([(0,D.property)()],L.prototype,"icon",void 0);U([(0,D.property)()],L.prototype,"iconVariant",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);U([(0,D.property)()],L.prototype,"label",void 0);U([(0,D.property)()],L.prototype,"type",void 0);U([(0,D.property)()],L.prototype,"href",void 0);U([(0,D.property)()],L.prototype,"target",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"loading",void 0);U([(0,D.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);U([(0,D.property)()],L.prototype,"ariaHasPopup",void 0);U([(0,D.property)({attribute:"aria-pressed"})],L.prototype,"ariaPressed",void 0);U([(0,D.property)()],L.prototype,"tooltipPosition",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);U([(0,D.property)({type:Boolean})],L.prototype,"activated",void 0);U([(0,D.query)(".ft-button")],L.prototype,"button",void 0);U([(0,D.query)(".ft-button--label")],L.prototype,"labelContainer",void 0);U([(0,D.state)()],L.prototype,"hasTextContent",void 0);U([(0,D.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);U([(0,D.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var $c=g(T());var Fc={"ft-button":L};(0,$c.customElements)(Fc);var Hc=g($()),k=g(T()),M={shadow:k.FtCssVariableFactory.extend("--ft-modal-shadow","",k.designSystemVariables.elevation03),borderRadius:k.FtCssVariableFactory.extend("--ft-modal-border-radius","",k.designSystemVariables.borderRadiusM),height:k.FtCssVariableFactory.create("--ft-modal-height","","SIZE","fit-content"),width:k.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:k.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:k.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:k.FtCssVariableFactory.extend("--ft-modal-header-border-color","",k.designSystemVariables.colorOutline),headerBorderWidth:k.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:k.FtCssVariableFactory.extend("--ft-modal-header-background-color","",k.designSystemVariables.colorSurface),headerColor:k.FtCssVariableFactory.extend("--ft-modal-header-color","",k.designSystemVariables.colorOnSurfaceHigh),headerIconColor:k.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",k.designSystemVariables.colorOnSurfaceHigh),contentPadding:k.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:k.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:k.FtCssVariableFactory.extend("--ft-modal-content-background-color","",k.designSystemVariables.colorSurface),contentColor:k.FtCssVariableFactory.extend("--ft-modal-content-color","",k.designSystemVariables.colorOnSurfaceMedium),actionsGap:k.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:k.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:k.FtCssVariableFactory.create("--ft-modal-overlay-opacity","","NUMBER","0.4"),closingButtonColor:k.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",k.designSystemVariables.colorOnSurfaceMedium),contentOverflow:k.FtCssVariableFactory.create("--ft-modal-content-overflow","","UNKNOWN","visible")},zc=Hc.css`
607
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};L.elementDefinitions={"ft-ripple":F,"ft-tooltip":K,"ft-icon":J,"ft-loader":vt,"ft-typography":ie};L.styles=[Le.safariEllipsisFix,Bc,Le.noTextSelect];L.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let o=t.target.getRootNode();o instanceof ShadowRoot&&o.host?o.host.hasTextContent=t.boundingClientRect.width>0:L.labelsObserver.unobserve(t.target)}});M([(0,P.property)({type:Boolean})],L.prototype,"primary",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"outlined",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"dense",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"round",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"disabled",void 0);M([(0,P.property)()],L.prototype,"icon",void 0);M([(0,P.property)()],L.prototype,"iconVariant",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);M([(0,P.property)()],L.prototype,"label",void 0);M([(0,P.property)()],L.prototype,"type",void 0);M([(0,P.property)()],L.prototype,"href",void 0);M([(0,P.property)()],L.prototype,"target",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"loading",void 0);M([(0,P.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);M([(0,P.property)()],L.prototype,"ariaHasPopup",void 0);M([(0,P.property)({attribute:"aria-pressed"})],L.prototype,"ariaPressed",void 0);M([(0,P.property)({attribute:"aria-expanded"})],L.prototype,"ariaExpanded",void 0);M([(0,P.property)()],L.prototype,"tooltipPosition",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);M([(0,P.property)({type:Boolean})],L.prototype,"activated",void 0);M([(0,P.query)(".ft-button")],L.prototype,"button",void 0);M([(0,P.query)(".ft-button--label")],L.prototype,"labelContainer",void 0);M([(0,P.state)()],L.prototype,"hasTextContent",void 0);M([(0,P.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);M([(0,P.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var $c=g(T());var Fc={"ft-button":L};(0,$c.customElements)(Fc);var Hc=g($()),k=g(T()),U={shadow:k.FtCssVariableFactory.extend("--ft-modal-shadow","",k.designSystemVariables.elevation03),borderRadius:k.FtCssVariableFactory.extend("--ft-modal-border-radius","",k.designSystemVariables.borderRadiusM),height:k.FtCssVariableFactory.create("--ft-modal-height","","SIZE","fit-content"),width:k.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:k.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:k.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:k.FtCssVariableFactory.extend("--ft-modal-header-border-color","",k.designSystemVariables.colorOutline),headerBorderWidth:k.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:k.FtCssVariableFactory.extend("--ft-modal-header-background-color","",k.designSystemVariables.colorSurface),headerColor:k.FtCssVariableFactory.extend("--ft-modal-header-color","",k.designSystemVariables.colorOnSurfaceHigh),headerIconColor:k.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",k.designSystemVariables.colorOnSurfaceHigh),contentPadding:k.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:k.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:k.FtCssVariableFactory.extend("--ft-modal-content-background-color","",k.designSystemVariables.colorSurface),contentColor:k.FtCssVariableFactory.extend("--ft-modal-content-color","",k.designSystemVariables.colorOnSurfaceMedium),actionsGap:k.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:k.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:k.FtCssVariableFactory.create("--ft-modal-overlay-opacity","","NUMBER","0.4"),closingButtonColor:k.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",k.designSystemVariables.colorOnSurfaceMedium),contentOverflow:k.FtCssVariableFactory.create("--ft-modal-content-overflow","","UNKNOWN","visible")},zc=Hc.css`
607
608
 
608
609
  @keyframes fade-in {
609
610
  0% {
@@ -611,7 +612,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
611
612
  }
612
613
 
613
614
  100% {
614
- opacity: ${M.overlayOpacity};
615
+ opacity: ${U.overlayOpacity};
615
616
  }
616
617
  }
617
618
 
@@ -635,8 +636,8 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
635
636
 
636
637
  position: absolute;
637
638
  inset: 0;
638
- background-color: ${M.overlayBackgroundColor};
639
- opacity: ${M.overlayOpacity};
639
+ background-color: ${U.overlayBackgroundColor};
640
+ opacity: ${U.overlayOpacity};
640
641
  }
641
642
 
642
643
  [part=inner-container] {
@@ -651,27 +652,27 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
651
652
  top: 50%;
652
653
  bottom: unset;
653
654
  transform: translate(0, -50%);
654
- box-shadow: ${M.shadow};
655
- height: ${M.height};
656
- width: ${M.width};
655
+ box-shadow: ${U.shadow};
656
+ height: ${U.height};
657
+ width: ${U.width};
657
658
  margin: auto;
658
659
  max-height: calc(100% - 24px);
659
660
  max-width: calc(100% - 24px);
660
- border-radius: ${M.borderRadius};
661
+ border-radius: ${U.borderRadius};
661
662
  }
662
663
  }
663
664
 
664
665
  [part=header] {
665
- padding: ${M.headerPadding};
666
+ padding: ${U.headerPadding};
666
667
  display: flex;
667
668
  align-items: center;
668
- gap: ${M.headerGap};
669
- border-color: ${M.headerBorderColor};
670
- border-bottom-width: ${M.headerBorderWidth};
669
+ gap: ${U.headerGap};
670
+ border-color: ${U.headerBorderColor};
671
+ border-bottom-width: ${U.headerBorderWidth};
671
672
  border-bottom-style: solid;
672
- color: ${M.headerColor};
673
- background-color: ${M.headerBackgroundColor};
674
- border-radius: ${M.borderRadius} ${M.borderRadius} 0px 0px;
673
+ color: ${U.headerColor};
674
+ background-color: ${U.headerBackgroundColor};
675
+ border-radius: ${U.borderRadius} ${U.borderRadius} 0px 0px;
675
676
  flex-shrink: 0;
676
677
  }
677
678
 
@@ -681,7 +682,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
681
682
  }
682
683
 
683
684
  [part=icon] {
684
- color: ${M.headerIconColor};
685
+ color: ${U.headerIconColor};
685
686
  }
686
687
 
687
688
  [part=closing-button] {
@@ -691,30 +692,30 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
691
692
  [part=body] {
692
693
  flex-shrink: 1;
693
694
  flex-grow: 1;
694
- padding: ${M.contentPadding};
695
+ padding: ${U.contentPadding};
695
696
  display: flex;
696
697
  flex-direction: column;
697
- gap: ${M.contentGap};
698
- color: ${M.contentColor};
699
- background-color: ${M.contentBackgroundColor};
700
- border-radius: 0px 0px ${M.borderRadius} ${M.borderRadius};
701
- overflow: ${M.contentOverflow};
698
+ gap: ${U.contentGap};
699
+ color: ${U.contentColor};
700
+ background-color: ${U.contentBackgroundColor};
701
+ border-radius: 0px 0px ${U.borderRadius} ${U.borderRadius};
702
+ overflow: ${U.contentOverflow};
702
703
  word-break: break-word;
703
704
  }
704
705
 
705
706
  [part=content] {
706
707
  flex-grow: 1;
707
- overflow: ${M.contentOverflow};
708
+ overflow: ${U.contentOverflow};
708
709
  }
709
710
 
710
711
  [part=actions] {
711
712
  align-self: flex-end;
712
713
  display: flex;
713
- gap: ${M.actionsGap};
714
+ gap: ${U.actionsGap};
714
715
  }
715
716
 
716
717
  [part=closing-button] {
717
- color: ${M.closingButtonColor};
718
+ color: ${U.closingButtonColor};
718
719
  }
719
720
 
720
721
  @media (max-width: 768px) {
@@ -727,7 +728,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
727
728
  `;function Mn(e,t,o){return e?t(e):o?.(e)}var Un=ho.build("ftModal"),Gc={closeModal:"Close modal"};var Sr=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var d=e.length-1;d>=0;d--)(c=e[d])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Bn=class extends Event{constructor(){super("close")}},Fn=class extends Event{constructor(){super("open")}},Oe=class extends bo(No.FtdsBase){constructor(){super(),this.buttonLabel="",this.heading="",this.size=Er.small,this.intersectionObserver=new IntersectionObserver(()=>{this.dialog&&!this.dialog.checkVisibility()&&this.close()}),this.addI18nContext(Un,Gc)}render(){return Ht.html`
728
729
  <div class="${(0,Wc.classMap)({"ft-modal":!0})}" part="container">
729
730
  <slot @click=${this.onTriggerClick} name="trigger">
730
- <ft-button part="button" icon="${vt(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
731
+ <ft-button part="button" icon="${je(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
731
732
  ${Mn(this.buttonIcon,()=>Ht.nothing,()=>this.buttonLabel)}
732
733
  </ft-button>
733
734
  </slot>