@fluid-topics/ft-filter 2.2.37 → 2.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,7 @@
1
- "use strict";(()=>{var Gc=Object.create;var fs=Object.defineProperty;var qc=Object.getOwnPropertyDescriptor;var Yc=Object.getOwnPropertyNames;var Xc=Object.getPrototypeOf,Jc=Object.prototype.hasOwnProperty;var qt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Zc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Yc(t))!Jc.call(e,n)&&n!==r&&fs(e,n,{get:()=>t[n],enumerable:!(i=qc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Gc(Xc(e)):{},Zc(t||!e||!e.__esModule?fs(r,"default",{value:e,enumerable:!0}):r,e));var E=qt((Md,hs)=>{hs.exports=ftGlobals.wcUtils});var k=qt((Id,ms)=>{ms.exports=ftGlobals.lit});var j=qt(($d,ys)=>{ys.exports=ftGlobals.litDecorators});var Ys=qt((sp,qs)=>{qs.exports=ftGlobals.litRepeat});var Jt=qt((op,Xs)=>{Xs.exports=ftGlobals.litClassMap});var Zl=qt((Rg,Jl)=>{Jl.exports=ftGlobals.litUnsafeHTML});var jc=f(E());var Kt=f(k()),B=f(j()),V=f(E());var pn=globalThis,gs=e=>e,Yr=pn.trustedTypes,vs=Yr?Yr.createPolicy("lit-html",{createHTML:e=>e}):void 0,_s="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,Cs="?"+nt,Qc=`<${Cs}>`,Et=document,Xr=()=>Et.createComment(""),yr=e=>e===null||typeof e!="object"&&typeof e!="function",fn=Array.isArray,eu=e=>fn(e)||typeof e?.[Symbol.iterator]=="function",on=`[
2
- \f\r]`,mr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xs=/-->/g,bs=/>/g,xt=RegExp(`>|${on}(?:([^\\s"'>=/]+)(${on}*=${on}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Es=/'/g,Ss=/"/g,ws=/^(?:script|style|textarea|title)$/i,hn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Os=hn(1),Ts=hn(2),Rs=hn(3),gr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),As=new WeakMap,bt=Et.createTreeWalker(Et,129);function ks(e,t){if(!fn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return vs!==void 0?vs.createHTML(t):t}var tu=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=mr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===mr?u[1]==="!--"?o=xs:u[1]!==void 0?o=bs:u[2]!==void 0?(ws.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=xt):u[3]!==void 0&&(o=xt):o===xt?u[0]===">"?(o=n??mr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?xt:u[3]==='"'?Ss:Es):o===Ss||o===Es?o=xt:o===xs||o===bs?o=mr:(o=xt,n=void 0);let y=o===xt&&e[a+1].startsWith("/>")?" ":"";s+=o===mr?l+Qc:d>=0?(i.push(c),l.slice(0,d)+_s+l.slice(d)+nt+y):l+nt+(d===-2?a:y)}return[ks(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},vr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=tu(t,r);if(this.el=e.createElement(c,i),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=bt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(_s)){let p=u[o++],y=n.getAttribute(d).split(nt),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?ln:x[1]==="?"?cn:x[1]==="@"?un:Xt}),n.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(ws.test(n.tagName)){let d=n.textContent.split(nt),p=d.length-1;if(p>0){n.textContent=Yr?Yr.emptyScript:"";for(let y=0;y<p;y++)n.append(d[y],Xr()),bt.nextNode(),l.push({type:2,index:++s});n.append(d[p],Xr())}}}else if(n.nodeType===8)if(n.data===Cs)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:s}),d+=nt.length-1}s++}}static createElement(t,r){let i=Et.createElement("template");return i.innerHTML=t,i}};function Yt(e,t,r=e,i){if(t===gr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=yr(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Yt(e,n._$AS(e,t.values),n,i)),t}var an=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??Et).importNode(r,!0);bt.currentNode=n;let s=bt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Jr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new dn(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=bt.nextNode(),o++)}return bt.currentNode=Et,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Jr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Yt(this,t,r),yr(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==gr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):eu(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!==W&&yr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Et.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=vr.createElement(ks(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new an(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=As.get(t.strings);return r===void 0&&As.set(t.strings,r=new vr(t)),r}k(t){fn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Xr()),this.O(Xr()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=gs(t).nextSibling;gs(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Xt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Yt(this,t,r,0),o=!yr(t)||t!==this._$AH&&t!==gr,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Yt(this,a[i+l],r,l),c===gr&&(c=this._$AH[l]),o||=!yr(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ln=class extends Xt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},cn=class extends Xt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},un=class extends Xt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Yt(this,t,r,0)??W)===gr)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),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)}},dn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Yt(this,t)}};var ru=pn.litHtmlPolyfillSupport;ru?.(vr,Jr),(pn.litHtmlVersions??=[]).push("3.3.3");var Ds=Symbol.for(""),iu=e=>{if(e?.r===Ds)return e?._$litStatic$},mn=e=>({_$litStatic$:e,r:Ds});var Ls=new Map,yn=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=iu(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=Ls.get(d))===void 0&&(o.raw=o,Ls.set(d,t=o)),r=a}return e(t,...r)},gn=yn(Os),Bd=yn(Ts),Hd=yn(Rs);var vn=f(j()),Ws=f(E());var te;(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"})(te||(te={}));var Ce=f(k()),h=f(E()),Ns=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Qe,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ns),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ns),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},Ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},Tt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},Rt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Ps=Ce.css`
1
+ "use strict";(()=>{var qc=Object.create;var fs=Object.defineProperty;var Yc=Object.getOwnPropertyDescriptor;var Xc=Object.getOwnPropertyNames;var Jc=Object.getPrototypeOf,Zc=Object.prototype.hasOwnProperty;var qt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Qc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xc(t))!Zc.call(e,n)&&n!==r&&fs(e,n,{get:()=>t[n],enumerable:!(i=Yc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?qc(Jc(e)):{},Qc(t||!e||!e.__esModule?fs(r,"default",{value:e,enumerable:!0}):r,e));var E=qt((Id,hs)=>{hs.exports=ftGlobals.wcUtils});var k=qt(($d,ms)=>{ms.exports=ftGlobals.lit});var j=qt((Ud,ys)=>{ys.exports=ftGlobals.litDecorators});var Ys=qt((op,qs)=>{qs.exports=ftGlobals.litRepeat});var Jt=qt((ap,Xs)=>{Xs.exports=ftGlobals.litClassMap});var Ql=qt((kg,Zl)=>{Zl.exports=ftGlobals.litUnsafeHTML});var Wc=f(E());var Kt=f(k()),B=f(j()),V=f(E());var pn=globalThis,gs=e=>e,Yr=pn.trustedTypes,vs=Yr?Yr.createPolicy("lit-html",{createHTML:e=>e}):void 0,_s="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,Cs="?"+nt,eu=`<${Cs}>`,St=document,Xr=()=>St.createComment(""),yr=e=>e===null||typeof e!="object"&&typeof e!="function",fn=Array.isArray,tu=e=>fn(e)||typeof e?.[Symbol.iterator]=="function",on=`[
2
+ \f\r]`,mr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xs=/-->/g,bs=/>/g,bt=RegExp(`>|${on}(?:([^\\s"'>=/]+)(${on}*=${on}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Es=/'/g,Ss=/"/g,ws=/^(?:script|style|textarea|title)$/i,hn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Os=hn(1),Ts=hn(2),Rs=hn(3),gr=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),As=new WeakMap,Et=St.createTreeWalker(St,129);function ks(e,t){if(!fn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return vs!==void 0?vs.createHTML(t):t}var ru=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=mr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===mr?u[1]==="!--"?o=xs:u[1]!==void 0?o=bs:u[2]!==void 0?(ws.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=bt):u[3]!==void 0&&(o=bt):o===bt?u[0]===">"?(o=n??mr,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?bt:u[3]==='"'?Ss:Es):o===Ss||o===Es?o=bt:o===xs||o===bs?o=mr:(o=bt,n=void 0);let y=o===bt&&e[a+1].startsWith("/>")?" ":"";s+=o===mr?l+eu:d>=0?(i.push(c),l.slice(0,d)+_s+l.slice(d)+nt+y):l+nt+(d===-2?a:y)}return[ks(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},vr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=ru(t,r);if(this.el=e.createElement(c,i),Et.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Et.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(_s)){let p=u[o++],y=n.getAttribute(d).split(nt),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?ln:x[1]==="?"?cn:x[1]==="@"?un:Xt}),n.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(ws.test(n.tagName)){let d=n.textContent.split(nt),p=d.length-1;if(p>0){n.textContent=Yr?Yr.emptyScript:"";for(let y=0;y<p;y++)n.append(d[y],Xr()),Et.nextNode(),l.push({type:2,index:++s});n.append(d[p],Xr())}}}else if(n.nodeType===8)if(n.data===Cs)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:s}),d+=nt.length-1}s++}}static createElement(t,r){let i=St.createElement("template");return i.innerHTML=t,i}};function Yt(e,t,r=e,i){if(t===gr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=yr(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Yt(e,n._$AS(e,t.values),n,i)),t}var an=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??St).importNode(r,!0);Et.currentNode=n;let s=Et.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Jr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new dn(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Et.nextNode(),o++)}return Et.currentNode=St,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Jr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Yt(this,t,r),yr(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==gr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):tu(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!==W&&yr(this._$AH)?this._$AA.nextSibling.data=t:this.T(St.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=vr.createElement(ks(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new an(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=As.get(t.strings);return r===void 0&&As.set(t.strings,r=new vr(t)),r}k(t){fn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Xr()),this.O(Xr()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=gs(t).nextSibling;gs(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Xt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Yt(this,t,r,0),o=!yr(t)||t!==this._$AH&&t!==gr,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Yt(this,a[i+l],r,l),c===gr&&(c=this._$AH[l]),o||=!yr(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ln=class extends Xt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},cn=class extends Xt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},un=class extends Xt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Yt(this,t,r,0)??W)===gr)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),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)}},dn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Yt(this,t)}};var iu=pn.litHtmlPolyfillSupport;iu?.(vr,Jr),(pn.litHtmlVersions??=[]).push("3.3.3");var Ds=Symbol.for(""),nu=e=>{if(e?.r===Ds)return e?._$litStatic$},mn=e=>({_$litStatic$:e,r:Ds});var Ls=new Map,yn=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=nu(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=Ls.get(d))===void 0&&(o.raw=o,Ls.set(d,t=o)),r=a}return e(t,...r)},gn=yn(Os),Hd=yn(Ts),Vd=yn(Rs);var vn=f(j()),Ws=f(E());var te;(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"})(te||(te={}));var Ce=f(k()),h=f(E()),Ns=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Qe=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:Qe,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ns),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ns),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},Ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},he={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},Tt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},Rt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},kt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Qe),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Ps=Ce.css`
4
4
  .ft-typography--title {
5
- font-family: ${St.fontFamily};
6
- font-size: ${St.fontSize};
7
- font-weight: ${St.fontWeight};
8
- letter-spacing: ${St.letterSpacing};
9
- line-height: ${St.lineHeight};
10
- text-transform: ${St.textTransform};
11
- text-decoration: ${St.textDecoration};
12
- }
13
- `,Ms=Ce.css`
14
- .ft-typography--title-dense {
15
5
  font-family: ${At.fontFamily};
16
6
  font-size: ${At.fontSize};
17
7
  font-weight: ${At.fontWeight};
@@ -20,8 +10,8 @@
20
10
  text-transform: ${At.textTransform};
21
11
  text-decoration: ${At.textDecoration};
22
12
  }
23
- `,Is=Ce.css`
24
- .ft-typography--subtitle1 {
13
+ `,Ms=Ce.css`
14
+ .ft-typography--title-dense {
25
15
  font-family: ${_t.fontFamily};
26
16
  font-size: ${_t.fontSize};
27
17
  font-weight: ${_t.fontWeight};
@@ -30,8 +20,8 @@
30
20
  text-transform: ${_t.textTransform};
31
21
  text-decoration: ${_t.textDecoration};
32
22
  }
33
- `,$s=Ce.css`
34
- .ft-typography--subtitle2 {
23
+ `,Is=Ce.css`
24
+ .ft-typography--subtitle1 {
35
25
  font-family: ${Ct.fontFamily};
36
26
  font-size: ${Ct.fontSize};
37
27
  font-weight: ${Ct.fontWeight};
@@ -40,9 +30,8 @@
40
30
  text-transform: ${Ct.textTransform};
41
31
  text-decoration: ${Ct.textDecoration};
42
32
  }
43
-
44
- `,Us=Ce.css`
45
- .ft-typography--body1 {
33
+ `,$s=Ce.css`
34
+ .ft-typography--subtitle2 {
46
35
  font-family: ${wt.fontFamily};
47
36
  font-size: ${wt.fontSize};
48
37
  font-weight: ${wt.fontWeight};
@@ -51,18 +40,9 @@
51
40
  text-transform: ${wt.textTransform};
52
41
  text-decoration: ${wt.textDecoration};
53
42
  }
54
- `,Fs=Ce.css`
55
- .ft-typography--body2 {
56
- font-family: ${fe.fontFamily};
57
- font-size: ${fe.fontSize};
58
- font-weight: ${fe.fontWeight};
59
- letter-spacing: ${fe.letterSpacing};
60
- line-height: ${fe.lineHeight};
61
- text-transform: ${fe.textTransform};
62
- text-decoration: ${fe.textDecoration};
63
- }
64
- `,Zr=Ce.css`
65
- .ft-typography--caption {
43
+
44
+ `,Us=Ce.css`
45
+ .ft-typography--body1 {
66
46
  font-family: ${Ot.fontFamily};
67
47
  font-size: ${Ot.fontSize};
68
48
  font-weight: ${Ot.fontWeight};
@@ -71,8 +51,18 @@
71
51
  text-transform: ${Ot.textTransform};
72
52
  text-decoration: ${Ot.textDecoration};
73
53
  }
74
- `,Bs=Ce.css`
75
- .ft-typography--breadcrumb {
54
+ `,Fs=Ce.css`
55
+ .ft-typography--body2 {
56
+ font-family: ${he.fontFamily};
57
+ font-size: ${he.fontSize};
58
+ font-weight: ${he.fontWeight};
59
+ letter-spacing: ${he.letterSpacing};
60
+ line-height: ${he.lineHeight};
61
+ text-transform: ${he.textTransform};
62
+ text-decoration: ${he.textDecoration};
63
+ }
64
+ `,Zr=Ce.css`
65
+ .ft-typography--caption {
76
66
  font-family: ${Tt.fontFamily};
77
67
  font-size: ${Tt.fontSize};
78
68
  font-weight: ${Tt.fontWeight};
@@ -81,8 +71,8 @@
81
71
  text-transform: ${Tt.textTransform};
82
72
  text-decoration: ${Tt.textDecoration};
83
73
  }
84
- `,Hs=Ce.css`
85
- .ft-typography--overline {
74
+ `,Bs=Ce.css`
75
+ .ft-typography--breadcrumb {
86
76
  font-family: ${Rt.fontFamily};
87
77
  font-size: ${Rt.fontSize};
88
78
  font-weight: ${Rt.fontWeight};
@@ -91,6 +81,16 @@
91
81
  text-transform: ${Rt.textTransform};
92
82
  text-decoration: ${Rt.textDecoration};
93
83
  }
84
+ `,Hs=Ce.css`
85
+ .ft-typography--overline {
86
+ font-family: ${kt.fontFamily};
87
+ font-size: ${kt.fontSize};
88
+ font-weight: ${kt.fontWeight};
89
+ letter-spacing: ${kt.letterSpacing};
90
+ line-height: ${kt.lineHeight};
91
+ text-transform: ${kt.textTransform};
92
+ text-decoration: ${kt.textDecoration};
93
+ }
94
94
  `,Vs=Ce.css`
95
95
  .ft-typography--button {
96
96
  font-family: ${Ne.fontFamily};
@@ -113,7 +113,7 @@
113
113
  </${mn(this.element)}>
114
114
  `:gn`
115
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
116
- `}};Y.styles=[Ps,Ms,Is,$s,Us,Fs,Zr,Bs,Hs,Vs,zs];js([(0,vn.property)()],Y.prototype,"element",void 0);js([(0,vn.property)()],Y.prototype,"variant",void 0);var Gs=f(E());var Ks={"ft-typography":Y};(0,Gs.customElements)(Ks);var Se=f(k()),ne=f(j()),Nc=f(Ys()),ge=f(E());var Ye=f(E());var no=f(k()),re=f(j()),so=f(Jt()),xr=f(E());var ro=f(k()),K=f(E()),Js=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),oe={color:Js,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Js),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Zs=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Qs={color:Zs,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Zs)},eo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),to={color:eo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",eo)},io=ro.css`
116
+ `}};Y.styles=[Ps,Ms,Is,$s,Us,Fs,Zr,Bs,Hs,Vs,zs];js([(0,vn.property)()],Y.prototype,"element",void 0);js([(0,vn.property)()],Y.prototype,"variant",void 0);var Gs=f(E());var Ks={"ft-typography":Y};(0,Gs.customElements)(Ks);var ne=f(k()),se=f(j()),Pc=f(Ys()),ve=f(E());var Ye=f(E());var no=f(k()),re=f(j()),so=f(Jt()),xr=f(E());var ro=f(k()),K=f(E()),Js=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ae={color:Js,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Js),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Zs=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Qs={color:Zs,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Zs)},eo=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),to={color:eo,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",eo)},io=ro.css`
117
117
  :host {
118
118
  display: contents;
119
119
  }
@@ -126,7 +126,7 @@
126
126
 
127
127
  .ft-ripple:not(.ft-ripple--unbounded) {
128
128
  overflow: hidden;
129
- border-radius: ${oe.borderRadius};
129
+ border-radius: ${ae.borderRadius};
130
130
  }
131
131
 
132
132
  .ft-ripple .ft-ripple--background,
@@ -160,11 +160,11 @@
160
160
  }
161
161
 
162
162
  .ft-ripple .ft-ripple--background {
163
- background-color: ${oe.backgroundColor};
163
+ background-color: ${ae.backgroundColor};
164
164
  }
165
165
 
166
166
  .ft-ripple .ft-ripple--effect {
167
- background-color: ${oe.color};
167
+ background-color: ${ae.color};
168
168
  }
169
169
 
170
170
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -210,22 +210,22 @@
210
210
  }
211
211
 
212
212
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
213
- opacity: ${oe.opacityContentOnSurfaceHover};
213
+ opacity: ${ae.opacityContentOnSurfaceHover};
214
214
  }
215
215
 
216
216
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
217
- opacity: ${oe.opacityContentOnSurfaceSelected};
217
+ opacity: ${ae.opacityContentOnSurfaceSelected};
218
218
  }
219
219
 
220
220
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
221
- opacity: ${oe.opacityContentOnSurfaceFocused};
221
+ opacity: ${ae.opacityContentOnSurfaceFocused};
222
222
  }
223
223
 
224
224
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
225
- opacity: ${oe.opacityContentOnSurfacePressed};
225
+ opacity: ${ae.opacityContentOnSurfacePressed};
226
226
  transform: translate(-50%, -50%) scale(1);
227
227
  }
228
- `;var he=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},N=class extends xr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new xr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new xr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:s}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return no.html`
228
+ `;var me=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},N=class extends xr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new xr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new xr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:s}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return no.html`
229
229
  <style>
230
230
  .ft-ripple .ft-ripple--effect {
231
231
  left: ${this.originX}px;
@@ -236,7 +236,7 @@
236
236
  <div class="ft-ripple--background"></div>
237
237
  <div class="ft-ripple--effect"></div>
238
238
  </div>
239
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",n,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",n,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=io;he([(0,re.property)({type:Boolean})],N.prototype,"primary",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"secondary",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"unbounded",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"activated",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"selected",void 0);he([(0,re.property)({type:Boolean})],N.prototype,"disabled",void 0);he([(0,re.state)()],N.prototype,"hovered",void 0);he([(0,re.state)()],N.prototype,"focused",void 0);he([(0,re.state)()],N.prototype,"pressed",void 0);he([(0,re.state)()],N.prototype,"rippling",void 0);he([(0,re.state)()],N.prototype,"originX",void 0);he([(0,re.state)()],N.prototype,"originY",void 0);he([(0,re.query)(".ft-ripple")],N.prototype,"ripple",void 0);he([(0,re.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var ao=f(E());var oo={"ft-ripple":N};(0,ao.customElements)(oo);var Kl=f(k()),ke=f(j()),Re=f(E());var lo=f(k()),st=f(E()),br={distance:st.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:st.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:st.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:st.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",st.designSystemVariables.borderRadiusS),maxWidth:st.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},co=lo.css`
239
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",n,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",n,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=io;me([(0,re.property)({type:Boolean})],N.prototype,"primary",void 0);me([(0,re.property)({type:Boolean})],N.prototype,"secondary",void 0);me([(0,re.property)({type:Boolean})],N.prototype,"unbounded",void 0);me([(0,re.property)({type:Boolean})],N.prototype,"activated",void 0);me([(0,re.property)({type:Boolean})],N.prototype,"selected",void 0);me([(0,re.property)({type:Boolean})],N.prototype,"disabled",void 0);me([(0,re.state)()],N.prototype,"hovered",void 0);me([(0,re.state)()],N.prototype,"focused",void 0);me([(0,re.state)()],N.prototype,"pressed",void 0);me([(0,re.state)()],N.prototype,"rippling",void 0);me([(0,re.state)()],N.prototype,"originX",void 0);me([(0,re.state)()],N.prototype,"originY",void 0);me([(0,re.query)(".ft-ripple")],N.prototype,"ripple",void 0);me([(0,re.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var ao=f(E());var oo={"ft-ripple":N};(0,ao.customElements)(oo);var Gl=f(k()),ke=f(j()),Re=f(E());var lo=f(k()),st=f(E()),br={distance:st.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:st.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:st.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:st.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",st.designSystemVariables.borderRadiusS),maxWidth:st.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},co=lo.css`
240
240
  .ft-tooltip--container {
241
241
  display: block;
242
242
  }
@@ -267,15 +267,15 @@
267
267
  position: relative;
268
268
  word-break: break-word;
269
269
  }
270
- `;var po=["top","right","bottom","left"],uo=["start","end"],bn=po.reduce((e,t)=>e.concat(t,t+"-"+uo[0],t+"-"+uo[1]),[]),Er=Math.min,ot=Math.max,Sr=Math.round;var je=e=>({x:e,y:e}),nu={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e,t,r){return ot(e,Er(t,r))}function Qr(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function En(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}function ei(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function An(e){return En(ei(e))}function ho(e,t,r){r===void 0&&(r=!1);let i=at(e),n=An(e),s=Sn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=xn(o)),[o,xn(o)]}function mo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function xn(e){let t=Ar(e);return nu[t]+e.slice(t.length)}function su(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function yo(e){return typeof e!="number"?su(e):{top:e,right:e,bottom:e,left:e}}function kt(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function go(e,t,r){let{reference:i,floating:n}=e,s=ei(t),o=An(t),a=Sn(o),l=Ar(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:d};break;case"left":y={x:i.x-n.width,y:d};break;default:y={x:i.x,y:i.y}}let x=at(t);return x&&(y[o]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function vo(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Qr(t,e),x=yo(y),v=a[p?d==="floating"?"reference":"floating":d],C=kt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),R=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},D=kt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:R,offsetParent:b,strategy:l}):R);return{top:(C.top-D.top+x.top)/S.y,bottom:(D.bottom-C.bottom+x.bottom)/S.y,left:(C.left-D.left+x.left)/S.x,right:(D.right-C.right+x.right)/S.x}}var ou=50,xo=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:vo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=go(c,i,l),p=i,y=0,x={};for(let A=0;A<s.length;A++){let v=s[A];if(!v)continue;let{name:C,fn:R}=v,{x:b,y:S,data:D,reset:T}=await R({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=S??d,x[C]={...x[C],...D},T&&y<ou&&(y++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:u,y:d}=go(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function au(e,t,r){return(e?[...r.filter(n=>at(n)===e),...r.filter(n=>at(n)!==e)]:r.filter(n=>Ar(n)===n)).filter(n=>e?at(n)===e||(t?mo(n)!==n:!1):!0)}var bo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=bn,autoAlignment:y=!0,...x}=Qr(e,t),A=d!==void 0||p===bn?au(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,C=A[v];if(C==null)return{};if(a!==C)return{reset:{placement:A[0]}};let R=await l.detectOverflow(t,x),b=ho(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[R[Ar(C)],R[b[0]],R[b[1]]],D=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:S}],T=A[v+1];if(T)return{data:{index:v+1,overflows:D},reset:{placement:T}};let q=D.map(_e=>{let hr=at(_e.placement);return[_e.placement,hr&&u?_e.overflows.slice(0,2).reduce((Wc,Kc)=>Wc+Kc,0):_e.overflows[0],_e.overflows]}).sort((_e,hr)=>_e[1]-hr[1]),qr=((n=q.filter(_e=>_e[2].slice(0,at(_e[0])?2:3).every(hr=>hr<=0))[0])==null?void 0:n[0])||q[0][0];return qr!==a?{data:{index:v+1,overflows:D},reset:{placement:qr}}:{}}}};var Eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:R=>{let{x:b,y:S}=R;return{x:b,y:S}}},...c}=Qr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=ei(n),y=En(p),x=u[y],A=u[p],v=(R,b)=>fo(b+d[R==="y"?"top":"left"],b,b-d[R==="y"?"bottom":"right"]);o&&(x=v(y,x)),a&&(A=v(p,A));let C=l.fn({...t,[y]:x,[p]:A});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[y]:o,[p]:a}}}}}};function ri(){return typeof window<"u"}function Dt(e){return Ao(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Ao(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ao(e){return ri()?e instanceof Node||e instanceof me(e).Node:!1}function Pe(e){return ri()?e instanceof Element||e instanceof me(e).Element:!1}function tt(e){return ri()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function So(e){return!ri()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function _r(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function _o(e){return/^(table|td|th)$/.test(Dt(e))}function Cr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var lu=/transform|translate|scale|rotate|perspective|filter/,cu=/paint|layout|strict|content/,Lt=e=>!!e&&e!=="none",_n;function Zt(e){let t=Pe(e)?Me(e):e;return Lt(t.transform)||Lt(t.translate)||Lt(t.scale)||Lt(t.rotate)||Lt(t.perspective)||!ii()&&(Lt(t.backdropFilter)||Lt(t.filter))||lu.test(t.willChange||"")||cu.test(t.contain||"")}function Co(e){let t=lt(e);for(;tt(t)&&!Qt(t);){if(Zt(t))return t;if(Cr(t))return null;t=lt(t)}return null}function ii(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function Qt(e){return/^(html|body|#document)$/.test(Dt(e))}function Me(e){return me(e).getComputedStyle(e)}function wr(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Dt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||So(e)&&e.host||et(e);return So(t)?t.host:t}function wo(e){let t=lt(e);return Qt(t)?(e.ownerDocument||e).body:tt(t)&&_r(t)?t:wo(t)}function ti(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=wo(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=me(n);if(s){let a=ni(o);return t.concat(o,o.visualViewport||[],_r(n)?n:[],a&&r?ti(a):[])}else return t.concat(n,ti(n,[],r))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ro(e){let t=Me(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=tt(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=Sr(r)!==s||Sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function ko(e){return Pe(e)?e:e.contextElement}function er(e){let t=ko(e);if(!tt(t))return je(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=Ro(t),o=(s?Sr(r.width):r.width)/i,a=(s?Sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var uu=je(0);function Lo(e){let t=me(e);return!ii()||!t.visualViewport?uu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function du(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===me(e)}function Or(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=ko(e),o=je(1);t&&(i?Pe(i)&&(o=er(i)):o=er(e));let a=du(s,r,i)?Lo(s):je(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=me(s),y=Pe(i)?me(i):i,x=p,A=ni(x);for(;A&&y!==x;){let v=er(A),C=A.getBoundingClientRect(),R=Me(A),b=C.left+(A.clientLeft+parseFloat(R.paddingLeft))*v.x,S=C.top+(A.clientTop+parseFloat(R.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=S,x=me(A),A=ni(x)}}return kt({width:u,height:d,x:l,y:c})}function si(e,t){let r=wr(e).scrollLeft;return t?t.left+r:Or(et(e)).left+r}function Do(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-si(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function pu(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=et(i),a=t?Cr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=tt(i);if((d||!s)&&((Dt(i)!=="body"||_r(o))&&(l=wr(i)),d)){let y=Or(i);c=er(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let p=o&&!d&&!s?Do(o,l):je(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function fu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hu(e){let t=wr(e),r=e.ownerDocument.body,i=ot(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=ot(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+si(e),o=-t.scrollTop;return Me(r).direction==="rtl"&&(s+=ot(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var mu=25;function yu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=me(e),s=et(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!ii()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(si(s)<=0){let p=s.ownerDocument,y=p.body,x=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(s.clientWidth-y.clientWidth-A),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;C<=mu&&(a-=C)}return{width:a,height:l,x:c,y:u}}function gu(e,t){let r=Or(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=er(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Oo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=yu(e,r,t);else if(t==="document")i=hu(et(e));else if(Pe(t))i=gu(t,r);else{let n=Lo(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return kt(i)}function vu(e,t){let r=t.get(e);if(r)return r;let i=ti(e,[],!1).filter(a=>Pe(a)&&Dt(a)!=="body"),n=null,s=Me(e).position==="fixed",o=s?lt(e):e;for(;Pe(o)&&!Qt(o);){let a=Me(o),l=Zt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=lt(o)}return t.set(e,i),i}function xu(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?Cr(t)?[]:vu(t,this._c):[].concat(r),i],a=Oo(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Oo(t,o[p],n);l=ot(y.top,l),c=Er(y.right,c),u=Er(y.bottom,u),d=ot(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function bu(e){let{width:t,height:r}=Ro(e);return{width:t,height:r}}function Eu(e,t,r){let i=tt(t),n=et(t),s=r==="fixed",o=Or(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=je(0);if((i||!s)&&((Dt(t)!=="body"||_r(n))&&(a=wr(t)),i)){let p=Or(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=si(n));let c=n&&!i&&!s?Do(n,a):je(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Cn(e){return Me(e).position==="static"}function To(e,t){if(!tt(e)||Me(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return et(e)===r&&(r=r.ownerDocument.body),r}function No(e,t){let r=me(e);if(Cr(e))return r;if(!tt(e)){let n=lt(e);for(;n&&!Qt(n);){if(Pe(n)&&!Cn(n))return n;n=lt(n)}return r}let i=To(e,t);for(;i&&_o(i)&&Cn(i);)i=To(i,t);return i&&Qt(i)&&Cn(i)&&!Zt(i)?r:i||Co(e)||r}var Su=async function(e){let t=this.getOffsetParent||No,r=this.getDimensions,i=await r(e.floating);return{reference:Eu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Au(e){return Me(e).direction==="rtl"}var oi={convertOffsetParentRelativeRectToViewportRelativeRect:pu,getDocumentElement:et,getClippingRect:xu,getOffsetParent:No,getElementRects:Su,getClientRects:fu,getDimensions:bu,getScale:er,isElement:Pe,isRTL:Au};var Po=bo,Mo=Eo;var Io=(e,t,r)=>{let i=new Map,n=r??{},s={...oi,...n.platform,_c:i};return xo(e,t,{...n,platform:s})};function $o(e){return _u(e)}function wn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function _u(e){for(let t=e;t;t=wn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=wn(e);t;t=wn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Zt(r)||t.tagName==="BODY"))return t}return null}async function Uo(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Io(e,t,{strategy:i.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,$o)},middleware:[Mo({crossAxis:!0}),Po({allowedPlacements:[i.placement]})]})}var ur=f(E());var qn=f(j());var Fo=f(j(),1);var On=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Cu=e=>({fromAttribute:t=>{if(t==null)return Tr(e);try{return JSON.parse(t)}catch{return Tr(e)}},toAttribute:t=>JSON.stringify(t)});function Bo(e,t){return(0,Fo.property)({type:Object,converter:Cu(e),hasChanged:Rr,...t??{}})}function wu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!tr(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!tr(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!tr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function tr(e,t){try{return wu(e,t)}catch{return!1}}function Rr(e,t){return!tr(e,t)}function Tr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function ai(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var Ho=f(j(),1);var Tn=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:Rr,attribute:!1,...t};(0,Ho.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var li=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Nt=f(j(),1);var ci=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);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 di=f(k(),1);var ui=class extends di.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,di.adoptStyles)(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){On(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Vo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var ir=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ko,zo=Symbol("constructorPrototype"),jo=Symbol("constructorName"),Go=Symbol("exportpartsDebouncer"),Wo=Symbol("dynamicDependenciesLoaded"),rr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};rr.eventName="exportparts-updated";var We=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ko]=new ci(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Go].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[jo]=this.constructor.name,this[zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jo]&&Object.setPrototypeOf(this,this[zo])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Wo]||(r[Wo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(rr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(rr.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 rr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Vo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(v=>v.trim());for(let v of A)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ko=Go;ir([(0,Nt.property)()],We.prototype,"exportpartsPrefix",void 0);ir([Bo([])],We.prototype,"exportpartsPrefixes",void 0);ir([(0,Nt.property)({reflect:!0})],We.prototype,"exportparts",void 0);ir([(0,Nt.property)()],We.prototype,"customStylesheet",void 0);ir([(0,Nt.property)()],We.prototype,"elementToFocus",void 0);ir([(0,Nt.state)()],We.prototype,"useAdoptedStyleSheets",void 0);function pi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var kr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),Ou=ai(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Pt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ct].has(o.store):this[ct].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[ct].set(o,a.subscribe(()=>this.updateFromStores())),this[kr].set(o,[]),pi(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=y=>this[d](y);a.addEventListener(u.eventName,p),this[kr].get(o).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ct].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ct].has(o)&&this[ct].get(o)(),this[ct].delete(o),(a=this[kr].get(o))===null||a===void 0||a.forEach(l=>l()),this[kr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ct,r=Pt,i=kr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),qo=class extends Ou(We){};function ie(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 Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yo=Tu,Rn=()=>Math.random().toString(36).substring(7).split("").join("."),Ru={INIT:`@@redux/INIT${Rn()}`,REPLACE:`@@redux/REPLACE${Rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rn()}`},fi=Ru;function hi(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 kn(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(kn)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((v,C)=>{o.set(C,v)}))}function u(){if(l)throw new Error(ie(3));return n}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));let C=!0;c();let R=a++;return o.set(R,v),function(){if(C){if(l)throw new Error(ie(6));C=!1,c(),o.delete(R),s=null}}}function p(v){if(!hi(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(l)throw new Error(ie(9));try{l=!0,n=i(n,v)}finally{l=!1}return(s=o).forEach(R=>{R()}),v}function y(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:fi.REPLACE})}function x(){let v=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(ie(11));function R(){let S=C;S.next&&S.next(u())}return R(),{unsubscribe:v(R)}},[Yo](){return this}}}return p({type:fi.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Yo]:x}}function ku(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:fi.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ln(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{ku(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],y=r[p],x=a[p],A=y(x,l);if(typeof A>"u"){let v=l&&l.type;throw new Error(ie(14))}u[p]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Lr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function Xo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(ie(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=Lr(...a)(n.dispatch),{...n,dispatch:s}}}function Jo(e){return hi(e)&&"type"in e&&typeof e.type=="string"}var oa=Symbol.for("immer-nothing"),Zo=Symbol.for("immer-draftable"),ae=Symbol.for("immer-state");function Ie(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ve=Object,sr=ve.getPrototypeOf,vi="constructor",_i="prototype",Mn="configurable",xi="enumerable",yi="writable",Dr="value",Ke=e=>!!e&&!!e[ae];function xe(e){return e?aa(e)||wi(e)||!!e[Zo]||!!e[vi]?.[Zo]||Oi(e)||Ir(e):!1}var Lu=ve[_i][vi].toString(),Qo=new WeakMap;function aa(e){if(!e||!zn(e))return!1;let t=sr(e);if(t===null||t===ve[_i])return!0;let r=ve.hasOwnProperty.call(t,vi)&&t[vi];if(r===Object)return!0;if(!nr(r))return!1;let i=Qo.get(r);return i===void 0&&(i=Function.toString.call(r),Qo.set(r,i)),i===Lu}function Ci(e,t,r=!0){Mr(e)===0?(r?Reflect.ownKeys(e):ve.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function Mr(e){let t=e[ae];return t?t.type_:wi(e)?1:Oi(e)?2:Ir(e)?3:0}var Dn=(e,t,r=Mr(e))=>r===2?e.has(t):ve[_i].hasOwnProperty.call(e,t),In=(e,t,r=Mr(e))=>r===2?e.get(t):e[t],bi=(e,t,r,i=Mr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Du(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var wi=Array.isArray,Oi=e=>e instanceof Map,Ir=e=>e instanceof Set,zn=e=>typeof e=="object",nr=e=>typeof e=="function",Nn=e=>typeof e=="boolean";function Nu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var rt=e=>e.copy_||e.base_;var jn=e=>e.modified_?e.copy_:e.base_;function $n(e,t){if(Oi(e))return new Map(e);if(Ir(e))return new Set(e);if(wi(e))return Array[_i].slice.call(e);let r=aa(e);if(t===!0||t==="class_only"&&!r){let i=ve.getOwnPropertyDescriptors(e);delete i[ae];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[yi]===!1&&(a[yi]=!0,a[Mn]=!0),(a.get||a.set)&&(i[o]={[Mn]:!0,[yi]:!0,[xi]:a[xi],[Dr]:e[o]})}return ve.create(sr(e),i)}else{let i=sr(e);if(i!==null&&r)return{...e};let n=ve.create(i);return ve.assign(n,e)}}function Ti(e,t=!1){return Ri(e)||Ke(e)||!xe(e)||(Mr(e)>1&&ve.defineProperties(e,{set:mi,add:mi,clear:mi,delete:mi}),ve.freeze(e),t&&Ci(e,(r,i)=>{Ti(i,!0)},!1)),e}function Pu(){Ie(2)}var mi={[Dr]:Pu};function Ri(e){return e===null||!zn(e)?!0:ve.isFrozen(e)}var Ei="MapSet",Un="Patches",ea="ArrayMethods",la={};function Mt(e){let t=la[e];return t||Ie(0,e),t}var ta=e=>!!la[e];var Nr,ca=()=>Nr,Mu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ta(Ei)?Mt(Ei):void 0,arrayMethodsPlugin_:ta(ea)?Mt(ea):void 0});function ra(e,t){t&&(e.patchPlugin_=Mt(Un),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fn(e){Bn(e),e.drafts_.forEach(Iu),e.drafts_=null}function Bn(e){e===Nr&&(Nr=e.parent_)}var ia=e=>Nr=Mu(Nr,e);function Iu(e){let t=e[ae];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function na(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[ae].modified_&&(Fn(t),Ie(4)),xe(e)&&(e=sa(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[ae].base_,e,t)}else e=sa(t,r);return $u(t,e,!0),Fn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==oa?e:void 0}function sa(e,t){if(Ri(t))return t;let r=t[ae];if(!r)return Si(t,e.handledSet_,e);if(!ki(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);pa(r,e)}return r.copy_}function $u(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ti(t,r)}function ua(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ki=(e,t)=>e.scope_===t,Uu=[];function da(e,t,r,i){let n=rt(e),s=e.type_;if(i!==void 0&&In(n,i,s)===t){bi(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ci(n,(l,c)=>{if(Ke(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Uu;for(let a of o)bi(n,a,r,s)}function Fu(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ki(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=jn(s);da(e,s.draft_??s,o,r),pa(s,n)})}function pa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}ua(e)}}function Bu(e,t,r){let{scope_:i}=e;if(Ke(r)){let n=r[ae];ki(n,i)&&n.callbacks_.push(function(){gi(e);let o=jn(n);da(e,r,o,t)})}else xe(r)&&e.callbacks_.push(function(){let s=rt(e);e.type_===3?s.has(r)&&Si(r,i.handledSet_,i):In(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Si(In(e.copy_,t,e.type_),i.handledSet_,i)})}function Si(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ke(e)||t.has(e)||!xe(e)||Ri(e)||(t.add(e),Ci(e,(i,n)=>{if(Ke(n)){let s=n[ae];if(ki(s,r)){let o=jn(s);bi(e,i,o,e.type_),ua(s)}}else xe(n)&&Si(n,t,r)})),e}function Hu(e,t){let r=wi(e),i={type_:r?1:0,scope_:t?t.scope_:ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ai;r&&(n=[i],s=Pr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ai={get(e,t){if(t===ae)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=rt(e);if(!Dn(n,t,e.type_))return zu(e,n,t);let s=n[t];if(e.finalized_||!xe(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Nu(t))return s;if(s===Pn(e.base_,t)||Vu(e,t,s)){gi(e);let o=e.type_===1?+t:t,a=Vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in rt(e)},ownKeys(e){return Reflect.ownKeys(rt(e))},set(e,t,r){let i=fa(rt(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=Pn(rt(e),t),s=n?.[ae];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(Du(r,n)&&(r!==void 0||Dn(e.base_,t,e.type_)))return!0;gi(e),Hn(e)}return e.copy_[t]===r&&(r!==void 0||Dn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Bu(e,t,r)),!0},deleteProperty(e,t){return gi(e),Pn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Hn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=rt(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[yi]:!0,[Mn]:e.type_!==1||t!=="length",[xi]:i[xi],[Dr]:r[t]}},defineProperty(){Ie(11)},getPrototypeOf(e){return sr(e.base_)},setPrototypeOf(){Ie(12)}},Pr={};for(let e in Ai){let t=Ai[e];Pr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Pr.deleteProperty=function(e,t){return Pr.set.call(this,e,t,void 0)};Pr.set=function(e,t,r){return Ai.set.call(this,e[0],t,r,e[0])};function Pn(e,t){let r=e[ae];return(r?rt(r):e)[t]}function Vu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!xe(r)||r[ae]?!1:e.baseRefs_.has(r)}function zu(e,t,r){let i=fa(t,r);return i?Dr in i?i[Dr]:i.get?.call(e.draft_):void 0}function fa(e,t){if(!(t in e))return;let r=sr(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=sr(r)}}function Hn(e){e.modified_||(e.modified_=!0,e.parent_&&Hn(e.parent_))}function gi(e){e.copy_||(e.assigned_=new Map,e.copy_=$n(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ju=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(nr(t)&&!nr(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}nr(r)||Ie(6),i!==void 0&&!nr(i)&&Ie(7);let n;if(xe(t)){let s=ia(this),o=Vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?Fn(s):Bn(s)}return ra(s,i),na(n,s)}else if(!t||!zn(t)){if(n=r(t),n===void 0&&(n=t),n===oa&&(n=void 0),this.autoFreeze_&&Ti(n,!0),i){let s=[],o=[];Mt(Un).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Ie(1,t)},this.produceWithPatches=(t,r)=>{if(nr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},Nn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Nn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Nn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xe(e)||Ie(8),Ke(e)&&(e=ha(e));let t=ia(this),r=Vn(t,e,void 0);return r[ae].isManual_=!0,Bn(t),r}finishDraft(e,t){let r=e&&e[ae];(!r||!r.isManual_)&&Ie(9);let{scope_:i}=r;return ra(i,t),na(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=Mt(Un).applyPatches_;return Ke(e)?i(e,t):this.produce(e,n=>i(n,t))}};function Vn(e,t,r,i){let[n,s]=Oi(t)?Mt(Ei).proxyMap_(t,r):Ir(t)?Mt(Ei).proxySet_(t,r):Hu(t,r);return(r?.scope_??ca()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Fu(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function ha(e){return Ke(e)||Ie(10,e),ma(e)}function ma(e){if(!xe(e)||Ri(e))return e;let t=e[ae],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$n(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=$n(e,!0);let n=r;return Ir(r)&&(r=new Set),Ci(n,(s,o)=>{bi(r,s,ma(o))},i),t&&(t.finalized_=!1),r}var Wu=globalThis.Iterator,mf=typeof Wu?.from=="function";var Ku=new ju,Wn=Ku.produce;function ya(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ga=ya(),va=ya;var Gu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lr:Lr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var qu=e=>e&&typeof e.match=="function";function ut(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(Ge(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Jo(i)&&i.type===e,r}var Aa=class $r extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$r.prototype)}static get[Symbol.species](){return $r}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $r(...t[0].concat(this)):new $r(...t.concat(this))}};function xa(e){return xe(e)?Wn(e,()=>{}):e}function Li(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Yu(e){return typeof e=="boolean"}var Xu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Aa;return r&&(Yu(r)?o.push(ga):o.push(va(r.extraArgument))),o},Ju="RTK_autoBatch";var ba=e=>t=>{setTimeout(t,e)},Zu=(e,t)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=e(o),s=setTimeout(o,t)},Qu=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):ba(10):e.type==="callback"?e.queueNotification:ba(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Ju],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},ed=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Aa(e);return i&&n.push(Qu(typeof i=="object"?i:void 0)),n};function _a(e){let t=Xu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(hi(r))l=Ln(r);else throw new Error(Ge(1));let c;typeof i=="function"?c=i(t):c=t();let u=Lr;n&&(u=Gu({trace:!1,...typeof n=="object"&&n}));let d=Xo(...c),p=ed(d),y=typeof a=="function"?a(p):p(),x=u(...y);return kn(l,o,x)}function Ca(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Ge(28));if(a in t)throw new Error(Ge(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function td(e){return typeof e=="function"}function rd(e,t){let[r,i,n]=Ca(t),s;if(td(e))s=()=>xa(e());else{let a=xa(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ke(u)){let p=d(u,l);return p===void 0?u:p}else{if(xe(u))return Wn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ge(9))}return p}}return u},a)}return o.getInitialState=s,o}var id=(e,t)=>qu(e)?e.match(t):e(t);function nd(...e){return t=>e.some(r=>id(r,t))}var sd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(e=21)=>{let t="",r=e;for(;r--;)t+=sd[Math.random()*64|0];return t},ad=["name","message","stack","code"],Kn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ea=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},ld=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of ad)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Sa="External signal was aborted",cd=(()=>{function e(t,r,i){let n=ut(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=ut(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ut(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||ld)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=i?.idGenerator?i.idGenerator(l):od(),x=new AbortController,A,v;function C(b){v=b,x.abort()}c&&(c.aborted?C(Sa):c.addEventListener("abort",()=>C(Sa),{once:!0}));let R=(async function(){let b;try{let S=i?.condition?.(l,{getState:d,extra:p});if(dd(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let D=new Promise((T,q)=>{A=()=>{q({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([D,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:x.signal,abort:C,rejectWithValue:((T,q)=>new Kn(T,q)),fulfillWithValue:((T,q)=>new Ea(T,q))})).then(T=>{if(T instanceof Kn)throw T;return T instanceof Ea?n(T.payload,y,l,T.meta):n(T,y,l)})])}catch(S){b=S instanceof Kn?o(null,y,l,S.payload,S.meta):o(S,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(R,{abort:C,requestId:y,arg:l,unwrap(){return R.then(ud)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:nd(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function ud(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function dd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var wa=Symbol.for("rtk-slice-createasyncthunk"),Af={[wa]:cd};function pd(e,t){return`${e}/${t}`}function fd({creators:e}={}){let t=e?.asyncThunk?.[wa];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Ge(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(md()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,S){let D=typeof b=="string"?b:b.type;if(!D)throw new Error(Ge(12));if(D in l.sliceCaseReducersByType)throw new Error(Ge(13));return l.sliceCaseReducersByType[D]=S,c},addMatcher(b,S){return l.sliceMatchers.push({matcher:b,reducer:S}),c},exposeAction(b,S){return l.actionCreators[b]=S,c},exposeCaseReducer(b,S){return l.sliceCaseReducersByName[b]=S,c}};a.forEach(b=>{let S=o[b],D={reducerName:b,type:pd(n,b),createNotation:typeof i.reducers=="function"};gd(S)?xd(D,S,c,t):yd(D,S,c)});function u(){let[b={},S=[],D=void 0]=typeof i.extraReducers=="function"?Ca(i.extraReducers):[i.extraReducers],T={...b,...l.sliceCaseReducersByType};return rd(i.initialState,q=>{for(let se in T)q.addCase(se,T[se]);for(let se of l.sliceMatchers)q.addMatcher(se.matcher,se.reducer);for(let se of S)q.addMatcher(se.matcher,se.reducer);D&&q.addDefaultCase(D)})}let d=b=>b,p=new Map,y=new WeakMap,x;function A(b,S){return x||(x=u()),x(b,S)}function v(){return x||(x=u()),x.getInitialState()}function C(b,S=!1){function D(q){let se=q[b];return typeof se>"u"&&S&&(se=Li(y,D,v)),se}function T(q=d){return Li(Li(p,S,()=>new WeakMap),q,()=>{let se={};for(let[qr,_e]of Object.entries(i.selectors??{}))se[qr]=hd(_e,q,()=>Li(y,q,v),S);return se})}return{reducerPath:b,getSelectors:T,get selectors(){return T(D)},selectSlice:D}}let R={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...C(s),injectInto(b,{reducerPath:S,...D}={}){let T=S??s;return b.inject({reducerPath:T,reducer:A},D),{...R,...C(T,!0)}}};return R}}function hd(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var Oa=fd();function md(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function yd({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!vd(i))throw new Error(Ge(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ut(e,o):ut(e))}function gd(e){return e._reducerDefinitionType==="asyncThunk"}function vd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function xd({type:e,reducerName:t},r,i,n){if(!n)throw new Error(Ge(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||Di,pending:a||Di,rejected:l||Di,settled:c||Di})}function Di(){}var Ta="listener",Ra="completed",ka="cancelled",_f=`task-${ka}`,Cf=`task-${Ra}`,wf=`${Ta}-${ka}`,Of=`${Ta}-${Ra}`;var{assign:La}=Object;var Gn="listenerMiddleware";var bd=La(ut(`${Gn}/add`),{withTypes:()=>bd}),Tf=ut(`${Gn}/removeAll`),Ed=La(ut(`${Gn}/remove`),{withTypes:()=>Ed});function Ge(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 Sd=ai(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ni=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Da=class e extends Ni{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(pi(s))return s;if(n==null)return;let o=Oa({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=_a({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Tr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus,n.deprecatedKeys)}constructor(t,r,i,n){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new li,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=c,y=this.getState()[p];tr(y,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??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 Pi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Mi=f(E()),Ad="ft-app-info",It=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};It.eventName="authentication-change";var Ur=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ur.eventName="ui-locale-changed";var _d={session:(e,t)=>{(0,Mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new It(t.payload)),0))}},w=Mi.FtReduxStore.get({name:Ad,reducers:_d,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 Na=f(E()),Ii=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},nh=(0,Na.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>Pi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ii([(0,qn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ii([(0,qn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ii([Tn({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Ii([Tn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Pa;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Pa||(Pa={}));var Ma;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ma||(Ma={}));var Ia;(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"})(Ia||(Ia={}));var $a;(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"})($a||($a={}));var Ua;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ua||(Ua={}));var Fa;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fa||(Fa={}));var Ba;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ba||(Ba={}));var Ha;(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"})(Ha||(Ha={}));var Va;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Va||(Va={}));var za;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(za||(za={}));var ja;(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",e.DOC_DIFF="DOC_DIFF"})(ja||(ja={}));var Wa;(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"})(Wa||(Wa={}));var Ka;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ka||(Ka={}));var Ga;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ga||(Ga={}));var qa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(qa||(qa={}));var Ya;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ya||(Ya={}));var Xa;(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"})(Xa||(Xa={}));var Ja;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ja||(Ja={}));var Za;(function(e){e.ASC="ASC",e.DESC="DESC"})(Za||(Za={}));var Qa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Qa||(Qa={}));var el;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(el||(el={}));var tl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var rl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rl||(rl={}));var il;(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"})(il||(il={}));var nl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var sl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(sl||(sl={}));var ol;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ol||(ol={}));var al;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(al||(al={}));var G;(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"})(G||(G={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var ll;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ll||(ll={}));var cl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(cl||(cl={}));var ul;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ul||(ul={}));var dl;(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"})(dl||(dl={}));var pl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(pl||(pl={}));var fl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(fl||(fl={}));var hl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(hl||(hl={}));var ml;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ml||(ml={}));var yl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(yl||(yl={}));var gl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(gl||(gl={}));var vl;(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"})(vl||(vl={}));var xl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(xl||(xl={}));var Cd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function bl(e,t){return e===t||(Cd[e]??[]).some(r=>bl(r,t))}function Yn(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(i=>bl(i,t))}function El(e,...t){return e==null?!1:t.some(r=>Yn(e,r))}var Hi=f(E());var Xn=f(E());var $t=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=w.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var or=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:$t.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):$t.await()}};var be=class extends or{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xn.CacheRegistry,this.cache=t?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var $i=class extends be{async listMySearches(){let{session:t}=w.getState();return Yn(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ui=class extends be{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Fi=class extends be{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=w.getState().session;return!!t?.sessionAuthenticated}};var Bi=class extends be{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=w.getState().session;return!!t?.sessionAuthenticated}};var wd="ft-user-assets",Od={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;Zn(e,r,[...Jn(e,r),n]),Sl(e,r,1,i),Al(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Zn(e,r,Jn(e,r).map(n=>n.id===i.id?i:n)),Al(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Zn(e,r,Jn(e,r).filter(s=>s.id!==n)),Sl(e,r,-1,i)}},_l={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Jn=(e,t)=>{var r;let i=_l[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Zn=(e,t,r)=>{let i=_l[t];i&&(e[i]=r)},Sl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===we.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Al=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},ce=Hi.FtReduxStore.get({name:wd,reducers:Od,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(t=new Fi,r=new Bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ui,this.savedSearchesService=new $i,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Hi.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ce.actions.clearAssetCount(),ce.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ce.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ce.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ce.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ce.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ce.getState().assetCounts.allAsset[t]!==r.count&&ce.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ce.getState().assetCounts.bookmarkByMap[t]!==r.count&&ce.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ce.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ce.actions.clearBookmarkCountByMap(),ce.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 r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ce.actions.bookmarks(r)}}},Td=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var es=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new es;var Oe=f(E());var Cl,ar=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Rd=Symbol("clearAfterUnitTest"),Vi=class extends(0,Oe.withEventBus)(be){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Cl]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new Oe.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof Oe.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new ar({loadedContexts:t})),this.dispatchEvent(new ar({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new ar({loadedContexts:[t]})),this.dispatchEvent(new ar({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};Cl=Rd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var lr=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var wl=f(E()),ts=class{highlightHtml(t,r,i){(0,wl.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new ts;var Ol=f(E());var rs=class{isDate(t){var r,i,n,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var i,n,s,o;if(t==null)return"";try{return Ol.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new rs;var Tl=f(E());var Fr=class{static get(t,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=w.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new Tl.SearchPlaceConverter(i,t??20,n?.allLanguagesAllowed,r,s)}};var is=class{urlToSearchRequest(t){return Fr.get().parse(t)}searchRequestToUrl(t){return Fr.get().serialize(t)}};window.FluidTopicsUrlService=new is;var it=f(E());var Ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Ut.eventName="before-location-change";var Ft=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ft.eventName="change";var ns=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Rl=new ns;var ji=class e extends it.WithEventBus{static build(){return new e(window.history,Rl,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,it.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=r=>(i,n,[s,o,a])=>{let l=new Ut(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!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 r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(Ut.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Ut.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Ft.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ft.eventName,t)}currentItem(){return(0,it.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,it.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,it.deepCopy)(r.find(i=>t(i)))}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,it.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 r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ji.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 kl=f(k());var Ll=kl.css`
271
- `;var Pl=f(k()),ue=f(j()),Ht=f(E());var qe=f(E());function Dl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var Wi=class extends or{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var ss=class e extends qe.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new qe.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Wi,this.knownContexts=new qe.AbstractRegistry,this.knownCustomComponents=new qe.AbstractRegistry,this.cleanSessionDebouncer=new qe.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new qe.Debouncer(500),this.apiProvider=r??(()=>$t.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(It.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(It.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(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 r=await this.cache.get("availableContentLocales",()=>Dl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.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,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ur(i)))}).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 El(w.getState().session,...t)}},Nl=ss.build();var Bt=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Br=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Bt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(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,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},F=class extends Ht.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=Nl,this.contextRoot=new Br}render(){return Pl.html`
270
+ `;var po=["top","right","bottom","left"],uo=["start","end"],bn=po.reduce((e,t)=>e.concat(t,t+"-"+uo[0],t+"-"+uo[1]),[]),Er=Math.min,ot=Math.max,Sr=Math.round;var je=e=>({x:e,y:e}),su={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e,t,r){return ot(e,Er(t,r))}function Qr(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function En(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}function ei(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function An(e){return En(ei(e))}function ho(e,t,r){r===void 0&&(r=!1);let i=at(e),n=An(e),s=Sn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=xn(o)),[o,xn(o)]}function mo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function xn(e){let t=Ar(e);return su[t]+e.slice(t.length)}function ou(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function yo(e){return typeof e!="number"?ou(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function go(e,t,r){let{reference:i,floating:n}=e,s=ei(t),o=An(t),a=Sn(o),l=Ar(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:d};break;case"left":y={x:i.x-n.width,y:d};break;default:y={x:i.x,y:i.y}}let x=at(t);return x&&(y[o]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function vo(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Qr(t,e),x=yo(y),v=a[p?d==="floating"?"reference":"floating":d],C=Lt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),R=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},D=Lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:R,offsetParent:b,strategy:l}):R);return{top:(C.top-D.top+x.top)/S.y,bottom:(D.bottom-C.bottom+x.bottom)/S.y,left:(C.left-D.left+x.left)/S.x,right:(D.right-C.right+x.right)/S.x}}var au=50,xo=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:vo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=go(c,i,l),p=i,y=0,x={};for(let A=0;A<s.length;A++){let v=s[A];if(!v)continue;let{name:C,fn:R}=v,{x:b,y:S,data:D,reset:T}=await R({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=S??d,x[C]={...x[C],...D},T&&y<au&&(y++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:u,y:d}=go(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function lu(e,t,r){return(e?[...r.filter(n=>at(n)===e),...r.filter(n=>at(n)!==e)]:r.filter(n=>Ar(n)===n)).filter(n=>e?at(n)===e||(t?mo(n)!==n:!1):!0)}var bo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=bn,autoAlignment:y=!0,...x}=Qr(e,t),A=d!==void 0||p===bn?lu(d||null,y,p):p,v=((r=o.autoPlacement)==null?void 0:r.index)||0,C=A[v];if(C==null)return{};if(a!==C)return{reset:{placement:A[0]}};let R=await l.detectOverflow(t,x),b=ho(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[R[Ar(C)],R[b[0]],R[b[1]]],D=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:S}],T=A[v+1];if(T)return{data:{index:v+1,overflows:D},reset:{placement:T}};let q=D.map(_e=>{let hr=at(_e.placement);return[_e.placement,hr&&u?_e.overflows.slice(0,2).reduce((Kc,Gc)=>Kc+Gc,0):_e.overflows[0],_e.overflows]}).sort((_e,hr)=>_e[1]-hr[1]),qr=((n=q.filter(_e=>_e[2].slice(0,at(_e[0])?2:3).every(hr=>hr<=0))[0])==null?void 0:n[0])||q[0][0];return qr!==a?{data:{index:v+1,overflows:D},reset:{placement:qr}}:{}}}};var Eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:R=>{let{x:b,y:S}=R;return{x:b,y:S}}},...c}=Qr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=ei(n),y=En(p),x=u[y],A=u[p],v=(R,b)=>fo(b+d[R==="y"?"top":"left"],b,b-d[R==="y"?"bottom":"right"]);o&&(x=v(y,x)),a&&(A=v(p,A));let C=l.fn({...t,[y]:x,[p]:A});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[y]:o,[p]:a}}}}}};function ri(){return typeof window<"u"}function Nt(e){return Ao(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Ao(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ao(e){return ri()?e instanceof Node||e instanceof ye(e).Node:!1}function Pe(e){return ri()?e instanceof Element||e instanceof ye(e).Element:!1}function tt(e){return ri()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function So(e){return!ri()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function _r(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function _o(e){return/^(table|td|th)$/.test(Nt(e))}function Cr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var cu=/transform|translate|scale|rotate|perspective|filter/,uu=/paint|layout|strict|content/,Dt=e=>!!e&&e!=="none",_n;function Zt(e){let t=Pe(e)?Me(e):e;return Dt(t.transform)||Dt(t.translate)||Dt(t.scale)||Dt(t.rotate)||Dt(t.perspective)||!ii()&&(Dt(t.backdropFilter)||Dt(t.filter))||cu.test(t.willChange||"")||uu.test(t.contain||"")}function Co(e){let t=lt(e);for(;tt(t)&&!Qt(t);){if(Zt(t))return t;if(Cr(t))return null;t=lt(t)}return null}function ii(){return _n==null&&(_n=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_n}function Qt(e){return/^(html|body|#document)$/.test(Nt(e))}function Me(e){return ye(e).getComputedStyle(e)}function wr(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lt(e){if(Nt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||So(e)&&e.host||et(e);return So(t)?t.host:t}function wo(e){let t=lt(e);return Qt(t)?(e.ownerDocument||e).body:tt(t)&&_r(t)?t:wo(t)}function ti(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=wo(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=ye(n);if(s){let a=ni(o);return t.concat(o,o.visualViewport||[],_r(n)?n:[],a&&r?ti(a):[])}else return t.concat(n,ti(n,[],r))}function ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ro(e){let t=Me(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=tt(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=Sr(r)!==s||Sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function ko(e){return Pe(e)?e:e.contextElement}function er(e){let t=ko(e);if(!tt(t))return je(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=Ro(t),o=(s?Sr(r.width):r.width)/i,a=(s?Sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var du=je(0);function Lo(e){let t=ye(e);return!ii()||!t.visualViewport?du:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pu(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ye(e)}function Or(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=ko(e),o=je(1);t&&(i?Pe(i)&&(o=er(i)):o=er(e));let a=pu(s,r,i)?Lo(s):je(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=ye(s),y=Pe(i)?ye(i):i,x=p,A=ni(x);for(;A&&y!==x;){let v=er(A),C=A.getBoundingClientRect(),R=Me(A),b=C.left+(A.clientLeft+parseFloat(R.paddingLeft))*v.x,S=C.top+(A.clientTop+parseFloat(R.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=S,x=ye(A),A=ni(x)}}return Lt({width:u,height:d,x:l,y:c})}function si(e,t){let r=wr(e).scrollLeft;return t?t.left+r:Or(et(e)).left+r}function Do(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-si(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function fu(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=et(i),a=t?Cr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=je(1),u=je(0),d=tt(i);if((d||!s)&&((Nt(i)!=="body"||_r(o))&&(l=wr(i)),d)){let y=Or(i);c=er(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let p=o&&!d&&!s?Do(o,l):je(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function hu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function mu(e){let t=wr(e),r=e.ownerDocument.body,i=ot(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=ot(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+si(e),o=-t.scrollTop;return Me(r).direction==="rtl"&&(s+=ot(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var yu=25;function gu(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=ye(e),s=et(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!ii()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(si(s)<=0){let p=s.ownerDocument,y=p.body,x=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(s.clientWidth-y.clientWidth-A),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;C<=yu&&(a-=C)}return{width:a,height:l,x:c,y:u}}function vu(e,t){let r=Or(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=er(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Oo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=gu(e,r,t);else if(t==="document")i=mu(et(e));else if(Pe(t))i=vu(t,r);else{let n=Lo(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lt(i)}function xu(e,t){let r=t.get(e);if(r)return r;let i=ti(e,[],!1).filter(a=>Pe(a)&&Nt(a)!=="body"),n=null,s=Me(e).position==="fixed",o=s?lt(e):e;for(;Pe(o)&&!Qt(o);){let a=Me(o),l=Zt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=lt(o)}return t.set(e,i),i}function bu(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?Cr(t)?[]:xu(t,this._c):[].concat(r),i],a=Oo(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=Oo(t,o[p],n);l=ot(y.top,l),c=Er(y.right,c),u=Er(y.bottom,u),d=ot(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Eu(e){let{width:t,height:r}=Ro(e);return{width:t,height:r}}function Su(e,t,r){let i=tt(t),n=et(t),s=r==="fixed",o=Or(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=je(0);if((i||!s)&&((Nt(t)!=="body"||_r(n))&&(a=wr(t)),i)){let p=Or(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=si(n));let c=n&&!i&&!s?Do(n,a):je(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Cn(e){return Me(e).position==="static"}function To(e,t){if(!tt(e)||Me(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return et(e)===r&&(r=r.ownerDocument.body),r}function No(e,t){let r=ye(e);if(Cr(e))return r;if(!tt(e)){let n=lt(e);for(;n&&!Qt(n);){if(Pe(n)&&!Cn(n))return n;n=lt(n)}return r}let i=To(e,t);for(;i&&_o(i)&&Cn(i);)i=To(i,t);return i&&Qt(i)&&Cn(i)&&!Zt(i)?r:i||Co(e)||r}var Au=async function(e){let t=this.getOffsetParent||No,r=this.getDimensions,i=await r(e.floating);return{reference:Su(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _u(e){return Me(e).direction==="rtl"}var oi={convertOffsetParentRelativeRectToViewportRelativeRect:fu,getDocumentElement:et,getClippingRect:bu,getOffsetParent:No,getElementRects:Au,getClientRects:hu,getDimensions:Eu,getScale:er,isElement:Pe,isRTL:_u};var Po=bo,Mo=Eo;var Io=(e,t,r)=>{let i=new Map,n=r??{},s={...oi,...n.platform,_c:i};return xo(e,t,{...n,platform:s})};function $o(e){return Cu(e)}function wn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Cu(e){for(let t=e;t;t=wn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=wn(e);t;t=wn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Zt(r)||t.tagName==="BODY"))return t}return null}async function Uo(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Io(e,t,{strategy:i.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,$o)},middleware:[Mo({crossAxis:!0}),Po({allowedPlacements:[i.placement]})]})}var ur=f(E());var qn=f(j());var Fo=f(j(),1);var On=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},wu=e=>({fromAttribute:t=>{if(t==null)return Tr(e);try{return JSON.parse(t)}catch{return Tr(e)}},toAttribute:t=>JSON.stringify(t)});function Bo(e,t){return(0,Fo.property)({type:Object,converter:wu(e),hasChanged:Rr,...t??{}})}function Ou(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!tr(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!tr(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!tr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function tr(e,t){try{return Ou(e,t)}catch{return!1}}function Rr(e,t){return!tr(e,t)}function Tr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function ai(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var Ho=f(j(),1);var Tn=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:Rr,attribute:!1,...t};(0,Ho.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var li=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Pt=f(j(),1);var ci=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);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 di=f(k(),1);var ui=class extends di.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,di.adoptStyles)(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){On(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Vo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var ir=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ko,zo=Symbol("constructorPrototype"),jo=Symbol("constructorName"),Go=Symbol("exportpartsDebouncer"),Wo=Symbol("dynamicDependenciesLoaded"),rr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};rr.eventName="exportparts-updated";var We=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ko]=new ci(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Go].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[jo]=this.constructor.name,this[zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jo]&&Object.setPrototypeOf(this,this[zo])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Wo]||(r[Wo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(rr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(rr.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 rr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Vo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(v=>v.trim());for(let v of A)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Ko=Go;ir([(0,Pt.property)()],We.prototype,"exportpartsPrefix",void 0);ir([Bo([])],We.prototype,"exportpartsPrefixes",void 0);ir([(0,Pt.property)({reflect:!0})],We.prototype,"exportparts",void 0);ir([(0,Pt.property)()],We.prototype,"customStylesheet",void 0);ir([(0,Pt.property)()],We.prototype,"elementToFocus",void 0);ir([(0,Pt.state)()],We.prototype,"useAdoptedStyleSheets",void 0);function pi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var kr=Symbol("internalReduxEventsUnsubscribers"),ct=Symbol("internalStoresUnsubscribers"),Mt=Symbol("internalStores"),Tu=ai(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Mt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Mt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Mt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Mt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Mt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Mt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[ct].has(o.store):this[ct].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[ct].set(o,a.subscribe(()=>this.updateFromStores())),this[kr].set(o,[]),pi(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=y=>this[d](y);a.addEventListener(u.eventName,p),this[kr].get(o).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ct].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ct].has(o)&&this[ct].get(o)(),this[ct].delete(o),(a=this[kr].get(o))===null||a===void 0||a.forEach(l=>l()),this[kr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ct,r=Mt,i=kr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),qo=class extends Tu(We){};function ie(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 Ru=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yo=Ru,Rn=()=>Math.random().toString(36).substring(7).split("").join("."),ku={INIT:`@@redux/INIT${Rn()}`,REPLACE:`@@redux/REPLACE${Rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rn()}`},fi=ku;function hi(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 kn(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(kn)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((v,C)=>{o.set(C,v)}))}function u(){if(l)throw new Error(ie(3));return n}function d(v){if(typeof v!="function")throw new Error(ie(4));if(l)throw new Error(ie(5));let C=!0;c();let R=a++;return o.set(R,v),function(){if(C){if(l)throw new Error(ie(6));C=!1,c(),o.delete(R),s=null}}}function p(v){if(!hi(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(l)throw new Error(ie(9));try{l=!0,n=i(n,v)}finally{l=!1}return(s=o).forEach(R=>{R()}),v}function y(v){if(typeof v!="function")throw new Error(ie(10));i=v,p({type:fi.REPLACE})}function x(){let v=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(ie(11));function R(){let S=C;S.next&&S.next(u())}return R(),{unsubscribe:v(R)}},[Yo](){return this}}}return p({type:fi.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[Yo]:x}}function Lu(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:fi.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ln(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Lu(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],y=r[p],x=a[p],A=y(x,l);if(typeof A>"u"){let v=l&&l.type;throw new Error(ie(14))}u[p]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Lr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function Xo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(ie(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=Lr(...a)(n.dispatch),{...n,dispatch:s}}}function Jo(e){return hi(e)&&"type"in e&&typeof e.type=="string"}var oa=Symbol.for("immer-nothing"),Zo=Symbol.for("immer-draftable"),le=Symbol.for("immer-state");function Ie(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xe=Object,sr=xe.getPrototypeOf,vi="constructor",_i="prototype",Mn="configurable",xi="enumerable",yi="writable",Dr="value",Ke=e=>!!e&&!!e[le];function be(e){return e?aa(e)||wi(e)||!!e[Zo]||!!e[vi]?.[Zo]||Oi(e)||Ir(e):!1}var Du=xe[_i][vi].toString(),Qo=new WeakMap;function aa(e){if(!e||!zn(e))return!1;let t=sr(e);if(t===null||t===xe[_i])return!0;let r=xe.hasOwnProperty.call(t,vi)&&t[vi];if(r===Object)return!0;if(!nr(r))return!1;let i=Qo.get(r);return i===void 0&&(i=Function.toString.call(r),Qo.set(r,i)),i===Du}function Ci(e,t,r=!0){Mr(e)===0?(r?Reflect.ownKeys(e):xe.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function Mr(e){let t=e[le];return t?t.type_:wi(e)?1:Oi(e)?2:Ir(e)?3:0}var Dn=(e,t,r=Mr(e))=>r===2?e.has(t):xe[_i].hasOwnProperty.call(e,t),In=(e,t,r=Mr(e))=>r===2?e.get(t):e[t],bi=(e,t,r,i=Mr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Nu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var wi=Array.isArray,Oi=e=>e instanceof Map,Ir=e=>e instanceof Set,zn=e=>typeof e=="object",nr=e=>typeof e=="function",Nn=e=>typeof e=="boolean";function Pu(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var rt=e=>e.copy_||e.base_;var jn=e=>e.modified_?e.copy_:e.base_;function $n(e,t){if(Oi(e))return new Map(e);if(Ir(e))return new Set(e);if(wi(e))return Array[_i].slice.call(e);let r=aa(e);if(t===!0||t==="class_only"&&!r){let i=xe.getOwnPropertyDescriptors(e);delete i[le];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[yi]===!1&&(a[yi]=!0,a[Mn]=!0),(a.get||a.set)&&(i[o]={[Mn]:!0,[yi]:!0,[xi]:a[xi],[Dr]:e[o]})}return xe.create(sr(e),i)}else{let i=sr(e);if(i!==null&&r)return{...e};let n=xe.create(i);return xe.assign(n,e)}}function Ti(e,t=!1){return Ri(e)||Ke(e)||!be(e)||(Mr(e)>1&&xe.defineProperties(e,{set:mi,add:mi,clear:mi,delete:mi}),xe.freeze(e),t&&Ci(e,(r,i)=>{Ti(i,!0)},!1)),e}function Mu(){Ie(2)}var mi={[Dr]:Mu};function Ri(e){return e===null||!zn(e)?!0:xe.isFrozen(e)}var Ei="MapSet",Un="Patches",ea="ArrayMethods",la={};function It(e){let t=la[e];return t||Ie(0,e),t}var ta=e=>!!la[e];var Nr,ca=()=>Nr,Iu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ta(Ei)?It(Ei):void 0,arrayMethodsPlugin_:ta(ea)?It(ea):void 0});function ra(e,t){t&&(e.patchPlugin_=It(Un),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fn(e){Bn(e),e.drafts_.forEach($u),e.drafts_=null}function Bn(e){e===Nr&&(Nr=e.parent_)}var ia=e=>Nr=Iu(Nr,e);function $u(e){let t=e[le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function na(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[le].modified_&&(Fn(t),Ie(4)),be(e)&&(e=sa(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[le].base_,e,t)}else e=sa(t,r);return Uu(t,e,!0),Fn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==oa?e:void 0}function sa(e,t){if(Ri(t))return t;let r=t[le];if(!r)return Si(t,e.handledSet_,e);if(!ki(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);pa(r,e)}return r.copy_}function Uu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ti(t,r)}function ua(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ki=(e,t)=>e.scope_===t,Fu=[];function da(e,t,r,i){let n=rt(e),s=e.type_;if(i!==void 0&&In(n,i,s)===t){bi(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Ci(n,(l,c)=>{if(Ke(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??Fu;for(let a of o)bi(n,a,r,s)}function Bu(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ki(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=jn(s);da(e,s.draft_??s,o,r),pa(s,n)})}function pa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}ua(e)}}function Hu(e,t,r){let{scope_:i}=e;if(Ke(r)){let n=r[le];ki(n,i)&&n.callbacks_.push(function(){gi(e);let o=jn(n);da(e,r,o,t)})}else be(r)&&e.callbacks_.push(function(){let s=rt(e);e.type_===3?s.has(r)&&Si(r,i.handledSet_,i):In(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Si(In(e.copy_,t,e.type_),i.handledSet_,i)})}function Si(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ke(e)||t.has(e)||!be(e)||Ri(e)||(t.add(e),Ci(e,(i,n)=>{if(Ke(n)){let s=n[le];if(ki(s,r)){let o=jn(s);bi(e,i,o,e.type_),ua(s)}}else be(n)&&Si(n,t,r)})),e}function Vu(e,t){let r=wi(e),i={type_:r?1:0,scope_:t?t.scope_:ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ai;r&&(n=[i],s=Pr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ai={get(e,t){if(t===le)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=rt(e);if(!Dn(n,t,e.type_))return ju(e,n,t);let s=n[t];if(e.finalized_||!be(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Pu(t))return s;if(s===Pn(e.base_,t)||zu(e,t,s)){gi(e);let o=e.type_===1?+t:t,a=Vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in rt(e)},ownKeys(e){return Reflect.ownKeys(rt(e))},set(e,t,r){let i=fa(rt(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=Pn(rt(e),t),s=n?.[le];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(Nu(r,n)&&(r!==void 0||Dn(e.base_,t,e.type_)))return!0;gi(e),Hn(e)}return e.copy_[t]===r&&(r!==void 0||Dn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Hu(e,t,r)),!0},deleteProperty(e,t){return gi(e),Pn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Hn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=rt(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[yi]:!0,[Mn]:e.type_!==1||t!=="length",[xi]:i[xi],[Dr]:r[t]}},defineProperty(){Ie(11)},getPrototypeOf(e){return sr(e.base_)},setPrototypeOf(){Ie(12)}},Pr={};for(let e in Ai){let t=Ai[e];Pr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Pr.deleteProperty=function(e,t){return Pr.set.call(this,e,t,void 0)};Pr.set=function(e,t,r){return Ai.set.call(this,e[0],t,r,e[0])};function Pn(e,t){let r=e[le];return(r?rt(r):e)[t]}function zu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!be(r)||r[le]?!1:e.baseRefs_.has(r)}function ju(e,t,r){let i=fa(t,r);return i?Dr in i?i[Dr]:i.get?.call(e.draft_):void 0}function fa(e,t){if(!(t in e))return;let r=sr(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=sr(r)}}function Hn(e){e.modified_||(e.modified_=!0,e.parent_&&Hn(e.parent_))}function gi(e){e.copy_||(e.assigned_=new Map,e.copy_=$n(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Wu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(nr(t)&&!nr(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}nr(r)||Ie(6),i!==void 0&&!nr(i)&&Ie(7);let n;if(be(t)){let s=ia(this),o=Vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?Fn(s):Bn(s)}return ra(s,i),na(n,s)}else if(!t||!zn(t)){if(n=r(t),n===void 0&&(n=t),n===oa&&(n=void 0),this.autoFreeze_&&Ti(n,!0),i){let s=[],o=[];It(Un).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Ie(1,t)},this.produceWithPatches=(t,r)=>{if(nr(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},Nn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Nn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Nn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){be(e)||Ie(8),Ke(e)&&(e=ha(e));let t=ia(this),r=Vn(t,e,void 0);return r[le].isManual_=!0,Bn(t),r}finishDraft(e,t){let r=e&&e[le];(!r||!r.isManual_)&&Ie(9);let{scope_:i}=r;return ra(i,t),na(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=It(Un).applyPatches_;return Ke(e)?i(e,t):this.produce(e,n=>i(n,t))}};function Vn(e,t,r,i){let[n,s]=Oi(t)?It(Ei).proxyMap_(t,r):Ir(t)?It(Ei).proxySet_(t,r):Vu(t,r);return(r?.scope_??ca()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Bu(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function ha(e){return Ke(e)||Ie(10,e),ma(e)}function ma(e){if(!be(e)||Ri(e))return e;let t=e[le],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$n(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=$n(e,!0);let n=r;return Ir(r)&&(r=new Set),Ci(n,(s,o)=>{bi(r,s,ma(o))},i),t&&(t.finalized_=!1),r}var Ku=globalThis.Iterator,yf=typeof Ku?.from=="function";var Gu=new Wu,Wn=Gu.produce;function ya(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ga=ya(),va=ya;var qu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lr:Lr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Yu=e=>e&&typeof e.match=="function";function ut(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(Ge(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Jo(i)&&i.type===e,r}var Aa=class $r extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$r.prototype)}static get[Symbol.species](){return $r}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $r(...t[0].concat(this)):new $r(...t.concat(this))}};function xa(e){return be(e)?Wn(e,()=>{}):e}function Li(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Xu(e){return typeof e=="boolean"}var Ju=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Aa;return r&&(Xu(r)?o.push(ga):o.push(va(r.extraArgument))),o},Zu="RTK_autoBatch";var ba=e=>t=>{setTimeout(t,e)},Qu=(e,t)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=e(o),s=setTimeout(o,t)},ed=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Qu(window.requestAnimationFrame,100):ba(10):e.type==="callback"?e.queueNotification:ba(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Zu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},td=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Aa(e);return i&&n.push(ed(typeof i=="object"?i:void 0)),n};function _a(e){let t=Ju(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(hi(r))l=Ln(r);else throw new Error(Ge(1));let c;typeof i=="function"?c=i(t):c=t();let u=Lr;n&&(u=qu({trace:!1,...typeof n=="object"&&n}));let d=Xo(...c),p=td(d),y=typeof a=="function"?a(p):p(),x=u(...y);return kn(l,o,x)}function Ca(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Ge(28));if(a in t)throw new Error(Ge(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function rd(e){return typeof e=="function"}function id(e,t){let[r,i,n]=Ca(t),s;if(rd(e))s=()=>xa(e());else{let a=xa(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Ke(u)){let p=d(u,l);return p===void 0?u:p}else{if(be(u))return Wn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ge(9))}return p}}return u},a)}return o.getInitialState=s,o}var nd=(e,t)=>Yu(e)?e.match(t):e(t);function sd(...e){return t=>e.some(r=>nd(r,t))}var od="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ad=(e=21)=>{let t="",r=e;for(;r--;)t+=od[Math.random()*64|0];return t},ld=["name","message","stack","code"],Kn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ea=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},cd=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of ld)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Sa="External signal was aborted",ud=(()=>{function e(t,r,i){let n=ut(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=ut(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=ut(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||cd)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=i?.idGenerator?i.idGenerator(l):ad(),x=new AbortController,A,v;function C(b){v=b,x.abort()}c&&(c.aborted?C(Sa):c.addEventListener("abort",()=>C(Sa),{once:!0}));let R=(async function(){let b;try{let S=i?.condition?.(l,{getState:d,extra:p});if(pd(S)&&(S=await S),S===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let D=new Promise((T,q)=>{A=()=>{q({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([D,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:x.signal,abort:C,rejectWithValue:((T,q)=>new Kn(T,q)),fulfillWithValue:((T,q)=>new Ea(T,q))})).then(T=>{if(T instanceof Kn)throw T;return T instanceof Ea?n(T.payload,y,l,T.meta):n(T,y,l)})])}catch(S){b=S instanceof Kn?o(null,y,l,S.payload,S.meta):o(S,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(R,{abort:C,requestId:y,arg:l,unwrap(){return R.then(dd)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:sd(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function dd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function pd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var wa=Symbol.for("rtk-slice-createasyncthunk"),_f={[wa]:ud};function fd(e,t){return`${e}/${t}`}function hd({creators:e}={}){let t=e?.asyncThunk?.[wa];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Ge(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(yd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,S){let D=typeof b=="string"?b:b.type;if(!D)throw new Error(Ge(12));if(D in l.sliceCaseReducersByType)throw new Error(Ge(13));return l.sliceCaseReducersByType[D]=S,c},addMatcher(b,S){return l.sliceMatchers.push({matcher:b,reducer:S}),c},exposeAction(b,S){return l.actionCreators[b]=S,c},exposeCaseReducer(b,S){return l.sliceCaseReducersByName[b]=S,c}};a.forEach(b=>{let S=o[b],D={reducerName:b,type:fd(n,b),createNotation:typeof i.reducers=="function"};vd(S)?bd(D,S,c,t):gd(D,S,c)});function u(){let[b={},S=[],D=void 0]=typeof i.extraReducers=="function"?Ca(i.extraReducers):[i.extraReducers],T={...b,...l.sliceCaseReducersByType};return id(i.initialState,q=>{for(let oe in T)q.addCase(oe,T[oe]);for(let oe of l.sliceMatchers)q.addMatcher(oe.matcher,oe.reducer);for(let oe of S)q.addMatcher(oe.matcher,oe.reducer);D&&q.addDefaultCase(D)})}let d=b=>b,p=new Map,y=new WeakMap,x;function A(b,S){return x||(x=u()),x(b,S)}function v(){return x||(x=u()),x.getInitialState()}function C(b,S=!1){function D(q){let oe=q[b];return typeof oe>"u"&&S&&(oe=Li(y,D,v)),oe}function T(q=d){return Li(Li(p,S,()=>new WeakMap),q,()=>{let oe={};for(let[qr,_e]of Object.entries(i.selectors??{}))oe[qr]=md(_e,q,()=>Li(y,q,v),S);return oe})}return{reducerPath:b,getSelectors:T,get selectors(){return T(D)},selectSlice:D}}let R={name:n,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...C(s),injectInto(b,{reducerPath:S,...D}={}){let T=S??s;return b.inject({reducerPath:T,reducer:A},D),{...R,...C(T,!0)}}};return R}}function md(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var Oa=hd();function yd(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function gd({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!xd(i))throw new Error(Ge(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?ut(e,o):ut(e))}function vd(e){return e._reducerDefinitionType==="asyncThunk"}function xd(e){return e._reducerDefinitionType==="reducerWithPrepare"}function bd({type:e,reducerName:t},r,i,n){if(!n)throw new Error(Ge(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||Di,pending:a||Di,rejected:l||Di,settled:c||Di})}function Di(){}var Ta="listener",Ra="completed",ka="cancelled",Cf=`task-${ka}`,wf=`task-${Ra}`,Of=`${Ta}-${ka}`,Tf=`${Ta}-${Ra}`;var{assign:La}=Object;var Gn="listenerMiddleware";var Ed=La(ut(`${Gn}/add`),{withTypes:()=>Ed}),Rf=ut(`${Gn}/removeAll`),Sd=La(ut(`${Gn}/remove`),{withTypes:()=>Sd});function Ge(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 Ad=ai(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ni=class extends Ad(Object){};window.ftReduxStores||(window.ftReduxStores={});var Da=class e extends Ni{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(pi(s))return s;if(n==null)return;let o=Oa({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=_a({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Tr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus,n.deprecatedKeys)}constructor(t,r,i,n){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new li,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=c,y=this.getState()[p];tr(y,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??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 Pi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Mi=f(E()),_d="ft-app-info",$t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};$t.eventName="authentication-change";var Ur=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ur.eventName="ui-locale-changed";var Cd={session:(e,t)=>{(0,Mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new $t(t.payload)),0))}},w=Mi.FtReduxStore.get({name:_d,reducers:Cd,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 Na=f(E()),Ii=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},sh=(0,Na.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>Pi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ii([(0,qn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ii([(0,qn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ii([Tn({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Ii([Tn({store:w.name})],t.prototype,"uiLocale",void 0),t});var Pa;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Pa||(Pa={}));var Ma;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ma||(Ma={}));var Ia;(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"})(Ia||(Ia={}));var $a;(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"})($a||($a={}));var Ua;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ua||(Ua={}));var Fa;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fa||(Fa={}));var Ba;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(Ba||(Ba={}));var Ha;(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"})(Ha||(Ha={}));var Va;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Va||(Va={}));var za;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(za||(za={}));var ja;(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",e.DOC_DIFF="DOC_DIFF"})(ja||(ja={}));var Wa;(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"})(Wa||(Wa={}));var Ka;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ka||(Ka={}));var Ga;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ga||(Ga={}));var qa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(qa||(qa={}));var Ya;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ya||(Ya={}));var Xa;(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"})(Xa||(Xa={}));var Ja;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ja||(Ja={}));var Za;(function(e){e.ASC="ASC",e.DESC="DESC"})(Za||(Za={}));var Qa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Qa||(Qa={}));var el;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(el||(el={}));var tl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(tl||(tl={}));var rl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rl||(rl={}));var il;(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"})(il||(il={}));var nl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var sl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(sl||(sl={}));var ol;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ol||(ol={}));var al;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(al||(al={}));var G;(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"})(G||(G={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var ll;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(ll||(ll={}));var cl;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(cl||(cl={}));var ul;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(pl||(pl={}));var fl;(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"})(fl||(fl={}));var hl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(hl||(hl={}));var ml;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(ml||(ml={}));var yl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(yl||(yl={}));var gl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(gl||(gl={}));var vl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(vl||(vl={}));var xl;(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"})(xl||(xl={}));var bl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(bl||(bl={}));var wd={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function El(e,t){return e===t||(wd[e]??[]).some(r=>El(r,t))}function Yn(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(i=>El(i,t))}function Sl(e,...t){return e==null?!1:t.some(r=>Yn(e,r))}var Hi=f(E());var Xn=f(E());var Ut=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=w.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var or=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 Ee=class extends or{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xn.CacheRegistry,this.cache=t?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var $i=class extends Ee{async listMySearches(){let{session:t}=w.getState();return Yn(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Ui=class extends Ee{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Fi=class extends Ee{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=w.getState().session;return!!t?.sessionAuthenticated}};var Bi=class extends Ee{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=w.getState().session;return!!t?.sessionAuthenticated}};var Od="ft-user-assets",Td={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;Zn(e,r,[...Jn(e,r),n]),Al(e,r,1,i),_l(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Zn(e,r,Jn(e,r).map(n=>n.id===i.id?i:n)),_l(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Zn(e,r,Jn(e,r).filter(s=>s.id!==n)),Al(e,r,-1,i)}},Cl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},Jn=(e,t)=>{var r;let i=Cl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Zn=(e,t,r)=>{let i=Cl[t];i&&(e[i]=r)},Al=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===we.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},_l=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},ue=Hi.FtReduxStore.get({name:Od,reducers:Td,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(t=new Fi,r=new Bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ui,this.savedSearchesService=new $i,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,Hi.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ue.actions.clearAssetCount(),ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ue.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ue.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&ue.getState().assetCounts.allAsset[t]!==r.count&&ue.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&ue.getState().assetCounts.bookmarkByMap[t]!==r.count&&ue.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(ue.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&r&&ue.actions.clearBookmarkCountByMap(),ue.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 r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ue.actions.bookmarks(r)}}},Rd=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rd);var es=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new es;var Oe=f(E());var wl,ar=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},kd=Symbol("clearAfterUnitTest"),Vi=class extends(0,Oe.withEventBus)(Ee){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wl]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Oe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new Oe.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof Oe.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new ar({loadedContexts:t})),this.dispatchEvent(new ar({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new ar({loadedContexts:[t]})),this.dispatchEvent(new ar({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,Oe.delay)(0).then(()=>i()).catch(()=>null)))}};wl=kd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Vi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var lr=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var Ol=f(E()),ts=class{highlightHtml(t,r,i){(0,Ol.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new ts;var Tl=f(E());var rs=class{isDate(t){var r,i,n,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(t,r){var i,n,s,o;if(t==null)return"";try{return Tl.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new rs;var Rl=f(E());var Fr=class{static get(t,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=w.getState()){var o;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new Rl.SearchPlaceConverter(i,t??20,n?.allLanguagesAllowed,r,s)}};var is=class{urlToSearchRequest(t){return Fr.get().parse(t)}searchRequestToUrl(t){return Fr.get().serialize(t)}};window.FluidTopicsUrlService=new is;var it=f(E());var Ft=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Ft.eventName="before-location-change";var Bt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Bt.eventName="change";var ns=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},kl=new ns;var ji=class e extends it.WithEventBus{static build(){return new e(window.history,kl,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,it.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Bt(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Ft(l);this.dispatchEvent(c);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:c.detail.nextLocation.href};i.apply(n,[d,o,d.href]),this.setCurrentState(d,!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 r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(Ft.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Ft.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Bt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Bt.eventName,t)}currentItem(){return(0,it.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,it.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,it.deepCopy)(r.find(i=>t(i)))}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,it.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 r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ji.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 Ll=f(k());var Dl=Ll.css`
271
+ `;var Ml=f(k()),de=f(j()),Vt=f(E());var qe=f(E());function Nl(e,t){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var Wi=class extends or{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var ss=class e extends qe.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new qe.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Wi,this.knownContexts=new qe.AbstractRegistry,this.knownCustomComponents=new qe.AbstractRegistry,this.cleanSessionDebouncer=new qe.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new qe.Debouncer(500),this.apiProvider=r??(()=>Ut.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener($t.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener($t.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(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 r=await this.cache.get("availableContentLocales",()=>Nl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.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,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ur(i)))}).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 Sl(w.getState().session,...t)}},Pl=ss.build();var Ht=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Br=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ht(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(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,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},F=class extends Vt.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=Pl,this.contextRoot=new Br}render(){return Ml.html`
272
272
  <slot></slot>
273
- `}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 r;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(i=>lr.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Ll;J([(0,ue.property)()],F.prototype,"baseUrl",void 0);J([(0,ue.property)()],F.prototype,"tenantId",void 0);J([(0,ue.property)()],F.prototype,"apiIntegrationIdentifier",void 0);J([(0,ue.property)()],F.prototype,"apiIntegrationAppVersion",void 0);J([(0,ue.property)()],F.prototype,"uiLocale",void 0);J([(0,Ht.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);J([(0,Ht.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"editorMode",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"noCustom",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);J([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);J([(0,ue.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomCode",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"withManualResources",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);J([(0,ue.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);J([(0,Ht.jsonProperty)([])],F.prototype,"messageContexts",void 0);J([(0,Ht.jsonProperty)(void 0)],F.prototype,"session",void 0);var Il=f(E());var Ml={"ft-app-context":F};(0,Il.customElements)(Ml);var $l=f(j());var os=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[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},cr=new os;var Dd=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Vr=Symbol("i18nAttributes"),Ul=Symbol("i18nListAttributes"),Fl=Symbol("i18nProperties"),Ki=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),Yi=(0,ur.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?zi:lr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(cr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Vr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ul])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(s){var o;(o=this[Fl])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ki].set(l,{isCustomContext:a}),this[Hr].has(l)||this[Hr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ki].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ki].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Hr].forEach(s=>s()),this[Hr].clear()}}return t=Ki,r=Hr,Dd([(0,$l.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Gi=class extends Yi(ur.FtLitElement){},qi=class extends Yi(ur.FtLitElementRedux){};var Bl=f(E());var as=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?cr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Nd=new as;var Hl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Bl.hasChanged,converter:cr,...t}),r[Vr]=(n=r[Vr])!==null&&n!==void 0?n:new Map,r[Vr].set(i,e??{})};var Xi=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?zi:lr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Vl=f(k());var zl=Vl.css`
273
+ `}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 r;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(i=>lr.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Dl;J([(0,de.property)()],F.prototype,"baseUrl",void 0);J([(0,de.property)()],F.prototype,"tenantId",void 0);J([(0,de.property)()],F.prototype,"apiIntegrationIdentifier",void 0);J([(0,de.property)()],F.prototype,"apiIntegrationAppVersion",void 0);J([(0,de.property)()],F.prototype,"uiLocale",void 0);J([(0,Vt.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);J([(0,Vt.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"editorMode",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"noCustom",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);J([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);J([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomCode",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"withManualResources",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);J([(0,de.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);J([(0,Vt.jsonProperty)([])],F.prototype,"messageContexts",void 0);J([(0,Vt.jsonProperty)(void 0)],F.prototype,"session",void 0);var $l=f(E());var Il={"ft-app-context":F};(0,$l.customElements)(Il);var Ul=f(j());var os=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[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},cr=new os;var Nd=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Vr=Symbol("i18nAttributes"),Fl=Symbol("i18nListAttributes"),Bl=Symbol("i18nProperties"),Ki=Symbol("i18nContexts"),Hr=Symbol("i18nUnsubs"),Yi=(0,ur.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?zi:lr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(cr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Vr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Fl])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(s){var o;(o=this[Bl])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ki].set(l,{isCustomContext:a}),this[Hr].has(l)||this[Hr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ki].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ki].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Hr].forEach(s=>s()),this[Hr].clear()}}return t=Ki,r=Hr,Nd([(0,Ul.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Gi=class extends Yi(ur.FtLitElement){},qi=class extends Yi(ur.FtLitElementRedux){};var Hl=f(E());var as=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?cr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Pd=new as;var Vl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Hl.hasChanged,converter:cr,...t}),r[Vr]=(n=r[Vr])!==null&&n!==void 0?n:new Map,r[Vr].set(i,e??{})};var Xi=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?zi:lr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var zl=f(k());var jl=zl.css`
274
274
  `;var Ji=f(k()),pr=f(j()),Zi=f(E());var dr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Te=class extends qi{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Ji.nothing:Ji.html`
275
275
  <span class="ft-i18n">
276
276
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
277
277
  </span>
278
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Te.elementDefinitions={};Te.styles=zl;dr([(0,Zi.redux)()],Te.prototype,"editorMode",void 0);dr([(0,pr.property)()],Te.prototype,"context",void 0);dr([(0,pr.property)()],Te.prototype,"key",void 0);dr([(0,Zi.jsonProperty)([])],Te.prototype,"args",void 0);dr([(0,pr.property)()],Te.prototype,"defaultMessage",void 0);dr([(0,pr.state)()],Te.prototype,"editorMessage",void 0);var Wl=f(E());var jl={"ft-i18n":Te};(0,Wl.customElements)(jl);var $e=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},X=class extends Gi{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 Re.Debouncer,this.revealDebouncer=new Re.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{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,r;return Kl.html`
278
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Te.elementDefinitions={};Te.styles=jl;dr([(0,Zi.redux)()],Te.prototype,"editorMode",void 0);dr([(0,pr.property)()],Te.prototype,"context",void 0);dr([(0,pr.property)()],Te.prototype,"key",void 0);dr([(0,Zi.jsonProperty)([])],Te.prototype,"args",void 0);dr([(0,pr.property)()],Te.prototype,"defaultMessage",void 0);dr([(0,pr.state)()],Te.prototype,"editorMessage",void 0);var Kl=f(E());var Wl={"ft-i18n":Te};(0,Kl.customElements)(Wl);var $e=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},X=class extends Gi{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 Re.Debouncer,this.revealDebouncer=new Re.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{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,r;return Gl.html`
279
279
  <div part="container"
280
280
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
281
281
  <slot part="slot"></slot>
@@ -290,7 +290,7 @@
290
290
  </div>
291
291
  </div>
292
292
  </div>
293
- `}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 r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.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&&Uo(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Re.designSystemVariables.transitionDuration}, left ${Re.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Re.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};X.elementDefinitions={"ft-typography":Y};X.styles=co;$e([Hl()],X.prototype,"text",void 0);$e([(0,ke.property)({type:Boolean})],X.prototype,"manual",void 0);$e([(0,ke.property)({type:Boolean})],X.prototype,"inline",void 0);$e([(0,Re.numberProperty)()],X.prototype,"delay",void 0);$e([(0,ke.property)()],X.prototype,"position",void 0);$e([(0,Re.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);$e([(0,ke.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);$e([(0,ke.query)(".ft-tooltip--container")],X.prototype,"container",void 0);$e([(0,ke.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);$e([(0,ke.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);$e([(0,ke.state)()],X.prototype,"visible",void 0);var ql=f(E());var Gl={"ft-tooltip":X};(0,ql.customElements)(Gl);var Yl=f(k()),Fe=f(E()),Ue={size:Fe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Fe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Xl=[Yl.css`
293
+ `}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 r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.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&&Uo(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Re.designSystemVariables.transitionDuration}, left ${Re.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Re.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};X.elementDefinitions={"ft-typography":Y};X.styles=co;$e([Vl()],X.prototype,"text",void 0);$e([(0,ke.property)({type:Boolean})],X.prototype,"manual",void 0);$e([(0,ke.property)({type:Boolean})],X.prototype,"inline",void 0);$e([(0,Re.numberProperty)()],X.prototype,"delay",void 0);$e([(0,ke.property)()],X.prototype,"position",void 0);$e([(0,Re.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);$e([(0,ke.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);$e([(0,ke.query)(".ft-tooltip--container")],X.prototype,"container",void 0);$e([(0,ke.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);$e([(0,ke.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);$e([(0,ke.state)()],X.prototype,"visible",void 0);var Yl=f(E());var ql={"ft-tooltip":X};(0,Yl.customElements)(ql);var Xl=f(k()),Fe=f(E()),Ue={size:Fe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Fe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Jl=[Xl.css`
294
294
  :host, i.ft-icon {
295
295
  display: inline-flex;
296
296
  align-items: center;
@@ -338,12 +338,12 @@
338
338
  .ft-icon--material {
339
339
  font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
340
340
  }
341
- `,Fe.noTextSelect];var dt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(dt||(dt={}));var zr=f(k()),pt=f(j()),Ql=f(E()),ec=f(Zl());var Qi;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Qi||(Qi={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var kg=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Lg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var jr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},de=class extends Ql.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=zr.nothing}render(){let t=this.variant&&Object.values(dt).includes(this.variant)?this.variant:dt.fluid_topics,r=t!==dt.material||!!this.value;return zr.html`
341
+ `,Fe.noTextSelect];var dt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(dt||(dt={}));var zr=f(k()),pt=f(j()),ec=f(E()),tc=f(Ql());var Qi;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Qi||(Qi={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var Lg=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Dg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var jr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends ec.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=zr.nothing}render(){let t=this.variant&&Object.values(dt).includes(this.variant)?this.variant:dt.fluid_topics,r=t!==dt.material||!!this.value;return zr.html`
342
342
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
343
- ${(0,ec.unsafeHTML)(this.resolvedIcon)}
343
+ ${(0,tc.unsafeHTML)(this.resolvedIcon)}
344
344
  <slot ?hidden=${r}></slot>
345
345
  </i>
346
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case dt.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case dt.material:this.resolvedIcon=this.value||zr.nothing;break;default:this.resolvedIcon=(r=Qi[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Xl;jr([(0,pt.property)()],de.prototype,"variant",void 0);jr([(0,pt.property)()],de.prototype,"value",void 0);jr([(0,pt.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);jr([(0,pt.state)()],de.prototype,"resolvedIcon",void 0);jr([(0,pt.query)("slot")],de.prototype,"slottedContent",void 0);var rc=f(E());var tc={"ft-icon":de};(0,rc.customElements)(tc);var ic=f(k()),Wr=f(E()),Vt={color:Wr.FtCssVariableFactory.extend("--ft-loader-color","",Wr.designSystemVariables.colorPrimary),size:Wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},nc=ic.css`
346
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case dt.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case dt.material:this.resolvedIcon=this.value||zr.nothing;break;default:this.resolvedIcon=(r=Qi[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};pe.elementDefinitions={};pe.styles=Jl;jr([(0,pt.property)()],pe.prototype,"variant",void 0);jr([(0,pt.property)()],pe.prototype,"value",void 0);jr([(0,pt.property)({reflect:!0,attribute:"aria-hidden"})],pe.prototype,"ariaHidden",void 0);jr([(0,pt.state)()],pe.prototype,"resolvedIcon",void 0);jr([(0,pt.query)("slot")],pe.prototype,"slottedContent",void 0);var ic=f(E());var rc={"ft-icon":pe};(0,ic.customElements)(rc);var nc=f(k()),Wr=f(E()),zt={color:Wr.FtCssVariableFactory.extend("--ft-loader-color","",Wr.designSystemVariables.colorPrimary),size:Wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},sc=nc.css`
347
347
  :host {
348
348
  line-height: 0;
349
349
  }
@@ -352,8 +352,8 @@
352
352
  display: inline-block;
353
353
  position: relative;
354
354
 
355
- width: ${Vt.size};
356
- height: ${Vt.size};
355
+ width: ${zt.size};
356
+ height: ${zt.size};
357
357
  }
358
358
 
359
359
  .ft-loader div {
@@ -362,7 +362,7 @@
362
362
  width: 25%;
363
363
  height: 25%;
364
364
  border-radius: 50%;
365
- background: ${Vt.color};
365
+ background: ${zt.color};
366
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
367
367
  }
368
368
 
@@ -409,17 +409,17 @@
409
409
  transform: translate(0, 0);
410
410
  }
411
411
  100% {
412
- transform: translate(calc(0.35 * ${Vt.size}), 0);
412
+ transform: translate(calc(0.35 * ${zt.size}), 0);
413
413
  }
414
414
  }
415
- `;var sc=f(k()),oc=f(E());var zt=class extends oc.FtLitElement{render(){return sc.html`
415
+ `;var oc=f(k()),ac=f(E());var jt=class extends ac.FtLitElement{render(){return oc.html`
416
416
  <div class="ft-loader">
417
417
  <div></div>
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  </div>
422
- `}};zt.styles=nc;var lc=f(E());var ac={"ft-loader":zt};(0,lc.customElements)(ac);var ht=f(k()),tn=f(Jt()),L=f(j());var ft=e=>e??W;var en=f(k()),_=f(E());var cc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),P={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:cc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",cc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},uc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),ls={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:uc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",uc)},Be={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},dc=en.css`
422
+ `}};jt.styles=sc;var cc=f(E());var lc={"ft-loader":jt};(0,cc.customElements)(lc);var ht=f(k()),tn=f(Jt()),L=f(j());var ft=e=>e??W;var en=f(k()),_=f(E());var uc=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),P={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:uc,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",uc),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},dc=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),ls={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:dc,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",dc)},Be={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},pc=en.css`
423
423
  :host {
424
424
  display: inline-block;
425
425
  max-width: 100%;
@@ -443,8 +443,8 @@
443
443
  --button-internal-line-height: max(calc(${P.fontSize} + 2px), ${P.iconSize});
444
444
  --button-internal-color: ${P.color};
445
445
  ${(0,_.setVariable)(Ue.size,P.iconSize)};
446
- ${(0,_.setVariable)(oe.color,P.rippleColor)};
447
- ${(0,_.setVariable)(oe.borderRadius,P.borderRadius)};
446
+ ${(0,_.setVariable)(ae.color,P.rippleColor)};
447
+ ${(0,_.setVariable)(ae.borderRadius,P.borderRadius)};
448
448
 
449
449
  border-radius: ${P.borderRadius};
450
450
  padding: ${P.verticalPadding} ${P.horizontalPadding};
@@ -500,7 +500,7 @@
500
500
  &.ft-button--primary {
501
501
  background-color: ${ls.backgroundColor};
502
502
  --button-internal-color: ${ls.color};
503
- ${(0,_.setVariable)(oe.color,ls.rippleColor)};
503
+ ${(0,_.setVariable)(ae.color,ls.rippleColor)};
504
504
  }
505
505
 
506
506
  &.ft-button--outlined {
@@ -511,7 +511,7 @@
511
511
  &.ft-button--dense {
512
512
  padding: ${Be.verticalPadding} ${Be.horizontalPadding};
513
513
  border-radius: ${Be.borderRadius};
514
- ${(0,_.setVariable)(oe.borderRadius,Be.borderRadius)};
514
+ ${(0,_.setVariable)(ae.borderRadius,Be.borderRadius)};
515
515
 
516
516
  .ft-button--label {
517
517
  margin: 0 ${Be.iconPadding};
@@ -524,12 +524,12 @@
524
524
 
525
525
  &.ft-button--round {
526
526
  border-radius: calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding});
527
- ${(0,_.setVariable)(oe.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding})`)};
527
+ ${(0,_.setVariable)(ae.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${P.verticalPadding})`)};
528
528
  }
529
529
 
530
530
  &.ft-button--round.ft-button--dense {
531
531
  border-radius: calc(var(--button-internal-line-height) / 2 + ${Be.verticalPadding});
532
- ${(0,_.setVariable)(oe.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${Be.verticalPadding})`)};
532
+ ${(0,_.setVariable)(ae.borderRadius,en.css`calc(var(--button-internal-line-height) / 2 + ${Be.verticalPadding})`)};
533
533
  }
534
534
 
535
535
  &.ft-button--no-text {
@@ -558,8 +558,8 @@
558
558
  }
559
559
 
560
560
  ft-loader {
561
- ${(0,_.setVariable)(Vt.size,P.iconSize)};
562
- ${(0,_.setVariable)(Vt.color,"var(--button-internal-color)")};
561
+ ${(0,_.setVariable)(zt.size,P.iconSize)};
562
+ ${(0,_.setVariable)(zt.color,"var(--button-internal-color)")};
563
563
  }
564
564
  `;var $=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},O=class e extends(0,Ye.toFtFormComponent)(Ye.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 r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ye.isSafari},s=ht.html`
565
565
  <ft-ripple part="ripple"
@@ -603,15 +603,15 @@
603
603
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
604
604
  `:ht.html`
605
605
  <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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}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)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":de,"ft-loader":zt,"ft-typography":Y};O.styles=[Ye.safariEllipsisFix,dc,Ye.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});$([(0,L.property)({type:Boolean})],O.prototype,"primary",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"outlined",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"dense",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"round",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"disabled",void 0);$([(0,L.property)()],O.prototype,"icon",void 0);$([(0,L.property)()],O.prototype,"iconVariant",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);$([(0,L.property)()],O.prototype,"label",void 0);$([(0,L.property)()],O.prototype,"type",void 0);$([(0,L.property)()],O.prototype,"href",void 0);$([(0,L.property)()],O.prototype,"target",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"loading",void 0);$([(0,L.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);$([(0,L.property)()],O.prototype,"ariaHasPopup",void 0);$([(0,L.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);$([(0,L.property)({attribute:"aria-expanded"})],O.prototype,"ariaExpanded",void 0);$([(0,L.property)()],O.prototype,"tooltipPosition",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"activated",void 0);$([(0,L.query)(".ft-button")],O.prototype,"button",void 0);$([(0,L.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);$([(0,L.state)()],O.prototype,"hasTextContent",void 0);$([(0,L.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);$([(0,L.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var fc=f(E());var pc={"ft-button":O};(0,fc.customElements)(pc);var rn=f(k()),Le=f(j()),yc=f(E()),gc=f(Jt());var Z=f(E()),hc=f(k());var Ee={textColor:Z.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Z.designSystemVariables.colorOnSurfaceHigh),fontSize:Z.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:Z.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Z.designSystemVariables.colorPrimary),checkColor:Z.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Z.designSystemVariables.colorOnPrimary),borderColor:Z.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Z.designSystemVariables.colorOnSurfaceMedium),disabledColor:Z.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Z.designSystemVariables.colorOnSurfaceDisabled),errorColor:Z.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Z.designSystemVariables.colorError)},mc=hc.css`
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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}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)}};O.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":pe,"ft-loader":jt,"ft-typography":Y};O.styles=[Ye.safariEllipsisFix,pc,Ye.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});$([(0,L.property)({type:Boolean})],O.prototype,"primary",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"outlined",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"dense",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"round",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"disabled",void 0);$([(0,L.property)()],O.prototype,"icon",void 0);$([(0,L.property)()],O.prototype,"iconVariant",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);$([(0,L.property)()],O.prototype,"label",void 0);$([(0,L.property)()],O.prototype,"type",void 0);$([(0,L.property)()],O.prototype,"href",void 0);$([(0,L.property)()],O.prototype,"target",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"loading",void 0);$([(0,L.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);$([(0,L.property)()],O.prototype,"ariaHasPopup",void 0);$([(0,L.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);$([(0,L.property)({attribute:"aria-expanded"})],O.prototype,"ariaExpanded",void 0);$([(0,L.property)()],O.prototype,"tooltipPosition",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);$([(0,L.property)({type:Boolean})],O.prototype,"activated",void 0);$([(0,L.query)(".ft-button")],O.prototype,"button",void 0);$([(0,L.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);$([(0,L.state)()],O.prototype,"hasTextContent",void 0);$([(0,L.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);$([(0,L.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var hc=f(E());var fc={"ft-button":O};(0,hc.customElements)(fc);var rn=f(k()),Le=f(j()),gc=f(E()),vc=f(Jt());var Z=f(E()),mc=f(k());var Se={textColor:Z.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Z.designSystemVariables.colorOnSurfaceHigh),fontSize:Z.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:Z.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Z.designSystemVariables.colorPrimary),checkColor:Z.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Z.designSystemVariables.colorOnPrimary),borderColor:Z.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Z.designSystemVariables.colorOnSurfaceMedium),disabledColor:Z.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Z.designSystemVariables.colorOnSurfaceDisabled),errorColor:Z.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Z.designSystemVariables.colorError)},yc=mc.css`
607
607
  * {
608
608
  box-sizing: border-box;
609
609
  }
610
610
 
611
611
  .ft-checkbox {
612
612
  box-sizing: border-box;
613
- color: ${Ee.textColor};
614
- font-size: ${Ee.fontSize};
613
+ color: ${Se.textColor};
614
+ font-size: ${Se.fontSize};
615
615
 
616
616
  display: inline-flex;
617
617
  align-items: center;
@@ -619,7 +619,7 @@
619
619
  }
620
620
 
621
621
  .ft-checkbox--disabled {
622
- color: ${Ee.disabledColor};
622
+ color: ${Se.disabledColor};
623
623
  }
624
624
 
625
625
  input {
@@ -643,26 +643,26 @@
643
643
 
644
644
  .ft-checkbox--box {
645
645
  display: flex;
646
- border: 2px solid ${Ee.borderColor};
646
+ border: 2px solid ${Se.borderColor};
647
647
  border-radius: 2px;
648
648
 
649
649
  width: 18px;
650
650
  height: 18px;
651
651
 
652
- color: ${Ee.checkColor};
652
+ color: ${Se.checkColor};
653
653
  }
654
654
 
655
655
 
656
656
  .ft-checkbox--checked .ft-checkbox--box,
657
657
  .ft-checkbox--indeterminate .ft-checkbox--box {
658
- border-color: ${Ee.activeColor};
659
- background-color: ${Ee.activeColor};
658
+ border-color: ${Se.activeColor};
659
+ background-color: ${Se.activeColor};
660
660
  }
661
661
 
662
662
  .ft-checkbox--disabled .ft-checkbox--box {
663
- border-color: ${Ee.disabledColor};
663
+ border-color: ${Se.disabledColor};
664
664
  background-color: transparent;
665
- color: ${Ee.disabledColor};
665
+ color: ${Se.disabledColor};
666
666
  }
667
667
 
668
668
  .ft-checkbox--checkmark {
@@ -683,16 +683,16 @@
683
683
  }
684
684
 
685
685
  .ft-checkbox.ft-checkbox--error {
686
- color: ${Ee.errorColor};
687
- ${(0,Z.setVariable)(oe.color,Ee.errorColor)};
686
+ color: ${Se.errorColor};
687
+ ${(0,Z.setVariable)(ae.color,Se.errorColor)};
688
688
 
689
689
  .ft-checkbox--box {
690
- border-color: ${Ee.errorColor};
690
+ border-color: ${Se.errorColor};
691
691
  }
692
692
 
693
693
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
694
694
  .ft-checkbox--box {
695
- background-color: ${Ee.errorColor};
695
+ background-color: ${Se.errorColor};
696
696
  }
697
697
  }
698
698
  }
@@ -705,7 +705,7 @@
705
705
  .ft-checkbox ft-typography {
706
706
  padding-right: 2px;
707
707
  }
708
- `;var Xe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},cs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Q=class extends yc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return rn.html`
708
+ `;var Xe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},cs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Q=class extends gc.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return rn.html`
709
709
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
710
710
  <ft-ripple part="checkbox-ripple"
711
711
  ?disabled=${this.disabled}
@@ -729,7 +729,7 @@
729
729
  >
730
730
  </div>
731
731
  `}render(){return rn.html`
732
- <label class="${(0,gc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
732
+ <label class="${(0,vc.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
733
733
  ${this.renderBoxContainer()}
734
734
  <ft-typography variant="${te.body2}" part="checkbox-body">
735
735
  <slot @slotchange=${this.onSlotchange}></slot>
@@ -740,7 +740,7 @@
740
740
  <path class="ft-checkbox--checkmark-path" fill="none"
741
741
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
742
742
  </svg>
743
- `}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new cs(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};Q.elementDefinitions={"ft-ripple":N,"ft-typography":Y};Q.styles=mc;Xe([(0,Le.property)()],Q.prototype,"name",void 0);Xe([(0,Le.property)()],Q.prototype,"value",void 0);Xe([(0,Le.property)({type:Boolean,reflect:!0})],Q.prototype,"checked",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"indeterminate",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"disabled",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"error",void 0);Xe([(0,Le.property)({attribute:"aria-label"})],Q.prototype,"ariaLabel",void 0);Xe([(0,Le.query)(".ft-checkbox")],Q.prototype,"container",void 0);Xe([(0,Le.query)("ft-ripple")],Q.prototype,"ripple",void 0);Xe([(0,Le.query)("input")],Q.prototype,"input",void 0);var xc=f(E());var vc={"ft-checkbox":Q};(0,xc.customElements)(vc);var Sc=f(k()),Je=f(j()),Ac=f(E()),_c=f(Jt());var bc=f(k()),ye=f(E());var mt={textColor:ye.FtCssVariableFactory.extend("--ft-radio-text-color","",ye.designSystemVariables.colorOnSurfaceHigh),fontSize:ye.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ye.FtCssVariableFactory.extend("--ft-radio-border-color","",ye.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Ec=bc.css`
743
+ `}onSlotchange(){this.requestUpdate()}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new cs(this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var t;(t=this.ripple)===null||t===void 0||t.forceFocusUpdate()},0)}};Q.elementDefinitions={"ft-ripple":N,"ft-typography":Y};Q.styles=yc;Xe([(0,Le.property)()],Q.prototype,"name",void 0);Xe([(0,Le.property)()],Q.prototype,"value",void 0);Xe([(0,Le.property)({type:Boolean,reflect:!0})],Q.prototype,"checked",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"indeterminate",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"disabled",void 0);Xe([(0,Le.property)({type:Boolean})],Q.prototype,"error",void 0);Xe([(0,Le.property)({attribute:"aria-label"})],Q.prototype,"ariaLabel",void 0);Xe([(0,Le.query)(".ft-checkbox")],Q.prototype,"container",void 0);Xe([(0,Le.query)("ft-ripple")],Q.prototype,"ripple",void 0);Xe([(0,Le.query)("input")],Q.prototype,"input",void 0);var bc=f(E());var xc={"ft-checkbox":Q};(0,bc.customElements)(xc);var Ac=f(k()),Je=f(j()),_c=f(E()),Cc=f(Jt());var Ec=f(k()),ge=f(E());var mt={textColor:ge.FtCssVariableFactory.extend("--ft-radio-text-color","",ge.designSystemVariables.colorOnSurfaceHigh),fontSize:ge.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ge.FtCssVariableFactory.extend("--ft-radio-border-color","",ge.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Sc=Ec.css`
744
744
  * {
745
745
  box-sizing: border-box;
746
746
  }
@@ -822,15 +822,15 @@
822
822
  }
823
823
 
824
824
  .ft-radio:has(:focus-visible) {
825
- outline: 2px solid ${ye.designSystemVariables.colorPrimary};
825
+ outline: 2px solid ${ge.designSystemVariables.colorPrimary};
826
826
  outline-offset: -2px;
827
827
  }
828
828
 
829
829
  .ft-radio ft-typography {
830
830
  padding-right: 2px;
831
831
  }
832
- `;var yt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},nn=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},le=class extends Ac.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Sc.html`
833
- <div class="${(0,_c.classMap)(this.radioClasses)}"
832
+ `;var yt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},nn=class extends CustomEvent{constructor(t,r){super("change",{detail:{value:t,checked:r},bubbles:!0,composed:!0})}},ce=class extends _c.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Ac.html`
833
+ <div class="${(0,Cc.classMap)(this.radioClasses)}"
834
834
  @click=${this.onClick}>
835
835
  <div class="ft-radio--box-container">
836
836
  <ft-ripple
@@ -855,7 +855,7 @@
855
855
  </ft-typography>
856
856
  </label>
857
857
  </div>
858
- `}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new nn(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new nn(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};le.elementDefinitions={"ft-ripple":N,"ft-typography":Y};le.styles=Ec;yt([(0,Je.property)()],le.prototype,"name",void 0);yt([(0,Je.property)()],le.prototype,"value",void 0);yt([(0,Je.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);yt([(0,Je.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);yt([(0,Je.property)({type:Boolean})],le.prototype,"disabled",void 0);yt([(0,Je.query)(".ft-radio")],le.prototype,"container",void 0);yt([(0,Je.query)("ft-ripple")],le.prototype,"ripple",void 0);yt([(0,Je.query)("input")],le.prototype,"input",void 0);var Oc=f(E()),gt=f(j()),Tc=f(k());var Cc=f(k());var wc=Cc.css`
858
+ `}willUpdate(t){super.willUpdate(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new nn(this.value,this.checked))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new nn(this.value,this.checked))}setInputTabIndex(t){this.input&&(this.input.tabIndex=t)}focus(){var t;(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(t){var r;t.target!==this.input&&(t.stopPropagation(),t.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};ce.elementDefinitions={"ft-ripple":N,"ft-typography":Y};ce.styles=Sc;yt([(0,Je.property)()],ce.prototype,"name",void 0);yt([(0,Je.property)()],ce.prototype,"value",void 0);yt([(0,Je.property)({type:Boolean,reflect:!0})],ce.prototype,"checked",void 0);yt([(0,Je.property)({attribute:"aria-checked",reflect:!0})],ce.prototype,"ariaChecked",void 0);yt([(0,Je.property)({type:Boolean})],ce.prototype,"disabled",void 0);yt([(0,Je.query)(".ft-radio")],ce.prototype,"container",void 0);yt([(0,Je.query)("ft-ripple")],ce.prototype,"ripple",void 0);yt([(0,Je.query)("input")],ce.prototype,"input",void 0);var Tc=f(E()),gt=f(j()),Rc=f(k());var wc=f(k());var Oc=wc.css`
859
859
  :host {
860
860
  display: block;
861
861
  }
@@ -863,12 +863,12 @@
863
863
  :host(:focus-visible) {
864
864
  outline: none;
865
865
  }
866
- `;var Kr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},He=class extends Oc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Tc.html`
866
+ `;var Kr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},He=class extends Tc.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var t,r;return(r=(t=this.assignedElements)===null||t===void 0?void 0:t.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Rc.html`
867
867
  <slot @slotchange=${this.onSlotChange}
868
868
  @change=${this.onChange}
869
869
  @keydown=${this.onKeyDown}
870
870
  ></slot>
871
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(r=>r.checked=t.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let r=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(r=>r.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};He.elementDefinitions={};He.styles=wc;Kr([(0,gt.property)()],He.prototype,"name",void 0);Kr([(0,gt.property)({reflect:!0,attribute:"role"})],He.prototype,"role",void 0);Kr([(0,gt.property)({reflect:!0,attribute:"aria-labelledby"})],He.prototype,"ariaLabelledBy",void 0);Kr([(0,gt.queryAssignedElements)()],He.prototype,"assignedElements",void 0);Kr([(0,gt.state)()],He.prototype,"currentSelectedIndex",void 0);var kc=f(E());var Rc={"ft-radio":le,"ft-radio-group":He};(0,kc.customElements)(Rc);var Lc=f(k()),M=f(E());var Gr={buttonMoreColor:M.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",M.designSystemVariables.colorOnSurface),borderRadiusM:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusM,"Design system"),colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:M.FtCssVariableFactory.external(fe.fontFamily,"Body2 typography"),fontSize:M.FtCssVariableFactory.external(fe.fontSize,"Body2 typography"),fontWeight:M.FtCssVariableFactory.external(fe.fontWeight,"Body2 typography"),letterSpacing:M.FtCssVariableFactory.external(fe.letterSpacing,"Body2 typography"),lineHeight:M.FtCssVariableFactory.external(fe.lineHeight,"Body2 typography"),textTransform:M.FtCssVariableFactory.external(fe.textTransform,"Body2 typography")},Dc=Lc.css`
871
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(t=>t.name=this.name)}contentAvailableCallback(t){super.contentAvailableCallback(t),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(t){t.stopPropagation(),this.radioButtons.forEach(r=>r.checked=t.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(t){let r=!1;switch(t.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(t.stopPropagation(),t.preventDefault())}resolveCurrentSelectedIndex(){let t=this.radioButtons.findIndex(r=>r.checked);t==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=t,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};He.elementDefinitions={};He.styles=Oc;Kr([(0,gt.property)()],He.prototype,"name",void 0);Kr([(0,gt.property)({reflect:!0,attribute:"role"})],He.prototype,"role",void 0);Kr([(0,gt.property)({reflect:!0,attribute:"aria-labelledby"})],He.prototype,"ariaLabelledBy",void 0);Kr([(0,gt.queryAssignedElements)()],He.prototype,"assignedElements",void 0);Kr([(0,gt.state)()],He.prototype,"currentSelectedIndex",void 0);var Lc=f(E());var kc={"ft-radio":ce,"ft-radio-group":He};(0,Lc.customElements)(kc);var Dc=f(k()),M=f(E());var Gr={buttonMoreColor:M.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",M.designSystemVariables.colorOnSurface),borderRadiusM:M.FtCssVariableFactory.external(M.designSystemVariables.borderRadiusM,"Design system"),colorOutline:M.FtCssVariableFactory.external(M.designSystemVariables.colorOutline,"Design system"),colorOnSurface:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:M.FtCssVariableFactory.external(M.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:M.FtCssVariableFactory.external(he.fontFamily,"Body2 typography"),fontSize:M.FtCssVariableFactory.external(he.fontSize,"Body2 typography"),fontWeight:M.FtCssVariableFactory.external(he.fontWeight,"Body2 typography"),letterSpacing:M.FtCssVariableFactory.external(he.letterSpacing,"Body2 typography"),lineHeight:M.FtCssVariableFactory.external(he.lineHeight,"Body2 typography"),textTransform:M.FtCssVariableFactory.external(he.textTransform,"Body2 typography")},Nc=Dc.css`
872
872
  .ft-filter-level--container {
873
873
  display: flex;
874
874
  flex-direction: column;
@@ -922,7 +922,15 @@
922
922
  ${(0,M.setVariable)(P.color,Gr.colorOnSurface)};
923
923
  }
924
924
 
925
- ft-button.ft-filter-level--display-more {
925
+ .ft-filter-level--display-buttons {
926
+ display: flex;
927
+ gap: 4px;
928
+ }
929
+
930
+ ft-button.ft-filter-level--display-more,
931
+ ft-button.ft-filter-level--display-less {
932
+ flex: 1 1 0;
933
+ min-width: 0;
926
934
  ${(0,M.setVariable)(P.color,Gr.buttonMoreColor)};
927
935
  }
928
936
 
@@ -939,9 +947,9 @@
939
947
  margin: 10px 0;
940
948
  color: ${Gr.colorOnSurfaceMedium};
941
949
  }
942
- `;var jt=Xi.build("designedFilterComponent");var pe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},us={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},H=class extends(0,ge.withAnalytics)(Yi((0,ge.withAriaNotification)(ge.FtLitElement)),us){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ge.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit);return Se.html`
950
+ `;var vt=Xi.build("designedFilterComponent");var fe=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},us={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},H=class extends(0,ve.withAnalytics)(Yi((0,ve.withAriaNotification)(ve.FtLitElement)),us){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ve.Debouncer(500)}get hasHiddenValues(){let t=this.limit;return t!=null&&t<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum:void 0}get height(){var t,r;return(r=(t=this.container)===null||t===void 0?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(t){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${t}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(t){super.willUpdate(t),(t.has("options")||t.has("hideSelectedOptions")||t.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter(r=>!r.selected)),this.filter&&(t=t.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=t}render(){let t=this.filteredOptions.slice(0,this.limit),r=t.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&t.length>this.displayedValuesMinimum;return ne.html`
943
951
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
944
- ${this.parent==null?null:Se.html`
952
+ ${this.parent==null?null:ne.html`
945
953
  <div tabindex="0"
946
954
  part="controls go-back"
947
955
  class="ft-filter-level--go-back"
@@ -955,48 +963,62 @@
955
963
  <ft-typography variant="${te.body2}">${this.parent.label}</ft-typography>
956
964
  </div>
957
965
  `}
958
- ${this.filteredOptions.length===0?Se.html`
966
+ ${this.filteredOptions.length===0?ne.html`
959
967
  <ft-typography class="ft-filter-level--no-values" element="span" variant="${te.body2}">
960
- ${jt.messages.noFilterValuesAvailable()}
968
+ ${vt.messages.noFilterValuesAvailable()}
961
969
  </ft-typography>
962
- `:Se.nothing}
963
- ${(0,Nc.repeat)(t,r=>r.value,r=>{var i;return Se.html`
970
+ `:ne.nothing}
971
+ ${(0,Pc.repeat)(t,n=>n.value,n=>{var s;return ne.html`
964
972
  <div class="ft-filter-level--option" part="options" tabindex="-1">
965
- ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
966
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Se.nothing:Se.html`
973
+ ${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
974
+ ${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?ne.nothing:ne.html`
967
975
  <ft-button icon="thin_arrow_right"
968
976
  part="controls navigate-hierarchy"
969
977
  aria-label="Expand node"
970
- data-value="${r.value}"
978
+ data-value="${n.value}"
971
979
  ?disabled=${this.disabled}
972
980
  hideTooltip
973
- @click=${()=>this.displayLevel(r)}></ft-button>
981
+ @click=${()=>this.displayLevel(n)}></ft-button>
974
982
  `}
975
983
  </div>
976
984
  `})}
977
- ${t.length<this.filteredOptions.length?Se.html`
978
- <ft-button
979
- class="ft-filter-level--display-more"
980
- icon="thin_arrow"
981
- dense trailingIcon
982
- part="controls display-more"
983
- @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
984
- ${jt.messages.displayMoreFilterValuesButton()}
985
- </ft-button>
986
- `:Se.nothing}
985
+ ${r||i?ne.html`
986
+ <div class="ft-filter-level--display-buttons" part="controls-container">
987
+ ${i?ne.html`
988
+ <ft-button
989
+ class="ft-filter-level--display-less"
990
+ icon="thin_arrow_up"
991
+ dense trailingIcon
992
+ part="controls display-less"
993
+ @click=${()=>{this.emitAnalyticsAction("less-filters-button-pressed",{}),this.displayLess()}}>
994
+ ${vt.messages.displayLessFilterValuesButton()}
995
+ </ft-button>
996
+ `:ne.nothing}
997
+ ${r?ne.html`
998
+ <ft-button
999
+ class="ft-filter-level--display-more"
1000
+ icon="thin_arrow"
1001
+ dense trailingIcon
1002
+ part="controls display-more"
1003
+ @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1004
+ ${vt.messages.displayMoreFilterValuesButton()}
1005
+ </ft-button>
1006
+ `:ne.nothing}
1007
+ </div>
1008
+ `:ne.nothing}
987
1009
  </div>
988
- `}goBackOnKeyPress(t){(t.key==="Enter"||t.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var t;let r=(t=this.limit)!==null&&t!==void 0?t:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(t){var r;return Se.html`
1010
+ `}goBackOnKeyPress(t){(t.key==="Enter"||t.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var t;let r=(t=this.limit)!==null&&t!==void 0?t:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(t){var r;return ne.html`
989
1011
  <ft-checkbox name="${this.filterId}"
990
1012
  part="multivalued-option option"
991
1013
  .exportpartsPrefixes=${["multivalued-option","option"]}
992
1014
  data-value="${t.value}"
993
1015
  .checked=${t.selected}
994
1016
  .disabled=${this.disabled}
995
- .indeterminate=${(0,ge.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1017
+ .indeterminate=${(0,ve.flatDeep)((r=t.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
996
1018
  @change=${i=>this.optionsChanged(i,t)}>
997
1019
  ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
998
1020
  </ft-checkbox>
999
- `}buildMonoValuedOption(t){return Se.html`
1021
+ `}buildMonoValuedOption(t){return ne.html`
1000
1022
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1001
1023
  part="monovalued-option option"
1002
1024
  data-value="${t.value}"
@@ -1007,7 +1029,7 @@
1007
1029
  @change=${r=>this.optionsChanged(r,t)}>
1008
1030
  ${t.renderOption?t.renderOption:t.label}${this.displayCount?` (${t.count})`:""}
1009
1031
  </ft-radio>
1010
- `}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};H.elementDefinitions={"ft-button":O,"ft-ripple":N,"ft-typography":Y,"ft-checkbox":Q,"ft-icon":de,"ft-radio":le};H.styles=Dc;pe([(0,ne.property)({type:String})],H.prototype,"filterId",void 0);pe([(0,ne.property)({type:Object})],H.prototype,"parent",void 0);pe([(0,ne.property)({type:Array,hasChanged:ge.hasChanged})],H.prototype,"options",void 0);pe([(0,ne.property)({type:Boolean})],H.prototype,"multivalued",void 0);pe([(0,ne.property)({type:Boolean})],H.prototype,"disabled",void 0);pe([(0,ne.property)({type:Boolean})],H.prototype,"hideSelectedOptions",void 0);pe([(0,ne.property)({type:Boolean})],H.prototype,"displayCount",void 0);pe([(0,ne.property)({type:Boolean})],H.prototype,"preventNavigation",void 0);pe([(0,ne.property)({type:String})],H.prototype,"filter",void 0);pe([(0,ne.property)()],H.prototype,"filteredOptionsNumberAriaNotification",void 0);pe([(0,ge.numberProperty)()],H.prototype,"displayedValuesLimit",void 0);pe([(0,ne.query)(".ft-filter-level--container")],H.prototype,"container",void 0);pe([(0,ne.state)()],H.prototype,"radios",void 0);pe([(0,ne.state)()],H.prototype,"displayedPages",void 0);pe([(0,ne.state)()],H.prototype,"filteredOptions",void 0);var Ic=f(k()),Ae=f(j()),Wt=f(E());var $c=f(Jt());var Pc=f(k()),Ve=f(E());var vt={buttonsColor:Ve.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Ve.designSystemVariables.colorPrimary),buttonsZIndex:Ve.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Ve.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorSurface,"Design system")},Mc=Pc.css`
1032
+ `}onRadioKeyDown(t,r){t.stopPropagation(),(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this.optionsChanged(t,r))}optionsChanged(t,r){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}updated(t){super.updated(t),t.has("filter")&&t.has("filteredOptions")&&t.get("filteredOptions")!==void 0&&t.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};H.elementDefinitions={"ft-button":O,"ft-ripple":N,"ft-typography":Y,"ft-checkbox":Q,"ft-icon":pe,"ft-radio":ce};H.styles=Nc;fe([(0,se.property)({type:String})],H.prototype,"filterId",void 0);fe([(0,se.property)({type:Object})],H.prototype,"parent",void 0);fe([(0,se.property)({type:Array,hasChanged:ve.hasChanged})],H.prototype,"options",void 0);fe([(0,se.property)({type:Boolean})],H.prototype,"multivalued",void 0);fe([(0,se.property)({type:Boolean})],H.prototype,"disabled",void 0);fe([(0,se.property)({type:Boolean})],H.prototype,"hideSelectedOptions",void 0);fe([(0,se.property)({type:Boolean})],H.prototype,"displayCount",void 0);fe([(0,se.property)({type:Boolean})],H.prototype,"preventNavigation",void 0);fe([(0,se.property)({type:String})],H.prototype,"filter",void 0);fe([(0,se.property)()],H.prototype,"filteredOptionsNumberAriaNotification",void 0);fe([(0,ve.numberProperty)()],H.prototype,"displayedValuesMinimum",void 0);fe([(0,se.query)(".ft-filter-level--container")],H.prototype,"container",void 0);fe([(0,se.state)()],H.prototype,"radios",void 0);fe([(0,se.state)()],H.prototype,"displayedPages",void 0);fe([(0,se.state)()],H.prototype,"filteredOptions",void 0);var $c=f(k()),Ae=f(j()),Wt=f(E());var Uc=f(Jt());var Mc=f(k()),Ve=f(E());var xt={buttonsColor:Ve.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Ve.designSystemVariables.colorPrimary),buttonsZIndex:Ve.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Ve.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorSurface,"Design system")},Ic=Mc.css`
1011
1033
  .ft-snap-scroll {
1012
1034
  box-sizing: border-box;
1013
1035
  position: relative;
@@ -1042,7 +1064,7 @@
1042
1064
  flex-wrap: nowrap;
1043
1065
  align-items: flex-start;
1044
1066
  justify-content: flex-start;
1045
- gap: ${vt.gap};
1067
+ gap: ${xt.gap};
1046
1068
  }
1047
1069
 
1048
1070
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1085,11 +1107,11 @@
1085
1107
  .ft-snap-scroll--next {
1086
1108
  position: absolute;
1087
1109
  display: flex;
1088
- z-index: ${vt.buttonsZIndex};
1110
+ z-index: ${xt.buttonsZIndex};
1089
1111
  opacity: 1;
1090
1112
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1091
1113
  ${(0,Ve.setVariable)(P.backgroundColor,"transparent")};
1092
- ${(0,Ve.setVariable)(P.color,vt.buttonsColor)};
1114
+ ${(0,Ve.setVariable)(P.color,xt.buttonsColor)};
1093
1115
  }
1094
1116
 
1095
1117
  .ft-snap-scroll--previous[hidden],
@@ -1102,37 +1124,37 @@
1102
1124
  top: 0;
1103
1125
  left: -1px;
1104
1126
  bottom: 0;
1105
- background: linear-gradient(to right, ${vt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1127
+ background: linear-gradient(to right, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1106
1128
  }
1107
1129
 
1108
1130
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1109
1131
  top: -1px;
1110
1132
  left: 0;
1111
1133
  right: 0;
1112
- background: linear-gradient(to bottom, ${vt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1134
+ background: linear-gradient(to bottom, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1113
1135
  }
1114
1136
 
1115
1137
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1116
1138
  top: 0;
1117
1139
  right: -1px;
1118
1140
  bottom: 0;
1119
- background: linear-gradient(to left, ${vt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1141
+ background: linear-gradient(to left, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1120
1142
  }
1121
1143
 
1122
1144
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1123
1145
  left: 0;
1124
1146
  right: 0;
1125
1147
  bottom: -1px;
1126
- background: linear-gradient(to top, ${vt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1148
+ background: linear-gradient(to top, ${xt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1127
1149
  }
1128
1150
 
1129
1151
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1130
1152
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1131
1153
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1132
1154
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1133
- background-color: ${vt.colorSurface};
1155
+ background-color: ${xt.colorSurface};
1134
1156
  }
1135
- `;var Ze=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ds=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends Wt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Wt.Debouncer(200),this.updateScrollDebouncer=new Wt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,$c.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Wt.isSafari}),r=this.controls&&this.withScroll;return Ic.html`
1157
+ `;var Ze=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ds=class extends CustomEvent{constructor(t,r){super("current-element-change",{detail:{index:t,element:r}})}},ee=class extends Wt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Wt.Debouncer(200),this.updateScrollDebouncer=new Wt.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let r=this.elements[t];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let t=(0,Uc.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Wt.isSafari}),r=this.controls&&this.withScroll;return $c.html`
1136
1158
  <div part="container" class="${t}">
1137
1159
  <ft-button
1138
1160
  class="ft-snap-scroll--previous"
@@ -1156,7 +1178,7 @@
1156
1178
  @click=${this.next}
1157
1179
  ></ft-button>
1158
1180
  </div>
1159
- `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ds(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Mc;Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Ze([(0,Ae.state)()],ee.prototype,"elements",void 0);Ze([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Ze([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Ze([(0,Ae.state)()],ee.prototype,"startReached",void 0);Ze([(0,Ae.state)()],ee.prototype,"endReached",void 0);Ze([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var Fc=f(E());var Uc={"ft-snap-scroll":ee};(0,Fc.customElements)(Uc);var Bc=f(k()),U=f(E());var De={colorOutline:U.FtCssVariableFactory.external(U.designSystemVariables.colorOutline,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorSurface,"Design system"),transitionDuration:U.FtCssVariableFactory.external(U.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:U.FtCssVariableFactory.external(U.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:U.FtCssVariableFactory.extend("--ft-filter-label-color","",U.designSystemVariables.colorOnSurface),labelFontSize:U.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Hc=[Zr,U.noTextInputDefaultClearButton,Bc.css`
1181
+ `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ds(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var r;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(t!=null){let r=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var r,i;t&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,r;this.elements=(r=(t=this.contentSlot)===null||t===void 0?void 0:t.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let r=0;r<this.elements.length;r++)(t<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[t]))&&(t=r);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){let r=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-r)}};ee.elementDefinitions={"ft-button":O};ee.styles=Ic;Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"horizontal",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"hideScrollbar",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"controls",void 0);Ze([(0,Ae.property)({type:Boolean})],ee.prototype,"limitSize",void 0);Ze([(0,Ae.state)()],ee.prototype,"elements",void 0);Ze([(0,Ae.state)()],ee.prototype,"currentElement",void 0);Ze([(0,Ae.state)()],ee.prototype,"withScroll",void 0);Ze([(0,Ae.state)()],ee.prototype,"startReached",void 0);Ze([(0,Ae.state)()],ee.prototype,"endReached",void 0);Ze([(0,Ae.query)(".ft-snap-scroll--content")],ee.prototype,"contentSlot",void 0);var Bc=f(E());var Fc={"ft-snap-scroll":ee};(0,Bc.customElements)(Fc);var Hc=f(k()),U=f(E());var De={colorOutline:U.FtCssVariableFactory.external(U.designSystemVariables.colorOutline,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorSurface,"Design system"),transitionDuration:U.FtCssVariableFactory.external(U.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:U.FtCssVariableFactory.external(U.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:U.FtCssVariableFactory.extend("--ft-filter-label-color","",U.designSystemVariables.colorOnSurface),labelFontSize:U.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},Vc=[Zr,U.noTextInputDefaultClearButton,Hc.css`
1160
1182
  :host {
1161
1183
  display: flex;
1162
1184
  max-height: 100%;
@@ -1273,7 +1295,7 @@
1273
1295
  slot:not([name]) {
1274
1296
  display: none;
1275
1297
  }
1276
- `];var z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ps=class extends CustomEvent{constructor(t){super("change",{detail:t})}},I=class extends(0,V.withAnalytics)(V.FtLitElement,us){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new V.Debouncer(300),this.changeDebouncer=new V.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,V.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,V.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=jt.messages.filterInputPlaceHolder(this.label);return Kt.html`
1298
+ `];var z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ps=class extends CustomEvent{constructor(t){super("change",{detail:t})}},I=class extends(0,V.withAnalytics)(V.FtLitElement,us){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new V.Debouncer(300),this.changeDebouncer=new V.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,V.flatDeep)(this.options,t=>{var r;return(r=t.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,V.flatDeep)(this.options,t=>{var r;return t.selected?[]:(r=t.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(t=>t.selected).map(t=>t.value)}render(){let t=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=vt.messages.filterInputPlaceHolder(this.label);return Kt.html`
1277
1299
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1278
1300
  part="container">
1279
1301
  ${!this.label&&!t?null:Kt.html`
@@ -1287,11 +1309,11 @@
1287
1309
  </div>
1288
1310
  ${t&&!this.hideClearButton?Kt.html`
1289
1311
  <ft-button icon="close"
1290
- aria-label="${jt.messages.clearFilterButton()+" "+this.label}"
1312
+ aria-label="${vt.messages.clearFilterButton()+" "+this.label}"
1291
1313
  dense
1292
1314
  @click=${()=>{this.clear(),this.focusOnFirstOption()}}
1293
1315
  part="clear-button">
1294
- ${jt.messages.clearFilterButton()}
1316
+ ${vt.messages.clearFilterButton()}
1295
1317
  </ft-button>
1296
1318
  `:null}
1297
1319
  </div>
@@ -1347,7 +1369,7 @@
1347
1369
  ?displayCount=${this.displayCount}
1348
1370
  .parent=${i}
1349
1371
  .options=${r}
1350
- .displayedValuesLimit=${this.displayedValuesLimit}
1372
+ .displayedValuesMinimum=${this.displayedValuesMinimum}
1351
1373
  @change=${this.onChange}
1352
1374
  @go-back=${this.goBack}
1353
1375
  @display-level=${this.onDisplayLevel}
@@ -1355,9 +1377,9 @@
1355
1377
  .exportpartsPrefixes=${["values","available-values"]}
1356
1378
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1357
1379
  ></ft-filter-level>
1358
- `}goBack(t){this.slideOut=t.detail.value,(0,V.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,V.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,V.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(s=>s.value===t.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,V.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new ps(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};I.elementDefinitions={"ft-button":O,"ft-filter-level":H,"ft-snap-scroll":ee,"ft-typography":Y};I.styles=Hc;z([(0,B.property)({type:String})],I.prototype,"id",void 0);z([(0,B.property)({type:String})],I.prototype,"label",void 0);z([(0,V.jsonProperty)([])],I.prototype,"options",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"multivalued",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"disabled",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"raiseSelectedOptions",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"displayCount",void 0);z([(0,V.numberProperty)()],I.prototype,"displayedValuesLimit",void 0);z([(0,V.jsonProperty)(void 0)],I.prototype,"filteredOptionsNumberAriaNotification",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"hideClearButton",void 0);z([(0,B.query)(".ft-filter--slot")],I.prototype,"slotElement",void 0);z([(0,B.query)(".ft-filter--container")],I.prototype,"container",void 0);z([(0,B.query)(".ft-filter--values")],I.prototype,"valuesContainer",void 0);z([(0,B.query)(".ft-filter--levels")],I.prototype,"levelsContainer",void 0);z([(0,B.state)()],I.prototype,"lastLevelHasHiddenvalues",void 0);z([(0,B.query)(".ft-filter--filter input")],I.prototype,"filterInput",void 0);z([(0,B.queryAll)(".ft-filter--levels ft-filter-level")],I.prototype,"levels",void 0);z([(0,B.state)()],I.prototype,"withScroll",void 0);z([(0,B.state)()],I.prototype,"filter",void 0);z([(0,B.state)()],I.prototype,"slideIn",void 0);z([(0,B.state)()],I.prototype,"slideOut",void 0);var sn=f(E()),Gt=f(j()),Vc=f(k()),fr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ze=class extends sn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Vc.html`
1380
+ `}goBack(t){this.slideOut=t.detail.value,(0,V.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(t.detail.value)})}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value,(0,V.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,V.waitUntil)(()=>this.slideOut===void 0).then(()=>{var t;let r=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(t=>t.selected=!1),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var r;t.stopPropagation();let i=this.flatOptions.find(s=>s.value===t.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),(t=this.levels)===null||t===void 0||t.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let t=this.selectedValues;(0,V.deepEqual)(this.lastDispatchedValues,t)||(this.dispatchEvent(new ps(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var t,r;this.filter=(r=(t=this.filterInput)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};I.elementDefinitions={"ft-button":O,"ft-filter-level":H,"ft-snap-scroll":ee,"ft-typography":Y};I.styles=Vc;z([(0,B.property)({type:String})],I.prototype,"id",void 0);z([(0,B.property)({type:String})],I.prototype,"label",void 0);z([(0,V.jsonProperty)([])],I.prototype,"options",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"multivalued",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"disabled",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"raiseSelectedOptions",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"displayCount",void 0);z([(0,V.numberProperty)()],I.prototype,"displayedValuesMinimum",void 0);z([(0,V.jsonProperty)(void 0)],I.prototype,"filteredOptionsNumberAriaNotification",void 0);z([(0,B.property)({type:Boolean})],I.prototype,"hideClearButton",void 0);z([(0,B.query)(".ft-filter--slot")],I.prototype,"slotElement",void 0);z([(0,B.query)(".ft-filter--container")],I.prototype,"container",void 0);z([(0,B.query)(".ft-filter--values")],I.prototype,"valuesContainer",void 0);z([(0,B.query)(".ft-filter--levels")],I.prototype,"levelsContainer",void 0);z([(0,B.state)()],I.prototype,"lastLevelHasHiddenvalues",void 0);z([(0,B.query)(".ft-filter--filter input")],I.prototype,"filterInput",void 0);z([(0,B.queryAll)(".ft-filter--levels ft-filter-level")],I.prototype,"levels",void 0);z([(0,B.state)()],I.prototype,"withScroll",void 0);z([(0,B.state)()],I.prototype,"filter",void 0);z([(0,B.state)()],I.prototype,"slideIn",void 0);z([(0,B.state)()],I.prototype,"slideOut",void 0);var sn=f(E()),Gt=f(j()),zc=f(k()),fr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ze=class extends sn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return zc.html`
1359
1381
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1360
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};ze.elementDefinitions={};fr([(0,Gt.property)({type:String})],ze.prototype,"label",void 0);fr([(0,Gt.property)({type:Object,converter:e=>e})],ze.prototype,"value",void 0);fr([(0,Gt.property)({type:Boolean,reflect:!0})],ze.prototype,"selected",void 0);fr([(0,Gt.property)({type:Object})],ze.prototype,"subOptions",void 0);fr([(0,sn.jsonProperty)({})],ze.prototype,"renderOption",void 0);fr([(0,Gt.query)(".ft-filter-option--slot")],ze.prototype,"slotElement",void 0);var zc={"ft-filter":I,"ft-filter-option":ze};(0,jc.customElements)(zc);})();
1382
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};ze.elementDefinitions={};fr([(0,Gt.property)({type:String})],ze.prototype,"label",void 0);fr([(0,Gt.property)({type:Object,converter:e=>e})],ze.prototype,"value",void 0);fr([(0,Gt.property)({type:Boolean,reflect:!0})],ze.prototype,"selected",void 0);fr([(0,Gt.property)({type:Object})],ze.prototype,"subOptions",void 0);fr([(0,sn.jsonProperty)({})],ze.prototype,"renderOption",void 0);fr([(0,Gt.query)(".ft-filter-option--slot")],ze.prototype,"slotElement",void 0);var jc={"ft-filter":I,"ft-filter-option":ze};(0,Wc.customElements)(jc);})();
1361
1383
  /*! Bundled license information:
1362
1384
 
1363
1385
  .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js: