@fluid-topics/ft-tooltip 2.1.5 → 2.1.6
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,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var ea=Object.create;var
|
|
1
|
+
"use strict";(()=>{var ea=Object.create;var Dn=Object.defineProperty;var ra=Object.getOwnPropertyDescriptor;var na=Object.getOwnPropertyNames;var ia=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var oa=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of na(t))!sa.call(e,i)&&i!==r&&Dn(e,i,{get:()=>t[i],enumerable:!(n=ra(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?ea(ia(e)):{},oa(t||!e||!e.__esModule?Dn(r,"default",{value:e,enumerable:!0}):r,e));var T=Tr((Ic,Mn)=>{Mn.exports=ftGlobals.wcUtils});var ot=Tr((Lc,Un)=>{Un.exports=ftGlobals.lit});var et=Tr((Pc,Fn)=>{Fn.exports=ftGlobals.litDecorators});var ta=E(T());var Qo=E(ot()),X=E(et()),Y=E(T());var kr=globalThis,Fe=kr.trustedTypes,$n=Fe?Fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,zn="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Kn="?"+ht,aa=`<${Kn}>`,Tt=document,$e=()=>Tt.createComment(""),ye=e=>e===null||typeof e!="object"&&typeof e!="function",Nr=Array.isArray,ca=e=>Nr(e)||typeof e?.[Symbol.iterator]=="function",Or=`[
|
|
2
2
|
\f\r]`,me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jn=/-->/g,Hn=/>/g,wt=RegExp(`>|${Or}(?:([^\\s"'>=/]+)(${Or}*=${Or}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Nr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Gn=Nr(1),Yn=Nr(2),Xn=Nr(3),ge=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),Wn=new WeakMap,Ct=Tt.createTreeWalker(Tt,129);function Jn(e,t){if(!Dr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(t):t}var ua=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=me;for(let a=0;a<r;a++){let c=e[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===me?l[1]==="!--"?o=jn:l[1]!==void 0?o=Hn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=wt):l[3]!==void 0&&(o=wt):o===wt?l[0]===">"?(o=i??me,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?wt:l[3]==='"'?Vn:Bn):o===Vn||o===Bn?o=wt:o===jn||o===Hn?o=me:(o=wt,i=void 0);let p=o===wt&&e[a+1].startsWith("/>")?" ":"";s+=o===me?c+aa:d>=0?(n.push(u),c.slice(0,d)+zn+c.slice(d)+ht+p):c+ht+(d===-2?a:p)}return[Jn(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ve=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,c=this.parts,[u,l]=ua(t,r);if(this.el=e.createElement(u,n),Ct.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ct.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(zn)){let f=l[o++],p=i.getAttribute(d).split(ht),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Lr:Ht}),i.removeAttribute(d)}else d.startsWith(ht)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(ht),f=d.length-1;if(f>0){i.textContent=Fe?Fe.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$e()),Ct.nextNode(),c.push({type:2,index:++s});i.append(d[f],$e())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(ht,d+1))!==-1;)c.push({type:7,index:s}),d+=ht.length-1}s++}}static createElement(t,r){let n=Tt.createElement("template");return n.innerHTML=t,n}};function jt(e,t,r=e,n){if(t===ge)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ye(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=jt(e,i._$AS(e,t.values),i,n)),t}var Rr=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:n}=this._$AD,i=(t?.creationScope??Tt).importNode(r,!0);Ct.currentNode=i;let s=Ct.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new je(s,s.nextSibling,this,t):c.type===1?u=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(u=new Pr(s,this,t)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ct.nextNode(),o++)}return Ct.currentNode=Tt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},je=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=jt(this,t,r),ye(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ca(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!==L&&ye(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ve.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Wn.get(t.strings);return r===void 0&&Wn.set(t.strings,r=new ve(t)),r}k(t){Dr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O($e()),this.O($e()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=jt(this,t,r,0),o=!ye(t)||t!==this._$AH&&t!==ge,o&&(this._$AH=t);else{let a=t,c,u;for(t=s[0],c=0;c<s.length-1;c++)u=jt(this,a[n+c],r,c),u===ge&&(u=this._$AH[c]),o||=!ye(u)||u!==this._$AH[c],u===L?t=L:t!==L&&(t+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_r=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}},Ir=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}},Lr=class extends Ht{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=jt(this,t,r,0)??L)===ge)return;let n=this._$AH,i=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==L&&(n===L||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Pr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){jt(this,t)}};var la=kr.litHtmlPolyfillSupport;la?.(ve,je),(kr.litHtmlVersions??=[]).push("3.3.0");var Zn=Symbol.for(""),da=e=>{if(e?.r===Zn)return e?._$litStatic$},Mr=e=>({_$litStatic$:e,r:Zn});var Qn=new Map,Ur=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=t[u];u<n&&(s=r[u],(i=da(s))!==void 0);)c+=i+t[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(t[n]),l){let d=o.join("$$lit$$");(t=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,t=o)),r=a}return e(t,...r)},Fr=Ur(Gn),Nc=Ur(Yn),Mc=Ur(Xn);var $r=E(et()),pi=E(T());var Bt;(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"})(Bt||(Bt={}));var V=E(ot()),y=E(T()),ti=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),at=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:at,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ei=V.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bn=/'/g,Vn=/"/g,qn=/^(?:script|style|textarea|title)$/i,Dr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Gn=Dr(1),Yn=Dr(2),Xn=Dr(3),ge=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),Wn=new WeakMap,Ct=Tt.createTreeWalker(Tt,129);function Jn(e,t){if(!Nr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return $n!==void 0?$n.createHTML(t):t}var ua=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=me;for(let a=0;a<r;a++){let c=e[a],u,l,d=-1,f=0;for(;f<c.length&&(o.lastIndex=f,l=o.exec(c),l!==null);)f=o.lastIndex,o===me?l[1]==="!--"?o=jn:l[1]!==void 0?o=Hn:l[2]!==void 0?(qn.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=wt):l[3]!==void 0&&(o=wt):o===wt?l[0]===">"?(o=i??me,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,u=l[1],o=l[3]===void 0?wt:l[3]==='"'?Vn:Bn):o===Vn||o===Bn?o=wt:o===jn||o===Hn?o=me:(o=wt,i=void 0);let p=o===wt&&e[a+1].startsWith("/>")?" ":"";s+=o===me?c+aa:d>=0?(n.push(u),c.slice(0,d)+zn+c.slice(d)+ht+p):c+ht+(d===-2?a:p)}return[Jn(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},ve=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,c=this.parts,[u,l]=ua(t,r);if(this.el=e.createElement(u,n),Ct.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=Ct.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(zn)){let f=l[o++],p=i.getAttribute(d).split(ht),h=/([.?@])?(.*)/.exec(f);c.push({type:1,index:s,name:h[2],strings:p,ctor:h[1]==="."?_r:h[1]==="?"?Ir:h[1]==="@"?Lr:Ht}),i.removeAttribute(d)}else d.startsWith(ht)&&(c.push({type:6,index:s}),i.removeAttribute(d));if(qn.test(i.tagName)){let d=i.textContent.split(ht),f=d.length-1;if(f>0){i.textContent=Fe?Fe.emptyScript:"";for(let p=0;p<f;p++)i.append(d[p],$e()),Ct.nextNode(),c.push({type:2,index:++s});i.append(d[f],$e())}}}else if(i.nodeType===8)if(i.data===Kn)c.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(ht,d+1))!==-1;)c.push({type:7,index:s}),d+=ht.length-1}s++}}static createElement(t,r){let n=Tt.createElement("template");return n.innerHTML=t,n}};function jt(e,t,r=e,n){if(t===ge)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ye(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=jt(e,i._$AS(e,t.values),i,n)),t}var Rr=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:n}=this._$AD,i=(t?.creationScope??Tt).importNode(r,!0);Ct.currentNode=i;let s=Ct.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let u;c.type===2?u=new je(s,s.nextSibling,this,t):c.type===1?u=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(u=new Pr(s,this,t)),this._$AV.push(u),c=n[++a]}o!==c?.index&&(s=Ct.nextNode(),o++)}return Ct.currentNode=Tt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},je=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=jt(this,t,r),ye(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ca(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!==L&&ye(this._$AH)?this._$AA.nextSibling.data=t:this.T(Tt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ve.createElement(Jn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new Rr(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=Wn.get(t.strings);return r===void 0&&Wn.set(t.strings,r=new ve(t)),r}k(t){Nr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O($e()),this.O($e()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=jt(this,t,r,0),o=!ye(t)||t!==this._$AH&&t!==ge,o&&(this._$AH=t);else{let a=t,c,u;for(t=s[0],c=0;c<s.length-1;c++)u=jt(this,a[n+c],r,c),u===ge&&(u=this._$AH[c]),o||=!ye(u)||u!==this._$AH[c],u===L?t=L:t!==L&&(t+=(u??"")+s[c+1]),this._$AH[c]=u}o&&!i&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_r=class extends Ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}},Ir=class extends Ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}},Lr=class extends Ht{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=jt(this,t,r,0)??L)===ge)return;let n=this._$AH,i=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==L&&(n===L||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Pr=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){jt(this,t)}};var la=kr.litHtmlPolyfillSupport;la?.(ve,je),(kr.litHtmlVersions??=[]).push("3.3.0");var Zn=Symbol.for(""),da=e=>{if(e?.r===Zn)return e?._$litStatic$},Mr=e=>({_$litStatic$:e,r:Zn});var Qn=new Map,Ur=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],c,u=0,l=!1;for(;u<n;){for(c=t[u];u<n&&(s=r[u],(i=da(s))!==void 0);)c+=i+t[++u],l=!0;u!==n&&a.push(s),o.push(c),u++}if(u===n&&o.push(t[n]),l){let d=o.join("$$lit$$");(t=Qn.get(d))===void 0&&(o.raw=o,Qn.set(d,t=o)),r=a}return e(t,...r)},Fr=Ur(Gn),Dc=Ur(Yn),Mc=Ur(Xn);var $r=E(et()),pi=E(T());var Bt;(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"})(Bt||(Bt={}));var V=E(ot()),y=E(T()),ti=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),at=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),A={fontFamily:at,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ti),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},Kt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},Gt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},Qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",at),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},ei=V.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${Vt.fontFamily};
|
|
6
6
|
font-size: ${Vt.fontSize};
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
position: relative;
|
|
135
135
|
word-break: break-word;
|
|
136
136
|
}
|
|
137
|
-
`;var bi=["top","right","bottom","left"],vi=["start","end"],Hr=bi.reduce((e,t)=>e.concat(t,t+"-"+vi[0],t+"-"+vi[1]),[]),Ae=Math.min,yt=Math.max,xe=Math.round;var J=e=>({x:e,y:e}),fa={left:"right",right:"left",bottom:"top",top:"bottom"};function Br(e,t,r){return yt(e,Ae(t,r))}function He(e,t){return typeof e=="function"?e(t):e}function Zt(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Wr(e){return e==="y"?"height":"width"}function Be(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function zr(e){return Vr(Be(e))}function Ai(e,t,r){r===void 0&&(r=!1);let n=gt(e),i=zr(e),s=Wr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=jr(o)),[o,jr(o)]}function xi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function jr(e){let t=Zt(e);return fa[t]+e.slice(t.length)}function pa(e){return{top:0,right:0,bottom:0,left:0,...e}}function Si(e){return typeof e!="number"?pa(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ei(e,t,r){let{reference:n,floating:i}=e,s=Be(t),o=zr(t),a=Wr(o),c=Zt(t),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(gt(t)){case"start":p[o]-=f*(r&&u?-1:1);break;case"end":p[o]+=f*(r&&u?-1:1);break}return p}async function wi(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=He(t,e),h=Si(p),g=a[f?d==="floating"?"reference":"floating":d],v=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},I=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var ha=50,Ci=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:wi},c=await(o.isRTL==null?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=Ei(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<ha&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:l,y:d}=Ei(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ma(e,t,r){return(e?[...r.filter(i=>gt(i)===e),...r.filter(i=>gt(i)!==e)]:r.filter(i=>Zt(i)===i)).filter(i=>e?gt(i)===e||(t?xi(i)!==i:!1):!0)}var Ti=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:c,elements:u}=t,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Hr,autoAlignment:p=!0,...h}=He(e,t),m=d!==void 0||f===Hr?ma(d||null,p,f):f,g=await c.detectOverflow(t,h),v=((r=o.autoPlacement)==null?void 0:r.index)||0,b=m[v];if(b==null)return{};let x=Ai(b,s,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(a!==b)return{reset:{placement:m[0]}};let S=[g[Zt(b)],g[x[0]],g[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:S}],R=m[v+1];if(R)return{data:{index:v+1,overflows:I},reset:{placement:R}};let ft=I.map(U=>{let B=gt(U.placement);return[U.placement,B&&l?U.overflows.slice(0,2).reduce((F,Et)=>F+Et,0):U.overflows[0],U.overflows]}).sort((U,B)=>U[1]-B[1]),pt=((i=ft.filter(U=>U[2].slice(0,gt(U[0])?2:3).every(B=>B<=0))[0])==null?void 0:i[0])||ft[0][0];return pt!==a?{data:{index:v+1,overflows:I},reset:{placement:pt}}:{}}}};var Oi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...u}=He(e,t),l={x:r,y:n},d=await s.detectOverflow(t,u),f=Be(Zt(i)),p=Vr(f),h=l[p],m=l[f];if(o){let v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=h+d[v],S=h-d[b];h=Br(x,h,S)}if(a){let v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=m+d[v],S=m-d[b];m=Br(x,m,S)}let g=c.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[p]:o,[f]:a}}}}}};function We(){return typeof window<"u"}function _t(e){return _i(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(_i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _i(e){return We()?e instanceof Node||e instanceof M(e).Node:!1}function W(e){return We()?e instanceof Element||e instanceof M(e).Element:!1}function nt(e){return We()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function Ri(e){return!We()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function te(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Ii(e){return/^(table|td|th)$/.test(_t(e))}function Se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ya=/transform|translate|scale|rotate|perspective|filter/,ga=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",Kr;function ee(e){let t=W(e)?z(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!ze()&&(Rt(t.backdropFilter)||Rt(t.filter))||ya.test(t.willChange||"")||ga.test(t.contain||"")}function Li(e){let t=ut(e);for(;nt(t)&&!It(t);){if(ee(t))return t;if(Se(t))return null;t=ut(t)}return null}function ze(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function It(e){return/^(html|body|#document)$/.test(_t(e))}function z(e){return M(e).getComputedStyle(e)}function Ee(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(_t(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ri(e)&&e.host||rt(e);return Ri(t)?t.host:t}function Pi(e){let t=ut(e);return It(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&te(t)?t:Pi(t)}function Ve(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Pi(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Ke(o);return t.concat(o,o.visualViewport||[],te(i)?i:[],a&&r?Ve(a):[])}else return t.concat(i,Ve(i,[],r))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){let t=z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=nt(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=xe(r)!==s||xe(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ui(e){return W(e)?e:e.contextElement}function re(e){let t=Ui(e);if(!nt(t))return J(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Mi(t),o=(s?xe(r.width):r.width)/n,a=(s?xe(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var va=J(0);function Fi(e){let t=M(e);return!ze()||!t.visualViewport?va:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==M(e)?!1:t}function we(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Ui(e),o=J(1);t&&(n?W(n)&&(o=re(n)):o=re(e));let a=ba(s,r,n)?Fi(s):J(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s){let f=M(s),p=n&&W(n)?M(n):n,h=f,m=Ke(h);for(;m&&n&&p!==h;){let g=re(m),v=m.getBoundingClientRect(),b=z(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Ke(h)}}return Ot({width:l,height:d,x:c,y:u})}function qe(e,t){let r=Ee(e).scrollLeft;return t?t.left+r:we(rt(e)).left+r}function $i(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-qe(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Aa(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=rt(n),a=t?Se(t.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=J(1),l=J(0),d=nt(n);if((d||!d&&!s)&&((_t(n)!=="body"||te(o))&&(c=Ee(n)),d)){let p=we(n);u=re(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?$i(o,c):J(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){let t=rt(e),r=Ee(e),n=e.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+qe(e),a=-r.scrollTop;return z(n).direction==="rtl"&&(o+=yt(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var ki=25;function Ea(e,t){let r=M(e),n=rt(e),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;let l=ze();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}let u=qe(n);if(u<=0){let l=n.ownerDocument,d=l.body,f=getComputedStyle(d),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-p);h<=ki&&(s-=h)}else u<=ki&&(s+=u);return{width:s,height:o,x:a,y:c}}function wa(e,t){let r=we(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=nt(e)?re(e):J(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Di(e,t,r){let n;if(t==="viewport")n=Ea(e,r);else if(t==="document")n=Sa(rt(e));else if(W(t))n=wa(t,r);else{let i=Fi(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ot(n)}function ji(e,t){let r=ut(e);return r===t||!W(r)||It(r)?!1:z(r).position==="fixed"||ji(r,t)}function Ca(e,t){let r=t.get(e);if(r)return r;let n=Ve(e,[],!1).filter(a=>W(a)&&_t(a)!=="body"),i=null,s=z(e).position==="fixed",o=s?ut(e):e;for(;W(o)&&!It(o);){let a=z(o),c=ee(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||te(o)&&!c&&ji(e,o))?n=n.filter(l=>l!==o):i=a,o=ut(o)}return t.set(e,n),n}function Ta(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Se(t)?[]:Ca(t,this._c):[].concat(r),n],a=Di(t,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Di(t,o[f],i);c=yt(p.top,c),u=Ae(p.right,u),l=Ae(p.bottom,l),d=yt(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Oa(e){let{width:t,height:r}=Mi(e);return{width:t,height:r}}function Ra(e,t,r){let n=nt(t),i=rt(t),s=r==="fixed",o=we(e,!0,s,t),a={scrollLeft:0,scrollTop:0},c=J(0);function u(){c.x=qe(i)}if(n||!n&&!s)if((_t(t)!=="body"||te(i))&&(a=Ee(t)),n){let p=we(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else i&&u();s&&!n&&i&&u();let l=i&&!n&&!s?$i(i,a):J(0),d=o.left+a.scrollLeft-c.x-l.x,f=o.top+a.scrollTop-c.y-l.y;return{x:d,y:f,width:o.width,height:o.height}}function qr(e){return z(e).position==="static"}function Ni(e,t){if(!nt(e)||z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rt(e)===r&&(r=r.ownerDocument.body),r}function Hi(e,t){let r=M(e);if(Se(e))return r;if(!nt(e)){let i=ut(e);for(;i&&!It(i);){if(W(i)&&!qr(i))return i;i=ut(i)}return r}let n=Ni(e,t);for(;n&&Ii(n)&&qr(n);)n=Ni(n,t);return n&&It(n)&&qr(n)&&!ee(n)?r:n||Li(e)||r}var _a=async function(e){let t=this.getOffsetParent||Hi,r=this.getDimensions,n=await r(e.floating);return{reference:Ra(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ia(e){return z(e).direction==="rtl"}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:Aa,getDocumentElement:rt,getClippingRect:Ta,getOffsetParent:Hi,getElementRects:_a,getClientRects:xa,getDimensions:Oa,getScale:re,isElement:W,isRTL:Ia};var Bi=Ti,Vi=Oi;var Wi=(e,t,r)=>{let n=new Map,i={platform:Ge,...r},s={...i.platform,_c:n};return Ci(e,t,{...i,platform:s})};function zi(e){return La(e)}function Gr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function La(e){for(let t=e;t;t=Gr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Gr(e);t;t=Gr(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||ee(r)||t.tagName==="BODY"))return t}return null}async function Ki(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Wi(e,t,{strategy:n.strategy,platform:{...Ge,getOffsetParent:i=>Ge.getOffsetParent(i,zi)},middleware:[Vi({crossAxis:!0}),Bi({allowedPlacements:[n.placement]})]})}var he=E(T());var xn=E(et());var qi=E(et(),1);var Yr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Gi(e,t){return(0,qi.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ce(e);try{return JSON.parse(r)}catch{return Ce(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Te,...t??{}})}function Pa(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,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ye(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Ye(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Ye(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ye(e,t){try{return Pa(e,t)}catch{return!1}}function Te(e,t){return!Ye(e,t)}function Ce(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Xe(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Yi=E(et(),1);var Xr=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Te,attribute:!1,...t};(0,Yi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Je=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==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 Lt=E(et(),1);var Qe=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(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 n)try{await o()}catch(a){i(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 Ji=E(ot(),1);var Ze=globalThis,ka=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Xi=(e,t)=>{if(ka)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),i=Ze.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var tr=class extends Ji.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},n=this.renderOptions.creationScope=this.attachShadow(r);return Xi(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Yr(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 Qi(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var ie=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rs,Zi=Symbol("constructorPrototype"),ts=Symbol("constructorName"),ns=Symbol("exportpartsDebouncer"),es=Symbol("dynamicDependenciesLoaded"),ne=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ne.eventName="exportparts-updated";var it=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new Qe(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ns].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[ts]=this.constructor.name,this[Zi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ts]&&Object.setPrototypeOf(this,this[Zi])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[es]||(r[es]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ne.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ne.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 ne)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Qi(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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,n,i,s,o,a;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};rs=ns;ie([(0,Lt.property)()],it.prototype,"exportpartsPrefix",void 0);ie([Gi([])],it.prototype,"exportpartsPrefixes",void 0);ie([(0,Lt.property)({reflect:!0})],it.prototype,"exportparts",void 0);ie([(0,Lt.property)()],it.prototype,"customStylesheet",void 0);ie([(0,Lt.property)()],it.prototype,"elementToFocus",void 0);ie([(0,Lt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Oe=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),Da=Xe(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=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 c;a=(c=a??o.name)!==null&&c!==void 0?c:"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 c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[vt].has(o.store):this[vt].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[vt].set(o,a.subscribe(()=>this.updateFromStores())),this[Oe].set(o,[]),er(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Oe].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[vt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[vt].has(o)&&this[vt].get(o)(),this[vt].delete(o),(a=this[Oe].get(o))===null||a===void 0||a.forEach(c=>c()),this[Oe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vt,r=Pt,n=Oe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),is=class extends Da(it){};function K(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lt(e){return!!e&&!!e[C]}function Q(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ba})(e)||Array.isArray(e)||!!e[ds]||!!(!((t=e.constructor)===null||t===void 0)&&t[ds])||on(e)||an(e))}function kt(e,t,r){r===void 0&&(r=!1),ae(e)===0?(r?Object.keys:oe)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function ae(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:on(e)?2:an(e)?3:0}function se(e,t){return ae(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Na(e,t){return ae(e)===2?e.get(t):e[t]}function fs(e,t,r){var n=ae(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ps(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function on(e){return ja&&e instanceof Map}function an(e){return Ha&&e instanceof Set}function bt(e){return e.o||e.t}function cn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ys(e);delete t[C];for(var r=oe(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function un(e,t){return t===void 0&&(t=!1),ln(e)||lt(e)||!Q(e)||(ae(e)>1&&(e.set=e.add=e.clear=e.delete=Ma),Object.freeze(e),t&&kt(e,(function(r,n){return un(n,!0)}),!0)),e}function Ma(){K(2)}function ln(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function st(e){var t=sn[e];return t||K(18,e),t}function Ua(e,t){sn[e]||(sn[e]=t)}function en(){return _e}function Jr(e,t){t&&(st("Patches"),e.u=[],e.s=[],e.v=t)}function rr(e){rn(e),e.p.forEach(Fa),e.p=null}function rn(e){e===_e&&(_e=e.l)}function ss(e){return _e={p:[],l:_e,h:e,m:!0,_:0}}function Fa(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function Qr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||st("ES5").S(t,e,n),n?(r[C].P&&(rr(t),K(4)),Q(e)&&(e=nr(t,e),t.l||ir(t,e)),t.u&&st("Patches").M(r[C].t,e,t.u,t.s)):e=nr(t,r,[]),rr(t),t.u&&t.v(t.u,t.s),e!==ms?e:void 0}function nr(e,t,r){if(ln(t))return t;var n=t[C];if(!n)return kt(t,(function(a,c){return os(e,n,t,a,c,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ir(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=cn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),kt(s,(function(a,c){return os(e,n,i,a,c,r,o)})),ir(e,i,!1),r&&e.u&&st("Patches").N(n,r,e.u,e.s)}return n.o}function os(e,t,r,n,i,s,o){if(lt(i)){var a=nr(e,i,s&&t&&t.i!==3&&!se(t.R,n)?s.concat(n):void 0);if(fs(r,n,a),!lt(a))return;e.m=!1}else o&&r.add(i);if(Q(i)&&!ln(i)){if(!e.h.D&&e._<1)return;nr(e,i),t&&t.A.l||ir(e,i)}}function ir(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&un(t,r)}function Zr(e,t){var r=e[C];return(r?bt(r):e)[t]}function as(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function At(e){e.P||(e.P=!0,e.l&&At(e.l))}function tn(e){e.o||(e.o=cn(e.t))}function nn(e,t,r){var n=on(t)?st("MapSet").F(t,r):an(t)?st("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:en(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=Ie;o&&(c=[a],u=Re);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(t,r):st("ES5").J(t,r);return(r?r.A:en()).p.push(n),n}function $a(e){return lt(e)||K(22,e),(function t(r){if(!Q(r))return r;var n,i=r[C],s=ae(r);if(i){if(!i.P&&(i.i<4||!st("ES5").K(i)))return i.t;i.I=!0,n=cs(r,s),i.I=!1}else n=cs(r,s);return kt(n,(function(o,a){i&&Na(i.t,o)===a||fs(n,o,t(a))})),s===3?new Set(n):n})(e)}function cs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return cn(e)}function hs(){function e(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return Ie.get(u,o)},set:function(u){var l=this[C];Ie.set(l,o,u)}},c}function t(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&At(c);break;case 4:r(c)&&At(c)}}}function r(o){for(var a=o.t,c=o.k,u=oe(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!se(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!ps(p,f))return!0}}var m=!!a[C];return u.length!==oe(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&K(3,JSON.stringify(bt(o)))}var s={};Ua("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var m=ys(f);delete m[C];for(var g=oe(m),v=0;v<g.length;v++){var b=g[v];m[b]=e(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:en(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?lt(a)&&a[C].A===o&&t(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)kt(p,(function(S){S!==C&&(f[S]!==void 0||se(f,S)?h[S]||u(p[S]):(h[S]=!0,At(d)))})),kt(f,(function(S){p[S]!==void 0||se(p,S)||(h[S]=!1,At(d))}));else if(m===5){if(n(d)&&(At(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var us,_e,dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ja=typeof Map<"u",Ha=typeof Set<"u",ls=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ms=dn?Symbol.for("immer-nothing"):((us={})["immer-nothing"]=!0,us),ds=dn?Symbol.for("immer-draftable"):"__$immer_draftable",C=dn?Symbol.for("immer-state"):"__$immer_state";var Ba=""+Object.prototype.constructor,oe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ys=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},sn={},Ie={get:function(e,t){if(t===C)return e;var r=bt(e);if(!se(r,t))return(function(i,s,o){var a,c=as(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Q(n)?n:n===Zr(e.t,t)?(tn(e),e.o[t]=nn(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,r){var n=as(bt(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Zr(bt(e),t),s=i?.[C];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ps(r,i)&&(r!==void 0||se(e.t,t)))return!0;tn(e),At(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Zr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tn(e),At(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){K(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){K(12)}},Re={};kt(Ie,(function(e,t){Re[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Re.deleteProperty=function(e,t){return Re.set.call(this,e,t,void 0)},Re.set=function(e,t,r){return Ie.set.call(this,e[0],t,r,e[0])};var Va=(function(){function e(r){var n=this;this.O=ls,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&K(6),o!==void 0&&typeof o!="function"&&K(7),Q(i)){var l=ss(n),d=nn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):rn(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Jr(l,o),Qr(m,l)}),(function(m){throw rr(l),m})):(Jr(l,o),Qr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===ms&&(u=void 0),n.D&&un(u,!0),o){var p=[],h=[];st("Patches").M(i,u,p,h),o(p,h)}return u}K(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Q(r)||K(8),lt(r)&&(r=$a(r));var n=ss(this),i=nn(this,r,void 0);return i[C].C=!0,rn(n),i},t.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Jr(s,n),Qr(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ls&&K(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=st("Patches").$;return lt(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),$=new Va,Wa=$.produce,Ju=$.produceWithPatches.bind($),Qu=$.setAutoFreeze.bind($),Zu=$.setUseProxies.bind($),tl=$.applyPatches.bind($),el=$.createDraft.bind($),rl=$.finishDraft.bind($),sr=Wa;function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function gs(e,t){if(Dt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vs(e){var t=gs(e,"string");return Dt(t)=="symbol"?t:t+""}function bs(e,t,r){return(t=vs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(n){bs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k(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 xs=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),pn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+pn(),REPLACE:"@@redux/REPLACE"+pn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pn()}};function za(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(hn)(e,t)}if(typeof e!="function")throw new Error(k(2));var i=e,s=t,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(k(3));return s}function d(m){if(typeof m!="function")throw new Error(k(4));if(c)throw new Error(k(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(k(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!za(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(k(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(k(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[xs]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[xs]=h,n}function Ka(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Ss(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{Ka(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(k(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Es(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(k(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(o)});return s=ce.apply(void 0,a)(i.dispatch),fn(fn({},i),{},{dispatch:s})}}}function ws(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Cs=ws();Cs.withExtraArgument=ws;var mn=Cs;var Is=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qa=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ue=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ga=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,Os=function(e,t,r){return t in e?Ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},xt=function(e,t){for(var r in t||(t={}))Ja.call(t,r)&&Os(e,r,t[r]);if(Ts)for(var n=0,i=Ts(t);n<i.length;n++){var r=i[n];Qa.call(t,r)&&Os(e,r,t[r])}return e},yn=function(e,t){return Ya(e,Xa(t))},Za=function(e,t,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(e,t)).next())})};var tc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ce:ce.apply(null,arguments)},Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ec(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function St(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return xt(xt({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var rc=(function(e){Is(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ue([void 0],r[0].concat(this)))):new(t.bind.apply(t,ue([void 0],r.concat(this))))},t})(Array),nc=(function(e){Is(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ue([void 0],r[0].concat(this)))):new(t.bind.apply(t,ue([void 0],r.concat(this))))},t})(Array);function bn(e){return Q(e)?sr(e,function(){}):e}function ic(e){return typeof e=="boolean"}function sc(){return function(t){return oc(t)}}function oc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,c=a===void 0?!0:a,u=new rc;if(r&&(ic(r)?u.push(mn):u.push(mn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var gn=!0;function Ls(e){var t=sc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(ec(i))p=Ss(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=o;if(typeof h=="function"&&(h=h(t),!gn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Es.apply(void 0,h),g=ce;c&&(g=tc(xt({trace:!gn},typeof c=="object"&&c)));var v=new nc(m),b=v;Array.isArray(f)?b=ue([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return hn(p,l,x)}function Ps(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function ac(e){return typeof e=="function"}function cc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ps(t):[t,r,n],s=i[0],o=i[1],a=i[2],c;if(ac(e))c=function(){return bn(e())};else{var u=bn(e);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=ue([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(lt(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(Q(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function uc(e,t){return e+"/"+t}function ks(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:bn(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=uc(t,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?St(f,h):St(f)});function c(){var l=typeof e.extraReducers=="function"?Ps(e.extraReducers):[e.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xt(xt({},f),o);return cc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:t,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var lc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=lc[Math.random()*64|0];return t},fc=["name","message","stack","code"],vn=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Rs=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),pc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},wl=(function(){function e(t,r,n){var i=St(t+"/fulfilled",function(l,d,f,p){return{payload:l,meta:yn(xt({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=St(t+"/pending",function(l,d,f){return{payload:void 0,meta:yn(xt({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=St(t+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||pc)(l||"Rejected"),meta:yn(xt({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):dc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return Za(this,null,function(){var S,I,R,ft,Cr,pt,U;return qa(this,function(B){switch(B.label){case 0:return B.trys.push([0,4,,5]),ft=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),mc(ft)?[4,ft]:[3,2];case 1:ft=B.sent(),B.label=2;case 2:if(ft===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function(F,Et){return m.signal.addEventListener("abort",function(){return Et({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function(F,Et){return new vn(F,Et)},fulfillWithValue:function(F,Et){return new Rs(F,Et)}})).then(function(F){if(F instanceof vn)throw F;return F instanceof Rs?i(F.payload,h,l,F.meta):i(F,h,l)})])];case 3:return R=B.sent(),[3,5];case 4:return pt=B.sent(),R=pt instanceof vn?o(null,h,l,pt.payload,pt.meta):o(pt,h,l),[3,5];case 5:return U=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,U||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(hc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function hc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ds="listener",Ns="completed",Ms="cancelled",Cl="task-"+Ms,Tl="task-"+Ns,Ol=Ds+"-"+Ms,Rl=Ds+"-"+Ns;var An="listenerMiddleware";var _l=St(An+"/add"),Il=St(An+"/removeAll"),Ll=St(An+"/remove");var _s,Pl=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(_s||(_s=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yc=function(e){return function(t){setTimeout(t,e)}},kl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yc(10);hs();var gc=Xe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),ar=class extends gc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Us=class e extends ar{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(er(s))return s;if(i==null)return;let o=ks({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ls({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ce(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Je;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var cr=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var ur=E(T()),vc="ft-app-info",le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};le.eventName="authentication-change";var Le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Le.eventName="ui-locale-changed";var bc={session:(e,t)=>{(0,ur.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new le(t.payload)),0))}},w=ur.FtReduxStore.get({name:vc,reducers:bc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Fs=E(T()),lr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ad=(0,Fs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,xn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),lr([(0,xn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),lr([Xr({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),lr([Xr({store:w.name})],t.prototype,"uiLocale",void 0),t});var $s;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($s||($s={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Hs;(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"})(Hs||(Hs={}));var Bs;(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"})(Bs||(Bs={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var zs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(zs||(zs={}));var Ks;(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"})(Ks||(Ks={}));var qs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(qs||(qs={}));var Gs;(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"})(Gs||(Gs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Xs||(Xs={}));var Js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Js||(Js={}));var Qs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Qs||(Qs={}));var Zs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Zs||(Zs={}));var to;(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"})(to||(to={}));var eo;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(eo||(eo={}));var ro;(function(e){e.ASC="ASC",e.DESC="DESC"})(ro||(ro={}));var no;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(no||(no={}));var io;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(io||(io={}));var so;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(so||(so={}));var oo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(oo||(oo={}));var ao;(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"})(ao||(ao={}));var co;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(co||(co={}));var uo;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(uo||(uo={}));var lo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(lo||(lo={}));var fo;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fo||(fo={}));var _;(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"})(_||(_={}));var q;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(q||(q={}));var po;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(po||(po={}));var ho;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ho||(ho={}));var mo;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(mo||(mo={}));var yo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(yo||(yo={}));var go;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(go||(go={}));var vo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vo||(vo={}));var bo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bo||(bo={}));var Ao;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ao||(Ao={}));var xo;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(xo||(xo={}));var So;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(So||(So={}));var Eo;(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"})(Eo||(Eo={}));var wo;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(wo||(wo={}));var Ac={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function Co(e,t){return e===t||(Ac[e]??[]).some(r=>Co(r,t))}function To(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Co(n,t))}var mr=E(T());var Sn=E(T());var Nt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var de=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var j=class extends de{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Sn.CacheRegistry,this.cache=t?i.commonCache:new Sn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var dr=class extends j{async listMySearches(){let{session:t}=w.getState();return To(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var fr=class extends j{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 pr=class extends j{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 hr=class extends j{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 xc="ft-user-assets",Sc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(q).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:n,asset:i}=t.payload;wn(e,r,[...En(e,r),i]),Oo(e,r,1,n),Ro(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;wn(e,r,En(e,r).map(i=>i.id===n.id?n:i)),Ro(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;wn(e,r,En(e,r).filter(s=>s.id!==i)),Oo(e,r,-1,n)}},_o={[q.SEARCHES]:"savedSearches",[q.BOOKMARKS]:"bookmarks",[q.BOOKS]:void 0,[q.COLLECTIONS]:void 0},En=(e,t)=>{var r;let n=_o[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},wn=(e,t,r)=>{let n=_o[t];n&&(e[n]=r)},Oo=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===q.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ro=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},N=mr.FtReduxStore.get({name:xc,reducers:Sc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(q).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Cn=class{constructor(t=new pr,r=new hr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,mr.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(),N.actions.clearAssetCount(),N.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),N.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),N.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();N.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();N.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&N.getState().assetCounts.allAsset[t]!==r.count&&N.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&N.getState().assetCounts.bookmarkByMap[t]!==r.count&&N.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(N.getState().assetCounts.bookmarkByMap).length!==0;t===q.BOOKMARKS&&r&&N.actions.clearBookmarkCountByMap(),N.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;N.actions.bookmarks(r)}}},Ec=new Cn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ec);var Tn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Tn;var G=E(T());var Io,fe=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},wc=Symbol("clearAfterUnitTest"),yr=class extends(0,G.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Io]=()=>{this.defaultMessages={},this.cache=new G.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 n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new G.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof G.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new fe({loadedContexts:t})),this.dispatchEvent(new fe({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new fe({loadedContexts:[t]})),this.dispatchEvent(new fe({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Io=wc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Pe=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService;var Lo=E(T()),Rn=class{highlightHtml(t,r,n){(0,Lo.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Rn;var Po=E(T());var _n=class{isDate(t){var r,n,i,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 n,i,s,o;if(t==null)return"";try{return Po.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!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 _n;var ko=E(T());var ke=class{static get(t,r){var n,i;let s=w.getState(),{lang:o,region:a}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new ko.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,r??`${o}-${a}`)}};var In=class{urlToSearchRequest(t){return ke.get().parse(t)}searchRequestToUrl(t){return ke.get().serialize(t)}};window.FluidTopicsUrlService=new In;var dt=E(T());var Mt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Mt.eventName="change";var Ln=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))}},Do=new Ln;var gr=class e extends dt.WithEventBus{static build(){return new e(window.history,Do,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,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(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),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 n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Mt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Mt.eventName,t)}currentItem(){return(0,dt.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,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,dt.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.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 n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gr.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)});var No=E(ot());var Mo=No.css`
|
|
138
|
-
`;var $o=E(ot()),H=E(et()),$t=E(T());var Ut=E(T());function Uo(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var vr=class extends de{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pn=class e extends Ut.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Ut.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new vr,this.cleanSessionDebouncer=new Ut.Debouncer,this.reloadDebouncer=new Ut.Debouncer(500),this.apiProvider=r??(()=>
|
|
137
|
+
`;var bi=["top","right","bottom","left"],vi=["start","end"],Hr=bi.reduce((e,t)=>e.concat(t,t+"-"+vi[0],t+"-"+vi[1]),[]),Ae=Math.min,yt=Math.max,xe=Math.round;var J=e=>({x:e,y:e}),fa={left:"right",right:"left",bottom:"top",top:"bottom"};function Br(e,t,r){return yt(e,Ae(t,r))}function He(e,t){return typeof e=="function"?e(t):e}function Zt(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Wr(e){return e==="y"?"height":"width"}function Be(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function zr(e){return Vr(Be(e))}function Ai(e,t,r){r===void 0&&(r=!1);let n=gt(e),i=zr(e),s=Wr(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=jr(o)),[o,jr(o)]}function xi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function jr(e){let t=Zt(e);return fa[t]+e.slice(t.length)}function pa(e){return{top:0,right:0,bottom:0,left:0,...e}}function Si(e){return typeof e!="number"?pa(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ei(e,t,r){let{reference:n,floating:i}=e,s=Be(t),o=zr(t),a=Wr(o),c=Zt(t),u=s==="y",l=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[a]/2-i[a]/2,p;switch(c){case"top":p={x:l,y:n.y-i.height};break;case"bottom":p={x:l,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(gt(t)){case"start":p[o]-=f*(r&&u?-1:1);break;case"end":p[o]+=f*(r&&u?-1:1);break}return p}async function wi(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=He(t,e),h=Si(p),g=a[f?d==="floating"?"reference":"floating":d],v=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),b=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},I=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(v.top-I.top+h.top)/S.y,bottom:(I.bottom-v.bottom+h.bottom)/S.y,left:(v.left-I.left+h.left)/S.x,right:(I.right-v.right+h.right)/S.x}}var ha=50,Ci=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:wi},c=await(o.isRTL==null?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=Ei(u,n,c),f=n,p=0,h={};for(let m=0;m<s.length;m++){let g=s[m];if(!g)continue;let{name:v,fn:b}=g,{x,y:S,data:I,reset:R}=await b({x:l,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});l=x??l,d=S??d,h[v]={...h[v],...I},R&&p<ha&&(p++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:l,y:d}=Ei(u,f,c)),m=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:h}};function ma(e,t,r){return(e?[...r.filter(i=>gt(i)===e),...r.filter(i=>gt(i)!==e)]:r.filter(i=>Zt(i)===i)).filter(i=>e?gt(i)===e||(t?xi(i)!==i:!1):!0)}var Ti=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:c,elements:u}=t,{crossAxis:l=!1,alignment:d,allowedPlacements:f=Hr,autoAlignment:p=!0,...h}=He(e,t),m=d!==void 0||f===Hr?ma(d||null,p,f):f,g=await c.detectOverflow(t,h),v=((r=o.autoPlacement)==null?void 0:r.index)||0,b=m[v];if(b==null)return{};let x=Ai(b,s,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(a!==b)return{reset:{placement:m[0]}};let S=[g[Zt(b)],g[x[0]],g[x[1]]],I=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:S}],R=m[v+1];if(R)return{data:{index:v+1,overflows:I},reset:{placement:R}};let ft=I.map(U=>{let B=gt(U.placement);return[U.placement,B&&l?U.overflows.slice(0,2).reduce((F,Et)=>F+Et,0):U.overflows[0],U.overflows]}).sort((U,B)=>U[1]-B[1]),pt=((i=ft.filter(U=>U[2].slice(0,gt(U[0])?2:3).every(B=>B<=0))[0])==null?void 0:i[0])||ft[0][0];return pt!==a?{data:{index:v+1,overflows:I},reset:{placement:pt}}:{}}}};var Oi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...u}=He(e,t),l={x:r,y:n},d=await s.detectOverflow(t,u),f=Be(Zt(i)),p=Vr(f),h=l[p],m=l[f];if(o){let v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=h+d[v],S=h-d[b];h=Br(x,h,S)}if(a){let v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=m+d[v],S=m-d[b];m=Br(x,m,S)}let g=c.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[p]:o,[f]:a}}}}}};function We(){return typeof window<"u"}function _t(e){return _i(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(_i(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _i(e){return We()?e instanceof Node||e instanceof M(e).Node:!1}function W(e){return We()?e instanceof Element||e instanceof M(e).Element:!1}function nt(e){return We()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function Ri(e){return!We()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function te(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Ii(e){return/^(table|td|th)$/.test(_t(e))}function Se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var ya=/transform|translate|scale|rotate|perspective|filter/,ga=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none",Kr;function ee(e){let t=W(e)?z(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!ze()&&(Rt(t.backdropFilter)||Rt(t.filter))||ya.test(t.willChange||"")||ga.test(t.contain||"")}function Li(e){let t=ut(e);for(;nt(t)&&!It(t);){if(ee(t))return t;if(Se(t))return null;t=ut(t)}return null}function ze(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function It(e){return/^(html|body|#document)$/.test(_t(e))}function z(e){return M(e).getComputedStyle(e)}function Ee(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(_t(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ri(e)&&e.host||rt(e);return Ri(t)?t.host:t}function Pi(e){let t=ut(e);return It(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&te(t)?t:Pi(t)}function Ve(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=Pi(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=M(i);if(s){let a=Ke(o);return t.concat(o,o.visualViewport||[],te(i)?i:[],a&&r?Ve(a):[])}else return t.concat(i,Ve(i,[],r))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){let t=z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=nt(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=xe(r)!==s||xe(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ui(e){return W(e)?e:e.contextElement}function re(e){let t=Ui(e);if(!nt(t))return J(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Mi(t),o=(s?xe(r.width):r.width)/n,a=(s?xe(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var va=J(0);function Fi(e){let t=M(e);return!ze()||!t.visualViewport?va:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==M(e)?!1:t}function we(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=Ui(e),o=J(1);t&&(n?W(n)&&(o=re(n)):o=re(e));let a=ba(s,r,n)?Fi(s):J(0),c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,l=i.width/o.x,d=i.height/o.y;if(s){let f=M(s),p=n&&W(n)?M(n):n,h=f,m=Ke(h);for(;m&&n&&p!==h;){let g=re(m),v=m.getBoundingClientRect(),b=z(m),x=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,u*=g.y,l*=g.x,d*=g.y,c+=x,u+=S,h=M(m),m=Ke(h)}}return Ot({width:l,height:d,x:c,y:u})}function qe(e,t){let r=Ee(e).scrollLeft;return t?t.left+r:we(rt(e)).left+r}function $i(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-qe(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Aa(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=rt(n),a=t?Se(t.floating):!1;if(n===o||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=J(1),l=J(0),d=nt(n);if((d||!d&&!s)&&((_t(n)!=="body"||te(o))&&(c=Ee(n)),d)){let p=we(n);u=re(n),l.x=p.x+n.clientLeft,l.y=p.y+n.clientTop}let f=o&&!d&&!s?$i(o,c):J(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:r.y*u.y-c.scrollTop*u.y+l.y+f.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){let t=rt(e),r=Ee(e),n=e.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=yt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+qe(e),a=-r.scrollTop;return z(n).direction==="rtl"&&(o+=yt(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}var ki=25;function Ea(e,t){let r=M(e),n=rt(e),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;let l=ze();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}let u=qe(n);if(u<=0){let l=n.ownerDocument,d=l.body,f=getComputedStyle(d),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(n.clientWidth-d.clientWidth-p);h<=ki&&(s-=h)}else u<=ki&&(s+=u);return{width:s,height:o,x:a,y:c}}function wa(e,t){let r=we(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=nt(e)?re(e):J(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=n*s.y;return{width:o,height:a,x:c,y:u}}function Ni(e,t,r){let n;if(t==="viewport")n=Ea(e,r);else if(t==="document")n=Sa(rt(e));else if(W(t))n=wa(t,r);else{let i=Fi(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ot(n)}function ji(e,t){let r=ut(e);return r===t||!W(r)||It(r)?!1:z(r).position==="fixed"||ji(r,t)}function Ca(e,t){let r=t.get(e);if(r)return r;let n=Ve(e,[],!1).filter(a=>W(a)&&_t(a)!=="body"),i=null,s=z(e).position==="fixed",o=s?ut(e):e;for(;W(o)&&!It(o);){let a=z(o),c=ee(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||te(o)&&!c&&ji(e,o))?n=n.filter(l=>l!==o):i=a,o=ut(o)}return t.set(e,n),n}function Ta(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?Se(t)?[]:Ca(t,this._c):[].concat(r),n],a=Ni(t,o[0],i),c=a.top,u=a.right,l=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let p=Ni(t,o[f],i);c=yt(p.top,c),u=Ae(p.right,u),l=Ae(p.bottom,l),d=yt(p.left,d)}return{width:u-d,height:l-c,x:d,y:c}}function Oa(e){let{width:t,height:r}=Mi(e);return{width:t,height:r}}function Ra(e,t,r){let n=nt(t),i=rt(t),s=r==="fixed",o=we(e,!0,s,t),a={scrollLeft:0,scrollTop:0},c=J(0);function u(){c.x=qe(i)}if(n||!n&&!s)if((_t(t)!=="body"||te(i))&&(a=Ee(t)),n){let p=we(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else i&&u();s&&!n&&i&&u();let l=i&&!n&&!s?$i(i,a):J(0),d=o.left+a.scrollLeft-c.x-l.x,f=o.top+a.scrollTop-c.y-l.y;return{x:d,y:f,width:o.width,height:o.height}}function qr(e){return z(e).position==="static"}function Di(e,t){if(!nt(e)||z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rt(e)===r&&(r=r.ownerDocument.body),r}function Hi(e,t){let r=M(e);if(Se(e))return r;if(!nt(e)){let i=ut(e);for(;i&&!It(i);){if(W(i)&&!qr(i))return i;i=ut(i)}return r}let n=Di(e,t);for(;n&&Ii(n)&&qr(n);)n=Di(n,t);return n&&It(n)&&qr(n)&&!ee(n)?r:n||Li(e)||r}var _a=async function(e){let t=this.getOffsetParent||Hi,r=this.getDimensions,n=await r(e.floating);return{reference:Ra(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ia(e){return z(e).direction==="rtl"}var Ge={convertOffsetParentRelativeRectToViewportRelativeRect:Aa,getDocumentElement:rt,getClippingRect:Ta,getOffsetParent:Hi,getElementRects:_a,getClientRects:xa,getDimensions:Oa,getScale:re,isElement:W,isRTL:Ia};var Bi=Ti,Vi=Oi;var Wi=(e,t,r)=>{let n=new Map,i={platform:Ge,...r},s={...i.platform,_c:n};return Ci(e,t,{...i,platform:s})};function zi(e){return La(e)}function Gr(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function La(e){for(let t=e;t;t=Gr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Gr(e);t;t=Gr(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||ee(r)||t.tagName==="BODY"))return t}return null}async function Ki(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Wi(e,t,{strategy:n.strategy,platform:{...Ge,getOffsetParent:i=>Ge.getOffsetParent(i,zi)},middleware:[Vi({crossAxis:!0}),Bi({allowedPlacements:[n.placement]})]})}var he=E(T());var xn=E(et());var qi=E(et(),1);var Yr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Gi(e,t){return(0,qi.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ce(e);try{return JSON.parse(r)}catch{return Ce(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Te,...t??{}})}function Pa(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,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ye(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Ye(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Ye(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ye(e,t){try{return Pa(e,t)}catch{return!1}}function Te(e,t){return!Ye(e,t)}function Ce(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Xe(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Yi=E(et(),1);var Xr=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Te,attribute:!1,...t};(0,Yi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Je=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==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 Lt=E(et(),1);var Qe=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(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 n)try{await o()}catch(a){i(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 Ji=E(ot(),1);var Ze=globalThis,ka=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Xi=(e,t)=>{if(ka)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),i=Ze.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var tr=class extends Ji.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},n=this.renderOptions.creationScope=this.attachShadow(r);return Xi(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Yr(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 Qi(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var ie=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rs,Zi=Symbol("constructorPrototype"),ts=Symbol("constructorName"),ns=Symbol("exportpartsDebouncer"),es=Symbol("dynamicDependenciesLoaded"),ne=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ne.eventName="exportparts-updated";var it=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new Qe(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ns].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[ts]=this.constructor.name,this[Zi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ts]&&Object.setPrototypeOf(this,this[Zi])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[es]||(r[es]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ne.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ne.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 ne)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Qi(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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,n,i,s,o,a;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let p=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],h=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],m=[...p,...h].filter(c).map(g=>g.trim());for(let g of m)l.add(g)}if(l.size===0){this.exportparts=void 0;return}let d=[...l.values()].flatMap(f=>u.map(p=>`${f}:${p}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};rs=ns;ie([(0,Lt.property)()],it.prototype,"exportpartsPrefix",void 0);ie([Gi([])],it.prototype,"exportpartsPrefixes",void 0);ie([(0,Lt.property)({reflect:!0})],it.prototype,"exportparts",void 0);ie([(0,Lt.property)()],it.prototype,"customStylesheet",void 0);ie([(0,Lt.property)()],it.prototype,"elementToFocus",void 0);ie([(0,Lt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Oe=Symbol("internalReduxEventsUnsubscribers"),vt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),Na=Xe(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=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 c;a=(c=a??o.name)!==null&&c!==void 0?c:"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 c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[vt].has(o.store):this[vt].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var c;this[vt].set(o,a.subscribe(()=>this.updateFromStores())),this[Oe].set(o,[]),er(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,l)=>{if(typeof this[l]=="function"&&(!u.store||a.name===u.store)){let d=f=>this[l](f);a.addEventListener(u.eventName,d),this[Oe].get(o).push(()=>a.removeEventListener(u.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[vt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[vt].has(o)&&this[vt].get(o)(),this[vt].delete(o),(a=this[Oe].get(o))===null||a===void 0||a.forEach(c=>c()),this[Oe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=vt,r=Pt,n=Oe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),is=class extends Na(it){};function K(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lt(e){return!!e&&!!e[C]}function Q(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ba})(e)||Array.isArray(e)||!!e[ds]||!!(!((t=e.constructor)===null||t===void 0)&&t[ds])||on(e)||an(e))}function kt(e,t,r){r===void 0&&(r=!1),ae(e)===0?(r?Object.keys:oe)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function ae(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:on(e)?2:an(e)?3:0}function se(e,t){return ae(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Da(e,t){return ae(e)===2?e.get(t):e[t]}function fs(e,t,r){var n=ae(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ps(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function on(e){return ja&&e instanceof Map}function an(e){return Ha&&e instanceof Set}function bt(e){return e.o||e.t}function cn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ys(e);delete t[C];for(var r=oe(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function un(e,t){return t===void 0&&(t=!1),ln(e)||lt(e)||!Q(e)||(ae(e)>1&&(e.set=e.add=e.clear=e.delete=Ma),Object.freeze(e),t&&kt(e,(function(r,n){return un(n,!0)}),!0)),e}function Ma(){K(2)}function ln(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function st(e){var t=sn[e];return t||K(18,e),t}function Ua(e,t){sn[e]||(sn[e]=t)}function en(){return _e}function Jr(e,t){t&&(st("Patches"),e.u=[],e.s=[],e.v=t)}function rr(e){rn(e),e.p.forEach(Fa),e.p=null}function rn(e){e===_e&&(_e=e.l)}function ss(e){return _e={p:[],l:_e,h:e,m:!0,_:0}}function Fa(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function Qr(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||st("ES5").S(t,e,n),n?(r[C].P&&(rr(t),K(4)),Q(e)&&(e=nr(t,e),t.l||ir(t,e)),t.u&&st("Patches").M(r[C].t,e,t.u,t.s)):e=nr(t,r,[]),rr(t),t.u&&t.v(t.u,t.s),e!==ms?e:void 0}function nr(e,t,r){if(ln(t))return t;var n=t[C];if(!n)return kt(t,(function(a,c){return os(e,n,t,a,c,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ir(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=cn(n.k):n.o,s=i,o=!1;n.i===3&&(s=new Set(i),i.clear(),o=!0),kt(s,(function(a,c){return os(e,n,i,a,c,r,o)})),ir(e,i,!1),r&&e.u&&st("Patches").N(n,r,e.u,e.s)}return n.o}function os(e,t,r,n,i,s,o){if(lt(i)){var a=nr(e,i,s&&t&&t.i!==3&&!se(t.R,n)?s.concat(n):void 0);if(fs(r,n,a),!lt(a))return;e.m=!1}else o&&r.add(i);if(Q(i)&&!ln(i)){if(!e.h.D&&e._<1)return;nr(e,i),t&&t.A.l||ir(e,i)}}function ir(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&un(t,r)}function Zr(e,t){var r=e[C];return(r?bt(r):e)[t]}function as(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function At(e){e.P||(e.P=!0,e.l&&At(e.l))}function tn(e){e.o||(e.o=cn(e.t))}function nn(e,t,r){var n=on(t)?st("MapSet").F(t,r):an(t)?st("MapSet").T(t,r):e.O?(function(i,s){var o=Array.isArray(i),a={i:o?1:0,A:s?s.A:en(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},c=a,u=Ie;o&&(c=[a],u=Re);var l=Proxy.revocable(c,u),d=l.revoke,f=l.proxy;return a.k=f,a.j=d,f})(t,r):st("ES5").J(t,r);return(r?r.A:en()).p.push(n),n}function $a(e){return lt(e)||K(22,e),(function t(r){if(!Q(r))return r;var n,i=r[C],s=ae(r);if(i){if(!i.P&&(i.i<4||!st("ES5").K(i)))return i.t;i.I=!0,n=cs(r,s),i.I=!1}else n=cs(r,s);return kt(n,(function(o,a){i&&Da(i.t,o)===a||fs(n,o,t(a))})),s===3?new Set(n):n})(e)}function cs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return cn(e)}function hs(){function e(o,a){var c=s[o];return c?c.enumerable=a:s[o]=c={configurable:!0,enumerable:a,get:function(){var u=this[C];return Ie.get(u,o)},set:function(u){var l=this[C];Ie.set(l,o,u)}},c}function t(o){for(var a=o.length-1;a>=0;a--){var c=o[a][C];if(!c.P)switch(c.i){case 5:n(c)&&At(c);break;case 4:r(c)&&At(c)}}}function r(o){for(var a=o.t,c=o.k,u=oe(c),l=u.length-1;l>=0;l--){var d=u[l];if(d!==C){var f=a[d];if(f===void 0&&!se(a,d))return!0;var p=c[d],h=p&&p[C];if(h?h.t!==f:!ps(p,f))return!0}}var m=!!a[C];return u.length!==oe(a).length+(m?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var u=0;u<a.length;u++)if(!a.hasOwnProperty(u))return!0;return!1}function i(o){o.g&&K(3,JSON.stringify(bt(o)))}var s={};Ua("ES5",{J:function(o,a){var c=Array.isArray(o),u=(function(d,f){if(d){for(var p=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(p,""+h,e(h,!0));return p}var m=ys(f);delete m[C];for(var g=oe(m),v=0;v<g.length;v++){var b=g[v];m[b]=e(b,d||!!m[b].enumerable)}return Object.create(Object.getPrototypeOf(f),m)})(c,o),l={i:c?5:4,A:a?a.A:en(),P:!1,I:!1,R:{},l:a,t:o,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,C,{value:l,writable:!0}),u},S:function(o,a,c){c?lt(a)&&a[C].A===o&&t(o.p):(o.u&&(function u(l){if(l&&typeof l=="object"){var d=l[C];if(d){var f=d.t,p=d.k,h=d.R,m=d.i;if(m===4)kt(p,(function(S){S!==C&&(f[S]!==void 0||se(f,S)?h[S]||u(p[S]):(h[S]=!0,At(d)))})),kt(f,(function(S){p[S]!==void 0||se(p,S)||(h[S]=!1,At(d))}));else if(m===5){if(n(d)&&(At(d),h.length=!0),p.length<f.length)for(var g=p.length;g<f.length;g++)h[g]=!1;else for(var v=f.length;v<p.length;v++)h[v]=!0;for(var b=Math.min(p.length,f.length),x=0;x<b;x++)p.hasOwnProperty(x)||(h[x]=!0),h[x]===void 0&&u(p[x])}}}})(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var us,_e,dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ja=typeof Map<"u",Ha=typeof Set<"u",ls=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ms=dn?Symbol.for("immer-nothing"):((us={})["immer-nothing"]=!0,us),ds=dn?Symbol.for("immer-draftable"):"__$immer_draftable",C=dn?Symbol.for("immer-state"):"__$immer_state";var Ba=""+Object.prototype.constructor,oe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ys=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},sn={},Ie={get:function(e,t){if(t===C)return e;var r=bt(e);if(!se(r,t))return(function(i,s,o){var a,c=as(s,o);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Q(n)?n:n===Zr(e.t,t)?(tn(e),e.o[t]=nn(e.A.h,n,e)):n},has:function(e,t){return t in bt(e)},ownKeys:function(e){return Reflect.ownKeys(bt(e))},set:function(e,t,r){var n=as(bt(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Zr(bt(e),t),s=i?.[C];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ps(r,i)&&(r!==void 0||se(e.t,t)))return!0;tn(e),At(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Zr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tn(e),At(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){K(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){K(12)}},Re={};kt(Ie,(function(e,t){Re[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Re.deleteProperty=function(e,t){return Re.set.call(this,e,t,void 0)},Re.set=function(e,t,r){return Ie.set.call(this,e[0],t,r,e[0])};var Va=(function(){function e(r){var n=this;this.O=ls,this.D=!0,this.produce=function(i,s,o){if(typeof i=="function"&&typeof s!="function"){var a=s;s=i;var c=n;return function(m){var g=this;m===void 0&&(m=a);for(var v=arguments.length,b=Array(v>1?v-1:0),x=1;x<v;x++)b[x-1]=arguments[x];return c.produce(m,(function(S){var I;return(I=s).call.apply(I,[g,S].concat(b))}))}}var u;if(typeof s!="function"&&K(6),o!==void 0&&typeof o!="function"&&K(7),Q(i)){var l=ss(n),d=nn(n,i,void 0),f=!0;try{u=s(d),f=!1}finally{f?rr(l):rn(l)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(m){return Jr(l,o),Qr(m,l)}),(function(m){throw rr(l),m})):(Jr(l,o),Qr(u,l))}if(!i||typeof i!="object"){if((u=s(i))===void 0&&(u=i),u===ms&&(u=void 0),n.D&&un(u,!0),o){var p=[],h=[];st("Patches").M(i,u,p,h),o(p,h)}return u}K(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(u){for(var l=arguments.length,d=Array(l>1?l-1:0),f=1;f<l;f++)d[f-1]=arguments[f];return n.produceWithPatches(u,(function(p){return i.apply(void 0,[p].concat(d))}))};var o,a,c=n.produce(i,s,(function(u,l){o=u,a=l}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(u){return[u,o,a]})):[c,o,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Q(r)||K(8),lt(r)&&(r=$a(r));var n=ss(this),i=nn(this,r,void 0);return i[C].C=!0,rn(n),i},t.finishDraft=function(r,n){var i=r&&r[C],s=i.A;return Jr(s,n),Qr(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ls&&K(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var o=st("Patches").$;return lt(r)?o(r,n):this.produce(r,(function(a){return o(a,n)}))},e})(),$=new Va,Wa=$.produce,Ju=$.produceWithPatches.bind($),Qu=$.setAutoFreeze.bind($),Zu=$.setUseProxies.bind($),tl=$.applyPatches.bind($),el=$.createDraft.bind($),rl=$.finishDraft.bind($),sr=Wa;function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(e)}function gs(e,t){if(Nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vs(e){var t=gs(e,"string");return Nt(t)=="symbol"?t:t+""}function bs(e,t,r){return(t=vs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(n){bs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k(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 xs=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),pn=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+pn(),REPLACE:"@@redux/REPLACE"+pn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pn()}};function za(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hn(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(k(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(k(1));return r(hn)(e,t)}if(typeof e!="function")throw new Error(k(2));var i=e,s=t,o=[],a=o,c=!1;function u(){a===o&&(a=o.slice())}function l(){if(c)throw new Error(k(3));return s}function d(m){if(typeof m!="function")throw new Error(k(4));if(c)throw new Error(k(5));var g=!0;return u(),a.push(m),function(){if(g){if(c)throw new Error(k(6));g=!1,u();var b=a.indexOf(m);a.splice(b,1),o=null}}}function f(m){if(!za(m))throw new Error(k(7));if(typeof m.type>"u")throw new Error(k(8));if(c)throw new Error(k(9));try{c=!0,s=i(s,m)}finally{c=!1}for(var g=o=a,v=0;v<g.length;v++){var b=g[v];b()}return m}function p(m){if(typeof m!="function")throw new Error(k(10));i=m,f({type:or.REPLACE})}function h(){var m,g=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(k(11));function x(){b.next&&b.next(l())}x();var S=g(x);return{unsubscribe:S}}},m[xs]=function(){return this},m}return f({type:or.INIT}),n={dispatch:f,subscribe:d,getState:l,replaceReducer:p},n[xs]=h,n}function Ka(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(k(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Ss(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var s=Object.keys(r),o,a;try{Ka(r)}catch(c){a=c}return function(u,l){if(u===void 0&&(u={}),a)throw a;if(0)var d;for(var f=!1,p={},h=0;h<s.length;h++){var m=s[h],g=r[m],v=u[m],b=g(v,l);if(typeof b>"u"){var x=l&&l.type;throw new Error(k(14))}p[m]=b,f=f||b!==v}return f=f||s.length!==Object.keys(u).length,f?p:u}}function ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Es(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),s=function(){throw new Error(k(15))},o={getState:i.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(o)});return s=ce.apply(void 0,a)(i.dispatch),fn(fn({},i),{},{dispatch:s})}}}function ws(e){var t=function(n){var i=n.dispatch,s=n.getState;return function(o){return function(a){return typeof a=="function"?a(i,s,e):o(a)}}};return t}var Cs=ws();Cs.withExtraArgument=ws;var mn=Cs;var Is=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qa=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ue=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Ga=Object.defineProperty,Ya=Object.defineProperties,Xa=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,Os=function(e,t,r){return t in e?Ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},xt=function(e,t){for(var r in t||(t={}))Ja.call(t,r)&&Os(e,r,t[r]);if(Ts)for(var n=0,i=Ts(t);n<i.length;n++){var r=i[n];Qa.call(t,r)&&Os(e,r,t[r])}return e},yn=function(e,t){return Ya(e,Xa(t))},Za=function(e,t,r){return new Promise(function(n,i){var s=function(c){try{a(r.next(c))}catch(u){i(u)}},o=function(c){try{a(r.throw(c))}catch(u){i(u)}},a=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(s,o)};a((r=r.apply(e,t)).next())})};var tc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ce:ce.apply(null,arguments)},Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ec(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function St(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return xt(xt({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var rc=(function(e){Is(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ue([void 0],r[0].concat(this)))):new(t.bind.apply(t,ue([void 0],r.concat(this))))},t})(Array),nc=(function(e){Is(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ue([void 0],r[0].concat(this)))):new(t.bind.apply(t,ue([void 0],r.concat(this))))},t})(Array);function bn(e){return Q(e)?sr(e,function(){}):e}function ic(e){return typeof e=="boolean"}function sc(){return function(t){return oc(t)}}function oc(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,s=e.serializableCheck,o=s===void 0?!0:s,a=e.actionCreatorCheck,c=a===void 0?!0:a,u=new rc;if(r&&(ic(r)?u.push(mn):u.push(mn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(o)var d;if(c)var f}return u}var gn=!0;function Ls(e){var t=sc(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,s=r.middleware,o=s===void 0?t():s,a=r.devTools,c=a===void 0?!0:a,u=r.preloadedState,l=u===void 0?void 0:u,d=r.enhancers,f=d===void 0?void 0:d,p;if(typeof i=="function")p=i;else if(ec(i))p=Ss(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=o;if(typeof h=="function"&&(h=h(t),!gn&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gn&&h.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var m=Es.apply(void 0,h),g=ce;c&&(g=tc(xt({trace:!gn},typeof c=="object"&&c)));var v=new nc(m),b=v;Array.isArray(f)?b=ue([m],f):typeof f=="function"&&(b=f(v));var x=g.apply(void 0,b);return hn(p,l,x)}function Ps(e){var t={},r=[],n,i={addCase:function(s,o){var a=typeof s=="string"?s:s.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=o,i},addMatcher:function(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase:function(s){return n=s,i}};return e(i),[t,r,n]}function ac(e){return typeof e=="function"}function cc(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ps(t):[t,r,n],s=i[0],o=i[1],a=i[2],c;if(ac(e))c=function(){return bn(e())};else{var u=bn(e);c=function(){return u}}function l(d,f){d===void 0&&(d=c());var p=ue([s[f.type]],o.filter(function(h){var m=h.matcher;return m(f)}).map(function(h){var m=h.reducer;return m}));return p.filter(function(h){return!!h}).length===0&&(p=[a]),p.reduce(function(h,m){if(m)if(lt(h)){var g=h,v=m(g,f);return v===void 0?h:v}else{if(Q(h))return sr(h,function(b){return m(b,f)});var v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}return h},d)}return l.getInitialState=c,l}function uc(e,t){return e+"/"+t}function ks(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:bn(e.initialState),n=e.reducers||{},i=Object.keys(n),s={},o={},a={};i.forEach(function(l){var d=n[l],f=uc(t,l),p,h;"reducer"in d?(p=d.reducer,h=d.prepare):p=d,s[l]=p,o[f]=p,a[l]=h?St(f,h):St(f)});function c(){var l=typeof e.extraReducers=="function"?Ps(e.extraReducers):[e.extraReducers],d=l[0],f=d===void 0?{}:d,p=l[1],h=p===void 0?[]:p,m=l[2],g=m===void 0?void 0:m,v=xt(xt({},f),o);return cc(r,function(b){for(var x in v)b.addCase(x,v[x]);for(var S=0,I=h;S<I.length;S++){var R=I[S];b.addMatcher(R.matcher,R.reducer)}g&&b.addDefaultCase(g)})}var u;return{name:t,reducer:function(l,d){return u||(u=c()),u(l,d)},actions:a,caseReducers:s,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var lc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",dc=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=lc[Math.random()*64|0];return t},fc=["name","message","stack","code"],vn=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Rs=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),pc=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},wl=(function(){function e(t,r,n){var i=St(t+"/fulfilled",function(l,d,f,p){return{payload:l,meta:yn(xt({},p||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),s=St(t+"/pending",function(l,d,f){return{payload:void 0,meta:yn(xt({},f||{}),{arg:d,requestId:l,requestStatus:"pending"})}}),o=St(t+"/rejected",function(l,d,f,p,h){return{payload:p,error:(n&&n.serializeError||pc)(l||"Rejected"),meta:yn(xt({},h||{}),{arg:f,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l})();function u(l){return function(d,f,p){var h=n?.idGenerator?n.idGenerator(l):dc(),m=new c,g,v=!1;function b(S){g=S,m.abort()}var x=(function(){return Za(this,null,function(){var S,I,R,ft,Cr,pt,U;return qa(this,function(B){switch(B.label){case 0:return B.trys.push([0,4,,5]),ft=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:p}),mc(ft)?[4,ft]:[3,2];case 1:ft=B.sent(),B.label=2;case 2:if(ft===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=!0,Cr=new Promise(function(F,Et){return m.signal.addEventListener("abort",function(){return Et({name:"AbortError",message:g||"Aborted"})})}),d(s(h,l,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:h,arg:l},{getState:f,extra:p}))),[4,Promise.race([Cr,Promise.resolve(r(l,{dispatch:d,getState:f,extra:p,requestId:h,signal:m.signal,abort:b,rejectWithValue:function(F,Et){return new vn(F,Et)},fulfillWithValue:function(F,Et){return new Rs(F,Et)}})).then(function(F){if(F instanceof vn)throw F;return F instanceof Rs?i(F.payload,h,l,F.meta):i(F,h,l)})])];case 3:return R=B.sent(),[3,5];case 4:return pt=B.sent(),R=pt instanceof vn?o(null,h,l,pt.payload,pt.meta):o(pt,h,l),[3,5];case 5:return U=n&&!n.dispatchConditionRejection&&o.match(R)&&R.meta.condition,U||d(R),[2,R]}})})})();return Object.assign(x,{abort:b,requestId:h,arg:l,unwrap:function(){return x.then(hc)}})}}return Object.assign(u,{pending:s,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function hc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ns="listener",Ds="completed",Ms="cancelled",Cl="task-"+Ms,Tl="task-"+Ds,Ol=Ns+"-"+Ms,Rl=Ns+"-"+Ds;var An="listenerMiddleware";var _l=St(An+"/add"),Il=St(An+"/removeAll"),Ll=St(An+"/remove");var _s,Pl=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(_s||(_s=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yc=function(e){return function(t){setTimeout(t,e)}},kl=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yc(10);hs();var gc=Xe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),ar=class extends gc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Us=class e extends ar{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(er(s))return s;if(i==null)return;let o=ks({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ls({reducer:(c,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let l=Ce(o.getInitialState());for(let d of u.keeping)l[d]=(c??l)[d];return l}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...u.overwrites};return o.reducer(c,u)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Je;let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,u=s[c];return u?(...l)=>{let d=u(...l.map(i));return this.reduxStore.dispatch(d),d}:l=>{this.setState({[c]:i(l)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var cr=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var ur=E(T()),vc="ft-app-info",le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};le.eventName="authentication-change";var Le=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Le.eventName="ui-locale-changed";var bc={session:(e,t)=>{(0,ur.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new le(t.payload)),0))}},w=ur.FtReduxStore.get({name:vc,reducers:bc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Fs=E(T()),lr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ad=(0,Fs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>cr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return lr([(0,xn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),lr([(0,xn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),lr([Xr({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),lr([Xr({store:w.name})],t.prototype,"uiLocale",void 0),t});var $s;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($s||($s={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Hs;(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"})(Hs||(Hs={}));var Bs;(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"})(Bs||(Bs={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var zs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(zs||(zs={}));var Ks;(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"})(Ks||(Ks={}));var qs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(qs||(qs={}));var Gs;(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"})(Gs||(Gs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Xs||(Xs={}));var Js;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Js||(Js={}));var Qs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Qs||(Qs={}));var Zs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Zs||(Zs={}));var to;(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"})(to||(to={}));var eo;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(eo||(eo={}));var ro;(function(e){e.ASC="ASC",e.DESC="DESC"})(ro||(ro={}));var no;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(no||(no={}));var io;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(io||(io={}));var so;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(so||(so={}));var oo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(oo||(oo={}));var ao;(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"})(ao||(ao={}));var co;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(co||(co={}));var uo;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(uo||(uo={}));var lo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(lo||(lo={}));var fo;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fo||(fo={}));var _;(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"})(_||(_={}));var q;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(q||(q={}));var po;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(po||(po={}));var ho;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ho||(ho={}));var mo;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(mo||(mo={}));var yo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(yo||(yo={}));var go;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(go||(go={}));var vo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vo||(vo={}));var bo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bo||(bo={}));var Ao;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ao||(Ao={}));var xo;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(xo||(xo={}));var So;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(So||(So={}));var Eo;(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"})(Eo||(Eo={}));var wo;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(wo||(wo={}));var Ac={[_.PERSONAL_BOOK_SHARE_USER]:[_.PERSONAL_BOOK_USER],[_.HTML_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.PDF_EXPORT_USER]:[_.PERSONAL_BOOK_USER],[_.KHUB_ADMIN]:[_.CONTENT_PUBLISHER],[_.ADMIN]:[_.KHUB_ADMIN,_.USERS_ADMIN,_.PORTAL_ADMIN,_.BEHAVIOR_DATA_USER],[_.GENERATIVE_AI_EXPORT_USER]:[_.GENERATIVE_AI_USER]};function Co(e,t){return e===t||(Ac[e]??[]).some(r=>Co(r,t))}function To(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Co(n,t))}var mr=E(T());var Sn=E(T());var Dt=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var de=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Dt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dt.await()}};var j=class extends de{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Sn.CacheRegistry,this.cache=t?i.commonCache:new Sn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var dr=class extends j{async listMySearches(){let{session:t}=w.getState();return To(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var fr=class extends j{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 pr=class extends j{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 hr=class extends j{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 xc="ft-user-assets",Sc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(q).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:n,asset:i}=t.payload;wn(e,r,[...En(e,r),i]),Oo(e,r,1,n),Ro(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;wn(e,r,En(e,r).map(i=>i.id===n.id?n:i)),Ro(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;wn(e,r,En(e,r).filter(s=>s.id!==i)),Oo(e,r,-1,n)}},_o={[q.SEARCHES]:"savedSearches",[q.BOOKMARKS]:"bookmarks",[q.BOOKS]:void 0,[q.COLLECTIONS]:void 0},En=(e,t)=>{var r;let n=_o[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},wn=(e,t,r)=>{let n=_o[t];n&&(e[n]=r)},Oo=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===q.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ro=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},D=mr.FtReduxStore.get({name:xc,reducers:Sc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(q).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Cn=class{constructor(t=new pr,r=new hr){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new fr,this.savedSearchesService=new dr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,mr.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(),D.actions.clearAssetCount(),D.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),D.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),D.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();D.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();D.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&D.getState().assetCounts.allAsset[t]!==r.count&&D.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&D.getState().assetCounts.bookmarkByMap[t]!==r.count&&D.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(D.getState().assetCounts.bookmarkByMap).length!==0;t===q.BOOKMARKS&&r&&D.actions.clearBookmarkCountByMap(),D.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;D.actions.bookmarks(r)}}},Ec=new Cn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ec);var Tn=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Tn;var G=E(T());var Io,fe=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},wc=Symbol("clearAfterUnitTest"),yr=class extends(0,G.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Io]=()=>{this.defaultMessages={},this.cache=new G.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 n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new G.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof G.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new fe({loadedContexts:t})),this.dispatchEvent(new fe({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new fe({loadedContexts:[t]})),this.dispatchEvent(new fe({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Io=wc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yr{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Pe=window.FluidTopicsI18nService,On=window.FluidTopicsCustomI18nService;var Lo=E(T()),Rn=class{highlightHtml(t,r,n){(0,Lo.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Rn;var Po=E(T());var _n=class{isDate(t){var r,n,i,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 n,i,s,o;if(t==null)return"";try{return Po.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!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 _n;var ko=E(T());var ke=class{static get(t,r){var n,i;let s=w.getState(),{lang:o,region:a}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new ko.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,r??`${o}-${a}`)}};var In=class{urlToSearchRequest(t){return ke.get().parse(t)}searchRequestToUrl(t){return ke.get().serialize(t)}};window.FluidTopicsUrlService=new In;var dt=E(T());var Mt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Mt.eventName="change";var Ln=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))}},No=new Ln;var gr=class e extends dt.WithEventBus{static build(){return new e(window.history,No,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,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(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[u,o,a]),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 n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Mt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Mt.eventName,t)}currentItem(){return(0,dt.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,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,dt.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.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 n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gr.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)});var Do=E(ot());var Mo=Do.css`
|
|
138
|
+
`;var $o=E(ot()),H=E(et()),$t=E(T());var Ut=E(T());function Uo(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var vr=class extends de{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Pn=class e extends Ut.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Ut.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new vr,this.cleanSessionDebouncer=new Ut.Debouncer,this.reloadDebouncer=new Ut.Debouncer(500),this.apiProvider=r??(()=>Dt.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(le.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.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",()=>Uo(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){var r,n,i,s,o;this.localesConfiguration=t,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((o=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&o!==void 0?o:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t){this.userLocaleService.updateUiLocale({uiLocale:t}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Le(r)))}).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)}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)}},Fo=Pn.build();var Ft=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Ne=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:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ft(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var N=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},O=class extends $t.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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Fo,this.contextRoot=new Ne}render(){return $o.html`
|
|
139
139
|
<slot></slot>
|
|
140
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Pe.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};O.elementDefinitions={};O.styles=Mo;
|
|
140
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Pe.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};O.elementDefinitions={};O.styles=Mo;N([(0,H.property)()],O.prototype,"baseUrl",void 0);N([(0,H.property)()],O.prototype,"apiIntegrationIdentifier",void 0);N([(0,H.property)()],O.prototype,"apiIntegrationAppVersion",void 0);N([(0,H.property)()],O.prototype,"uiLocale",void 0);N([(0,$t.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);N([(0,$t.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"editorMode",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"noCustom",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);N([(0,H.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],O.prototype,"noCustomComponent",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"withManualResources",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);N([(0,H.property)({type:Boolean})],O.prototype,"authenticationRequired",void 0);N([(0,$t.jsonProperty)([])],O.prototype,"messageContexts",void 0);N([(0,$t.jsonProperty)(void 0)],O.prototype,"session",void 0);var Ho=E(T());var jo={"ft-app-context":O};(0,Ho.customElements)(jo);var Bo=E(et());var kn=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,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},pe=new kn;var Oc=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Me=Symbol("i18nAttributes"),Vo=Symbol("i18nListAttributes"),Wo=Symbol("i18nProperties"),br=Symbol("i18nContexts"),De=Symbol("i18nUnsubs"),zo=(0,he.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?On:Pe}i18n(s){let{context:o,key:a,message:c}=s,{custom:u,args:l,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let f=l??(d?d(this):[]);return this.getI18nService(u).resolveMessage(o,a,...f)}return c}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(pe.isI18nKey(s)){let[a,c]=s.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,c)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,c)=>{var u;return((u=c?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let c=this,u=(l,d,f)=>f?.context&&f.key&&s(l,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...l})}:f;(o=this[Me])===null||o===void 0||o.forEach((l,d)=>c[d]=u(l,d,c[d])),(a=this[Vo])===null||a===void 0||a.forEach((l,d)=>{var f;return c[d]=(f=c[d])===null||f===void 0?void 0:f.map(p=>u(l,d,p))})}updateI18nProperties(s){var o;(o=this[Wo])===null||o===void 0||o.forEach((a,c)=>{s(a,c)&&(this[c]=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 c=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[br].set(c,{isCustomContext:a}),this[De].has(c)||this[De].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(s){return this[br].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[br].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[De].forEach(s=>s()),this[De].clear()}}return t=br,r=De,Oc([(0,Bo.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ar=class extends zo(he.FtLitElement){},xr=class extends zo(he.FtLitElementRedux){};var Ko=E(T());var Nn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?pe.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Rc=new Nn;var qo=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Ko.hasChanged,converter:pe,...t}),r[Me]=(i=r[Me])!==null&&i!==void 0?i:new Map,r[Me].set(n,e??{})};var Go=E(ot());var Yo=Go.css`
|
|
141
141
|
`;var Sr=E(ot()),Er=E(et()),wr=E(T());var Ue=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Z=class extends xr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Sr.nothing:Sr.html`
|
|
142
142
|
<span class="ft-i18n">
|
|
143
143
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
package/build/ft-tooltip.min.js
CHANGED
|
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
44
44
|
input::-webkit-search-results-decoration {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
`;var vs={};var Mn={};N(Mn,{ParametrizedLabelResolver:()=>Sr});var Sr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var sa={};N(sa,{FtCommandQueue:()=>Cr,FtLitElementRedux:()=>nt,FtReduxStore:()=>st,FtStateManager:()=>Rr,ReduxWatcher:()=>lo,clearAllStores:()=>cp,isFtReduxStore:()=>It,redux:()=>Rt,reduxEventListener:()=>wu,reduxReactive:()=>Ou,watch:()=>lp,withRedux:()=>Ss});var Ou=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Rt=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Re,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:(l=>l[n]),store:e.store})}},wu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Cr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function It(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Er=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),Ss=G(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Ue].has(s.store):this[Ue].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ue].set(s,l.subscribe(()=>this.updateFromStores())),this[Er].set(s,[]),It(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Er].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ue].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ue].has(s)&&this[Ue].get(s)(),this[Ue].delete(s),(l=this[Er].get(s))===null||l===void 0||l.forEach(d=>d()),this[Er].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ue,o=ot,n=Er,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),nt=class extends Ss(j){};function de(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(t){return!!t&&!!t[U]}function ye(t){var e;return!!t&&((function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Pu})(t)||Array.isArray(t)||!!t[Is]||!!(!((e=t.constructor)===null||e===void 0)&&e[Is])||Vn(t)||Kn(t))}function at(t,e,o){o===void 0&&(o=!1),kt(t)===0?(o?Object.keys:Lt)(t).forEach((function(n){o&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,a){return e(a,n,t)}))}function kt(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vn(t)?2:Kn(t)?3:0}function Tt(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Au(t,e){return kt(t)===2?t.get(e):t[e]}function Ts(t,e,o){var n=kt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ls(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vn(t){return ku&&t instanceof Map}function Kn(t){return _u&&t instanceof Set}function Be(t){return t.o||t.t}function Zn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ps(t);delete e[U];for(var o=Lt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qn(t,e){return e===void 0&&(e=!1),Yn(t)||_e(t)||!ye(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=Ru),Object.freeze(t),e&&at(t,(function(o,n){return qn(n,!0)}),!0)),t}function Ru(){de(2)}function Yn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function we(t){var e=jn[t];return e||de(18,t),e}function Iu(t,e){jn[t]||(jn[t]=e)}function zn(){return wr}function Un(t,e){e&&(we("Patches"),t.u=[],t.s=[],t.v=e)}function no(t){Wn(t),t.p.forEach(Tu),t.p=null}function Wn(t){t===wr&&(wr=t.l)}function Cs(t){return wr={p:[],l:wr,h:t,m:!0,_:0}}function Tu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function Bn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||we("ES5").S(e,t,n),n?(o[U].P&&(no(e),de(4)),ye(t)&&(t=ao(e,t),e.l||io(e,t)),e.u&&we("Patches").M(o[U].t,t,e.u,e.s)):t=ao(e,o,[]),no(e),e.u&&e.v(e.u,e.s),t!==_s?t:void 0}function ao(t,e,o){if(Yn(e))return e;var n=e[U];if(!n)return at(e,(function(l,d){return Es(t,n,e,l,d,o)}),!0),e;if(n.A!==t)return e;if(!n.P)return io(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Zn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),at(i,(function(l,d){return Es(t,n,a,l,d,o,s)})),io(t,a,!1),o&&t.u&&we("Patches").N(n,o,t.u,t.s)}return n.o}function Es(t,e,o,n,a,i,s){if(_e(a)){var l=ao(t,a,i&&e&&e.i!==3&&!Tt(e.R,n)?i.concat(n):void 0);if(Ts(o,n,l),!_e(l))return;t.m=!1}else s&&o.add(a);if(ye(a)&&!Yn(a)){if(!t.h.D&&t._<1)return;ao(t,a),e&&e.A.l||io(t,a)}}function io(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qn(e,o)}function $n(t,e){var o=t[U];return(o?Be(o):t)[e]}function Os(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function $e(t){t.P||(t.P=!0,t.l&&$e(t.l))}function Hn(t){t.o||(t.o=Zn(t.t))}function Gn(t,e,o){var n=Vn(e)?we("MapSet").F(e,o):Kn(e)?we("MapSet").T(e,o):t.O?(function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:zn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Ar;s&&(d=[l],p=Or);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m})(e,o):we("ES5").J(e,o);return(o?o.A:zn()).p.push(n),n}function Lu(t){return _e(t)||de(22,t),(function e(o){if(!ye(o))return o;var n,a=o[U],i=kt(o);if(a){if(!a.P&&(a.i<4||!we("ES5").K(a)))return a.t;a.I=!0,n=ws(o,i),a.I=!1}else n=ws(o,i);return at(n,(function(s,l){a&&Au(a.t,s)===l||Ts(n,s,e(l))})),i===3?new Set(n):n})(t)}function ws(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zn(t)}function ks(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[U];return Ar.get(p,s)},set:function(p){var h=this[U];Ar.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][U];if(!d.P)switch(d.i){case 5:n(d)&&$e(d);break;case 4:o(d)&&$e(d)}}}function o(s){for(var l=s.t,d=s.k,p=Lt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==U){var m=l[f];if(m===void 0&&!Tt(l,f))return!0;var g=d[f],y=g&&g[U];if(y?y.t!==m:!Ls(g,m))return!0}}var v=!!l[U];return p.length!==Lt(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&de(3,JSON.stringify(Be(s)))}var i={};Iu("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(f,m){if(f){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,t(y,!0));return g}var v=Ps(m);delete v[U];for(var C=Lt(v),E=0;E<C.length;E++){var O=C[E];v[O]=t(O,f||!!v[O].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),h={i:d?5:4,A:l?l.A:zn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,U,{value:h,writable:!0}),p},S:function(s,l,d){d?_e(l)&&l[U].A===s&&e(s.p):(s.u&&(function p(h){if(h&&typeof h=="object"){var f=h[U];if(f){var m=f.t,g=f.k,y=f.R,v=f.i;if(v===4)at(g,(function(b){b!==U&&(m[b]!==void 0||Tt(m,b)?y[b]||p(g[b]):(y[b]=!0,$e(f)))})),at(m,(function(b){g[b]!==void 0||Tt(g,b)||(y[b]=!1,$e(f))}));else if(v===5){if(n(f)&&($e(f),y.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)y[C]=!1;else for(var E=m.length;E<g.length;E++)y[E]=!0;for(var O=Math.min(g.length,m.length),x=0;x<O;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&p(g[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var As,wr,Jn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ku=typeof Map<"u",_u=typeof Set<"u",Rs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_s=Jn?Symbol.for("immer-nothing"):((As={})["immer-nothing"]=!0,As),Is=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",U=Jn?Symbol.for("immer-state"):"__$immer_state";var Pu=""+Object.prototype.constructor,Lt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ps=Object.getOwnPropertyDescriptors||function(t){var e={};return Lt(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},jn={},Ar={get:function(t,e){if(e===U)return t;var o=Be(t);if(!Tt(o,e))return(function(a,i,s){var l,d=Os(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0})(t,o,e);var n=o[e];return t.I||!ye(n)?n:n===$n(t.t,e)?(Hn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Be(t)},ownKeys:function(t){return Reflect.ownKeys(Be(t))},set:function(t,e,o){var n=Os(Be(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=$n(Be(t),e),i=a?.[U];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ls(o,a)&&(o!==void 0||Tt(t.t,e)))return!0;Hn(t),$e(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return $n(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Hn(t),$e(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Be(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){de(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){de(12)}},Or={};at(Ar,(function(t,e){Or[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Or.deleteProperty=function(t,e){return Or.set.call(this,t,e,void 0)},Or.set=function(t,e,o){return Ar.set.call(this,t[0],e,o,t[0])};var Nu=(function(){function t(o){var n=this;this.O=Rs,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(v){var C=this;v===void 0&&(v=l);for(var E=arguments.length,O=Array(E>1?E-1:0),x=1;x<E;x++)O[x-1]=arguments[x];return d.produce(v,(function(b){var S;return(S=i).call.apply(S,[C,b].concat(O))}))}}var p;if(typeof i!="function"&&de(6),s!==void 0&&typeof s!="function"&&de(7),ye(a)){var h=Cs(n),f=Gn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?no(h):Wn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return Un(h,s),Bn(v,h)}),(function(v){throw no(h),v})):(Un(h,s),Bn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===_s&&(p=void 0),n.D&&qn(p,!0),s){var g=[],y=[];we("Patches").M(a,p,g,y),s(g,y)}return p}de(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,(function(g){return a.apply(void 0,[g].concat(f))}))};var s,l,d=n.produce(a,i,(function(p,h){s=p,l=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ye(o)||de(8),_e(o)&&(o=Lu(o));var n=Cs(this),a=Gn(this,o,void 0);return a[U].C=!0,Wn(n),a},e.finishDraft=function(o,n){var a=o&&o[U],i=a.A;return Un(i,n),Bn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Rs&&de(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=we("Patches").$;return _e(o)?s(o,n):this.produce(o,(function(l){return s(l,n)}))},t})(),ne=new Nu,Fu=ne.produce,Rb=ne.produceWithPatches.bind(ne),Ib=ne.setAutoFreeze.bind(ne),Tb=ne.setUseProxies.bind(ne),Lb=ne.applyPatches.bind(ne),kb=ne.createDraft.bind(ne),_b=ne.finishDraft.bind(ne),so=Fu;function it(t){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(t)}function Ns(t,e){if(it(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(it(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fs(t){var e=Ns(t,"string");return it(e)=="symbol"?e:e+""}function Ds(t,e,o){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ms(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Xn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ms(Object(o),!0).forEach(function(n){Ds(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Z(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Us=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},co={INIT:"@@redux/INIT"+Qn(),REPLACE:"@@redux/REPLACE"+Qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qn()}};function Du(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ea(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(ea)(t,e)}if(typeof t!="function")throw new Error(Z(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function f(v){if(typeof v!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return p(),l.push(v),function(){if(C){if(d)throw new Error(Z(6));C=!1,p();var O=l.indexOf(v);l.splice(O,1),s=null}}}function m(v){if(!Du(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=l,E=0;E<C.length;E++){var O=C[E];O()}return v}function g(v){if(typeof v!="function")throw new Error(Z(10));a=v,m({type:co.REPLACE})}function y(){var v,C=f;return v={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Z(11));function x(){O.next&&O.next(h())}x();var b=C(x);return{unsubscribe:b}}},v[Us]=function(){return this},v}return m({type:co.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:g},n[Us]=y,n}function Mu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:co.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof o(void 0,{type:co.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Bs(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Mu(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,g={},y=0;y<i.length;y++){var v=i[y],C=o[v],E=p[v],O=C(E,h);if(typeof O>"u"){var x=h&&h.type;throw new Error(Z(14))}g[v]=O,m=m||O!==E}return m=m||i.length!==Object.keys(p).length,m?g:p}}function _t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function $s(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=_t.apply(void 0,l)(a.dispatch),Xn(Xn({},a),{},{dispatch:i})}}}function Hs(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var zs=Hs();zs.withExtraArgument=Hs;var ta=zs;var Ks=(function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}})(),Uu=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Bu=Object.defineProperty,$u=Object.defineProperties,Hu=Object.getOwnPropertyDescriptors,Ws=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Wu=Object.prototype.propertyIsEnumerable,Gs=function(t,e,o){return e in t?Bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},He=function(t,e){for(var o in e||(e={}))zu.call(e,o)&&Gs(t,o,e[o]);if(Ws)for(var n=0,a=Ws(e);n<a.length;n++){var o=a[n];Wu.call(e,o)&&Gs(t,o,e[o])}return t},ra=function(t,e){return $u(t,Hu(e))},Gu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ju=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_t:_t.apply(null,arguments)},Yb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Vu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}function ze(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return He(He({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}var Ku=(function(t){Ks(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pt([void 0],o.concat(this))))},e})(Array),Zu=(function(t){Ks(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pt([void 0],o.concat(this))))},e})(Array);function aa(t){return ye(t)?so(t,function(){}):t}function qu(t){return typeof t=="boolean"}function Yu(){return function(e){return Ju(e)}}function Ju(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Ku;if(o&&(qu(o)?p.push(ta):p.push(ta.withExtraArgument(o.extraArgument))),0){if(a)var h;if(s)var f;if(d)var m}return p}var oa=!0;function Zs(t){var e=Yu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,g;if(typeof a=="function")g=a;else if(Vu(a))g=Bs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!oa&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oa&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=$s.apply(void 0,y),C=_t;d&&(C=ju(He({trace:!oa},typeof d=="object"&&d)));var E=new Zu(v),O=E;Array.isArray(m)?O=Pt([v],m):typeof m=="function"&&(O=m(E));var x=C.apply(void 0,O);return ea(g,h,x)}function qs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Xu(t){return typeof t=="function"}function Qu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?qs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Xu(t))d=function(){return aa(t())};else{var p=aa(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var g=Pt([i[m.type]],s.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[l]),g.reduce(function(y,v){if(v)if(_e(y)){var C=y,E=v(C,m);return E===void 0?y:E}else{if(ye(y))return so(y,function(O){return v(O,m)});var E=v(y,m);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},f)}return h.getInitialState=d,h}function ep(t,e){return t+"/"+e}function Ys(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:aa(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=ep(e,h),g,y;"reducer"in f?(g=f.reducer,y=f.prepare):g=f,i[h]=g,s[m]=g,l[h]=y?ze(m,y):ze(m)});function d(){var h=typeof t.extraReducers=="function"?qs(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,g=h[1],y=g===void 0?[]:g,v=h[2],C=v===void 0?void 0:v,E=He(He({},m),s);return Qu(o,function(O){for(var x in E)O.addCase(x,E[x]);for(var b=0,S=y;b<S.length;b++){var w=S[b];O.addMatcher(w.matcher,w.reducer)}C&&O.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=tp[Math.random()*64|0];return e},op=["name","message","stack","code"],na=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),js=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),np=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=op;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ex=(function(){function t(e,o,n){var a=ze(e+"/fulfilled",function(h,f,m,g){return{payload:h,meta:ra(He({},g||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ze(e+"/pending",function(h,f,m){return{payload:void 0,meta:ra(He({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ze(e+"/rejected",function(h,f,m,g,y){return{payload:g,error:(n&&n.serializeError||np)(h||"Rejected"),meta:ra(He({},y||{}),{arg:m,requestId:f,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h})();function p(h){return function(f,m,g){var y=n?.idGenerator?n.idGenerator(h):rp(),v=new d,C,E=!1;function O(b){C=b,v.abort()}var x=(function(){return Gu(this,null,function(){var b,S,w,L,$,D,R;return Uu(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),L=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),ip(L)?[4,L]:[3,2];case 1:L=T.sent(),T.label=2;case 2:if(L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,$=new Promise(function(F,z){return v.signal.addEventListener("abort",function(){return z({name:"AbortError",message:C||"Aborted"})})}),f(i(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([$,Promise.resolve(o(h,{dispatch:f,getState:m,extra:g,requestId:y,signal:v.signal,abort:O,rejectWithValue:function(F,z){return new na(F,z)},fulfillWithValue:function(F,z){return new js(F,z)}})).then(function(F){if(F instanceof na)throw F;return F instanceof js?a(F.payload,y,h,F.meta):a(F,y,h)})])];case 3:return w=T.sent(),[3,5];case 4:return D=T.sent(),w=D instanceof na?s(null,y,h,D.payload,D.meta):s(D,y,h),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&s.match(w)&&w.meta.condition,R||f(w),[2,w]}})})})();return Object.assign(x,{abort:O,requestId:y,arg:h,unwrap:function(){return x.then(ap)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t})();function ap(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ip(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Js="listener",Xs="completed",Qs="cancelled",tx="task-"+Qs,rx="task-"+Xs,ox=Js+"-"+Qs,nx=Js+"-"+Xs;var ia="listenerMiddleware";var ax=ze(ia+"/add"),ix=ze(ia+"/removeAll"),sx=ze(ia+"/remove");var Vs,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Vs||(Vs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},sp=function(t){return function(e){setTimeout(e,t)}},lx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10);ks();window.ftReduxStores||(window.ftReduxStores={});var st=class t extends Te{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(It(i))return i;if(a==null)return;let s=Ys({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Zs({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=fe(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Cr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function cp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))It(e)&&e.clear()}var lo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Re(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function lp(t,e,o){return new lo(t,e,o).watch()}var Rr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var da={};N(da,{scrollHelper:()=>dp});var ca,uo=new Map,la=class{lock(e,o){if(o){let n=uo.get(o);if(n==null||n===e)return uo.set(o,e),o}}release(e,o){o&&uo.get(o)===e&&uo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Zo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=qe(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ca=window.FluidTopicsScrollHelper)!==null&&ca!==void 0?ca:new la;var dp=window.FluidTopicsScrollHelper;var pa={};N(pa,{SearchPlaceConverter:()=>Dt,SearchPlaceQueryParams:()=>_,isSearchPlaceQueryParams:()=>Hc,serializeRequest:()=>fp});var ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ec||(ec={}));var tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tc||(tc={}));var rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rc||(rc={}));var oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(oc||(oc={}));var nc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nc||(nc={}));var ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(ic||(ic={}));var sc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(sc||(sc={}));var cc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(cc||(cc={}));var lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(lc||(lc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dc||(dc={}));var uc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(uc||(uc={}));var pc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pc||(pc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(mc||(mc={}));var Nt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Nt||(Nt={}));var yc;(function(t){t.ASC="ASC",t.DESC="DESC"})(yc||(yc={}));var gc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(gc||(gc={}));var ua;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ua||(ua={}));var wc=t=>Object.keys(ua).includes(t);var bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bc||(bc={}));var xc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var Ft;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ft||(Ft={}));var Ac=t=>Object.keys(Ft).includes(t);var Sc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Sc||(Sc={}));var Cc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cc||(Cc={}));var Ec;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ec||(Ec={}));var H;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(H||(H={}));var ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var Oc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Oc||(Oc={}));var Rc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rc||(Rc={}));var Ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ic||(Ic={}));var Tc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Tc||(Tc={}));var Lc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Lc||(Lc={}));var kc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kc||(kc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var Pc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Pc||(Pc={}));var Nc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Nc||(Nc={}));var Fc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Fc||(Fc={}));var Dc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Dc||(Dc={}));var Mc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Mc||(Mc={}));var up={[H.PERSONAL_BOOK_SHARE_USER]:[H.PERSONAL_BOOK_USER],[H.HTML_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.PDF_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.KHUB_ADMIN]:[H.CONTENT_PUBLISHER],[H.ADMIN]:[H.KHUB_ADMIN,H.USERS_ADMIN,H.PORTAL_ADMIN,H.BEHAVIOR_DATA_USER],[H.GENERATIVE_AI_EXPORT_USER]:[H.GENERATIVE_AI_USER]};function Uc(t,e){return t===e||(up[t]??[]).some(o=>Uc(o,e))}function Bc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Uc(n,e))}function pp(t){return`"${t}"`}function $c(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function fp(t,e){return new Dt(t).serialize(e)}var _;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(_||(_={}));var hp=new Set(Object.values(_));function Hc(t){return hp.has(t)}var Dt=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,p,h,f,m,g;let y=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&y.append(_.LOCALE,e.contentLocale):y.append(_.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&y.append(_.QUERY,e.query);let v=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&i!==void 0?i:[];if(v.length>0){let b=v.map(S=>{var w,L;let $=((L=(w=S.valueFilter)===null||w===void 0?void 0:w.values)!==null&&L!==void 0?L:[]).map(D=>this.escapeFilters(D)).map(D=>pp($c(D))).join("_");return`${S.key}~${$}`}).join("*");y.append(_.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(S=>{var w;return`${S.key}~${(w=S.dateFilter)===null||w===void 0?void 0:w.type.toLowerCase()}`}).join("*");y.append(_.DATE_FILTERS,b)}let E=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let b=E.map(S=>{var w,L;return`${S.key}~${(w=S.rangeFilter)===null||w===void 0?void 0:w.from}_${(L=S.rangeFilter)===null||L===void 0?void 0:L.to}`}).join("*");y.append(_.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append(_.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&y.append(_.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&y.append(_.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&y.append(_.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&y.append(_.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(g=e.otherQueryParams)!==null&&g!==void 0?g:{};for(let b in O)y.append(b,O[b]);let x=new Array;return y.forEach((b,S)=>{x.push(this.encodeQueryString(S)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(E){console.warn("Could not decode search request query params, fallback on raw value",E)}let d=new URLSearchParams(e),p=d.get(_.LOCALE)==="all"?void 0:d.get(_.LOCALE),h=((o=d.get(_.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(_.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(a=d.get(_.SCOPE))!==null&&a!==void 0?a:"default",g=+((i=d.get(_.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),y=d.get(_.KEYWORD_MATCH),v=y?y.toUpperCase()===Nt.MANDATORY?Nt.MANDATORY:Nt.OPTIONAL:void 0,C={};for(let E of d.keys())Hc(E)||(C[E]=d.get(E));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(_.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:wc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:qe(1,isNaN(g)?this.defaultPerPage:g,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(_.FILTERS)&&(d=this.parseValueFilters((o=e.get(_.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(_.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(_.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(_.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(_.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(_.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map($c).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Ft[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(a,o);return e}parseLegacyPeriodFilter(e){if(Ac(e))return[{key:"ft:lastEdition",dateFilter:{type:Ft[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[_.LOCALE,_.FILTERS,_.VALUE_FILTERS,_.DATE_FILTERS,_.RANGE_FILTERS].forEach(a=>{o.searchParams.delete(a)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(_.LOCALE),o!==void 0&&n.searchParams.append(_.LOCALE,o),n.toString()}};var ha={};N(ha,{toFtFormComponent:()=>mp});var fa=Symbol("elementInternals"),mp=G(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[fa].form}constructor(...n){super(n),this[fa]=this.attachInternals()}setFormValue(n){this[fa].setFormValue(n)}}return e});var ma={};N(ma,{DateFormatter:()=>ct});var ct=class{static format(e,o,n,a,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(e,o,n,a,!!i)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a,i){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return i?d:a?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var ga={};N(ga,{ALL_KEYS_VALUE:()=>ya,SameWindowStorageEvent:()=>Mt});var ya="__all__",Mt=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ya}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Mt(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Mt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Mt(ya))}});var xa={};N(xa,{FocusMainContentEvent:()=>ba});var ba=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var zc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function yp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function gp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",yp);document.addEventListener("click",gp);var Wc=P`
|
|
47
|
+
`;var vs={};var Mn={};N(Mn,{ParametrizedLabelResolver:()=>Sr});var Sr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var sa={};N(sa,{FtCommandQueue:()=>Cr,FtLitElementRedux:()=>nt,FtReduxStore:()=>st,FtStateManager:()=>Rr,ReduxWatcher:()=>lo,clearAllStores:()=>cp,isFtReduxStore:()=>It,redux:()=>Rt,reduxEventListener:()=>wu,reduxReactive:()=>Ou,watch:()=>lp,withRedux:()=>Ss});var Ou=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},Rt=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Re,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:(l=>l[n]),store:e.store})}},wu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Cr=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function It(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Er=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),Ss=G(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ot].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Ue].has(s.store):this[Ue].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Ue].set(s,l.subscribe(()=>this.updateFromStores())),this[Er].set(s,[]),It(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Er].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ue].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ue].has(s)&&this[Ue].get(s)(),this[Ue].delete(s),(l=this[Er].get(s))===null||l===void 0||l.forEach(d=>d()),this[Er].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ue,o=ot,n=Er,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),nt=class extends Ss(j){};function de(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(t){return!!t&&!!t[U]}function ye(t){var e;return!!t&&((function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Pu})(t)||Array.isArray(t)||!!t[Is]||!!(!((e=t.constructor)===null||e===void 0)&&e[Is])||Vn(t)||Kn(t))}function at(t,e,o){o===void 0&&(o=!1),kt(t)===0?(o?Object.keys:Lt)(t).forEach((function(n){o&&typeof n=="symbol"||e(n,t[n],t)})):t.forEach((function(n,a){return e(a,n,t)}))}function kt(t){var e=t[U];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vn(t)?2:Kn(t)?3:0}function Tt(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Au(t,e){return kt(t)===2?t.get(e):t[e]}function Ts(t,e,o){var n=kt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Ls(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vn(t){return ku&&t instanceof Map}function Kn(t){return _u&&t instanceof Set}function Be(t){return t.o||t.t}function Zn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ps(t);delete e[U];for(var o=Lt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qn(t,e){return e===void 0&&(e=!1),Yn(t)||_e(t)||!ye(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=Ru),Object.freeze(t),e&&at(t,(function(o,n){return qn(n,!0)}),!0)),t}function Ru(){de(2)}function Yn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function we(t){var e=jn[t];return e||de(18,t),e}function Iu(t,e){jn[t]||(jn[t]=e)}function zn(){return wr}function Un(t,e){e&&(we("Patches"),t.u=[],t.s=[],t.v=e)}function no(t){Wn(t),t.p.forEach(Tu),t.p=null}function Wn(t){t===wr&&(wr=t.l)}function Cs(t){return wr={p:[],l:wr,h:t,m:!0,_:0}}function Tu(t){var e=t[U];e.i===0||e.i===1?e.j():e.g=!0}function Bn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||we("ES5").S(e,t,n),n?(o[U].P&&(no(e),de(4)),ye(t)&&(t=ao(e,t),e.l||io(e,t)),e.u&&we("Patches").M(o[U].t,t,e.u,e.s)):t=ao(e,o,[]),no(e),e.u&&e.v(e.u,e.s),t!==_s?t:void 0}function ao(t,e,o){if(Yn(e))return e;var n=e[U];if(!n)return at(e,(function(l,d){return Es(t,n,e,l,d,o)}),!0),e;if(n.A!==t)return e;if(!n.P)return io(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Zn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),at(i,(function(l,d){return Es(t,n,a,l,d,o,s)})),io(t,a,!1),o&&t.u&&we("Patches").N(n,o,t.u,t.s)}return n.o}function Es(t,e,o,n,a,i,s){if(_e(a)){var l=ao(t,a,i&&e&&e.i!==3&&!Tt(e.R,n)?i.concat(n):void 0);if(Ts(o,n,l),!_e(l))return;t.m=!1}else s&&o.add(a);if(ye(a)&&!Yn(a)){if(!t.h.D&&t._<1)return;ao(t,a),e&&e.A.l||io(t,a)}}function io(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qn(e,o)}function $n(t,e){var o=t[U];return(o?Be(o):t)[e]}function Os(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function $e(t){t.P||(t.P=!0,t.l&&$e(t.l))}function Hn(t){t.o||(t.o=Zn(t.t))}function Gn(t,e,o){var n=Vn(e)?we("MapSet").F(e,o):Kn(e)?we("MapSet").T(e,o):t.O?(function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:zn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Ar;s&&(d=[l],p=Or);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m})(e,o):we("ES5").J(e,o);return(o?o.A:zn()).p.push(n),n}function Lu(t){return _e(t)||de(22,t),(function e(o){if(!ye(o))return o;var n,a=o[U],i=kt(o);if(a){if(!a.P&&(a.i<4||!we("ES5").K(a)))return a.t;a.I=!0,n=ws(o,i),a.I=!1}else n=ws(o,i);return at(n,(function(s,l){a&&Au(a.t,s)===l||Ts(n,s,e(l))})),i===3?new Set(n):n})(t)}function ws(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zn(t)}function ks(){function t(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[U];return Ar.get(p,s)},set:function(p){var h=this[U];Ar.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][U];if(!d.P)switch(d.i){case 5:n(d)&&$e(d);break;case 4:o(d)&&$e(d)}}}function o(s){for(var l=s.t,d=s.k,p=Lt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==U){var m=l[f];if(m===void 0&&!Tt(l,f))return!0;var g=d[f],y=g&&g[U];if(y?y.t!==m:!Ls(g,m))return!0}}var v=!!l[U];return p.length!==Lt(l).length+(v?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&de(3,JSON.stringify(Be(s)))}var i={};Iu("ES5",{J:function(s,l){var d=Array.isArray(s),p=(function(f,m){if(f){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,t(y,!0));return g}var v=Ps(m);delete v[U];for(var C=Lt(v),E=0;E<C.length;E++){var O=C[E];v[O]=t(O,f||!!v[O].enumerable)}return Object.create(Object.getPrototypeOf(m),v)})(d,s),h={i:d?5:4,A:l?l.A:zn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,U,{value:h,writable:!0}),p},S:function(s,l,d){d?_e(l)&&l[U].A===s&&e(s.p):(s.u&&(function p(h){if(h&&typeof h=="object"){var f=h[U];if(f){var m=f.t,g=f.k,y=f.R,v=f.i;if(v===4)at(g,(function(b){b!==U&&(m[b]!==void 0||Tt(m,b)?y[b]||p(g[b]):(y[b]=!0,$e(f)))})),at(m,(function(b){g[b]!==void 0||Tt(g,b)||(y[b]=!1,$e(f))}));else if(v===5){if(n(f)&&($e(f),y.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)y[C]=!1;else for(var E=m.length;E<g.length;E++)y[E]=!0;for(var O=Math.min(g.length,m.length),x=0;x<O;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&p(g[x])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var As,wr,Jn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ku=typeof Map<"u",_u=typeof Set<"u",Rs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_s=Jn?Symbol.for("immer-nothing"):((As={})["immer-nothing"]=!0,As),Is=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",U=Jn?Symbol.for("immer-state"):"__$immer_state";var Pu=""+Object.prototype.constructor,Lt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ps=Object.getOwnPropertyDescriptors||function(t){var e={};return Lt(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},jn={},Ar={get:function(t,e){if(e===U)return t;var o=Be(t);if(!Tt(o,e))return(function(a,i,s){var l,d=Os(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0})(t,o,e);var n=o[e];return t.I||!ye(n)?n:n===$n(t.t,e)?(Hn(t),t.o[e]=Gn(t.A.h,n,t)):n},has:function(t,e){return e in Be(t)},ownKeys:function(t){return Reflect.ownKeys(Be(t))},set:function(t,e,o){var n=Os(Be(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=$n(Be(t),e),i=a?.[U];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ls(o,a)&&(o!==void 0||Tt(t.t,e)))return!0;Hn(t),$e(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return $n(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Hn(t),$e(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Be(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){de(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){de(12)}},Or={};at(Ar,(function(t,e){Or[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Or.deleteProperty=function(t,e){return Or.set.call(this,t,e,void 0)},Or.set=function(t,e,o){return Ar.set.call(this,t[0],e,o,t[0])};var Nu=(function(){function t(o){var n=this;this.O=Rs,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(v){var C=this;v===void 0&&(v=l);for(var E=arguments.length,O=Array(E>1?E-1:0),x=1;x<E;x++)O[x-1]=arguments[x];return d.produce(v,(function(b){var S;return(S=i).call.apply(S,[C,b].concat(O))}))}}var p;if(typeof i!="function"&&de(6),s!==void 0&&typeof s!="function"&&de(7),ye(a)){var h=Cs(n),f=Gn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?no(h):Wn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return Un(h,s),Bn(v,h)}),(function(v){throw no(h),v})):(Un(h,s),Bn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===_s&&(p=void 0),n.D&&qn(p,!0),s){var g=[],y=[];we("Patches").M(a,p,g,y),s(g,y)}return p}de(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,(function(g){return a.apply(void 0,[g].concat(f))}))};var s,l,d=n.produce(a,i,(function(p,h){s=p,l=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(p){return[p,s,l]})):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){ye(o)||de(8),_e(o)&&(o=Lu(o));var n=Cs(this),a=Gn(this,o,void 0);return a[U].C=!0,Wn(n),a},e.finishDraft=function(o,n){var a=o&&o[U],i=a.A;return Un(i,n),Bn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Rs&&de(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=we("Patches").$;return _e(o)?s(o,n):this.produce(o,(function(l){return s(l,n)}))},t})(),ne=new Nu,Fu=ne.produce,Rb=ne.produceWithPatches.bind(ne),Ib=ne.setAutoFreeze.bind(ne),Tb=ne.setUseProxies.bind(ne),Lb=ne.applyPatches.bind(ne),kb=ne.createDraft.bind(ne),_b=ne.finishDraft.bind(ne),so=Fu;function it(t){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(t)}function Ns(t,e){if(it(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(it(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fs(t){var e=Ns(t,"string");return it(e)=="symbol"?e:e+""}function Ds(t,e,o){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ms(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Xn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ms(Object(o),!0).forEach(function(n){Ds(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Z(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Us=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},co={INIT:"@@redux/INIT"+Qn(),REPLACE:"@@redux/REPLACE"+Qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qn()}};function Du(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ea(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Z(1));return o(ea)(t,e)}if(typeof t!="function")throw new Error(Z(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function f(v){if(typeof v!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return p(),l.push(v),function(){if(C){if(d)throw new Error(Z(6));C=!1,p();var O=l.indexOf(v);l.splice(O,1),s=null}}}function m(v){if(!Du(v))throw new Error(Z(7));if(typeof v.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,v)}finally{d=!1}for(var C=s=l,E=0;E<C.length;E++){var O=C[E];O()}return v}function g(v){if(typeof v!="function")throw new Error(Z(10));a=v,m({type:co.REPLACE})}function y(){var v,C=f;return v={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Z(11));function x(){O.next&&O.next(h())}x();var b=C(x);return{unsubscribe:b}}},v[Us]=function(){return this},v}return m({type:co.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:g},n[Us]=y,n}function Mu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:co.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof o(void 0,{type:co.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Bs(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{Mu(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,g={},y=0;y<i.length;y++){var v=i[y],C=o[v],E=p[v],O=C(E,h);if(typeof O>"u"){var x=h&&h.type;throw new Error(Z(14))}g[v]=O,m=m||O!==E}return m=m||i.length!==Object.keys(p).length,m?g:p}}function _t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function $s(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=_t.apply(void 0,l)(a.dispatch),Xn(Xn({},a),{},{dispatch:i})}}}function Hs(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var zs=Hs();zs.withExtraArgument=Hs;var ta=zs;var Ks=(function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}})(),Uu=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Pt=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Bu=Object.defineProperty,$u=Object.defineProperties,Hu=Object.getOwnPropertyDescriptors,Ws=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Wu=Object.prototype.propertyIsEnumerable,Gs=function(t,e,o){return e in t?Bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},He=function(t,e){for(var o in e||(e={}))zu.call(e,o)&&Gs(t,o,e[o]);if(Ws)for(var n=0,a=Ws(e);n<a.length;n++){var o=a[n];Wu.call(e,o)&&Gs(t,o,e[o])}return t},ra=function(t,e){return $u(t,Hu(e))},Gu=function(t,e,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ju=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_t:_t.apply(null,arguments)},Yb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Vu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}function ze(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return He(He({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}var Ku=(function(t){Ks(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pt([void 0],o.concat(this))))},e})(Array),Zu=(function(t){Ks(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Pt([void 0],o[0].concat(this)))):new(e.bind.apply(e,Pt([void 0],o.concat(this))))},e})(Array);function aa(t){return ye(t)?so(t,function(){}):t}function qu(t){return typeof t=="boolean"}function Yu(){return function(e){return Ju(e)}}function Ju(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=t.actionCreatorCheck,d=l===void 0?!0:l,p=new Ku;if(o&&(qu(o)?p.push(ta):p.push(ta.withExtraArgument(o.extraArgument))),0){if(a)var h;if(s)var f;if(d)var m}return p}var oa=!0;function Zs(t){var e=Yu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,g;if(typeof a=="function")g=a;else if(Vu(a))g=Bs(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!oa&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!oa&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=$s.apply(void 0,y),C=_t;d&&(C=ju(He({trace:!oa},typeof d=="object"&&d)));var E=new Zu(v),O=E;Array.isArray(m)?O=Pt([v],m):typeof m=="function"&&(O=m(E));var x=C.apply(void 0,O);return ea(g,h,x)}function qs(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Xu(t){return typeof t=="function"}function Qu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?qs(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(Xu(t))d=function(){return aa(t())};else{var p=aa(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var g=Pt([i[m.type]],s.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[l]),g.reduce(function(y,v){if(v)if(_e(y)){var C=y,E=v(C,m);return E===void 0?y:E}else{if(ye(y))return so(y,function(O){return v(O,m)});var E=v(y,m);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},f)}return h.getInitialState=d,h}function ep(t,e){return t+"/"+e}function Ys(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:aa(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=ep(e,h),g,y;"reducer"in f?(g=f.reducer,y=f.prepare):g=f,i[h]=g,s[m]=g,l[h]=y?ze(m,y):ze(m)});function d(){var h=typeof t.extraReducers=="function"?qs(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,g=h[1],y=g===void 0?[]:g,v=h[2],C=v===void 0?void 0:v,E=He(He({},m),s);return Qu(o,function(O){for(var x in E)O.addCase(x,E[x]);for(var b=0,S=y;b<S.length;b++){var w=S[b];O.addMatcher(w.matcher,w.reducer)}C&&O.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=tp[Math.random()*64|0];return e},op=["name","message","stack","code"],na=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),js=(function(){function t(e,o){this.payload=e,this.meta=o}return t})(),np=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=op;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},ex=(function(){function t(e,o,n){var a=ze(e+"/fulfilled",function(h,f,m,g){return{payload:h,meta:ra(He({},g||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ze(e+"/pending",function(h,f,m){return{payload:void 0,meta:ra(He({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ze(e+"/rejected",function(h,f,m,g,y){return{payload:g,error:(n&&n.serializeError||np)(h||"Rejected"),meta:ra(He({},y||{}),{arg:m,requestId:f,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h})();function p(h){return function(f,m,g){var y=n?.idGenerator?n.idGenerator(h):rp(),v=new d,C,E=!1;function O(b){C=b,v.abort()}var x=(function(){return Gu(this,null,function(){var b,S,w,L,$,D,R;return Uu(this,function(T){switch(T.label){case 0:return T.trys.push([0,4,,5]),L=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),ip(L)?[4,L]:[3,2];case 1:L=T.sent(),T.label=2;case 2:if(L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,$=new Promise(function(F,z){return v.signal.addEventListener("abort",function(){return z({name:"AbortError",message:C||"Aborted"})})}),f(i(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([$,Promise.resolve(o(h,{dispatch:f,getState:m,extra:g,requestId:y,signal:v.signal,abort:O,rejectWithValue:function(F,z){return new na(F,z)},fulfillWithValue:function(F,z){return new js(F,z)}})).then(function(F){if(F instanceof na)throw F;return F instanceof js?a(F.payload,y,h,F.meta):a(F,y,h)})])];case 3:return w=T.sent(),[3,5];case 4:return D=T.sent(),w=D instanceof na?s(null,y,h,D.payload,D.meta):s(D,y,h),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&s.match(w)&&w.meta.condition,R||f(w),[2,w]}})})})();return Object.assign(x,{abort:O,requestId:y,arg:h,unwrap:function(){return x.then(ap)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t})();function ap(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ip(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Js="listener",Xs="completed",Qs="cancelled",tx="task-"+Qs,rx="task-"+Xs,ox=Js+"-"+Qs,nx=Js+"-"+Xs;var ia="listenerMiddleware";var ax=ze(ia+"/add"),ix=ze(ia+"/removeAll"),sx=ze(ia+"/remove");var Vs,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Vs||(Vs=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},sp=function(t){return function(e){setTimeout(e,t)}},lx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10);ks();window.ftReduxStores||(window.ftReduxStores={});var st=class t extends Te{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(It(i))return i;if(a==null)return;let s=Ys({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Zs({reducer:(d,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=fe(s.getInitialState());for(let f of p.keeping)h[f]=(d??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...p.overwrites};return s.reducer(d,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Cr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function cp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))It(e)&&e.clear()}var lo=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);Re(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function lp(t,e,o){return new lo(t,e,o).watch()}var Rr=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var da={};N(da,{scrollHelper:()=>dp});var ca,uo=new Map,la=class{lock(e,o){if(o){let n=uo.get(o);if(n==null||n===e)return uo.set(o,e),o}}release(e,o){o&&uo.get(o)===e&&uo.delete(o)}findFirstScrollableParent(e){var o;let n,a;for(let i of Zo(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(o=n??a)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=qe(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ca=window.FluidTopicsScrollHelper)!==null&&ca!==void 0?ca:new la;var dp=window.FluidTopicsScrollHelper;var pa={};N(pa,{SearchPlaceConverter:()=>Dt,SearchPlaceQueryParams:()=>_,isSearchPlaceQueryParams:()=>Hc,serializeRequest:()=>fp});var ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ec||(ec={}));var tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tc||(tc={}));var rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rc||(rc={}));var oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(oc||(oc={}));var nc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nc||(nc={}));var ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(ic||(ic={}));var sc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(sc||(sc={}));var cc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(cc||(cc={}));var lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(lc||(lc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(dc||(dc={}));var uc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(uc||(uc={}));var pc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pc||(pc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(mc||(mc={}));var Nt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Nt||(Nt={}));var yc;(function(t){t.ASC="ASC",t.DESC="DESC"})(yc||(yc={}));var gc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(gc||(gc={}));var ua;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ua||(ua={}));var wc=t=>Object.keys(ua).includes(t);var bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(bc||(bc={}));var xc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xc||(xc={}));var vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var Ft;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ft||(Ft={}));var Ac=t=>Object.keys(Ft).includes(t);var Sc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Sc||(Sc={}));var Cc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cc||(Cc={}));var Ec;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ec||(Ec={}));var H;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(H||(H={}));var ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var Oc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Oc||(Oc={}));var Rc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Rc||(Rc={}));var Ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ic||(Ic={}));var Tc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Tc||(Tc={}));var Lc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Lc||(Lc={}));var kc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(kc||(kc={}));var _c;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(_c||(_c={}));var Pc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Pc||(Pc={}));var Nc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Nc||(Nc={}));var Fc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Fc||(Fc={}));var Dc;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Dc||(Dc={}));var Mc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Mc||(Mc={}));var up={[H.PERSONAL_BOOK_SHARE_USER]:[H.PERSONAL_BOOK_USER],[H.HTML_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.PDF_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.KHUB_ADMIN]:[H.CONTENT_PUBLISHER],[H.ADMIN]:[H.KHUB_ADMIN,H.USERS_ADMIN,H.PORTAL_ADMIN,H.BEHAVIOR_DATA_USER],[H.GENERATIVE_AI_EXPORT_USER]:[H.GENERATIVE_AI_USER]};function Uc(t,e){return t===e||(up[t]??[]).some(o=>Uc(o,e))}function Bc(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Uc(n,e))}function pp(t){return`"${t}"`}function $c(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function fp(t,e){return new Dt(t).serialize(e)}var _;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(_||(_={}));var hp=new Set(Object.values(_));function Hc(t){return hp.has(t)}var Dt=class{constructor(e,o=20,n=!1,a="en-US"){this.baseUrl=e,this.defaultPerPage=o,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,o=!1){var n,a,i,s,l,d,p,h,f,m,g;let y=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&y.append(_.LOCALE,e.contentLocale):y.append(_.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&y.append(_.QUERY,e.query);let v=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(b=>b.valueFilter&&!b.valueFilter.negative))!==null&&i!==void 0?i:[];if(v.length>0){let b=v.map(S=>{var w,L;let $=((L=(w=S.valueFilter)===null||w===void 0?void 0:w.values)!==null&&L!==void 0?L:[]).map(D=>this.escapeFilters(D)).map(D=>pp($c(D))).join("_");return`${S.key}~${$}`}).join("*");y.append(_.VALUE_FILTERS,b)}let C=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(b=>b.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let b=C.map(S=>{var w;return`${S.key}~${(w=S.dateFilter)===null||w===void 0?void 0:w.type.toLowerCase()}`}).join("*");y.append(_.DATE_FILTERS,b)}let E=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(b=>b.rangeFilter))!==null&&p!==void 0?p:[];if(E.length>0){let b=E.map(S=>{var w,L;return`${S.key}~${(w=S.rangeFilter)===null||w===void 0?void 0:w.from}_${(L=S.rangeFilter)===null||L===void 0?void 0:L.to}`}).join("*");y.append(_.RANGE_FILTERS,b)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append(_.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&y.append(_.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&y.append(_.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&y.append(_.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&y.append(_.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let O=(g=e.otherQueryParams)!==null&&g!==void 0?g:{};for(let b in O)y.append(b,O[b]);let x=new Array;return y.forEach((b,S)=>{x.push(this.encodeQueryString(S)+"="+this.encodeQueryString(b))}),encodeURI(x.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(e){var o,n,a,i,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(E){console.warn("Could not decode search request query params, fallback on raw value",E)}let d=new URLSearchParams(e),p=d.get(_.LOCALE)==="all"?void 0:d.get(_.LOCALE),h=((o=d.get(_.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(_.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(a=d.get(_.SCOPE))!==null&&a!==void 0?a:"default",g=+((i=d.get(_.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),y=d.get(_.KEYWORD_MATCH),v=y?y.toUpperCase()===Nt.MANDATORY?Nt.MANDATORY:Nt.OPTIONAL:void 0,C={};for(let E of d.keys())Hc(E)||(C[E]=d.get(E));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(_.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:wc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:qe(1,isNaN(g)?this.defaultPerPage:g,1e3)},keywordMatch:v,otherQueryParams:C}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(_.FILTERS)&&(d=this.parseValueFilters((o=e.get(_.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(_.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(_.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(_.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(_.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(_.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map($c).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Ft[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(a,o);return e}parseLegacyPeriodFilter(e){if(Ac(e))return[{key:"ft:lastEdition",dateFilter:{type:Ft[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}static clearSearchParamsInUrl(e){let o=new URL(e);return[_.LOCALE,_.FILTERS,_.VALUE_FILTERS,_.DATE_FILTERS,_.RANGE_FILTERS].forEach(a=>{o.searchParams.delete(a)}),o.toString()}static updateLocaleParamInUrl(e,o){let n=new URL(e);return n.searchParams.delete(_.LOCALE),o!==void 0&&n.searchParams.append(_.LOCALE,o),n.toString()}};var ha={};N(ha,{toFtFormComponent:()=>mp});var fa=Symbol("elementInternals"),mp=G(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[fa].form}constructor(...n){super(n),this[fa]=this.attachInternals()}setFormValue(n){this[fa].setFormValue(n)}}return e});var ma={};N(ma,{DateFormatter:()=>ct});var ct=class{static format(e,o,n,a,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(e,o,n,a,!!i)}static getMomentDateFormat(e,o,n){return n?"LT":e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a,i){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return i?d:a?`${l} ${d}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var ga={};N(ga,{ALL_KEYS_VALUE:()=>ya,SameWindowStorageEvent:()=>Mt});var ya="__all__",Mt=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ya}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Mt(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new Mt(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new Mt(ya))}});var xa={};N(xa,{FocusMainContentEvent:()=>ba});var ba=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var zc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function yp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function gp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",yp);document.addEventListener("click",gp);var Wc=P`
|
|
48
48
|
.sr-only {
|
|
49
49
|
position:absolute;
|
|
50
50
|
left:-10000px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tooltip",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "A simple tooltip component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-i18n": "2.1.
|
|
23
|
-
"@fluid-topics/ft-typography": "2.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "2.1.
|
|
22
|
+
"@fluid-topics/ft-i18n": "2.1.6",
|
|
23
|
+
"@fluid-topics/ft-typography": "2.1.6",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "2.1.6",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "70ba8e6b58f0f1c74a92965f3b7dbf3db605698e"
|
|
28
28
|
}
|