@fluid-topics/ft-search-results-spellcheck 2.2.25 → 2.2.27
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,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var ao=Object.create;var fn=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var lo=Object.getOwnPropertyNames;var uo=Object.getPrototypeOf,po=Object.prototype.hasOwnProperty;var dr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var ho=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of lo(t))!po.call(e,s)&&s!==r&&fn(e,s,{get:()=>t[s],enumerable:!(n=co(t,s))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?ao(uo(e)):{},ho(t||!e||!e.__esModule?fn(r,"default",{value:e,enumerable:!0}):r,e));var x=dr((Na,yn)=>{yn.exports=ftGlobals.wcUtils});var Y=dr((Ma,mn)=>{mn.exports=ftGlobals.lit});var z=dr((La,gn)=>{gn.exports=ftGlobals.litDecorators});var so=y(x());var ur=y(Y()),ro=y(z()),hn=y(x());var Sn=y(Y()),Ie=y(x()),lt={linkColor:Ie.FtCssVariableFactory.external(Ie.designSystemVariables.colorPrimaryVariant,"Design system"),linkHoverColor:Ie.FtCssVariableFactory.external(Ie.designSystemVariables.colorPrimary,"Design system")},En=Sn.css`
|
|
2
2
|
.ft-search-results-spellcheck--spellcheck {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
color: ${lt.linkHoverColor};
|
|
15
15
|
text-decoration-color: ${lt.linkHoverColor};
|
|
16
16
|
}
|
|
17
|
-
`;var ze;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ze||(ze={}));var
|
|
18
|
-
\f\r]`,Ke=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xn=/-->/g,bn=/>/g,ae=RegExp(`>|${
|
|
19
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),_n=/'/g,Cn=/"/g,Rn=/^(?:script|style|textarea|title)$/i,vr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),In=vr(1),kn=vr(2),Dn=vr(3),Ge=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),wn=new WeakMap,ce=le.createTreeWalker(le,129);function Mn(e,t){if(!Sr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return An!==void 0?An.createHTML(t):t}var go=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=Ke;for(let a=0;a<r;a++){let c=e[a],l,u,d=-1,h=0;for(;h<c.length&&(o.lastIndex=h,u=o.exec(c),u!==null);)h=o.lastIndex,o===Ke?u[1]==="!--"?o=xn:u[1]!==void 0?o=bn:u[2]!==void 0?(Rn.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=ae):u[3]!==void 0&&(o=ae):o===ae?u[0]===">"?(o=s??Ke,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?ae:u[3]==='"'?Cn:_n):o===Cn||o===_n?o=ae:o===xn||o===bn?o=Ke:(o=ae,s=void 0);let g=o===ae&&e[a+1].startsWith("/>")?" ":"";i+=o===Ke?c+yo:d>=0?(n.push(l),c.slice(0,d)+Tn+c.slice(d)+re+g):c+re+(d===-2?a:g)}return[Mn(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Qe=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,u]=go(t,r);if(this.el=e.createElement(l,n),ce.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ce.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(Tn)){let h=u[o++],g=s.getAttribute(d).split(re),E=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:E[2],strings:g,ctor:E[1]==="."?hr:E[1]==="?"?fr:E[1]==="@"?yr:De}),s.removeAttribute(d)}else d.startsWith(re)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(Rn.test(s.tagName)){let d=s.textContent.split(re),h=d.length-1;if(h>0){s.textContent=ut?ut.emptyScript:"";for(let g=0;g<h;g++)s.append(d[g],dt()),ce.nextNode(),c.push({type:2,index:++i});s.append(d[h],dt())}}}else if(s.nodeType===8)if(s.data===On)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(re,d+1))!==-1;)c.push({type:7,index:i}),d+=re.length-1}i++}}static createElement(t,r){let n=le.createElement("template");return n.innerHTML=t,n}};function ke(e,t,r=e,n){if(t===Ge)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=We(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=ke(e,s._$AS(e,t.values),s,n)),t}var pr=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,s=(t?.creationScope??le).importNode(r,!0);ce.currentNode=s;let i=ce.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new pt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new mr(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=ce.nextNode(),o++)}return ce.currentNode=le,s}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++}},pt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.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=ke(this,t,r),We(t)?t===O||t==null||t===""?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==Ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):mo(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!==O&&We(this._$AH)?this._$AA.nextSibling.data=t:this.T(le.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Qe.createElement(Mn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new pr(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=wn.get(t.strings);return r===void 0&&wn.set(t.strings,r=new Qe(t)),r}k(t){Sr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(dt()),this.O(dt()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=En(t).nextSibling;En(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},De=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=O}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=ke(this,t,r,0),o=!We(t)||t!==this._$AH&&t!==Ge,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=ke(this,a[n+c],r,c),l===Ge&&(l=this._$AH[c]),o||=!We(l)||l!==this._$AH[c],l===O?t=O:t!==O&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},hr=class extends De{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}},fr=class extends De{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==O)}},yr=class extends De{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=ke(this,t,r,0)??O)===Ge)return;let n=this._$AH,s=t===O&&n!==O||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==O&&(n===O||s);s&&this.element.removeEventListener(this.name,this,n),i&&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)}},mr=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){ke(this,t)}};var So=gr.litHtmlPolyfillSupport;So?.(Qe,pt),(gr.litHtmlVersions??=[]).push("3.3.3");var Ln=Symbol.for(""),vo=e=>{if(e?.r===Ln)return e?._$litStatic$},Er=e=>({_$litStatic$:e,r:Ln});var Nn=new Map,Ar=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=vo(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Nn.get(d))===void 0&&(o.raw=o,Nn.set(d,t=o)),r=a}return e(t,...r)},xr=Ar(In),Ba=Ar(kn),ja=Ar(Dn);var br=y(q()),Qn=y(b());var ht;(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"})(ht||(ht={}));var H=y(Q()),p=y(b()),Pn=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),Y=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:Y,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:p.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ue={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Pn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",f.textDecoration,"inherit")},de={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Pn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",f.textDecoration,"inherit")},pe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",f.textDecoration,"inherit")},he={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",f.textDecoration,"inherit")},fe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",f.textDecoration,"inherit")},ye={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",f.textDecoration,"inherit")},me={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",f.textDecoration,"inherit")},ge={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",f.textDecoration,"inherit")},Se={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",f.textDecoration,"inherit")},ve={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Y),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",f.textDecoration,"inherit")},Fn=H.css`
|
|
17
|
+
`;var ze;(function(e){e.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(ze||(ze={}));var Sr=globalThis,vn=e=>e,ut=Sr.trustedTypes,An=ut?ut.createPolicy("lit-html",{createHTML:e=>e}):void 0,Tn="$lit$",re=`lit$${Math.random().toFixed(9).slice(2)}$`,On="?"+re,fo=`<${On}>`,le=document,dt=()=>le.createComment(""),We=e=>e===null||typeof e!="object"&&typeof e!="function",Er=Array.isArray,yo=e=>Er(e)||typeof e?.[Symbol.iterator]=="function",pr=`[
|
|
18
|
+
\f\r]`,Ke=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xn=/-->/g,bn=/>/g,ae=RegExp(`>|${pr}(?:([^\\s"'>=/]+)(${pr}*=${pr}*(?:[^
|
|
19
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),_n=/'/g,Cn=/"/g,Rn=/^(?:script|style|textarea|title)$/i,vr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),In=vr(1),kn=vr(2),Dn=vr(3),Ge=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),wn=new WeakMap,ce=le.createTreeWalker(le,129);function Nn(e,t){if(!Er(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return An!==void 0?An.createHTML(t):t}var mo=(e,t)=>{let r=e.length-1,n=[],s,i=t===2?"<svg>":t===3?"<math>":"",o=Ke;for(let a=0;a<r;a++){let c=e[a],l,u,d=-1,h=0;for(;h<c.length&&(o.lastIndex=h,u=o.exec(c),u!==null);)h=o.lastIndex,o===Ke?u[1]==="!--"?o=xn:u[1]!==void 0?o=bn:u[2]!==void 0?(Rn.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=ae):u[3]!==void 0&&(o=ae):o===ae?u[0]===">"?(o=s??Ke,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?ae:u[3]==='"'?Cn:_n):o===Cn||o===_n?o=ae:o===xn||o===bn?o=Ke:(o=ae,s=void 0);let g=o===ae&&e[a+1].startsWith("/>")?" ":"";i+=o===Ke?c+fo:d>=0?(n.push(l),c.slice(0,d)+Tn+c.slice(d)+re+g):c+re+(d===-2?a:g)}return[Nn(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Qe=class e{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let i=0,o=0,a=t.length-1,c=this.parts,[l,u]=mo(t,r);if(this.el=e.createElement(l,n),ce.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=ce.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(Tn)){let h=u[o++],g=s.getAttribute(d).split(re),A=/([.?@])?(.*)/.exec(h);c.push({type:1,index:i,name:A[2],strings:g,ctor:A[1]==="."?fr:A[1]==="?"?yr:A[1]==="@"?mr:De}),s.removeAttribute(d)}else d.startsWith(re)&&(c.push({type:6,index:i}),s.removeAttribute(d));if(Rn.test(s.tagName)){let d=s.textContent.split(re),h=d.length-1;if(h>0){s.textContent=ut?ut.emptyScript:"";for(let g=0;g<h;g++)s.append(d[g],dt()),ce.nextNode(),c.push({type:2,index:++i});s.append(d[h],dt())}}}else if(s.nodeType===8)if(s.data===On)c.push({type:2,index:i});else{let d=-1;for(;(d=s.data.indexOf(re,d+1))!==-1;)c.push({type:7,index:i}),d+=re.length-1}i++}}static createElement(t,r){let n=le.createElement("template");return n.innerHTML=t,n}};function ke(e,t,r=e,n){if(t===Ge)return t;let s=n!==void 0?r._$Co?.[n]:r._$Cl,i=We(t)?void 0:t._$litDirective$;return s?.constructor!==i&&(s?._$AO?.(!1),i===void 0?s=void 0:(s=new i(e),s._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=s:r._$Cl=s),s!==void 0&&(t=ke(e,s._$AS(e,t.values),s,n)),t}var hr=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,s=(t?.creationScope??le).importNode(r,!0);ce.currentNode=s;let i=ce.nextNode(),o=0,a=0,c=n[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new pt(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new gr(i,this,t)),this._$AV.push(l),c=n[++a]}o!==c?.index&&(i=ce.nextNode(),o++)}return ce.currentNode=le,s}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++}},pt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,s){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=s?.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=ke(this,t,r),We(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==Ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):yo(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==w&&We(this._$AH)?this._$AA.nextSibling.data=t:this.T(le.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Qe.createElement(Nn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===s)this._$AH.p(r);else{let i=new hr(s,this),o=i.u(this.options);i.p(r),this.T(o),this._$AH=i}}_$AC(t){let r=wn.get(t.strings);return r===void 0&&wn.set(t.strings,r=new Qe(t)),r}k(t){Er(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let i of t)s===r.length?r.push(n=new e(this.O(dt()),this.O(dt()),this,this.options)):n=r[s],n._$AI(i),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=vn(t).nextSibling;vn(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},De=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,i){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=w}_$AI(t,r=this,n,s){let i=this.strings,o=!1;if(i===void 0)t=ke(this,t,r,0),o=!We(t)||t!==this._$AH&&t!==Ge,o&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=ke(this,a[n+c],r,c),l===Ge&&(l=this._$AH[c]),o||=!We(l)||l!==this._$AH[c],l===w?t=w:t!==w&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fr=class extends De{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}},yr=class extends De{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==w)}},mr=class extends De{constructor(t,r,n,s,i){super(t,r,n,s,i),this.type=5}_$AI(t,r=this){if((t=ke(this,t,r,0)??w)===Ge)return;let n=this._$AH,s=t===w&&n!==w||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==w&&(n===w||s);s&&this.element.removeEventListener(this.name,this,n),i&&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)}},gr=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){ke(this,t)}};var go=Sr.litHtmlPolyfillSupport;go?.(Qe,pt),(Sr.litHtmlVersions??=[]).push("3.3.3");var Ln=Symbol.for(""),So=e=>{if(e?.r===Ln)return e?._$litStatic$},Ar=e=>({_$litStatic$:e,r:Ln});var Mn=new Map,xr=e=>(t,...r)=>{let n=r.length,s,i,o=[],a=[],c,l=0,u=!1;for(;l<n;){for(c=t[l];l<n&&(i=r[l],(s=So(i))!==void 0);)c+=s+t[++l],u=!0;l!==n&&a.push(i),o.push(c),l++}if(l===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=Mn.get(d))===void 0&&(o.raw=o,Mn.set(d,t=o)),r=a}return e(t,...r)},br=xr(In),Ha=xr(kn),Ba=xr(Dn);var _r=y(z()),Qn=y(x());var ht;(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"})(ht||(ht={}));var B=y(Y()),p=y(x()),Pn=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.titleFont),X=p.FtCssVariableFactory.extend("--ft-typography-font-family","",p.designSystemVariables.contentFont),f={fontFamily:X,fontSize:p.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:p.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:p.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:p.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:p.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:p.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ue={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Pn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-font-size","",f.fontSize,"20px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",f.letterSpacing,"0.15px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-line-height","",f.lineHeight,"1.2"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",f.textDecoration,"inherit")},de={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Pn),fontSize:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",f.letterSpacing,"0.105px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",f.textDecoration,"inherit")},pe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",f.letterSpacing,"0.144px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",f.textDecoration,"inherit")},he={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",f.letterSpacing,"0.098px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",f.lineHeight,"1.7"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",f.textDecoration,"inherit")},fe={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",f.fontSize,"16px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",f.letterSpacing,"0.496px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",f.lineHeight,"1.5"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",f.textDecoration,"inherit")},ye={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",f.letterSpacing,"0.252px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",f.lineHeight,"1.4"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",f.textDecoration,"inherit")},me={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",f.fontSize,"12px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",f.letterSpacing,"0.396px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",f.lineHeight,"1.33"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",f.textDecoration,"inherit")},ge={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",f.letterSpacing,"0.33px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",f.textTransform,"inherit"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",f.textDecoration,"inherit")},Se={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",f.fontSize,"10px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",f.fontWeight,"normal"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",f.letterSpacing,"1.5px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",f.lineHeight,"1.6"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",f.textDecoration,"inherit")},Ee={fontFamily:p.FtCssVariableFactory.extend("--ft-typography-button-font-family","",X),fontSize:p.FtCssVariableFactory.extend("--ft-typography-button-font-size","",f.fontSize,"14px"),fontWeight:p.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",f.fontWeight,"600"),letterSpacing:p.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",f.letterSpacing,"1.246px"),lineHeight:p.FtCssVariableFactory.extend("--ft-typography-button-line-height","",f.lineHeight,"1.15"),textTransform:p.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",f.textTransform,"uppercase"),textDecoration:p.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",f.textDecoration,"inherit")},Fn=B.css`
|
|
20
20
|
.ft-typography--title {
|
|
21
21
|
font-family: ${ue.fontFamily};
|
|
22
22
|
font-size: ${ue.fontSize};
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
text-transform: ${ue.textTransform};
|
|
27
27
|
text-decoration: ${ue.textDecoration};
|
|
28
28
|
}
|
|
29
|
-
`,Un=
|
|
29
|
+
`,Un=B.css`
|
|
30
30
|
.ft-typography--title-dense {
|
|
31
31
|
font-family: ${de.fontFamily};
|
|
32
32
|
font-size: ${de.fontSize};
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
text-transform: ${de.textTransform};
|
|
37
37
|
text-decoration: ${de.textDecoration};
|
|
38
38
|
}
|
|
39
|
-
`,$n=
|
|
39
|
+
`,$n=B.css`
|
|
40
40
|
.ft-typography--subtitle1 {
|
|
41
41
|
font-family: ${pe.fontFamily};
|
|
42
42
|
font-size: ${pe.fontSize};
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
text-transform: ${pe.textTransform};
|
|
47
47
|
text-decoration: ${pe.textDecoration};
|
|
48
48
|
}
|
|
49
|
-
`,Hn=
|
|
49
|
+
`,Hn=B.css`
|
|
50
50
|
.ft-typography--subtitle2 {
|
|
51
51
|
font-family: ${he.fontFamily};
|
|
52
52
|
font-size: ${he.fontSize};
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
text-decoration: ${he.textDecoration};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
`,Bn=
|
|
60
|
+
`,Bn=B.css`
|
|
61
61
|
.ft-typography--body1 {
|
|
62
62
|
font-family: ${fe.fontFamily};
|
|
63
63
|
font-size: ${fe.fontSize};
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
text-transform: ${fe.textTransform};
|
|
68
68
|
text-decoration: ${fe.textDecoration};
|
|
69
69
|
}
|
|
70
|
-
`,jn=
|
|
70
|
+
`,jn=B.css`
|
|
71
71
|
.ft-typography--body2 {
|
|
72
72
|
font-family: ${ye.fontFamily};
|
|
73
73
|
font-size: ${ye.fontSize};
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
text-transform: ${ye.textTransform};
|
|
78
78
|
text-decoration: ${ye.textDecoration};
|
|
79
79
|
}
|
|
80
|
-
`,Vn=
|
|
80
|
+
`,Vn=B.css`
|
|
81
81
|
.ft-typography--caption {
|
|
82
82
|
font-family: ${me.fontFamily};
|
|
83
83
|
font-size: ${me.fontSize};
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
text-transform: ${me.textTransform};
|
|
88
88
|
text-decoration: ${me.textDecoration};
|
|
89
89
|
}
|
|
90
|
-
`,qn=
|
|
90
|
+
`,qn=B.css`
|
|
91
91
|
.ft-typography--breadcrumb {
|
|
92
92
|
font-family: ${ge.fontFamily};
|
|
93
93
|
font-size: ${ge.fontSize};
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
text-transform: ${ge.textTransform};
|
|
98
98
|
text-decoration: ${ge.textDecoration};
|
|
99
99
|
}
|
|
100
|
-
`,zn=
|
|
100
|
+
`,zn=B.css`
|
|
101
101
|
.ft-typography--overline {
|
|
102
102
|
font-family: ${Se.fontFamily};
|
|
103
103
|
font-size: ${Se.fontSize};
|
|
@@ -107,41 +107,41 @@
|
|
|
107
107
|
text-transform: ${Se.textTransform};
|
|
108
108
|
text-decoration: ${Se.textDecoration};
|
|
109
109
|
}
|
|
110
|
-
`,Kn=
|
|
110
|
+
`,Kn=B.css`
|
|
111
111
|
.ft-typography--button {
|
|
112
|
-
font-family: ${
|
|
113
|
-
font-size: ${
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
118
|
-
text-decoration: ${
|
|
112
|
+
font-family: ${Ee.fontFamily};
|
|
113
|
+
font-size: ${Ee.fontSize};
|
|
114
|
+
font-weight: ${Ee.fontWeight};
|
|
115
|
+
letter-spacing: ${Ee.letterSpacing};
|
|
116
|
+
line-height: ${Ee.lineHeight};
|
|
117
|
+
text-transform: ${Ee.textTransform};
|
|
118
|
+
text-decoration: ${Ee.textDecoration};
|
|
119
119
|
}
|
|
120
|
-
`,Wn=
|
|
120
|
+
`,Wn=B.css`
|
|
121
121
|
.ft-typography {
|
|
122
122
|
vertical-align: inherit;
|
|
123
123
|
}
|
|
124
|
-
`;var Gn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},
|
|
125
|
-
<${
|
|
124
|
+
`;var Gn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},J=class extends Qn.FtLitElement{constructor(){super(...arguments),this.variant=ht.body1}render(){return this.element?br`
|
|
125
|
+
<${Ar(this.element)}
|
|
126
126
|
part="text"
|
|
127
127
|
class="ft-typography ft-typography--${this.variant}">
|
|
128
128
|
<slot></slot>
|
|
129
|
-
</${
|
|
130
|
-
`:
|
|
129
|
+
</${Ar(this.element)}>
|
|
130
|
+
`:br`
|
|
131
131
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
132
|
-
`}};X.styles=[Fn,Un,$n,Hn,Bn,jn,Vn,qn,zn,Kn,Wn];Gn([(0,br.property)()],X.prototype,"element",void 0);Gn([(0,br.property)()],X.prototype,"variant",void 0);var Xn=y(b());var Yn={"ft-typography":X};(0,Xn.customElements)(Yn);var zr=y(q());var Jn=y(q(),1);var _r=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Eo=e=>({fromAttribute:t=>{if(t==null)return Ye(e);try{return JSON.parse(t)}catch{return Ye(e)}},toAttribute:t=>JSON.stringify(t)});function Zn(e,t){return(0,Jn.property)({type:Object,converter:Eo(e),hasChanged:Xe,...t??{}})}function Ao(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(!Me(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(!Me(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Me(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Me(e,t){try{return Ao(e,t)}catch{return!1}}function Xe(e,t){return!Me(e,t)}function Ye(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function ft(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var es=y(q(),1);var Cr=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:Xe,attribute:!1,...t};(0,es.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var yt=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 Ee=y(q(),1);var mt=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 s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var St=y(Q(),1);var gt=class extends St.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(0,St.adoptStyles)(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){_r(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 ts(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Le=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},is,rs=Symbol("constructorPrototype"),ns=Symbol("constructorName"),os=Symbol("exportpartsDebouncer"),ss=Symbol("dynamicDependenciesLoaded"),Ne=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ne.eventName="exportparts-updated";var W=class extends gt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[is]=new mt(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[os].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ns]=this.constructor.name,this[rs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ns]&&Object.setPrototypeOf(this,this[rs])}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[ss]||(r[ss]=!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:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=ts(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=h=>h!=null&&h.trim().length>0,l=t.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],E=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],I=[...g,...E].filter(c).map(v=>v.trim());for(let v of I)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(g=>`${h}:${g}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};is=os;Le([(0,Ee.property)()],W.prototype,"exportpartsPrefix",void 0);Le([Zn([])],W.prototype,"exportpartsPrefixes",void 0);Le([(0,Ee.property)({reflect:!0})],W.prototype,"exportparts",void 0);Le([(0,Ee.property)()],W.prototype,"customStylesheet",void 0);Le([(0,Ee.property)()],W.prototype,"elementToFocus",void 0);Le([(0,Ee.state)()],W.prototype,"useAdoptedStyleSheets",void 0);function vt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Je=Symbol("internalReduxEventsUnsubscribers"),ne=Symbol("internalStoresUnsubscribers"),Ae=Symbol("internalStores"),xo=ft(Symbol("withRedux"),function(e){var t,r,n;class s 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[Ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ae].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ae].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Ae].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ae].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ae].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 l=this.getStore(o.store);l&&(o.store?this[ne].has(o.store):this[ne].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c;this[ne].set(o,a.subscribe(()=>this.updateFromStores())),this[Je].set(o,[]),vt(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||a.name===l.store)){let d=h=>this[u](h);a.addEventListener(l.eventName,d),this[Je].get(o).push(()=>a.removeEventListener(l.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ne].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ne].has(o)&&this[ne].get(o)(),this[ne].delete(o),(a=this[Je].get(o))===null||a===void 0||a.forEach(c=>c()),this[Je].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ne,r=Ae,n=Je,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),as=class extends xo(W){};function D(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 bo=typeof Symbol=="function"&&Symbol.observable||"@@observable",cs=bo,wr=()=>Math.random().toString(36).substring(7).split("").join("."),_o={INIT:`@@redux/INIT${wr()}`,REPLACE:`@@redux/REPLACE${wr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wr()}`},Et=_o;function At(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Tr(e,t,r){if(typeof e!="function")throw new Error(D(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(D(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(D(1));return r(Tr)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((v,k)=>{o.set(k,v)}))}function u(){if(c)throw new Error(D(3));return s}function d(v){if(typeof v!="function")throw new Error(D(4));if(c)throw new Error(D(5));let k=!0;l();let F=a++;return o.set(F,v),function(){if(k){if(c)throw new Error(D(6));k=!1,l(),o.delete(F),i=null}}}function h(v){if(!At(v))throw new Error(D(7));if(typeof v.type>"u")throw new Error(D(8));if(typeof v.type!="string")throw new Error(D(17));if(c)throw new Error(D(9));try{c=!0,s=n(s,v)}finally{c=!1}return(i=o).forEach(F=>{F()}),v}function g(v){if(typeof v!="function")throw new Error(D(10));n=v,h({type:Et.REPLACE})}function E(){let v=d;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(D(11));function F(){let A=k;A.next&&A.next(u())}return F(),{unsubscribe:v(F)}},[cs](){return this}}}return h({type:Et.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:g,[cs]:E}}function Co(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Et.INIT})>"u")throw new Error(D(12));if(typeof r(void 0,{type:Et.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(D(13))})}function ls(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{Co(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let h=n[d],g=r[h],E=a[h],I=g(E,c);if(typeof I>"u"){let v=c&&c.type;throw new Error(D(14))}u[h]=I,l=l||I!==E}return l=l||n.length!==Object.keys(a).length,l?u:a}}function Ze(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function us(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(D(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=Ze(...a)(s.dispatch),{...s,dispatch:i}}}function ds(e){return At(e)&&"type"in e&&typeof e.type=="string"}var Es=Symbol.for("immer-nothing"),ps=Symbol.for("immer-draftable"),M=Symbol.for("immer-state");function z(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var U=Object,Fe=U.getPrototypeOf,Ct="constructor",kt="prototype",kr="configurable",wt="enumerable",bt="writable",et="value",G=e=>!!e&&!!e[M];function $(e){return e?As(e)||Mt(e)||!!e[ps]||!!e[Ct]?.[ps]||Nt(e)||Lt(e):!1}var wo=U[kt][Ct].toString(),hs=new WeakMap;function As(e){if(!e||!$r(e))return!1;let t=Fe(e);if(t===null||t===U[kt])return!0;let r=U.hasOwnProperty.call(t,Ct)&&t[Ct];if(r===Object)return!0;if(!Pe(r))return!1;let n=hs.get(r);return n===void 0&&(n=Function.toString.call(r),hs.set(r,n)),n===wo}function Dt(e,t,r=!0){nt(e)===0?(r?Reflect.ownKeys(e):U.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function nt(e){let t=e[M];return t?t.type_:Mt(e)?1:Nt(e)?2:Lt(e)?3:0}var Or=(e,t,r=nt(e))=>r===2?e.has(t):U[kt].hasOwnProperty.call(e,t),Dr=(e,t,r=nt(e))=>r===2?e.get(t):e[t],Tt=(e,t,r,n=nt(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function To(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Mt=Array.isArray,Nt=e=>e instanceof Map,Lt=e=>e instanceof Set,$r=e=>typeof e=="object",Pe=e=>typeof e=="function",Rr=e=>typeof e=="boolean";function Oo(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var J=e=>e.copy_||e.base_;var Hr=e=>e.modified_?e.copy_:e.base_;function Mr(e,t){if(Nt(e))return new Map(e);if(Lt(e))return new Set(e);if(Mt(e))return Array[kt].slice.call(e);let r=As(e);if(t===!0||t==="class_only"&&!r){let n=U.getOwnPropertyDescriptors(e);delete n[M];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[bt]===!1&&(a[bt]=!0,a[kr]=!0),(a.get||a.set)&&(n[o]={[kr]:!0,[bt]:!0,[wt]:a[wt],[et]:e[o]})}return U.create(Fe(e),n)}else{let n=Fe(e);if(n!==null&&r)return{...e};let s=U.create(n);return U.assign(s,e)}}function Br(e,t=!1){return Pt(e)||G(e)||!$(e)||(nt(e)>1&&U.defineProperties(e,{set:xt,add:xt,clear:xt,delete:xt}),U.freeze(e),t&&Dt(e,(r,n)=>{Br(n,!0)},!1)),e}function Ro(){z(2)}var xt={[et]:Ro};function Pt(e){return e===null||!$r(e)?!0:U.isFrozen(e)}var Ot="MapSet",Nr="Patches",fs="ArrayMethods",xs={};function xe(e){let t=xs[e];return t||z(0,e),t}var ys=e=>!!xs[e];var tt,bs=()=>tt,Io=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ys(Ot)?xe(Ot):void 0,arrayMethodsPlugin_:ys(fs)?xe(fs):void 0});function ms(e,t){t&&(e.patchPlugin_=xe(Nr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lr(e){Pr(e),e.drafts_.forEach(ko),e.drafts_=null}function Pr(e){e===tt&&(tt=e.parent_)}var gs=e=>tt=Io(tt,e);function ko(e){let t=e[M];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ss(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[M].modified_&&(Lr(t),z(4)),$(e)&&(e=vs(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[M].base_,e,t)}else e=vs(t,r);return Do(t,e,!0),Lr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Es?e:void 0}function vs(e,t){if(Pt(t))return t;let r=t[M];if(!r)return Rt(t,e.handledSet_,e);if(!Ft(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);ws(r,e)}return r.copy_}function Do(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Br(t,r)}function _s(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ft=(e,t)=>e.scope_===t,Mo=[];function Cs(e,t,r,n){let s=J(e),i=e.type_;if(n!==void 0&&Dr(s,n,i)===t){Tt(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Dt(s,(c,l)=>{if(G(l)){let u=a.get(l)||[];u.push(c),a.set(l,u)}})}let o=e.draftLocations_.get(t)??Mo;for(let a of o)Tt(s,a,r,i)}function No(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Ft(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=Hr(i);Cs(e,i.draft_??i,o,r),ws(i,s)})}function ws(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}_s(e)}}function Lo(e,t,r){let{scope_:n}=e;if(G(r)){let s=r[M];Ft(s,n)&&s.callbacks_.push(function(){_t(e);let o=Hr(s);Cs(e,r,o,t)})}else $(r)&&e.callbacks_.push(function(){let i=J(e);e.type_===3?i.has(r)&&Rt(r,n.handledSet_,n):Dr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Rt(Dr(e.copy_,t,e.type_),n.handledSet_,n)})}function Rt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||G(e)||t.has(e)||!$(e)||Pt(e)||(t.add(e),Dt(e,(n,s)=>{if(G(s)){let i=s[M];if(Ft(i,r)){let o=Hr(i);Tt(e,n,o,e.type_),_s(i)}}else $(s)&&Rt(s,t,r)})),e}function Po(e,t){let r=Mt(e),n={type_:r?1:0,scope_:t?t.scope_:bs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=It;r&&(s=[n],i=rt);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var It={get(e,t){if(t===M)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=J(e);if(!Or(s,t,e.type_))return Uo(e,s,t);let i=s[t];if(e.finalized_||!$(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Oo(t))return i;if(i===Ir(e.base_,t)||Fo(e,t,i)){_t(e);let o=e.type_===1?+t:t,a=Ur(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in J(e)},ownKeys(e){return Reflect.ownKeys(J(e))},set(e,t,r){let n=Ts(J(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Ir(J(e),t),i=s?.[M];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(To(r,s)&&(r!==void 0||Or(e.base_,t,e.type_)))return!0;_t(e),Fr(e)}return e.copy_[t]===r&&(r!==void 0||Or(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Lo(e,t,r)),!0},deleteProperty(e,t){return _t(e),Ir(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Fr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=J(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[bt]:!0,[kr]:e.type_!==1||t!=="length",[wt]:n[wt],[et]:r[t]}},defineProperty(){z(11)},getPrototypeOf(e){return Fe(e.base_)},setPrototypeOf(){z(12)}},rt={};for(let e in It){let t=It[e];rt[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}rt.deleteProperty=function(e,t){return rt.set.call(this,e,t,void 0)};rt.set=function(e,t,r){return It.set.call(this,e[0],t,r,e[0])};function Ir(e,t){let r=e[M];return(r?J(r):e)[t]}function Fo(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(r)||r[M]?!1:e.baseRefs_.has(r)}function Uo(e,t,r){let n=Ts(t,r);return n?et in n?n[et]:n.get?.call(e.draft_):void 0}function Ts(e,t){if(!(t in e))return;let r=Fe(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Fe(r)}}function Fr(e){e.modified_||(e.modified_=!0,e.parent_&&Fr(e.parent_))}function _t(e){e.copy_||(e.assigned_=new Map,e.copy_=Mr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var $o=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Pe(t)&&!Pe(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,u=>r.call(this,u,...l))}}Pe(r)||z(6),n!==void 0&&!Pe(n)&&z(7);let s;if($(t)){let i=gs(this),o=Ur(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Lr(i):Pr(i)}return ms(i,n),Ss(s,i)}else if(!t||!$r(t)){if(s=r(t),s===void 0&&(s=t),s===Es&&(s=void 0),this.autoFreeze_&&Br(s,!0),n){let i=[],o=[];xe(Nr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else z(1,t)},this.produceWithPatches=(t,r)=>{if(Pe(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},Rr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Rr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Rr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||z(8),G(e)&&(e=Os(e));let t=gs(this),r=Ur(t,e,void 0);return r[M].isManual_=!0,Pr(t),r}finishDraft(e,t){let r=e&&e[M];(!r||!r.isManual_)&&z(9);let{scope_:n}=r;return ms(n,t),Ss(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=xe(Nr).applyPatches_;return G(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Ur(e,t,r,n){let[s,i]=Nt(t)?xe(Ot).proxyMap_(t,r):Lt(t)?xe(Ot).proxySet_(t,r):Po(t,r);return(r?.scope_??bs()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?No(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function Os(e){return G(e)||z(10,e),Rs(e)}function Rs(e){if(!$(e)||Pt(e))return e;let t=e[M],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Mr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Mr(e,!0);return Dt(r,(s,i)=>{Tt(r,s,Rs(i))},n),t&&(t.finalized_=!1),r}var Ho=globalThis.Iterator,Rc=typeof Ho?.from=="function";var Bo=new $o,jr=Bo.produce;function Is(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var ks=Is(),Ds=Is;var jo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)},Pc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Vo=e=>e&&typeof e.match=="function";function se(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(Z(0));return{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=()=>`${e}`,r.type=e,r.match=n=>ds(n)&&n.type===e,r}var Fs=class st extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,st.prototype)}static get[Symbol.species](){return st}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new st(...t[0].concat(this)):new st(...t.concat(this))}};function Ms(e){return $(e)?jr(e,()=>{}):e}function Ut(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function qo(e){return typeof e=="boolean"}var zo=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Fs;return r&&(qo(r)?o.push(ks):o.push(Ds(r.extraArgument))),o},Ko="RTK_autoBatch";var Ns=e=>t=>{setTimeout(t,e)},Wo=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(o),r())},i=e(s),o=setTimeout(s,t)},Go=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Wo(window.requestAnimationFrame,100):Ns(10):e.type==="callback"?e.queueNotification:Ns(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),h=n.subscribe(d);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ko],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Qo=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Fs(e);return n&&s.push(Go(typeof n=="object"?n:void 0)),s};function Us(e){let t=zo(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(At(r))c=ls(r);else throw new Error(Z(1));let l;typeof n=="function"?l=n(t):l=t();let u=Ze;s&&(u=jo({trace:!1,...typeof s=="object"&&s}));let d=us(...l),h=Qo(d),g=typeof a=="function"?a(h):h(),E=u(...g);return Tr(c,o,E)}function $s(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(Z(28));if(a in t)throw new Error(Z(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Yo(e){return typeof e=="function"}function Xo(e,t){let[r,n,s]=$s(t),i;if(Yo(e))i=()=>Ms(e());else{let a=Ms(e);i=()=>a}function o(a=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(G(u)){let g=d(u,c);return g===void 0?u:g}else{if($(u))return jr(u,h=>d(h,c));{let h=d(u,c);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},a)}return o.getInitialState=i,o}var Jo=(e,t)=>Vo(e)?e.match(t):e(t);function Zo(...e){return t=>e.some(r=>Jo(r,t))}var ea="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ta=(e=21)=>{let t="",r=e;for(;r--;)t+=ea[Math.random()*64|0];return t},ra=["name","message","stack","code"],Vr=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ls=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},na=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of ra)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ps="External signal was aborted",sa=(()=>{function e(t,r,n){let s=se(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=se(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),o=se(t+"/rejected",(c,l,u,d,h)=>({payload:d,error:(n&&n.serializeError||na)(c||"Rejected"),meta:{...h||{},arg:u,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function a(c,{signal:l}={}){return(u,d,h)=>{let g=n?.idGenerator?n.idGenerator(c):ta(),E=new AbortController,I,v;function k(S){v=S,E.abort()}l&&(l.aborted?k(Ps):l.addEventListener("abort",()=>k(Ps),{once:!0}));let F=(async function(){let S;try{let x=n?.condition?.(c,{getState:d,extra:h});if(oa(x)&&(x=await x),x===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let K=new Promise((C,T)=>{I=()=>{T({name:"AbortError",message:v||"Aborted"})},E.signal.addEventListener("abort",I,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:d,extra:h}))),S=await Promise.race([K,Promise.resolve(r(c,{dispatch:u,getState:d,extra:h,requestId:g,signal:E.signal,abort:k,rejectWithValue:((C,T)=>new Vr(C,T)),fulfillWithValue:((C,T)=>new Ls(C,T))})).then(C=>{if(C instanceof Vr)throw C;return C instanceof Ls?s(C.payload,g,c,C.meta):s(C,g,c)})])}catch(x){S=x instanceof Vr?o(null,g,c,x.payload,x.meta):o(x,g,c)}finally{I&&E.signal.removeEventListener("abort",I)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(F,{abort:k,requestId:g,arg:c,unwrap(){return F.then(ia)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:Zo(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ia(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function oa(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Hs=Symbol.for("rtk-slice-createasyncthunk"),Uc={[Hs]:sa};function aa(e,t){return`${e}/${t}`}function ca({creators:e}={}){let t=e?.asyncThunk?.[Hs];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Z(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(ua()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(S,A){let x=typeof S=="string"?S:S.type;if(!x)throw new Error(Z(12));if(x in c.sliceCaseReducersByType)throw new Error(Z(13));return c.sliceCaseReducersByType[x]=A,l},addMatcher(S,A){return c.sliceMatchers.push({matcher:S,reducer:A}),l},exposeAction(S,A){return c.actionCreators[S]=A,l},exposeCaseReducer(S,A){return c.sliceCaseReducersByName[S]=A,l}};a.forEach(S=>{let A=o[S],x={reducerName:S,type:aa(s,S),createNotation:typeof n.reducers=="function"};pa(A)?fa(x,A,l,t):da(x,A,l)});function u(){let[S={},A=[],x=void 0]=typeof n.extraReducers=="function"?$s(n.extraReducers):[n.extraReducers],K={...S,...c.sliceCaseReducersByType};return Xo(n.initialState,C=>{for(let T in K)C.addCase(T,K[T]);for(let T of c.sliceMatchers)C.addMatcher(T.matcher,T.reducer);for(let T of A)C.addMatcher(T.matcher,T.reducer);x&&C.addDefaultCase(x)})}let d=S=>S,h=new Map,g=new WeakMap,E;function I(S,A){return E||(E=u()),E(S,A)}function v(){return E||(E=u()),E.getInitialState()}function k(S,A=!1){function x(C){let T=C[S];return typeof T>"u"&&A&&(T=Ut(g,x,v)),T}function K(C=d){let T=Ut(h,A,()=>new WeakMap);return Ut(T,C,()=>{let hn={};for(let[oo,ao]of Object.entries(n.selectors??{}))hn[oo]=la(ao,C,()=>Ut(g,C,v),A);return hn})}return{reducerPath:S,getSelectors:K,get selectors(){return K(x)},selectSlice:x}}let F={name:s,reducer:I,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...k(i),injectInto(S,{reducerPath:A,...x}={}){let K=A??i;return S.inject({reducerPath:K,reducer:I},x),{...F,...k(K,!0)}}};return F}}function la(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Bs=ca();function ua(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function da({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!ha(n))throw new Error(Z(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?se(e,o):se(e))}function pa(e){return e._reducerDefinitionType==="asyncThunk"}function ha(e){return e._reducerDefinitionType==="reducerWithPrepare"}function fa({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Z(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||$t,pending:a||$t,rejected:c||$t,settled:l||$t})}function $t(){}var js="listener",Vs="completed",qs="cancelled",$c=`task-${qs}`,Hc=`task-${Vs}`,Bc=`${js}-${qs}`,jc=`${js}-${Vs}`;var{assign:zs}=Object;var qr="listenerMiddleware";var ya=zs(se(`${qr}/add`),{withTypes:()=>ya}),Vc=se(`${qr}/removeAll`),ma=zs(se(`${qr}/remove`),{withTypes:()=>ma});function Z(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ga=ft(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Ht=class extends ga(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class e extends Ht{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(vt(i))return i;if(s==null)return;let o=Bs({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Us({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ye(o.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new yt,this.injectInto=(i,o)=>this.reduxSlice.injectInto(i,o),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,o,a)=>{let c=o,l=i[c];return l?(...u)=>{let d=l(...u.map(s));return this.reduxStore.dispatch(d),d}:u=>{let d=c,h=this.getState()[d];Me(h,u)||this.setState({[d]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Bt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){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 i?c:s?`${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 jt=y(b()),Sa="ft-app-info",ie=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ie.eventName="authentication-change";var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};it.eventName="ui-locale-changed";var va={session:(e,t)=>{(0,jt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new ie(t.payload)),0))}},m=jt.FtReduxStore.get({name:Sa,reducers:va,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ws=y(b()),Vt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},vl=(0,Ws.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(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>Bt.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vt([(0,zr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Vt([(0,zr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Vt([Cr({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Vt([Cr({store:m.name})],t.prototype,"uiLocale",void 0),t});var Gs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gs||(Gs={}));var Qs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Qs||(Qs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(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"})(Xs||(Xs={}));var Js;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Js||(Js={}));var Zs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Zs||(Zs={}));var ei;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(ei||(ei={}));var ti;(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"})(ti||(ti={}));var ri;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ri||(ri={}));var ni;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ni||(ni={}));var si;(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"})(si||(si={}));var ii;(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"})(ii||(ii={}));var oi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(oi||(oi={}));var ai;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ai||(ai={}));var ci;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ci||(ci={}));var li;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(li||(li={}));var ui;(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"})(ui||(ui={}));var Kr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Kr||(Kr={}));var di;(function(e){e.ASC="ASC",e.DESC="DESC"})(di||(di={}));var pi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(pi||(pi={}));var Wr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Wr||(Wr={}));var hi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(hi||(hi={}));var fi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fi||(fi={}));var yi;(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"})(yi||(yi={}));var mi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(mi||(mi={}));var gi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(gi||(gi={}));var Gr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Gr||(Gr={}));var Si;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Si||(Si={}));var w;(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"})(w||(w={}));var B;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(B||(B={}));var vi;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(vi||(vi={}));var Ei;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ei||(Ei={}));var Ai;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ai||(Ai={}));var xi;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(xi||(xi={}));var bi;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(bi||(bi={}));var _i;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(_i||(_i={}));var Ci;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ci||(Ci={}));var wi;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wi||(wi={}));var Ti;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Ti||(Ti={}));var Oi;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Oi||(Oi={}));var Ri;(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"})(Ri||(Ri={}));var Ii;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ii||(Ii={}));var Ea={[w.PERSONAL_BOOK_SHARE_USER]:[w.PERSONAL_BOOK_USER],[w.HTML_EXPORT_USER]:[w.PERSONAL_BOOK_USER],[w.PDF_EXPORT_USER]:[w.PERSONAL_BOOK_USER],[w.KHUB_ADMIN]:[w.CONTENT_PUBLISHER],[w.ADMIN]:[w.KHUB_ADMIN,w.USERS_ADMIN,w.PORTAL_ADMIN,w.BEHAVIOR_DATA_USER],[w.GENERATIVE_AI_EXPORT_USER]:[w.GENERATIVE_AI_USER]};function ki(e,t){return e===t||(Ea[e]??[]).some(r=>ki(r,t))}function qt(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=>ki(n,t))}function Di(e,...t){return e==null?!1:t.some(r=>qt(e,r))}var Qt=y(b());var Qr=y(b());var be=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):be.await()}};var P=class extends Ue{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Qr.CacheRegistry,this.cache=t?s.commonCache:new Qr.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 zt=class extends P{async listMySearches(){let{session:t}=m.getState();return qt(t,w.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Kt=class extends P{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Wt=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var Gt=class extends P{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=m.getState().session;return!!t?.sessionAuthenticated}};var Aa="ft-user-assets",xa={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(B).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:s}=t.payload;Xr(e,r,[...Yr(e,r),s]),Mi(e,r,1,n),Ni(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Xr(e,r,Yr(e,r).map(s=>s.id===n.id?n:s)),Ni(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Xr(e,r,Yr(e,r).filter(i=>i.id!==s)),Mi(e,r,-1,n)}},Li={[B.SEARCHES]:"savedSearches",[B.BOOKMARKS]:"bookmarks",[B.BOOKS]:void 0,[B.COLLECTIONS]:void 0},Yr=(e,t)=>{var r;let n=Li[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Xr=(e,t,r)=>{let n=Li[t];n&&(e[n]=r)},Mi=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===B.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Ni=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},N=Qt.FtReduxStore.get({name:Aa,reducers:xa,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(B).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Jr=class{constructor(t=new Wt,r=new Gt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kt,this.savedSearchesService=new zt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Qt.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===B.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)}}},ba=new Jr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ba);var Zr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Zr;var j=y(b());var Pi,$e=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},_a=Symbol("clearAfterUnitTest"),Yt=class extends(0,j.withEventBus)(P){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Pi]=()=>{this.defaultMessages={},this.cache=new j.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.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 s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,j.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,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 s;let i=t.toLowerCase(),o=this.resolveContext(i);return new j.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},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(s){!(s instanceof j.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new $e({loadedContexts:t})),this.dispatchEvent(new $e({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new $e({loadedContexts:[t]})),this.dispatchEvent(new $e({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,j.delay)(0).then(()=>n()).catch(()=>null)))}};Pi=_a;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Yt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Yt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var He=window.FluidTopicsI18nService,Xt=window.FluidTopicsCustomI18nService;var Fi=y(b()),en=class{highlightHtml(t,r,n){(0,Fi.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new en;var Ui=y(b());var tn=class{isDate(t){var r,n,s,i;return(i=(n=((s=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return Ui.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!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 tn;var $i=y(b());var _e=class{static get(t,r){var n,s,i,o;let a=m.getState(),{lang:c,region:l}=(o=(s=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new $i.SearchPlaceConverter(a.baseUrl,t??20,(i=a.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed,r??`${c}-${l}`)}};var rn=class{urlToSearchRequest(t){return _e.get().parse(t)}searchRequestToUrl(t){return _e.get().serialize(t)}};window.FluidTopicsUrlService=new rn;var ee=y(b());var Ce=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Ce.eventName="before-location-change";var we=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};we.eventName="change";var nn=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))}},Hi=new nn;var Jt=class e extends ee.WithEventBus{static build(){return new e(window.history,Hi,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,ee.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new we(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=new Ce(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:c.detail.nextLocation.href};n.apply(s,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Ce.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Ce.eventName,t)}addHistoryChangeListener(t){this.addEventListener(we.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(we.eventName,t)}currentItem(){return(0,ee.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,ee.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ee.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,ee.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 s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}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 s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Jt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Bi=y(Q());var ji=Bi.css`
|
|
133
|
-
`;var
|
|
132
|
+
`}};J.styles=[Fn,Un,$n,Hn,Bn,jn,Vn,qn,zn,Kn,Wn];Gn([(0,_r.property)()],J.prototype,"element",void 0);Gn([(0,_r.property)()],J.prototype,"variant",void 0);var Xn=y(x());var Yn={"ft-typography":J};(0,Xn.customElements)(Yn);var Kr=y(z());var Jn=y(z(),1);var Cr=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},Eo=e=>({fromAttribute:t=>{if(t==null)return Ye(e);try{return JSON.parse(t)}catch{return Ye(e)}},toAttribute:t=>JSON.stringify(t)});function Zn(e,t){return(0,Jn.property)({type:Object,converter:Eo(e),hasChanged:Xe,...t??{}})}function vo(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(!Ne(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(!Ne(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 s=o=>Object.keys(o).filter(a=>o[a]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Ne(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ne(e,t){try{return vo(e,t)}catch{return!1}}function Xe(e,t){return!Ne(e,t)}function Ye(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function ft(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var es=y(z(),1);var wr=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:Xe,attribute:!1,...t};(0,es.property)(i)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(a=>a[n]),store:t.store})}};var yt=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 ve=y(z(),1);var mt=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 s=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),i=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){s(a);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var St=y(Y(),1);var gt=class extends St.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(0,St.adoptStyles)(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){Cr(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 ts(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Le=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},is,rs=Symbol("constructorPrototype"),ns=Symbol("constructorName"),os=Symbol("exportpartsDebouncer"),ss=Symbol("dynamicDependenciesLoaded"),Me=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Me.eventName="exportparts-updated";var W=class extends gt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[is]=new mt(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[os].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ns]=this.constructor.name,this[rs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ns]&&Object.setPrototypeOf(this,this[rs])}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[ss]||(r[ss]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Me.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Me.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 Me)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=ts(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,s,i,o,a;let c=h=>h!=null&&h.trim().length>0,l=t.filter(c).map(h=>h.trim());if(l.length===0){this.exportparts=void 0;return}let u=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],A=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],O=[...g,...A].filter(c).map(v=>v.trim());for(let v of O)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(h=>l.map(g=>`${h}:${g}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};is=os;Le([(0,ve.property)()],W.prototype,"exportpartsPrefix",void 0);Le([Zn([])],W.prototype,"exportpartsPrefixes",void 0);Le([(0,ve.property)({reflect:!0})],W.prototype,"exportparts",void 0);Le([(0,ve.property)()],W.prototype,"customStylesheet",void 0);Le([(0,ve.property)()],W.prototype,"elementToFocus",void 0);Le([(0,ve.state)()],W.prototype,"useAdoptedStyleSheets",void 0);function Et(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Je=Symbol("internalReduxEventsUnsubscribers"),ne=Symbol("internalStoresUnsubscribers"),Ae=Symbol("internalStores"),Ao=ft(Symbol("withRedux"),function(e){var t,r,n;class s 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[Ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ae].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ae].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[Ae].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ae].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ae].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 l=this.getStore(o.store);l&&(o.store?this[ne].has(o.store):this[ne].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c,l;this[ne].set(o,a.subscribe(()=>this.updateFromStores())),this[Je].set(o,[]),Et(a)&&(!((c=a.deprecatedKeys)===null||c===void 0)&&c.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let h=g=>this[d](g);a.addEventListener(u.eventName,h),this[Je].get(o).push(()=>a.removeEventListener(u.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ne].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ne].has(o)&&this[ne].get(o)(),this[ne].delete(o),(a=this[Je].get(o))===null||a===void 0||a.forEach(c=>c()),this[Je].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ne,r=Ae,n=Je,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),as=class extends Ao(W){};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 xo=typeof Symbol=="function"&&Symbol.observable||"@@observable",cs=xo,Tr=()=>Math.random().toString(36).substring(7).split("").join("."),bo={INIT:`@@redux/INIT${Tr()}`,REPLACE:`@@redux/REPLACE${Tr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tr()}`},vt=bo;function At(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Or(e,t,r){if(typeof e!="function")throw new Error(k(2));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(Or)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((v,R)=>{o.set(R,v)}))}function u(){if(c)throw new Error(k(3));return s}function d(v){if(typeof v!="function")throw new Error(k(4));if(c)throw new Error(k(5));let R=!0;l();let U=a++;return o.set(U,v),function(){if(R){if(c)throw new Error(k(6));R=!1,l(),o.delete(U),i=null}}}function h(v){if(!At(v))throw new Error(k(7));if(typeof v.type>"u")throw new Error(k(8));if(typeof v.type!="string")throw new Error(k(17));if(c)throw new Error(k(9));try{c=!0,s=n(s,v)}finally{c=!1}return(i=o).forEach(U=>{U()}),v}function g(v){if(typeof v!="function")throw new Error(k(10));n=v,h({type:vt.REPLACE})}function A(){let v=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(k(11));function U(){let E=R;E.next&&E.next(u())}return U(),{unsubscribe:v(U)}},[cs](){return this}}}return h({type:vt.INIT}),{dispatch:h,subscribe:d,getState:u,replaceReducer:g,[cs]:A}}function _o(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:vt.INIT})>"u")throw new Error(k(12));if(typeof r(void 0,{type:vt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(k(13))})}function Rr(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),s,i;try{_o(r)}catch(o){i=o}return function(a={},c){if(i)throw i;let l=!1,u={};for(let d=0;d<n.length;d++){let h=n[d],g=r[h],A=a[h],O=g(A,c);if(typeof O>"u"){let v=c&&c.type;throw new Error(k(14))}u[h]=O,l=l||O!==A}return l=l||n.length!==Object.keys(a).length,l?u:a}}function Ze(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ls(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(k(15))},o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=e.map(c=>c(o));return i=Ze(...a)(s.dispatch),{...s,dispatch:i}}}function us(e){return At(e)&&"type"in e&&typeof e.type=="string"}var Es=Symbol.for("immer-nothing"),ds=Symbol.for("immer-draftable"),N=Symbol.for("immer-state");function K(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $=Object,Fe=$.getPrototypeOf,Ct="constructor",kt="prototype",Nr="configurable",wt="enumerable",bt="writable",et="value",G=e=>!!e&&!!e[N];function H(e){return e?vs(e)||Nt(e)||!!e[ds]||!!e[Ct]?.[ds]||Mt(e)||Lt(e):!1}var Co=$[kt][Ct].toString(),ps=new WeakMap;function vs(e){if(!e||!Br(e))return!1;let t=Fe(e);if(t===null||t===$[kt])return!0;let r=$.hasOwnProperty.call(t,Ct)&&t[Ct];if(r===Object)return!0;if(!Pe(r))return!1;let n=ps.get(r);return n===void 0&&(n=Function.toString.call(r),ps.set(r,n)),n===Co}function Dt(e,t,r=!0){nt(e)===0?(r?Reflect.ownKeys(e):$.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function nt(e){let t=e[N];return t?t.type_:Nt(e)?1:Mt(e)?2:Lt(e)?3:0}var Ir=(e,t,r=nt(e))=>r===2?e.has(t):$[kt].hasOwnProperty.call(e,t),Mr=(e,t,r=nt(e))=>r===2?e.get(t):e[t],Tt=(e,t,r,n=nt(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function wo(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Nt=Array.isArray,Mt=e=>e instanceof Map,Lt=e=>e instanceof Set,Br=e=>typeof e=="object",Pe=e=>typeof e=="function",kr=e=>typeof e=="boolean";function To(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Z=e=>e.copy_||e.base_;var jr=e=>e.modified_?e.copy_:e.base_;function Lr(e,t){if(Mt(e))return new Map(e);if(Lt(e))return new Set(e);if(Nt(e))return Array[kt].slice.call(e);let r=vs(e);if(t===!0||t==="class_only"&&!r){let n=$.getOwnPropertyDescriptors(e);delete n[N];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let o=s[i],a=n[o];a[bt]===!1&&(a[bt]=!0,a[Nr]=!0),(a.get||a.set)&&(n[o]={[Nr]:!0,[bt]:!0,[wt]:a[wt],[et]:e[o]})}return $.create(Fe(e),n)}else{let n=Fe(e);if(n!==null&&r)return{...e};let s=$.create(n);return $.assign(s,e)}}function Pt(e,t=!1){return Ft(e)||G(e)||!H(e)||(nt(e)>1&&$.defineProperties(e,{set:xt,add:xt,clear:xt,delete:xt}),$.freeze(e),t&&Dt(e,(r,n)=>{Pt(n,!0)},!1)),e}function Oo(){K(2)}var xt={[et]:Oo};function Ft(e){return e===null||!Br(e)?!0:$.isFrozen(e)}var Ot="MapSet",Pr="Patches",hs="ArrayMethods",As={};function xe(e){let t=As[e];return t||K(0,e),t}var fs=e=>!!As[e];var tt,xs=()=>tt,Ro=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:fs(Ot)?xe(Ot):void 0,arrayMethodsPlugin_:fs(hs)?xe(hs):void 0});function ys(e,t){t&&(e.patchPlugin_=xe(Pr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fr(e){Ur(e),e.drafts_.forEach(Io),e.drafts_=null}function Ur(e){e===tt&&(tt=e.parent_)}var ms=e=>tt=Ro(tt,e);function Io(e){let t=e[N];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function gs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[N].modified_&&(Fr(t),K(4)),H(e)&&(e=Ss(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[N].base_,e,t)}else e=Ss(t,r);return ko(t,e,!0),Fr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Es?e:void 0}function Ss(e,t){if(Ft(t))return t;let r=t[N];if(!r)return Rt(t,e.handledSet_,e);if(!Ut(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Cs(r,e)}return r.copy_}function ko(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Pt(t,r)}function bs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ut=(e,t)=>e.scope_===t,Do=[];function _s(e,t,r,n){let s=Z(e),i=e.type_;if(n!==void 0&&Mr(s,n,i)===t){Tt(s,n,r,i);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Dt(s,(c,l)=>{if(G(l)){let u=a.get(l)||[];u.push(c),a.set(l,u)}})}let o=e.draftLocations_.get(t)??Do;for(let a of o)Tt(s,a,r,i)}function No(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!Ut(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let o=jr(i);_s(e,i.draft_??i,o,r),Cs(i,s)})}function Cs(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}bs(e)}}function Mo(e,t,r){let{scope_:n}=e;if(G(r)){let s=r[N];Ut(s,n)&&s.callbacks_.push(function(){_t(e);let o=jr(s);_s(e,r,o,t)})}else H(r)&&e.callbacks_.push(function(){let i=Z(e);e.type_===3?i.has(r)&&Rt(r,n.handledSet_,n):Mr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Rt(Mr(e.copy_,t,e.type_),n.handledSet_,n)})}function Rt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||G(e)||t.has(e)||!H(e)||Ft(e)||(t.add(e),Dt(e,(n,s)=>{if(G(s)){let i=s[N];if(Ut(i,r)){let o=jr(i);Tt(e,n,o,e.type_),bs(i)}}else H(s)&&Rt(s,t,r)})),e}function Lo(e,t){let r=Nt(e),n={type_:r?1:0,scope_:t?t.scope_:xs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=It;r&&(s=[n],i=rt);let{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var It={get(e,t){if(t===N)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=Z(e);if(!Ir(s,t,e.type_))return Fo(e,s,t);let i=s[t];if(e.finalized_||!H(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&To(t))return i;if(i===Dr(e.base_,t)||Po(e,t,i)){_t(e);let o=e.type_===1?+t:t,a=Hr(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in Z(e)},ownKeys(e){return Reflect.ownKeys(Z(e))},set(e,t,r){let n=ws(Z(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Dr(Z(e),t),i=s?.[N];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(wo(r,s)&&(r!==void 0||Ir(e.base_,t,e.type_)))return!0;_t(e),$r(e)}return e.copy_[t]===r&&(r!==void 0||Ir(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Mo(e,t,r)),!0},deleteProperty(e,t){return _t(e),Dr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),$r(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Z(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[bt]:!0,[Nr]:e.type_!==1||t!=="length",[wt]:n[wt],[et]:r[t]}},defineProperty(){K(11)},getPrototypeOf(e){return Fe(e.base_)},setPrototypeOf(){K(12)}},rt={};for(let e in It){let t=It[e];rt[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}rt.deleteProperty=function(e,t){return rt.set.call(this,e,t,void 0)};rt.set=function(e,t,r){return It.set.call(this,e[0],t,r,e[0])};function Dr(e,t){let r=e[N];return(r?Z(r):e)[t]}function Po(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!H(r)||r[N]?!1:e.baseRefs_.has(r)}function Fo(e,t,r){let n=ws(t,r);return n?et in n?n[et]:n.get?.call(e.draft_):void 0}function ws(e,t){if(!(t in e))return;let r=Fe(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Fe(r)}}function $r(e){e.modified_||(e.modified_=!0,e.parent_&&$r(e.parent_))}function _t(e){e.copy_||(e.assigned_=new Map,e.copy_=Lr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Uo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Pe(t)&&!Pe(r)){let i=r;r=t;let o=this;return function(c=i,...l){return o.produce(c,u=>r.call(this,u,...l))}}Pe(r)||K(6),n!==void 0&&!Pe(n)&&K(7);let s;if(H(t)){let i=ms(this),o=Hr(i,t,void 0),a=!0;try{s=r(o),a=!1}finally{a?Fr(i):Ur(i)}return ys(i,n),gs(s,i)}else if(!t||!Br(t)){if(s=r(t),s===void 0&&(s=t),s===Es&&(s=void 0),this.autoFreeze_&&Pt(s,!0),n){let i=[],o=[];xe(Pr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else K(1,t)},this.produceWithPatches=(t,r)=>{if(Pe(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},kr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),kr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),kr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){H(e)||K(8),G(e)&&(e=Ts(e));let t=ms(this),r=Hr(t,e,void 0);return r[N].isManual_=!0,Ur(t),r}finishDraft(e,t){let r=e&&e[N];(!r||!r.isManual_)&&K(9);let{scope_:n}=r;return ys(n,t),gs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=xe(Pr).applyPatches_;return G(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Hr(e,t,r,n){let[s,i]=Mt(t)?xe(Ot).proxyMap_(t,r):Lt(t)?xe(Ot).proxySet_(t,r):Lo(t,r);return(r?.scope_??xs()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?No(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function Ts(e){return G(e)||K(10,e),Os(e)}function Os(e){if(!H(e)||Ft(e))return e;let t=e[N],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Lr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Lr(e,!0);return Dt(r,(s,i)=>{Tt(r,s,Os(i))},n),t&&(t.finalized_=!1),r}var $o=globalThis.Iterator,Oc=typeof $o?.from=="function";var Ho=new Uo,Vr=Ho.produce;function Rs(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Is=Rs(),ks=Rs;var Bo=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var jo=e=>e&&typeof e.match=="function";function se(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(Q(0));return{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=()=>`${e}`,r.type=e,r.match=n=>us(n)&&n.type===e,r}var Ps=class st extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,st.prototype)}static get[Symbol.species](){return st}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new st(...t[0].concat(this)):new st(...t.concat(this))}};function Ds(e){return H(e)?Vr(e,()=>{}):e}function $t(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vo(e){return typeof e=="boolean"}var qo=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},o=new Ps;return r&&(Vo(r)?o.push(Is):o.push(ks(r.extraArgument))),o},zo="RTK_autoBatch";var Ns=e=>t=>{setTimeout(t,e)},Ko=(e,t)=>r=>{let n=!1,s,i,o=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(i),r())};s=e(o),i=setTimeout(o,t)},Wo=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Ko(window.requestAnimationFrame,100):Ns(10):e.type==="callback"?e.queueNotification:Ns(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>s&&u(),h=n.subscribe(d);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[zo],i=!s,i&&(o||(o=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},Go=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Ps(e);return n&&s.push(Wo(typeof n=="object"?n:void 0)),s};function Fs(e){let t=qo(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(At(r))c=Rr(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=Ze;s&&(u=Bo({trace:!1,...typeof s=="object"&&s}));let d=ls(...l),h=Go(d),g=typeof a=="function"?a(h):h(),A=u(...g);return Or(c,o,A)}function Us(e){let t={},r=[],n,s={addCase(i,o){let a=typeof i=="string"?i:i.type;if(!a)throw new Error(Q(28));if(a in t)throw new Error(Q(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function Qo(e){return typeof e=="function"}function Yo(e,t){let[r,n,s]=Us(t),i;if(Qo(e))i=()=>Ds(e());else{let a=Ds(e);i=()=>a}function o(a=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,d)=>{if(d)if(G(u)){let h=d(u,c);return h===void 0?u:h}else{if(H(u))return Vr(u,h=>d(h,c));{let h=d(u,c);if(h===void 0){if(u===null)return u;throw new Error(Q(9))}return h}}return u},a)}return o.getInitialState=i,o}var Xo=(e,t)=>jo(e)?e.match(t):e(t);function Jo(...e){return t=>e.some(r=>Xo(r,t))}var Zo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ea=(e=21)=>{let t="",r=e;for(;r--;)t+=Zo[Math.random()*64|0];return t},ta=["name","message","stack","code"],qr=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ms=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},ra=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of ta)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ls="External signal was aborted",na=(()=>{function e(t,r,n){let s=se(t+"/fulfilled",(c,l,u,d)=>({payload:c,meta:{...d||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=se(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),o=se(t+"/rejected",(c,l,u,d,h)=>({payload:d,error:(n&&n.serializeError||ra)(c||"Rejected"),meta:{...h||{},arg:u,requestId:l,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function a(c,{signal:l}={}){return(u,d,h)=>{let g=n?.idGenerator?n.idGenerator(c):ea(),A=new AbortController,O,v;function R(S){v=S,A.abort()}l&&(l.aborted?R(Ls):l.addEventListener("abort",()=>R(Ls),{once:!0}));let U=(async function(){let S;try{let E=n?.condition?.(c,{getState:d,extra:h});if(ia(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(A.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let I=new Promise((C,D)=>{O=()=>{D({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",O,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:d,extra:h}))),S=await Promise.race([I,Promise.resolve(r(c,{dispatch:u,getState:d,extra:h,requestId:g,signal:A.signal,abort:R,rejectWithValue:((C,D)=>new qr(C,D)),fulfillWithValue:((C,D)=>new Ms(C,D))})).then(C=>{if(C instanceof qr)throw C;return C instanceof Ms?s(C.payload,g,c,C.meta):s(C,g,c)})])}catch(E){S=E instanceof qr?o(null,g,c,E.payload,E.meta):o(E,g,c)}finally{O&&A.signal.removeEventListener("abort",O)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(U,{abort:R,requestId:g,arg:c,unwrap(){return U.then(sa)}})}}return Object.assign(a,{pending:i,rejected:o,fulfilled:s,settled:Jo(o,s),typePrefix:t})}return e.withTypes=()=>e,e})();function sa(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ia(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var $s=Symbol.for("rtk-slice-createasyncthunk"),Pc={[$s]:na};function oa(e,t){return`${e}/${t}`}function aa({creators:e}={}){let t=e?.asyncThunk?.[$s];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(Q(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(la()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(S,E){let I=typeof S=="string"?S:S.type;if(!I)throw new Error(Q(12));if(I in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[I]=E,l},addMatcher(S,E){return c.sliceMatchers.push({matcher:S,reducer:E}),l},exposeAction(S,E){return c.actionCreators[S]=E,l},exposeCaseReducer(S,E){return c.sliceCaseReducersByName[S]=E,l}};a.forEach(S=>{let E=o[S],I={reducerName:S,type:oa(s,S),createNotation:typeof n.reducers=="function"};da(E)?ha(I,E,l,t):ua(I,E,l)});function u(){let[S={},E=[],I=void 0]=typeof n.extraReducers=="function"?Us(n.extraReducers):[n.extraReducers],C={...S,...c.sliceCaseReducersByType};return Yo(n.initialState,D=>{for(let M in C)D.addCase(M,C[M]);for(let M of c.sliceMatchers)D.addMatcher(M.matcher,M.reducer);for(let M of E)D.addMatcher(M.matcher,M.reducer);I&&D.addDefaultCase(I)})}let d=S=>S,h=new Map,g=new WeakMap,A;function O(S,E){return A||(A=u()),A(S,E)}function v(){return A||(A=u()),A.getInitialState()}function R(S,E=!1){function I(D){let M=D[S];return typeof M>"u"&&E&&(M=$t(g,I,v)),M}function C(D=d){return $t($t(h,E,()=>new WeakMap),D,()=>{let M={};for(let[io,oo]of Object.entries(n.selectors??{}))M[io]=ca(oo,D,()=>$t(g,D,v),E);return M})}return{reducerPath:S,getSelectors:C,get selectors(){return C(I)},selectSlice:I}}let U={name:s,reducer:O,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:v,...R(i),injectInto(S,{reducerPath:E,...I}={}){let C=E??i;return S.inject({reducerPath:C,reducer:O},I),{...U,...R(C,!0)}}};return U}}function ca(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var Hs=aa();function la(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ua({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!pa(n))throw new Error(Q(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?se(e,o):se(e))}function da(e){return e._reducerDefinitionType==="asyncThunk"}function pa(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ha({type:e,reducerName:t},r,n,s){if(!s)throw new Error(Q(18));let{payloadCreator:i,fulfilled:o,pending:a,rejected:c,settled:l,options:u}=r,d=s(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),c&&n.addCase(d.rejected,c),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:o||Ht,pending:a||Ht,rejected:c||Ht,settled:l||Ht})}function Ht(){}var Bs="listener",js="completed",Vs="cancelled",Fc=`task-${Vs}`,Uc=`task-${js}`,$c=`${Bs}-${Vs}`,Hc=`${Bs}-${js}`;var{assign:qs}=Object;var zr="listenerMiddleware";var fa=qs(se(`${zr}/add`),{withTypes:()=>fa}),Bc=se(`${zr}/removeAll`),ya=qs(se(`${zr}/remove`),{withTypes:()=>ya});function Q(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ma=ft(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),Bt=class extends ma(Object){};window.ftReduxStores||(window.ftReduxStores={});var zs=class e extends Bt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Et(i))return i;if(s==null)return;let o=Hs({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Fs({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ye(o.getInitialState());for(let d of l.keeping)u[d]=(c??u)[d];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return o.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(o,a,s.eventBus,s.deprecatedKeys)}constructor(t,r,n,s){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new yt,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,c)=>{let l=a,u=o[l];return u?(...d)=>{let h=u(...d.map(i));return this.reduxStore.dispatch(h),h}:d=>{let h=l,g=this.getState()[h];Ne(g,d)||this.setState({[h]:i(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var jt=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){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 i?c:s?`${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 Vt=y(x()),ga="ft-app-info",ie=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ie.eventName="authentication-change";var it=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};it.eventName="ui-locale-changed";var Sa={session:(e,t)=>{(0,Vt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new ie(t.payload)),0))}},m=Vt.FtReduxStore.get({name:ga,reducers:Sa,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ks=y(x()),qt=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},gl=(0,Ks.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(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(a=>a.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?a=>jt.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return qt([(0,Kr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),qt([(0,Kr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),qt([wr({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),qt([wr({store:m.name})],t.prototype,"uiLocale",void 0),t});var Ws;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Ws||(Ws={}));var Gs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Gs||(Gs={}));var Qs;(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"})(Qs||(Qs={}));var Ys;(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"})(Ys||(Ys={}));var Xs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Xs||(Xs={}));var Js;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Js||(Js={}));var Zs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Zs||(Zs={}));var ei;(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"})(ei||(ei={}));var ti;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(ti||(ti={}));var ri;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ri||(ri={}));var ni;(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"})(ni||(ni={}));var si;(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"})(si||(si={}));var ii;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ii||(ii={}));var oi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(oi||(oi={}));var ai;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ai||(ai={}));var ci;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ci||(ci={}));var li;(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"})(li||(li={}));var Wr;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Wr||(Wr={}));var ui;(function(e){e.ASC="ASC",e.DESC="DESC"})(ui||(ui={}));var di;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(di||(di={}));var Gr;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Gr||(Gr={}));var pi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(pi||(pi={}));var hi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(hi||(hi={}));var fi;(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"})(fi||(fi={}));var yi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(yi||(yi={}));var mi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(mi||(mi={}));var Qr;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qr||(Qr={}));var gi;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(gi||(gi={}));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 j;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(j||(j={}));var Si;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Si||(Si={}));var Ei;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ei||(Ei={}));var vi;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(vi||(vi={}));var Ai;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Ai||(Ai={}));var xi;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(xi||(xi={}));var bi;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bi||(bi={}));var _i;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(_i||(_i={}));var Ci;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ci||(Ci={}));var wi;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(wi||(wi={}));var Ti;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ti||(Ti={}));var Oi;(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"})(Oi||(Oi={}));var Ri;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ri||(Ri={}));var Ea={[_.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 Ii(e,t){return e===t||(Ea[e]??[]).some(r=>Ii(r,t))}function zt(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=>Ii(n,t))}function ki(e,...t){return e==null?!1:t.some(r=>zt(e,r))}var Yt=y(x());var Yr=y(x());var be=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var Ue=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:be.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):be.await()}};var F=class extends Ue{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new Yr.CacheRegistry,this.cache=t?s.commonCache:new Yr.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 Kt=class extends F{async listMySearches(){let{session:t}=m.getState();return zt(t,_.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Wt=class extends F{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Gt=class extends F{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=m.getState().session;return!!t?.sessionAuthenticated}};var Qt=class extends F{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=m.getState().session;return!!t?.sessionAuthenticated}};var va="ft-user-assets",Aa={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(j).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:s}=t.payload;Jr(e,r,[...Xr(e,r),s]),Di(e,r,1,n),Ni(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Jr(e,r,Xr(e,r).map(s=>s.id===n.id?n:s)),Ni(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Jr(e,r,Xr(e,r).filter(i=>i.id!==s)),Di(e,r,-1,n)}},Mi={[j.SEARCHES]:"savedSearches",[j.BOOKMARKS]:"bookmarks",[j.BOOKS]:void 0,[j.COLLECTIONS]:void 0},Xr=(e,t)=>{var r;let n=Mi[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Jr=(e,t,r)=>{let n=Mi[t];n&&(e[n]=r)},Di=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===j.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Ni=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},L=Yt.FtReduxStore.get({name:va,reducers:Aa,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(j).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Zr=class{constructor(t=new Gt,r=new Qt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wt,this.savedSearchesService=new Kt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Yt.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(),L.actions.clearAssetCount(),L.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),L.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),L.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();L.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();L.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&L.getState().assetCounts.allAsset[t]!==r.count&&L.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&L.getState().assetCounts.bookmarkByMap[t]!==r.count&&L.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(L.getState().assetCounts.bookmarkByMap).length!==0;t===j.BOOKMARKS&&r&&L.actions.clearBookmarkCountByMap(),L.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;L.actions.bookmarks(r)}}},xa=new Zr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xa);var en=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new en;var V=y(x());var Li,$e=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},ba=Symbol("clearAfterUnitTest"),Xt=class extends(0,V.withEventBus)(F){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Li]=()=>{this.defaultMessages={},this.cache=new V.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.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 s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,V.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,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 s;let i=t.toLowerCase(),o=this.resolveContext(i);return new V.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},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(s){!(s instanceof V.CanceledPromiseError)&&r&&console.error(s)}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 s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new $e({loadedContexts:t})),this.dispatchEvent(new $e({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new $e({loadedContexts:[t]})),this.dispatchEvent(new $e({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,V.delay)(0).then(()=>n()).catch(()=>null)))}};Li=ba;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Xt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Xt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var He=window.FluidTopicsI18nService,Jt=window.FluidTopicsCustomI18nService;var Pi=y(x()),tn=class{highlightHtml(t,r,n){(0,Pi.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new tn;var Fi=y(x());var rn=class{isDate(t){var r,n,s,i;return(i=(n=((s=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,o;if(t==null)return"";try{return Fi.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!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 rn;var Ui=y(x());var _e=class{static get(t,r,{baseUrl:n,localesConfiguration:s,availableContentLocales:i}=m.getState()){var o;if(!r||i.length>0&&!i.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=i[0])===null||o===void 0?void 0:o.lang}return new Ui.SearchPlaceConverter(n,t??20,s?.allLanguagesAllowed,r,i)}};var nn=class{urlToSearchRequest(t){return _e.get().parse(t)}searchRequestToUrl(t){return _e.get().serialize(t)}};window.FluidTopicsUrlService=new nn;var ee=y(x());var Ce=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Ce.eventName="before-location-change";var we=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};we.eventName="change";var sn=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))}},$i=new sn;var Zt=class e extends ee.WithEventBus{static build(){return new e(window.history,$i,()=>window.location,!1)}constructor(t,r,n,s){var i,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}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,ee.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new we(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,o,a])=>{let c=new Ce(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:c.detail.nextLocation.href};n.apply(s,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Ce.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Ce.eventName,t)}addHistoryChangeListener(t){this.addEventListener(we.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(we.eventName,t)}currentItem(){return(0,ee.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,ee.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,ee.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,ee.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 s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}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 s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Zt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Hi=y(Y());var Bi=Hi.css`
|
|
133
|
+
`;var Vi=y(Y()),P=y(z()),Re=y(x());var Te=y(x());function ji(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var er=class extends Ue{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var on=class e extends Te.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new Te.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new er,this.cleanSessionDebouncer=new Te.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Te.Debouncer(500),this.apiProvider=r??(()=>be.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ie.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ie.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>ji(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new it(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return ki(m.getState().session,...t)}},an=on.build();var Oe=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var ot=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:s,callbackRef:i}of n){let o=s.deref(),a=i.deref();o===void 0||a===void 0||o.dispatchEvent(new Oe(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.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 T=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},b=class extends Re.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=an,this.contextRoot=new ot}render(){return Vi.html`
|
|
134
134
|
<slot></slot>
|
|
135
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>He.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())}};
|
|
136
|
-
`;var
|
|
135
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>He.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())}};b.elementDefinitions={};b.styles=Bi;T([(0,P.property)()],b.prototype,"baseUrl",void 0);T([(0,P.property)()],b.prototype,"tenantId",void 0);T([(0,P.property)()],b.prototype,"apiIntegrationIdentifier",void 0);T([(0,P.property)()],b.prototype,"apiIntegrationAppVersion",void 0);T([(0,P.property)()],b.prototype,"uiLocale",void 0);T([(0,Re.jsonProperty)(null)],b.prototype,"availableUiLocales",void 0);T([(0,Re.jsonProperty)(null)],b.prototype,"metadataConfiguration",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"editorMode",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"noCustom",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"openExternalDocumentInNewTab",void 0);T([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomComponent",void 0);T([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],b.prototype,"noCustomCode",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"withManualResources",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"navigatorOnline",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"forcedOffline",void 0);T([(0,P.property)({type:Boolean})],b.prototype,"authenticationRequired",void 0);T([(0,Re.jsonProperty)([])],b.prototype,"messageContexts",void 0);T([(0,Re.jsonProperty)(void 0)],b.prototype,"session",void 0);var zi=y(x());var qi={"ft-app-context":b};(0,zi.customElements)(qi);var tr=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Jt:He}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return o=>({context:this.name,key:i,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Be=y(x());var Gi=y(z());var cn=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-]+$/)}},Ki=new cn;var wa=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Ta=Symbol("i18nAttributes"),Oa=Symbol("i18nListAttributes"),Qi=Symbol("i18nProperties"),rr=Symbol("i18nContexts"),at=Symbol("i18nUnsubs"),sr=(0,Be.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(i){return i??this.useCustomMessageContexts?Jt:He}i18n(i){let{context:o,key:a,message:c}=i,{custom:l,args:u,argsProvider:d}=i;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,l);let h=u??(d?d(this):[]);return this.getI18nService(l).resolveMessage(o,a,...h)}return c}async awaitI18n(i){let{context:o,custom:a}=i;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(i)}customI18n(i,o){if(Ki.isI18nKey(i)){let[a,c]=i.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((o,a,c)=>i.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((o,a,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===i}),this.updateI18nProperties(o=>o.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var o,a;let c=this,l=(u,d,h)=>h?.context&&h.key&&i(u,d,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...u})}:h;(o=this[Ta])===null||o===void 0||o.forEach((u,d)=>c[d]=l(u,d,c[d])),(a=this[Oa])===null||a===void 0||a.forEach((u,d)=>{var h;return c[d]=(h=c[d])===null||h===void 0?void 0:h.map(g=>l(u,d,g))})}updateI18nProperties(i){var o;(o=this[Qi])===null||o===void 0||o.forEach((a,c)=>{i(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(i,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,o,a)}addI18nContext(i,o,a){let c=(typeof i=="string"?i:i.name).toLowerCase();a=typeof i=="string"?a:i.custom,this[rr].set(c,{isCustomContext:a}),this[at].has(c)||this[at].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(i){return this[rr].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[rr].forEach((i,o)=>this.addI18nContext(o,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[at].forEach(i=>i()),this[at].clear()}}return t=rr,r=at,wa([(0,Gi.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Wi=class extends sr(Be.FtLitElement){},nr=class extends sr(Be.FtLitElementRedux){};var Yi=y(Y());var Xi=Yi.css`
|
|
136
|
+
`;var ir=y(Y()),Ve=y(z()),or=y(x());var je=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},q=class extends nr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(m)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:ir.nothing:ir.html`
|
|
137
137
|
<span class="ft-i18n">
|
|
138
138
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
139
139
|
</span>
|
|
140
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};
|
|
140
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};q.elementDefinitions={};q.styles=Xi;je([(0,or.redux)()],q.prototype,"editorMode",void 0);je([(0,Ve.property)()],q.prototype,"context",void 0);je([(0,Ve.property)()],q.prototype,"key",void 0);je([(0,or.jsonProperty)([])],q.prototype,"args",void 0);je([(0,Ve.property)()],q.prototype,"defaultMessage",void 0);je([(0,Ve.state)()],q.prototype,"editorMessage",void 0);var Zi=y(x());var Ji={"ft-i18n":q};(0,Zi.customElements)(Ji);var qe=y(x()),ct=y(z());var oe=y(x());var Ra=y(x());var ar=class e extends Event{constructor(){super(e.eventName)}};ar.eventName="search-context-clear-all-filters";var ln=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},dn=class extends CustomEvent{constructor(t){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:t}})}},eo=Symbol("registerInterval"),un=Symbol("registerAttempts"),Ia=40,ka=(0,qe.applyMixinOnce)(Symbol("toFtSearchComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var s,i,o;super.willUpdate(n),n.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=n.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(i=this.stateManager)===null||i===void 0||i.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[un]=0,this.tryToRegisterToContext(),this[eo]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[un]>Ia?window.clearInterval(this[eo]):(this[un]++,this.dispatchEvent(new dn(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ln([(0,ct.state)()],t.prototype,"stateManager",void 0),ln([(0,ct.state)({hasChanged:qe.hasChanged})],t.prototype,"neededSearchRequests",void 0),ln([(0,ct.property)()],t.prototype,"searchRegistrationId",void 0),t}),cr=class extends ka(qe.FtLitElementRedux){};var lr=tr.build("integratedSpellcheckComponent"),to={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var pn=function(e,t,r,n){var s=arguments.length,i=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},te=class extends sr(cr){constructor(){super(),this.neededSearchRequests=[ze.CLUSTERED_SEARCH],this.addI18nContext(lr,to)}render(){return this.spellcheckAutocorrect&&this.request&&this.autocorrectLink?ur.html`
|
|
141
141
|
<div class="ft-search-results-spellcheck--spellcheck">
|
|
142
142
|
<div>
|
|
143
143
|
<ft-typography variant="subtitle1">
|
|
144
|
-
${
|
|
144
|
+
${lr.messages.resultsFor()}
|
|
145
145
|
</ft-typography>
|
|
146
146
|
<a href="${this.autocorrectLink}">
|
|
147
147
|
<ft-typography variant="subtitle1" class="link ft-search-results-spellcheck--new-query">
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
</div>
|
|
152
152
|
|
|
153
153
|
<ft-typography variant="subtitle2" class="ft-search-results-spellcheck--old-query">
|
|
154
|
-
${
|
|
154
|
+
${lr.messages.noResultsForQuery(this.request.query)}
|
|
155
155
|
</ft-typography>
|
|
156
156
|
</div>
|
|
157
|
-
`:
|
|
157
|
+
`:ur.nothing}update(t){super.update(t),["request","spellcheckAutocorrect"].some(r=>t.has(r))&&this.request&&this.spellcheckAutocorrect&&(this.autocorrectLink=_e.get().serialize({...this.request,query:this.spellcheckAutocorrect.suggestedQuery}))}};te.elementDefinitions={"ft-typography":J};te.styles=En;pn([(0,hn.redux)({store:"search"})],te.prototype,"request",void 0);pn([(0,hn.redux)({store:"search",selector:e=>e.spellcheck})],te.prototype,"spellcheckAutocorrect",void 0);pn([(0,ro.state)()],te.prototype,"autocorrectLink",void 0);var no={"ft-search-results-spellcheck":te};(0,so.customElements)(no);})();
|
|
158
158
|
/*! Bundled license information:
|
|
159
159
|
|
|
160
160
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|