@fluid-topics/ft-combobox 2.0.11 → 2.0.12

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.
@@ -1795,7 +1795,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1795
1795
  position: relative;
1796
1796
  word-break: break-word;
1797
1797
  }
1798
- `;var q2=["top","right","bottom","left"],Z2=["start","end"],Vi=q2.reduce((e,t)=>e.concat(t,t+"-"+Z2[0],t+"-"+Z2[1]),[]),Bo=Math.min,Xt=Math.max,Uo=Math.round;var mt=e=>({x:e,y:e}),X8={left:"right",right:"left",bottom:"top",top:"bottom"};function ji(e,t,r){return Xt(e,Bo(t,r))}function On(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Ki(e){return e==="x"?"y":"x"}function Zi(e){return e==="y"?"height":"width"}function Rn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function qi(e){return Ki(Rn(e))}function Y2(e,t,r){r===void 0&&(r=!1);let n=Qt(e),a=qi(e),i=Zi(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wi(s)),[s,Wi(s)]}function X2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Wi(e){let t=Xr(e);return X8[t]+e.slice(t.length)}function Q8(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q2(e){return typeof e!="number"?Q8(e):{top:e,right:e,bottom:e,left:e}}function vr(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function J2(e,t,r){let{reference:n,floating:a}=e,i=Rn(t),s=qi(t),l=Zi(s),f=Xr(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,S;switch(f){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-a.width,y:g};break;default:S={x:n.x,y:n.y}}switch(Qt(t)){case"start":S[s]-=y*(r&&u?-1:1);break;case"end":S[s]+=y*(r&&u?-1:1);break}return S}async function ed(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:S=0}=On(t,e),C=Q2(S),_=l[y?g==="floating"?"reference":"floating":g],M=vr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(_)))==null||r?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),N=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),D=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},Y=vr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:k,strategy:f}):N);return{top:(M.top-Y.top+C.top)/D.y,bottom:(Y.bottom-M.bottom+C.bottom)/D.y,left:(M.left-Y.left+C.left)/D.x,right:(Y.right-M.right+C.right)/D.x}}var J8=50,td=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ed},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=J2(u,n,f),y=n,S=0,C={};for(let L=0;L<i.length;L++){let _=i[L];if(!_)continue;let{name:M,fn:N}=_,{x:k,y:D,data:Y,reset:le}=await N({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:u,platform:l,elements:{reference:e,floating:t}});m=k??m,g=D??g,C[M]={...C[M],...Y},le&&S<J8&&(S++,typeof le=="object"&&(le.placement&&(y=le.placement),le.rects&&(u=le.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):le.rects),{x:m,y:g}=J2(u,y,f)),L=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:C}};function em(e,t,r){return(e?[...r.filter(a=>Qt(a)===e),...r.filter(a=>Qt(a)!==e)]:r.filter(a=>Xr(a)===a)).filter(a=>e?Qt(a)===e||(t?X2(a)!==a:!1):!0)}var rd=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Vi,autoAlignment:S=!0,...C}=On(e,t),L=g!==void 0||y===Vi?em(g||null,S,y):y,_=await f.detectOverflow(t,C),M=((r=s.autoPlacement)==null?void 0:r.index)||0,N=L[M];if(N==null)return{};let k=Y2(N,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==N)return{reset:{placement:L[0]}};let D=[_[Xr(N)],_[k[0]],_[k[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:D}],le=L[M+1];if(le)return{data:{index:M+1,overflows:Y},reset:{placement:le}};let $e=Y.map(_e=>{let x=Qt(_e.placement);return[_e.placement,x&&m?_e.overflows.slice(0,2).reduce((E,$)=>E+$,0):_e.overflows[0],_e.overflows]}).sort((_e,x)=>_e[1]-x[1]),vt=((a=$e.filter(_e=>_e[2].slice(0,Qt(_e[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||$e[0][0];return vt!==l?{data:{index:M+1,overflows:Y},reset:{placement:vt}}:{}}}};var od=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:M=>{let{x:N,y:k}=M;return{x:N,y:k}}},...u}=On(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=Rn(Xr(a)),S=Ki(y),C=m[S],L=m[y];if(s){let M=S==="y"?"top":"left",N=S==="y"?"bottom":"right",k=C+g[M],D=C-g[N];C=ji(k,C,D)}if(l){let M=y==="y"?"top":"left",N=y==="y"?"bottom":"right",k=L+g[M],D=L-g[N];L=ji(k,L,D)}let _=f.fn({...t,[S]:C,[y]:L});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[S]:s,[y]:l}}}}}};function _n(){return typeof window<"u"}function Cr(e){return ad(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ad(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ad(e){return _n()?e instanceof Node||e instanceof Fe(e).Node:!1}function tt(e){return _n()?e instanceof Element||e instanceof Fe(e).Element:!1}function wt(e){return _n()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function nd(e){return!_n()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}function Qr(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function id(e){return/^(table|td|th)$/.test(Cr(e))}function $o(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var tm=/transform|translate|scale|rotate|perspective|filter/,rm=/paint|layout|strict|content/,Sr=e=>!!e&&e!=="none",Yi;function Nn(e){let t=tt(e)?rt(e):e;return Sr(t.transform)||Sr(t.translate)||Sr(t.scale)||Sr(t.rotate)||Sr(t.perspective)||!Tn()&&(Sr(t.backdropFilter)||Sr(t.filter))||tm.test(t.willChange||"")||rm.test(t.contain||"")}function sd(e){let t=$t(e);for(;wt(t)&&!Er(t);){if(Nn(t))return t;if($o(t))return null;t=$t(t)}return null}function Tn(){return Yi==null&&(Yi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yi}function Er(e){return/^(html|body|#document)$/.test(Cr(e))}function rt(e){return Fe(e).getComputedStyle(e)}function Ho(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $t(e){if(Cr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||nd(e)&&e.host||Rt(e);return nd(t)?t.host:t}function cd(e){let t=$t(e);return Er(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&Qr(t)?t:cd(t)}function wn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=cd(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Fe(a);if(i){let l=Mn(s);return t.concat(s,s.visualViewport||[],Qr(a)?a:[],l&&r?wn(l):[])}else return t.concat(a,wn(a,[],r))}function Mn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ud(e){let t=rt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=wt(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,l=Uo(r)!==i||Uo(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function pd(e){return tt(e)?e:e.contextElement}function Jr(e){let t=pd(e);if(!wt(t))return mt(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=ud(t),s=(i?Uo(r.width):r.width)/n,l=(i?Uo(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var om=mt(0);function hd(e){let t=Fe(e);return!Tn()||!t.visualViewport?om:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nm(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Fe(e)?!1:t}function Go(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=pd(e),s=mt(1);t&&(n?tt(n)&&(s=Jr(n)):s=Jr(e));let l=nm(i,r,n)?hd(i):mt(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=Fe(i),S=n&&tt(n)?Fe(n):n,C=y,L=Mn(C);for(;L&&n&&S!==C;){let _=Jr(L),M=L.getBoundingClientRect(),N=rt(L),k=M.left+(L.clientLeft+parseFloat(N.paddingLeft))*_.x,D=M.top+(L.clientTop+parseFloat(N.paddingTop))*_.y;f*=_.x,u*=_.y,m*=_.x,g*=_.y,f+=k,u+=D,C=Fe(L),L=Mn(C)}}return vr({width:m,height:g,x:f,y:u})}function zn(e,t){let r=Ho(e).scrollLeft;return t?t.left+r:Go(Rt(e)).left+r}function md(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-zn(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function am(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Rt(n),l=t?$o(t.floating):!1;if(n===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},u=mt(1),m=mt(0),g=wt(n);if((g||!g&&!i)&&((Cr(n)!=="body"||Qr(s))&&(f=Ho(n)),g)){let S=Go(n);u=Jr(n),m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}let y=s&&!g&&!i?md(s,f):mt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function im(e){return Array.from(e.getClientRects())}function sm(e){let t=Rt(e),r=Ho(e),n=e.ownerDocument.body,a=Xt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Xt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+zn(e),l=-r.scrollTop;return rt(n).direction==="rtl"&&(s+=Xt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var ld=25;function cm(e,t){let r=Fe(e),n=Rt(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let m=Tn();(!m||m&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=zn(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(n.clientWidth-g.clientWidth-S);C<=ld&&(i-=C)}else u<=ld&&(i+=u);return{width:i,height:s,x:l,y:f}}function lm(e,t){let r=Go(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=wt(e)?Jr(e):mt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function dd(e,t,r){let n;if(t==="viewport")n=cm(e,r);else if(t==="document")n=sm(Rt(e));else if(tt(t))n=lm(t,r);else{let a=hd(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return vr(n)}function gd(e,t){let r=$t(e);return r===t||!tt(r)||Er(r)?!1:rt(r).position==="fixed"||gd(r,t)}function dm(e,t){let r=t.get(e);if(r)return r;let n=wn(e,[],!1).filter(l=>tt(l)&&Cr(l)!=="body"),a=null,i=rt(e).position==="fixed",s=i?$t(e):e;for(;tt(s)&&!Er(s);){let l=rt(s),f=Nn(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Qr(s)&&!f&&gd(e,s))?n=n.filter(m=>m!==s):a=l,s=$t(s)}return t.set(e,n),n}function fm(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?$o(t)?[]:dm(t,this._c):[].concat(r),n],l=dd(t,s[0],a),f=l.top,u=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let S=dd(t,s[y],a);f=Xt(S.top,f),u=Bo(S.right,u),m=Bo(S.bottom,m),g=Xt(S.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function um(e){let{width:t,height:r}=ud(e);return{width:t,height:r}}function pm(e,t,r){let n=wt(t),a=Rt(t),i=r==="fixed",s=Go(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=mt(0);function u(){f.x=zn(a)}if(n||!n&&!i)if((Cr(t)!=="body"||Qr(a))&&(l=Ho(t)),n){let S=Go(t,!0,i,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?md(a,l):mt(0),g=s.left+l.scrollLeft-f.x-m.x,y=s.top+l.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function Xi(e){return rt(e).position==="static"}function fd(e,t){if(!wt(e)||rt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rt(e)===r&&(r=r.ownerDocument.body),r}function yd(e,t){let r=Fe(e);if($o(e))return r;if(!wt(e)){let a=$t(e);for(;a&&!Er(a);){if(tt(a)&&!Xi(a))return a;a=$t(a)}return r}let n=fd(e,t);for(;n&&id(n)&&Xi(n);)n=fd(n,t);return n&&Er(n)&&Xi(n)&&!Nn(n)?r:n||sd(e)||r}var hm=async function(e){let t=this.getOffsetParent||yd,r=this.getDimensions,n=await r(e.floating);return{reference:pm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mm(e){return rt(e).direction==="rtl"}var Pn={convertOffsetParentRelativeRectToViewportRelativeRect:am,getDocumentElement:Rt,getClippingRect:fm,getOffsetParent:yd,getElementRects:hm,getClientRects:im,getDimensions:um,getScale:Jr,isElement:tt,isRTL:mm};var bd=rd,xd=od;var vd=(e,t,r)=>{let n=new Map,a={platform:Pn,...r},i={...a.platform,_c:n};return td(e,t,{...a,platform:i})};function Sd(e){return gm(e)}function Qi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function gm(e){for(let t=e;t;t=Qi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Qi(e);t;t=Qi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Cd(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},vd(e,t,{strategy:n.strategy,platform:{...Pn,getOffsetParent:a=>Pn.getOffsetParent(a,Sd)},middleware:[xd({crossAxis:!0}),bd({allowedPlacements:[n.placement]})]})}var uo=v(P());var Es=v(de());function ym(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,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!In(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(!In(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!In(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function In(e,t){try{return ym(e,t)}catch{return!1}}function Fo(e,t){return!In(e,t)}function Ed(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function kn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var Ld=v(de(),1);var Ji=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:Fo,attribute:!1,...t};(0,Ld.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Dn=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 Lr=v(de(),1);var Ad=v(de(),1);function Od(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ad.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Fo,...t??{}})}var Bn=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 a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);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 wd=v(X(),1);var Un=globalThis,bm=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,aS=Symbol();var Rd=(e,t)=>{if(bm)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=Un.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var $n=class extends wd.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Rd(n,t.elementStyles),n}};function _d(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var to=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},zd,Nd=Symbol("constructorPrototype"),Td=Symbol("constructorName"),Pd=Symbol("exportpartsDebouncer"),Md=Symbol("dynamicDependenciesLoaded"),eo=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};eo.eventName="exportparts-updated";var _t=class extends $n{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zd]=new Bn(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[Pd].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.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[Td]=this.constructor.name,this[Nd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Td]&&Object.setPrototypeOf(this,this[Nd])}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[Md]||(r[Md]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(eo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(eo.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 eo)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=_d(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;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((a=this.customStylesheet)!==null&&a!==void 0?a:"")}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,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],C=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],L=[...S,...C].filter(f).map(_=>_.trim());for(let _ of L)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(S=>`${y}:${S}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};zd=Pd;to([(0,Lr.property)()],_t.prototype,"exportpartsPrefix",void 0);to([Od([])],_t.prototype,"exportpartsPrefixes",void 0);to([(0,Lr.property)({reflect:!0})],_t.prototype,"exportparts",void 0);to([(0,Lr.property)()],_t.prototype,"customStylesheet",void 0);to([(0,Lr.property)()],_t.prototype,"elementToFocus",void 0);to([(0,Lr.state)()],_t.prototype,"useAdoptedStyleSheets",void 0);function Hn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Wo=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),xm=kn(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ar].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Ar].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ar].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Jt].has(s.store):this[Jt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[Jt].set(s,l.subscribe(()=>this.updateFromStores())),this[Wo].set(s,[]),Hn(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[m](y);l.addEventListener(u.eventName,g),this[Wo].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Jt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Jt].has(s)&&this[Jt].get(s)(),this[Jt].delete(s),(l=this[Wo].get(s))===null||l===void 0||l.forEach(f=>f()),this[Wo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Jt,r=Ar,n=Wo,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Id=class extends xm(_t){};function ot(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ht(e){return!!e&&!!e[ue]}function gt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Rm}(e)||Array.isArray(e)||!!e[Gd]||!!(!((t=e.constructor)===null||t===void 0)&&t[Gd])||cs(e)||ls(e))}function Or(e,t,r){r===void 0&&(r=!1),no(e)===0?(r?Object.keys:oo)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function no(e){var t=e[ue];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cs(e)?2:ls(e)?3:0}function ro(e,t){return no(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vm(e,t){return no(e)===2?e.get(t):e[t]}function Fd(e,t,r){var n=no(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wd(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function cs(e){return Am&&e instanceof Map}function ls(e){return Om&&e instanceof Set}function er(e){return e.o||e.t}function ds(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kd(e);delete t[ue];for(var r=oo(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function fs(e,t){return t===void 0&&(t=!1),us(e)||Ht(e)||!gt(e)||(no(e)>1&&(e.set=e.add=e.clear=e.delete=Sm),Object.freeze(e),t&&Or(e,function(r,n){return fs(n,!0)},!0)),e}function Sm(){ot(2)}function us(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Nt(e){var t=ss[e];return t||ot(18,e),t}function Cm(e,t){ss[e]||(ss[e]=t)}function ns(){return jo}function es(e,t){t&&(Nt("Patches"),e.u=[],e.s=[],e.v=t)}function Gn(e){as(e),e.p.forEach(Em),e.p=null}function as(e){e===jo&&(jo=e.l)}function kd(e){return jo={p:[],l:jo,h:e,m:!0,_:0}}function Em(e){var t=e[ue];t.i===0||t.i===1?t.j():t.g=!0}function ts(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Nt("ES5").S(t,e,n),n?(r[ue].P&&(Gn(t),ot(4)),gt(e)&&(e=Fn(t,e),t.l||Wn(t,e)),t.u&&Nt("Patches").M(r[ue].t,e,t.u,t.s)):e=Fn(t,r,[]),Gn(t),t.u&&t.v(t.u,t.s),e!==jd?e:void 0}function Fn(e,t,r){if(us(t))return t;var n=t[ue];if(!n)return Or(t,function(l,f){return Dd(e,n,t,l,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Wn(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ds(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Or(i,function(l,f){return Dd(e,n,a,l,f,r,s)}),Wn(e,a,!1),r&&e.u&&Nt("Patches").N(n,r,e.u,e.s)}return n.o}function Dd(e,t,r,n,a,i,s){if(Ht(a)){var l=Fn(e,a,i&&t&&t.i!==3&&!ro(t.R,n)?i.concat(n):void 0);if(Fd(r,n,l),!Ht(l))return;e.m=!1}else s&&r.add(a);if(gt(a)&&!us(a)){if(!e.h.D&&e._<1)return;Fn(e,a),t&&t.A.l||Wn(e,a)}}function Wn(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&fs(t,r)}function rs(e,t){var r=e[ue];return(r?er(r):e)[t]}function Bd(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function tr(e){e.P||(e.P=!0,e.l&&tr(e.l))}function os(e){e.o||(e.o=ds(e.t))}function is(e,t,r){var n=cs(t)?Nt("MapSet").F(t,r):ls(t)?Nt("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:ns(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=Ko;s&&(f=[l],u=Vo);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y}(t,r):Nt("ES5").J(t,r);return(r?r.A:ns()).p.push(n),n}function Lm(e){return Ht(e)||ot(22,e),function t(r){if(!gt(r))return r;var n,a=r[ue],i=no(r);if(a){if(!a.P&&(a.i<4||!Nt("ES5").K(a)))return a.t;a.I=!0,n=Ud(r,i),a.I=!1}else n=Ud(r,i);return Or(n,function(s,l){a&&vm(a.t,s)===l||Fd(n,s,t(l))}),i===3?new Set(n):n}(e)}function Ud(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ds(e)}function Vd(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[ue];return Ko.get(u,s)},set:function(u){var m=this[ue];Ko.set(m,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][ue];if(!f.P)switch(f.i){case 5:n(f)&&tr(f);break;case 4:r(f)&&tr(f)}}}function r(s){for(var l=s.t,f=s.k,u=oo(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==ue){var y=l[g];if(y===void 0&&!ro(l,g))return!0;var S=f[g],C=S&&S[ue];if(C?C.t!==y:!Wd(S,y))return!0}}var L=!!l[ue];return u.length!==oo(l).length+(L?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ot(3,JSON.stringify(er(s)))}var i={};Cm("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var S=Array(y.length),C=0;C<y.length;C++)Object.defineProperty(S,""+C,e(C,!0));return S}var L=Kd(y);delete L[ue];for(var _=oo(L),M=0;M<_.length;M++){var N=_[M];L[N]=e(N,g||!!L[N].enumerable)}return Object.create(Object.getPrototypeOf(y),L)}(f,s),m={i:f?5:4,A:l?l.A:ns(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ue,{value:m,writable:!0}),u},S:function(s,l,f){f?Ht(l)&&l[ue].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[ue];if(g){var y=g.t,S=g.k,C=g.R,L=g.i;if(L===4)Or(S,function(D){D!==ue&&(y[D]!==void 0||ro(y,D)?C[D]||u(S[D]):(C[D]=!0,tr(g)))}),Or(y,function(D){S[D]!==void 0||ro(S,D)||(C[D]=!1,tr(g))});else if(L===5){if(n(g)&&(tr(g),C.length=!0),S.length<y.length)for(var _=S.length;_<y.length;_++)C[_]=!1;else for(var M=y.length;M<S.length;M++)C[M]=!0;for(var N=Math.min(S.length,y.length),k=0;k<N;k++)S.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&u(S[k])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var $d,jo,ps=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Am=typeof Map<"u",Om=typeof Set<"u",Hd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",jd=ps?Symbol.for("immer-nothing"):(($d={})["immer-nothing"]=!0,$d),Gd=ps?Symbol.for("immer-draftable"):"__$immer_draftable",ue=ps?Symbol.for("immer-state"):"__$immer_state";var Rm=""+Object.prototype.constructor,oo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kd=Object.getOwnPropertyDescriptors||function(e){var t={};return oo(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ss={},Ko={get:function(e,t){if(t===ue)return e;var r=er(e);if(!ro(r,t))return function(a,i,s){var l,f=Bd(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!gt(n)?n:n===rs(e.t,t)?(os(e),e.o[t]=is(e.A.h,n,e)):n},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,r){var n=Bd(er(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=rs(er(e),t),i=a?.[ue];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wd(r,a)&&(r!==void 0||ro(e.t,t)))return!0;os(e),tr(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return rs(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,os(e),tr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=er(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ot(12)}},Vo={};Or(Ko,function(e,t){Vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vo.deleteProperty=function(e,t){return Vo.set.call(this,e,t,void 0)},Vo.set=function(e,t,r){return Ko.set.call(this,e[0],t,r,e[0])};var wm=function(){function e(r){var n=this;this.O=Hd,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(L){var _=this;L===void 0&&(L=l);for(var M=arguments.length,N=Array(M>1?M-1:0),k=1;k<M;k++)N[k-1]=arguments[k];return f.produce(L,function(D){var Y;return(Y=i).call.apply(Y,[_,D].concat(N))})}}var u;if(typeof i!="function"&&ot(6),s!==void 0&&typeof s!="function"&&ot(7),gt(a)){var m=kd(n),g=is(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Gn(m):as(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(L){return es(m,s),ts(L,m)},function(L){throw Gn(m),L}):(es(m,s),ts(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===jd&&(u=void 0),n.D&&fs(u,!0),s){var S=[],C=[];Nt("Patches").M(a,u,S,C),s(S,C)}return u}ot(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(g))})};var s,l,f=n.produce(a,i,function(u,m){s=u,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){gt(r)||ot(8),Ht(r)&&(r=Lm(r));var n=kd(this),a=is(this,r,void 0);return a[ue].C=!0,as(n),a},t.finishDraft=function(r,n){var a=r&&r[ue],i=a.A;return es(i,n),ts(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Hd&&ot(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Nt("Patches").$;return Ht(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Ze=new wm,_m=Ze.produce,vS=Ze.produceWithPatches.bind(Ze),SS=Ze.setAutoFreeze.bind(Ze),CS=Ze.setUseProxies.bind(Ze),ES=Ze.applyPatches.bind(Ze),LS=Ze.createDraft.bind(Ze),AS=Ze.finishDraft.bind(Ze),Vn=_m;function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function Zd(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qd(e){var t=Zd(e,"string");return Rr(t)=="symbol"?t:t+""}function Yd(e,t,r){return(t=qd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(n){Yd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function De(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 Qd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ms=function(){return Math.random().toString(36).substring(7).split("").join(".")},jn={INIT:"@@redux/INIT"+ms(),REPLACE:"@@redux/REPLACE"+ms(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ms()}};function Nm(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gs(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(gs)(e,t)}if(typeof e!="function")throw new Error(De(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(De(3));return i}function g(L){if(typeof L!="function")throw new Error(De(4));if(f)throw new Error(De(5));var _=!0;return u(),l.push(L),function(){if(_){if(f)throw new Error(De(6));_=!1,u();var N=l.indexOf(L);l.splice(N,1),s=null}}}function y(L){if(!Nm(L))throw new Error(De(7));if(typeof L.type>"u")throw new Error(De(8));if(f)throw new Error(De(9));try{f=!0,i=a(i,L)}finally{f=!1}for(var _=s=l,M=0;M<_.length;M++){var N=_[M];N()}return L}function S(L){if(typeof L!="function")throw new Error(De(10));a=L,y({type:jn.REPLACE})}function C(){var L,_=g;return L={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(De(11));function k(){N.next&&N.next(m())}k();var D=_(k);return{unsubscribe:D}}},L[Qd]=function(){return this},L}return y({type:jn.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:S},n[Qd]=C,n}function Tm(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:jn.INIT});if(typeof n>"u")throw new Error(De(12));if(typeof r(void 0,{type:jn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Jd(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Tm(r)}catch(f){l=f}return function(u,m){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,S={},C=0;C<i.length;C++){var L=i[C],_=r[L],M=u[L],N=_(M,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(De(14))}S[L]=N,y=y||N!==M}return y=y||i.length!==Object.keys(u).length,y?S:u}}function ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function e0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(De(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=ao.apply(void 0,l)(a.dispatch),hs(hs({},a),{},{dispatch:i})}}}function t0(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var r0=t0();r0.withExtraArgument=t0;var ys=r0;var s0=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mm=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(m){return f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},io=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},zm=Object.defineProperty,Pm=Object.defineProperties,Im=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,km=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,n0=function(e,t,r){return t in e?zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},rr=function(e,t){for(var r in t||(t={}))km.call(t,r)&&n0(e,r,t[r]);if(o0)for(var n=0,a=o0(t);n<a.length;n++){var r=a[n];Dm.call(t,r)&&n0(e,r,t[r])}return e},bs=function(e,t){return Pm(e,Im(t))},Bm=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{l(r.next(f))}catch(u){a(u)}},s=function(f){try{l(r.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(e,t)).next())})};var Um=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},FS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function $m(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Hm=function(e){s0(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,io([void 0],r[0].concat(this)))):new(t.bind.apply(t,io([void 0],r.concat(this))))},t}(Array),Gm=function(e){s0(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,io([void 0],r[0].concat(this)))):new(t.bind.apply(t,io([void 0],r.concat(this))))},t}(Array);function Ss(e){return gt(e)?Vn(e,function(){}):e}function Fm(e){return typeof e=="boolean"}function Wm(){return function(t){return Vm(t)}}function Vm(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new Hm;if(r&&(Fm(r)?l.push(ys):l.push(ys.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return l}var xs=!0;function c0(e){var t=Wm(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,l=r.devTools,f=l===void 0?!0:l,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,S;if(typeof a=="function")S=a;else if($m(a))S=Jd(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(t),!xs&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xs&&C.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=e0.apply(void 0,C),_=ao;f&&(_=Um(rr({trace:!xs},typeof f=="object"&&f)));var M=new Gm(L),N=M;Array.isArray(y)?N=io([L],y):typeof y=="function"&&(N=y(M));var k=_.apply(void 0,N);return gs(S,m,k)}function or(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rr(rr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function l0(e){var t={},r=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function jm(e){return typeof e=="function"}function Km(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?l0(t):[t,r,n],i=a[0],s=a[1],l=a[2],f;if(jm(e))f=function(){return Ss(e())};else{var u=Ss(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var S=io([i[y.type]],s.filter(function(C){var L=C.matcher;return L(y)}).map(function(C){var L=C.reducer;return L}));return S.filter(function(C){return!!C}).length===0&&(S=[l]),S.reduce(function(C,L){if(L)if(Ht(C)){var _=C,M=L(_,y);return M===void 0?C:M}else{if(gt(C))return Vn(C,function(N){return L(N,y)});var M=L(C,y);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},g)}return m.getInitialState=f,m}function Zm(e,t){return e+"/"+t}function d0(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ss(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(m){var g=n[m],y=Zm(t,m),S,C;"reducer"in g?(S=g.reducer,C=g.prepare):S=g,i[m]=S,s[y]=S,l[m]=C?or(y,C):or(y)});function f(){var m=typeof e.extraReducers=="function"?l0(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,S=m[1],C=S===void 0?[]:S,L=m[2],_=L===void 0?void 0:L,M=rr(rr({},y),s);return Km(r,function(N){for(var k in M)N.addCase(k,M[k]);for(var D=0,Y=C;D<Y.length;D++){var le=Y[D];N.addMatcher(le.matcher,le.reducer)}_&&N.addDefaultCase(_)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var qm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ym=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qm[Math.random()*64|0];return t},Xm=["name","message","stack","code"],vs=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),a0=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Qm=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Xm;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},KS=function(){function e(t,r,n){var a=or(t+"/fulfilled",function(m,g,y,S){return{payload:m,meta:bs(rr({},S||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=or(t+"/pending",function(m,g,y){return{payload:void 0,meta:bs(rr({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=or(t+"/rejected",function(m,g,y,S,C){return{payload:S,error:(n&&n.serializeError||Qm)(m||"Rejected"),meta:bs(rr({},C||{}),{arg:y,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(g,y,S){var C=n?.idGenerator?n.idGenerator(m):Ym(),L=new f,_,M=!1;function N(D){_=D,L.abort()}var k=function(){return Bm(this,null,function(){var D,Y,le,$e,we,vt,_e;return Mm(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),$e=(D=n?.condition)==null?void 0:D.call(n,m,{getState:y,extra:S}),eg($e)?[4,$e]:[3,2];case 1:$e=x.sent(),x.label=2;case 2:if($e===!1||L.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,we=new Promise(function(E,$){return L.signal.addEventListener("abort",function(){return $({name:"AbortError",message:_||"Aborted"})})}),g(i(C,m,(Y=n?.getPendingMeta)==null?void 0:Y.call(n,{requestId:C,arg:m},{getState:y,extra:S}))),[4,Promise.race([we,Promise.resolve(r(m,{dispatch:g,getState:y,extra:S,requestId:C,signal:L.signal,abort:N,rejectWithValue:function(E,$){return new vs(E,$)},fulfillWithValue:function(E,$){return new a0(E,$)}})).then(function(E){if(E instanceof vs)throw E;return E instanceof a0?a(E.payload,C,m,E.meta):a(E,C,m)})])];case 3:return le=x.sent(),[3,5];case 4:return vt=x.sent(),le=vt instanceof vs?s(null,C,m,vt.payload,vt.meta):s(vt,C,m),[3,5];case 5:return _e=n&&!n.dispatchConditionRejection&&s.match(le)&&le.meta.condition,_e||g(le),[2,le]}})})}();return Object.assign(k,{abort:N,requestId:C,arg:m,unwrap:function(){return k.then(Jm)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Jm(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function eg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var f0="listener",u0="completed",p0="cancelled",ZS="task-"+p0,qS="task-"+u0,YS=f0+"-"+p0,XS=f0+"-"+u0;var Cs="listenerMiddleware";var QS=or(Cs+"/add"),JS=or(Cs+"/removeAll"),eC=or(Cs+"/remove");var i0,tC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(i0||(i0=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},tg=function(e){return function(t){setTimeout(t,e)}},rC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tg(10);Vd();var rg=kn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Kn=class extends rg(Object){};window.ftReduxStores||(window.ftReduxStores={});var h0=class e extends Kn{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Hn(i))return i;if(a==null)return;let s=d0({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=c0({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Ed(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Dn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zn=class{static format(t,r,n,a){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,r,n,a)}static getMomentDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}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 qn=v(P()),og="ft-app-info",wr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};wr.eventName="authentication-change";var ng={session:(e,t)=>{(0,qn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>I.dispatchEvent(new wr(t.payload)),0))}},I=qn.FtReduxStore.get({name:og,reducers:ng,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var m0=v(P()),Yn=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},NC=(0,m0.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(I)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Zn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Yn([(0,Es.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Yn([(0,Es.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Yn([Ji({store:I.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Yn([Ji({store:I.name})],t.prototype,"uiLocale",void 0),t});var ig=v(y0(),1);var b0;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(b0||(b0={}));var x0;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(x0||(x0={}));var v0;(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"})(v0||(v0={}));var S0;(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"})(S0||(S0={}));var C0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(C0||(C0={}));var E0;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(E0||(E0={}));var L0;(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"})(L0||(L0={}));var A0;(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"})(A0||(A0={}));var O0;(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"})(O0||(O0={}));var R0;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(R0||(R0={}));var w0;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(w0||(w0={}));var _0;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(_0||(_0={}));var N0;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(N0||(N0={}));var T0;(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"})(T0||(T0={}));var M0;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(M0||(M0={}));var z0;(function(e){e.ASC="ASC",e.DESC="DESC"})(z0||(z0={}));var P0;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(P0||(P0={}));var I0;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(I0||(I0={}));var k0;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(k0||(k0={}));var D0;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(D0||(D0={}));var B0;(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"})(B0||(B0={}));var U0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(U0||(U0={}));var $0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($0||($0={}));var H0;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(H0||(H0={}));var G0;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(G0||(G0={}));var Se;(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"})(Se||(Se={}));var nt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(nt||(nt={}));var F0;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(F0||(F0={}));var W0;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(W0||(W0={}));var V0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(V0||(V0={}));var j0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(j0||(j0={}));var K0;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(K0||(K0={}));var Z0;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(Z0||(Z0={}));var q0;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(q0||(q0={}));var Y0;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Y0||(Y0={}));var X0;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(X0||(X0={}));var ag={[Se.PERSONAL_BOOK_SHARE_USER]:[Se.PERSONAL_BOOK_USER],[Se.HTML_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.PDF_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.KHUB_ADMIN]:[Se.CONTENT_PUBLISHER],[Se.ADMIN]:[Se.KHUB_ADMIN,Se.USERS_ADMIN,Se.PORTAL_ADMIN,Se.BEHAVIOR_DATA_USER],[Se.GENERATIVE_AI_EXPORT_USER]:[Se.GENERATIVE_AI_USER]};function Q0(e,t){return e===t||(ag[e]??[]).some(r=>Q0(r,t))}function J0(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=>Q0(n,t))}var na=v(P());var Ls=v(P());var _r=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=I.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=I.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var Jn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var qe=class extends Jn{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ls.CacheRegistry,this.cache=t?a.commonCache:new Ls.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 ea=class extends qe{async listMySearches(){let{session:t}=I.getState();return J0(t,Se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ta=class extends qe{async listMyBookmarks(){let t=I.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ra=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var oa=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var sg="ft-user-assets",cg={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(nt).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:a}=t.payload;Os(e,r,[...As(e,r),a]),e4(e,r,1,n),t4(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Os(e,r,As(e,r).map(a=>a.id===n.id?n:a)),t4(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Os(e,r,As(e,r).filter(i=>i.id!==a)),e4(e,r,-1,n)}},r4={[nt.SEARCHES]:"savedSearches",[nt.BOOKMARKS]:"bookmarks",[nt.BOOKS]:void 0,[nt.COLLECTIONS]:void 0},As=(e,t)=>{var r;let n=r4[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Os=(e,t,r)=>{let n=r4[t];n&&(e[n]=r)},e4=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===nt.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},t4=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Ye=na.FtReduxStore.get({name:sg,reducers:cg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(nt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rs=class{constructor(t=new ra,r=new oa){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ta,this.savedSearchesService=new ea,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=I.getState();(0,na.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(),Ye.actions.clearAssetCount(),Ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ye.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ye.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Ye.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Ye.getState().assetCounts.bookmarkByMap).length!==0;t===nt.BOOKMARKS&&r&&Ye.actions.clearBookmarkCountByMap(),Ye.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;Ye.actions.bookmarks(r)}}},lg=new Rs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=lg);var ws=class{addCommand(t,r=!1){I.commands.add(t,r)}consumeCommand(t){return I.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ws;var at=v(P());var o4,co=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},dg=Symbol("clearAfterUnitTest"),aa=class extends(0,at.withEventBus)(qe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[o4]=()=>{this.defaultMessages={},this.cache=new at.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=I.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 a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,at.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,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 a;let i=t.toLowerCase(),s=this.resolveContext(i);return new at.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).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(a){!(a instanceof at.CanceledPromiseError)&&r&&console.error(a)}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 a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new co({loadedContexts:t})),this.dispatchEvent(new co({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new co({loadedContexts:[t]})),this.dispatchEvent(new co({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,at.delay)(0).then(()=>n()).catch(()=>null)))}};o4=dg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends aa{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends aa{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var lo=window.FluidTopicsI18nService,ia=window.FluidTopicsCustomI18nService;var n4=v(P()),_s=class{highlightHtml(t,r,n){(0,n4.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new _s;var a4=v(P());var Ns=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i;if(t==null)return"";try{return a4.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new Ns;var i4=v(P());var Zo=class{static get(t,r){var n,a;let i=I.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new i4.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Ts=class{urlToSearchRequest(t){return Zo.get().parse(t)}searchRequestToUrl(t){return Zo.get().serialize(t)}};window.FluidTopicsUrlService=new Ts;var ar=v(P());var Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nr.eventName="change";var Ms=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))}},s4=new Ms;var sa=class e extends ar.WithEventBus{static build(){return new e(window.history,s4,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}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,ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nr(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,l])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Nr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nr.eventName,t)}currentItem(){return(0,ar.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,ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,ar.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 a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}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 a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sa.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var c4=v(X());var l4=c4.css`
1798
+ `;var q2=["top","right","bottom","left"],Z2=["start","end"],Vi=q2.reduce((e,t)=>e.concat(t,t+"-"+Z2[0],t+"-"+Z2[1]),[]),Bo=Math.min,Xt=Math.max,Uo=Math.round;var mt=e=>({x:e,y:e}),X8={left:"right",right:"left",bottom:"top",top:"bottom"};function ji(e,t,r){return Xt(e,Bo(t,r))}function On(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Ki(e){return e==="x"?"y":"x"}function Zi(e){return e==="y"?"height":"width"}function Rn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function qi(e){return Ki(Rn(e))}function Y2(e,t,r){r===void 0&&(r=!1);let n=Qt(e),a=qi(e),i=Zi(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wi(s)),[s,Wi(s)]}function X2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Wi(e){let t=Xr(e);return X8[t]+e.slice(t.length)}function Q8(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q2(e){return typeof e!="number"?Q8(e):{top:e,right:e,bottom:e,left:e}}function vr(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function J2(e,t,r){let{reference:n,floating:a}=e,i=Rn(t),s=qi(t),l=Zi(s),f=Xr(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,S;switch(f){case"top":S={x:m,y:n.y-a.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-a.width,y:g};break;default:S={x:n.x,y:n.y}}switch(Qt(t)){case"start":S[s]-=y*(r&&u?-1:1);break;case"end":S[s]+=y*(r&&u?-1:1);break}return S}async function ed(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:S=0}=On(t,e),C=Q2(S),_=l[y?g==="floating"?"reference":"floating":g],M=vr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(_)))==null||r?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),N=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),D=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},Y=vr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:k,strategy:f}):N);return{top:(M.top-Y.top+C.top)/D.y,bottom:(Y.bottom-M.bottom+C.bottom)/D.y,left:(M.left-Y.left+C.left)/D.x,right:(Y.right-M.right+C.right)/D.x}}var J8=50,td=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ed},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=J2(u,n,f),y=n,S=0,C={};for(let L=0;L<i.length;L++){let _=i[L];if(!_)continue;let{name:M,fn:N}=_,{x:k,y:D,data:Y,reset:le}=await N({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:C,rects:u,platform:l,elements:{reference:e,floating:t}});m=k??m,g=D??g,C[M]={...C[M],...Y},le&&S<J8&&(S++,typeof le=="object"&&(le.placement&&(y=le.placement),le.rects&&(u=le.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):le.rects),{x:m,y:g}=J2(u,y,f)),L=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:C}};function em(e,t,r){return(e?[...r.filter(a=>Qt(a)===e),...r.filter(a=>Qt(a)!==e)]:r.filter(a=>Xr(a)===a)).filter(a=>e?Qt(a)===e||(t?X2(a)!==a:!1):!0)}var rd=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Vi,autoAlignment:S=!0,...C}=On(e,t),L=g!==void 0||y===Vi?em(g||null,S,y):y,_=await f.detectOverflow(t,C),M=((r=s.autoPlacement)==null?void 0:r.index)||0,N=L[M];if(N==null)return{};let k=Y2(N,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==N)return{reset:{placement:L[0]}};let D=[_[Xr(N)],_[k[0]],_[k[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:D}],le=L[M+1];if(le)return{data:{index:M+1,overflows:Y},reset:{placement:le}};let $e=Y.map(_e=>{let x=Qt(_e.placement);return[_e.placement,x&&m?_e.overflows.slice(0,2).reduce((E,$)=>E+$,0):_e.overflows[0],_e.overflows]}).sort((_e,x)=>_e[1]-x[1]),vt=((a=$e.filter(_e=>_e[2].slice(0,Qt(_e[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||$e[0][0];return vt!==l?{data:{index:M+1,overflows:Y},reset:{placement:vt}}:{}}}};var od=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:M=>{let{x:N,y:k}=M;return{x:N,y:k}}},...u}=On(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=Rn(Xr(a)),S=Ki(y),C=m[S],L=m[y];if(s){let M=S==="y"?"top":"left",N=S==="y"?"bottom":"right",k=C+g[M],D=C-g[N];C=ji(k,C,D)}if(l){let M=y==="y"?"top":"left",N=y==="y"?"bottom":"right",k=L+g[M],D=L-g[N];L=ji(k,L,D)}let _=f.fn({...t,[S]:C,[y]:L});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[S]:s,[y]:l}}}}}};function _n(){return typeof window<"u"}function Cr(e){return ad(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ad(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ad(e){return _n()?e instanceof Node||e instanceof Fe(e).Node:!1}function tt(e){return _n()?e instanceof Element||e instanceof Fe(e).Element:!1}function wt(e){return _n()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function nd(e){return!_n()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}function Qr(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function id(e){return/^(table|td|th)$/.test(Cr(e))}function $o(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var tm=/transform|translate|scale|rotate|perspective|filter/,rm=/paint|layout|strict|content/,Sr=e=>!!e&&e!=="none",Yi;function Nn(e){let t=tt(e)?rt(e):e;return Sr(t.transform)||Sr(t.translate)||Sr(t.scale)||Sr(t.rotate)||Sr(t.perspective)||!Tn()&&(Sr(t.backdropFilter)||Sr(t.filter))||tm.test(t.willChange||"")||rm.test(t.contain||"")}function sd(e){let t=$t(e);for(;wt(t)&&!Er(t);){if(Nn(t))return t;if($o(t))return null;t=$t(t)}return null}function Tn(){return Yi==null&&(Yi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yi}function Er(e){return/^(html|body|#document)$/.test(Cr(e))}function rt(e){return Fe(e).getComputedStyle(e)}function Ho(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $t(e){if(Cr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||nd(e)&&e.host||Rt(e);return nd(t)?t.host:t}function cd(e){let t=$t(e);return Er(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&Qr(t)?t:cd(t)}function wn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=cd(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Fe(a);if(i){let l=Mn(s);return t.concat(s,s.visualViewport||[],Qr(a)?a:[],l&&r?wn(l):[])}else return t.concat(a,wn(a,[],r))}function Mn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ud(e){let t=rt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=wt(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,l=Uo(r)!==i||Uo(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function pd(e){return tt(e)?e:e.contextElement}function Jr(e){let t=pd(e);if(!wt(t))return mt(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=ud(t),s=(i?Uo(r.width):r.width)/n,l=(i?Uo(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var om=mt(0);function hd(e){let t=Fe(e);return!Tn()||!t.visualViewport?om:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nm(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Fe(e)?!1:t}function Go(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=pd(e),s=mt(1);t&&(n?tt(n)&&(s=Jr(n)):s=Jr(e));let l=nm(i,r,n)?hd(i):mt(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=Fe(i),S=n&&tt(n)?Fe(n):n,C=y,L=Mn(C);for(;L&&n&&S!==C;){let _=Jr(L),M=L.getBoundingClientRect(),N=rt(L),k=M.left+(L.clientLeft+parseFloat(N.paddingLeft))*_.x,D=M.top+(L.clientTop+parseFloat(N.paddingTop))*_.y;f*=_.x,u*=_.y,m*=_.x,g*=_.y,f+=k,u+=D,C=Fe(L),L=Mn(C)}}return vr({width:m,height:g,x:f,y:u})}function zn(e,t){let r=Ho(e).scrollLeft;return t?t.left+r:Go(Rt(e)).left+r}function md(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-zn(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function am(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Rt(n),l=t?$o(t.floating):!1;if(n===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},u=mt(1),m=mt(0),g=wt(n);if((g||!g&&!i)&&((Cr(n)!=="body"||Qr(s))&&(f=Ho(n)),g)){let S=Go(n);u=Jr(n),m.x=S.x+n.clientLeft,m.y=S.y+n.clientTop}let y=s&&!g&&!i?md(s,f):mt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function im(e){return Array.from(e.getClientRects())}function sm(e){let t=Rt(e),r=Ho(e),n=e.ownerDocument.body,a=Xt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Xt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+zn(e),l=-r.scrollTop;return rt(n).direction==="rtl"&&(s+=Xt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var ld=25;function cm(e,t){let r=Fe(e),n=Rt(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let m=Tn();(!m||m&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=zn(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(n.clientWidth-g.clientWidth-S);C<=ld&&(i-=C)}else u<=ld&&(i+=u);return{width:i,height:s,x:l,y:f}}function lm(e,t){let r=Go(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=wt(e)?Jr(e):mt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function dd(e,t,r){let n;if(t==="viewport")n=cm(e,r);else if(t==="document")n=sm(Rt(e));else if(tt(t))n=lm(t,r);else{let a=hd(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return vr(n)}function gd(e,t){let r=$t(e);return r===t||!tt(r)||Er(r)?!1:rt(r).position==="fixed"||gd(r,t)}function dm(e,t){let r=t.get(e);if(r)return r;let n=wn(e,[],!1).filter(l=>tt(l)&&Cr(l)!=="body"),a=null,i=rt(e).position==="fixed",s=i?$t(e):e;for(;tt(s)&&!Er(s);){let l=rt(s),f=Nn(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Qr(s)&&!f&&gd(e,s))?n=n.filter(m=>m!==s):a=l,s=$t(s)}return t.set(e,n),n}function fm(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?$o(t)?[]:dm(t,this._c):[].concat(r),n],l=dd(t,s[0],a),f=l.top,u=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let S=dd(t,s[y],a);f=Xt(S.top,f),u=Bo(S.right,u),m=Bo(S.bottom,m),g=Xt(S.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function um(e){let{width:t,height:r}=ud(e);return{width:t,height:r}}function pm(e,t,r){let n=wt(t),a=Rt(t),i=r==="fixed",s=Go(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=mt(0);function u(){f.x=zn(a)}if(n||!n&&!i)if((Cr(t)!=="body"||Qr(a))&&(l=Ho(t)),n){let S=Go(t,!0,i,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?md(a,l):mt(0),g=s.left+l.scrollLeft-f.x-m.x,y=s.top+l.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function Xi(e){return rt(e).position==="static"}function fd(e,t){if(!wt(e)||rt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rt(e)===r&&(r=r.ownerDocument.body),r}function yd(e,t){let r=Fe(e);if($o(e))return r;if(!wt(e)){let a=$t(e);for(;a&&!Er(a);){if(tt(a)&&!Xi(a))return a;a=$t(a)}return r}let n=fd(e,t);for(;n&&id(n)&&Xi(n);)n=fd(n,t);return n&&Er(n)&&Xi(n)&&!Nn(n)?r:n||sd(e)||r}var hm=async function(e){let t=this.getOffsetParent||yd,r=this.getDimensions,n=await r(e.floating);return{reference:pm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mm(e){return rt(e).direction==="rtl"}var Pn={convertOffsetParentRelativeRectToViewportRelativeRect:am,getDocumentElement:Rt,getClippingRect:fm,getOffsetParent:yd,getElementRects:hm,getClientRects:im,getDimensions:um,getScale:Jr,isElement:tt,isRTL:mm};var bd=rd,xd=od;var vd=(e,t,r)=>{let n=new Map,a={platform:Pn,...r},i={...a.platform,_c:n};return td(e,t,{...a,platform:i})};function Sd(e){return gm(e)}function Qi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function gm(e){for(let t=e;t;t=Qi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Qi(e);t;t=Qi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Cd(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},vd(e,t,{strategy:n.strategy,platform:{...Pn,getOffsetParent:a=>Pn.getOffsetParent(a,Sd)},middleware:[xd({crossAxis:!0}),bd({allowedPlacements:[n.placement]})]})}var uo=v(P());var Es=v(de());function ym(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,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!In(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(!In(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!In(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function In(e,t){try{return ym(e,t)}catch{return!1}}function Fo(e,t){return!In(e,t)}function Ed(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function kn(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var Ld=v(de(),1);var Ji=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:Fo,attribute:!1,...t};(0,Ld.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Dn=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 Lr=v(de(),1);var Ad=v(de(),1);function Od(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ad.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Fo,...t??{}})}var Bn=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 a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);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 wd=v(X(),1);var Un=globalThis,bm=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,aS=Symbol();var Rd=(e,t)=>{if(bm)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=Un.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var $n=class extends wd.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Rd(n,t.elementStyles),n}};function _d(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var to=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},zd,Nd=Symbol("constructorPrototype"),Td=Symbol("constructorName"),Pd=Symbol("exportpartsDebouncer"),Md=Symbol("dynamicDependenciesLoaded"),eo=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};eo.eventName="exportparts-updated";var _t=class extends $n{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zd]=new Bn(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[Pd].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.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[Td]=this.constructor.name,this[Nd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Td]&&Object.setPrototypeOf(this,this[Nd])}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[Md]||(r[Md]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(eo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(eo.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 eo)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=_d(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;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((a=this.customStylesheet)!==null&&a!==void 0?a:"")}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,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],C=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],L=[...S,...C].filter(f).map(_=>_.trim());for(let _ of L)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(S=>`${y}:${S}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};zd=Pd;to([(0,Lr.property)()],_t.prototype,"exportpartsPrefix",void 0);to([Od([])],_t.prototype,"exportpartsPrefixes",void 0);to([(0,Lr.property)({reflect:!0})],_t.prototype,"exportparts",void 0);to([(0,Lr.property)()],_t.prototype,"customStylesheet",void 0);to([(0,Lr.property)()],_t.prototype,"elementToFocus",void 0);to([(0,Lr.state)()],_t.prototype,"useAdoptedStyleSheets",void 0);function Hn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Wo=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),xm=kn(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ar].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Ar].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ar].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Jt].has(s.store):this[Jt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[Jt].set(s,l.subscribe(()=>this.updateFromStores())),this[Wo].set(s,[]),Hn(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[m](y);l.addEventListener(u.eventName,g),this[Wo].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Jt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Jt].has(s)&&this[Jt].get(s)(),this[Jt].delete(s),(l=this[Wo].get(s))===null||l===void 0||l.forEach(f=>f()),this[Wo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Jt,r=Ar,n=Wo,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Id=class extends xm(_t){};function ot(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ht(e){return!!e&&!!e[ue]}function gt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Rm}(e)||Array.isArray(e)||!!e[Gd]||!!(!((t=e.constructor)===null||t===void 0)&&t[Gd])||cs(e)||ls(e))}function Or(e,t,r){r===void 0&&(r=!1),no(e)===0?(r?Object.keys:oo)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function no(e){var t=e[ue];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:cs(e)?2:ls(e)?3:0}function ro(e,t){return no(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vm(e,t){return no(e)===2?e.get(t):e[t]}function Fd(e,t,r){var n=no(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wd(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function cs(e){return Am&&e instanceof Map}function ls(e){return Om&&e instanceof Set}function er(e){return e.o||e.t}function ds(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kd(e);delete t[ue];for(var r=oo(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function fs(e,t){return t===void 0&&(t=!1),us(e)||Ht(e)||!gt(e)||(no(e)>1&&(e.set=e.add=e.clear=e.delete=Sm),Object.freeze(e),t&&Or(e,function(r,n){return fs(n,!0)},!0)),e}function Sm(){ot(2)}function us(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Nt(e){var t=ss[e];return t||ot(18,e),t}function Cm(e,t){ss[e]||(ss[e]=t)}function ns(){return jo}function es(e,t){t&&(Nt("Patches"),e.u=[],e.s=[],e.v=t)}function Gn(e){as(e),e.p.forEach(Em),e.p=null}function as(e){e===jo&&(jo=e.l)}function kd(e){return jo={p:[],l:jo,h:e,m:!0,_:0}}function Em(e){var t=e[ue];t.i===0||t.i===1?t.j():t.g=!0}function ts(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Nt("ES5").S(t,e,n),n?(r[ue].P&&(Gn(t),ot(4)),gt(e)&&(e=Fn(t,e),t.l||Wn(t,e)),t.u&&Nt("Patches").M(r[ue].t,e,t.u,t.s)):e=Fn(t,r,[]),Gn(t),t.u&&t.v(t.u,t.s),e!==jd?e:void 0}function Fn(e,t,r){if(us(t))return t;var n=t[ue];if(!n)return Or(t,function(l,f){return Dd(e,n,t,l,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Wn(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ds(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Or(i,function(l,f){return Dd(e,n,a,l,f,r,s)}),Wn(e,a,!1),r&&e.u&&Nt("Patches").N(n,r,e.u,e.s)}return n.o}function Dd(e,t,r,n,a,i,s){if(Ht(a)){var l=Fn(e,a,i&&t&&t.i!==3&&!ro(t.R,n)?i.concat(n):void 0);if(Fd(r,n,l),!Ht(l))return;e.m=!1}else s&&r.add(a);if(gt(a)&&!us(a)){if(!e.h.D&&e._<1)return;Fn(e,a),t&&t.A.l||Wn(e,a)}}function Wn(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&fs(t,r)}function rs(e,t){var r=e[ue];return(r?er(r):e)[t]}function Bd(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function tr(e){e.P||(e.P=!0,e.l&&tr(e.l))}function os(e){e.o||(e.o=ds(e.t))}function is(e,t,r){var n=cs(t)?Nt("MapSet").F(t,r):ls(t)?Nt("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:ns(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=Ko;s&&(f=[l],u=Vo);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y}(t,r):Nt("ES5").J(t,r);return(r?r.A:ns()).p.push(n),n}function Lm(e){return Ht(e)||ot(22,e),function t(r){if(!gt(r))return r;var n,a=r[ue],i=no(r);if(a){if(!a.P&&(a.i<4||!Nt("ES5").K(a)))return a.t;a.I=!0,n=Ud(r,i),a.I=!1}else n=Ud(r,i);return Or(n,function(s,l){a&&vm(a.t,s)===l||Fd(n,s,t(l))}),i===3?new Set(n):n}(e)}function Ud(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ds(e)}function Vd(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[ue];return Ko.get(u,s)},set:function(u){var m=this[ue];Ko.set(m,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][ue];if(!f.P)switch(f.i){case 5:n(f)&&tr(f);break;case 4:r(f)&&tr(f)}}}function r(s){for(var l=s.t,f=s.k,u=oo(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==ue){var y=l[g];if(y===void 0&&!ro(l,g))return!0;var S=f[g],C=S&&S[ue];if(C?C.t!==y:!Wd(S,y))return!0}}var L=!!l[ue];return u.length!==oo(l).length+(L?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ot(3,JSON.stringify(er(s)))}var i={};Cm("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var S=Array(y.length),C=0;C<y.length;C++)Object.defineProperty(S,""+C,e(C,!0));return S}var L=Kd(y);delete L[ue];for(var _=oo(L),M=0;M<_.length;M++){var N=_[M];L[N]=e(N,g||!!L[N].enumerable)}return Object.create(Object.getPrototypeOf(y),L)}(f,s),m={i:f?5:4,A:l?l.A:ns(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ue,{value:m,writable:!0}),u},S:function(s,l,f){f?Ht(l)&&l[ue].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[ue];if(g){var y=g.t,S=g.k,C=g.R,L=g.i;if(L===4)Or(S,function(D){D!==ue&&(y[D]!==void 0||ro(y,D)?C[D]||u(S[D]):(C[D]=!0,tr(g)))}),Or(y,function(D){S[D]!==void 0||ro(S,D)||(C[D]=!1,tr(g))});else if(L===5){if(n(g)&&(tr(g),C.length=!0),S.length<y.length)for(var _=S.length;_<y.length;_++)C[_]=!1;else for(var M=y.length;M<S.length;M++)C[M]=!0;for(var N=Math.min(S.length,y.length),k=0;k<N;k++)S.hasOwnProperty(k)||(C[k]=!0),C[k]===void 0&&u(S[k])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var $d,jo,ps=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Am=typeof Map<"u",Om=typeof Set<"u",Hd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",jd=ps?Symbol.for("immer-nothing"):(($d={})["immer-nothing"]=!0,$d),Gd=ps?Symbol.for("immer-draftable"):"__$immer_draftable",ue=ps?Symbol.for("immer-state"):"__$immer_state";var Rm=""+Object.prototype.constructor,oo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kd=Object.getOwnPropertyDescriptors||function(e){var t={};return oo(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ss={},Ko={get:function(e,t){if(t===ue)return e;var r=er(e);if(!ro(r,t))return function(a,i,s){var l,f=Bd(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!gt(n)?n:n===rs(e.t,t)?(os(e),e.o[t]=is(e.A.h,n,e)):n},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,r){var n=Bd(er(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=rs(er(e),t),i=a?.[ue];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wd(r,a)&&(r!==void 0||ro(e.t,t)))return!0;os(e),tr(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return rs(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,os(e),tr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=er(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ot(12)}},Vo={};Or(Ko,function(e,t){Vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Vo.deleteProperty=function(e,t){return Vo.set.call(this,e,t,void 0)},Vo.set=function(e,t,r){return Ko.set.call(this,e[0],t,r,e[0])};var wm=function(){function e(r){var n=this;this.O=Hd,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(L){var _=this;L===void 0&&(L=l);for(var M=arguments.length,N=Array(M>1?M-1:0),k=1;k<M;k++)N[k-1]=arguments[k];return f.produce(L,function(D){var Y;return(Y=i).call.apply(Y,[_,D].concat(N))})}}var u;if(typeof i!="function"&&ot(6),s!==void 0&&typeof s!="function"&&ot(7),gt(a)){var m=kd(n),g=is(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Gn(m):as(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(L){return es(m,s),ts(L,m)},function(L){throw Gn(m),L}):(es(m,s),ts(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===jd&&(u=void 0),n.D&&fs(u,!0),s){var S=[],C=[];Nt("Patches").M(a,u,S,C),s(S,C)}return u}ot(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(S){return a.apply(void 0,[S].concat(g))})};var s,l,f=n.produce(a,i,function(u,m){s=u,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){gt(r)||ot(8),Ht(r)&&(r=Lm(r));var n=kd(this),a=is(this,r,void 0);return a[ue].C=!0,as(n),a},t.finishDraft=function(r,n){var a=r&&r[ue],i=a.A;return es(i,n),ts(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Hd&&ot(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Nt("Patches").$;return Ht(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Ze=new wm,_m=Ze.produce,vS=Ze.produceWithPatches.bind(Ze),SS=Ze.setAutoFreeze.bind(Ze),CS=Ze.setUseProxies.bind(Ze),ES=Ze.applyPatches.bind(Ze),LS=Ze.createDraft.bind(Ze),AS=Ze.finishDraft.bind(Ze),Vn=_m;function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function Zd(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qd(e){var t=Zd(e,"string");return Rr(t)=="symbol"?t:t+""}function Yd(e,t,r){return(t=qd(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(r),!0).forEach(function(n){Yd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function De(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 Qd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ms=function(){return Math.random().toString(36).substring(7).split("").join(".")},jn={INIT:"@@redux/INIT"+ms(),REPLACE:"@@redux/REPLACE"+ms(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ms()}};function Nm(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gs(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(gs)(e,t)}if(typeof e!="function")throw new Error(De(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(De(3));return i}function g(L){if(typeof L!="function")throw new Error(De(4));if(f)throw new Error(De(5));var _=!0;return u(),l.push(L),function(){if(_){if(f)throw new Error(De(6));_=!1,u();var N=l.indexOf(L);l.splice(N,1),s=null}}}function y(L){if(!Nm(L))throw new Error(De(7));if(typeof L.type>"u")throw new Error(De(8));if(f)throw new Error(De(9));try{f=!0,i=a(i,L)}finally{f=!1}for(var _=s=l,M=0;M<_.length;M++){var N=_[M];N()}return L}function S(L){if(typeof L!="function")throw new Error(De(10));a=L,y({type:jn.REPLACE})}function C(){var L,_=g;return L={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(De(11));function k(){N.next&&N.next(m())}k();var D=_(k);return{unsubscribe:D}}},L[Qd]=function(){return this},L}return y({type:jn.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:S},n[Qd]=C,n}function Tm(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:jn.INIT});if(typeof n>"u")throw new Error(De(12));if(typeof r(void 0,{type:jn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Jd(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Tm(r)}catch(f){l=f}return function(u,m){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,S={},C=0;C<i.length;C++){var L=i[C],_=r[L],M=u[L],N=_(M,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(De(14))}S[L]=N,y=y||N!==M}return y=y||i.length!==Object.keys(u).length,y?S:u}}function ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function e0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(De(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=ao.apply(void 0,l)(a.dispatch),hs(hs({},a),{},{dispatch:i})}}}function t0(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var r0=t0();r0.withExtraArgument=t0;var ys=r0;var s0=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mm=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(m){return f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},io=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},zm=Object.defineProperty,Pm=Object.defineProperties,Im=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,km=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,n0=function(e,t,r){return t in e?zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},rr=function(e,t){for(var r in t||(t={}))km.call(t,r)&&n0(e,r,t[r]);if(o0)for(var n=0,a=o0(t);n<a.length;n++){var r=a[n];Dm.call(t,r)&&n0(e,r,t[r])}return e},bs=function(e,t){return Pm(e,Im(t))},Bm=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{l(r.next(f))}catch(u){a(u)}},s=function(f){try{l(r.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(e,t)).next())})};var Um=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},FS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function $m(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Hm=function(e){s0(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,io([void 0],r[0].concat(this)))):new(t.bind.apply(t,io([void 0],r.concat(this))))},t}(Array),Gm=function(e){s0(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,io([void 0],r[0].concat(this)))):new(t.bind.apply(t,io([void 0],r.concat(this))))},t}(Array);function Ss(e){return gt(e)?Vn(e,function(){}):e}function Fm(e){return typeof e=="boolean"}function Wm(){return function(t){return Vm(t)}}function Vm(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new Hm;if(r&&(Fm(r)?l.push(ys):l.push(ys.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return l}var xs=!0;function c0(e){var t=Wm(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,l=r.devTools,f=l===void 0?!0:l,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,S;if(typeof a=="function")S=a;else if($m(a))S=Jd(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(t),!xs&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xs&&C.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var L=e0.apply(void 0,C),_=ao;f&&(_=Um(rr({trace:!xs},typeof f=="object"&&f)));var M=new Gm(L),N=M;Array.isArray(y)?N=io([L],y):typeof y=="function"&&(N=y(M));var k=_.apply(void 0,N);return gs(S,m,k)}function or(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rr(rr({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function l0(e){var t={},r=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function jm(e){return typeof e=="function"}function Km(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?l0(t):[t,r,n],i=a[0],s=a[1],l=a[2],f;if(jm(e))f=function(){return Ss(e())};else{var u=Ss(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var S=io([i[y.type]],s.filter(function(C){var L=C.matcher;return L(y)}).map(function(C){var L=C.reducer;return L}));return S.filter(function(C){return!!C}).length===0&&(S=[l]),S.reduce(function(C,L){if(L)if(Ht(C)){var _=C,M=L(_,y);return M===void 0?C:M}else{if(gt(C))return Vn(C,function(N){return L(N,y)});var M=L(C,y);if(M===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return M}return C},g)}return m.getInitialState=f,m}function Zm(e,t){return e+"/"+t}function d0(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ss(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(m){var g=n[m],y=Zm(t,m),S,C;"reducer"in g?(S=g.reducer,C=g.prepare):S=g,i[m]=S,s[y]=S,l[m]=C?or(y,C):or(y)});function f(){var m=typeof e.extraReducers=="function"?l0(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,S=m[1],C=S===void 0?[]:S,L=m[2],_=L===void 0?void 0:L,M=rr(rr({},y),s);return Km(r,function(N){for(var k in M)N.addCase(k,M[k]);for(var D=0,Y=C;D<Y.length;D++){var le=Y[D];N.addMatcher(le.matcher,le.reducer)}_&&N.addDefaultCase(_)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var qm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ym=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qm[Math.random()*64|0];return t},Xm=["name","message","stack","code"],vs=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),a0=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Qm=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Xm;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},KS=function(){function e(t,r,n){var a=or(t+"/fulfilled",function(m,g,y,S){return{payload:m,meta:bs(rr({},S||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=or(t+"/pending",function(m,g,y){return{payload:void 0,meta:bs(rr({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=or(t+"/rejected",function(m,g,y,S,C){return{payload:S,error:(n&&n.serializeError||Qm)(m||"Rejected"),meta:bs(rr({},C||{}),{arg:y,requestId:g,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(g,y,S){var C=n?.idGenerator?n.idGenerator(m):Ym(),L=new f,_,M=!1;function N(D){_=D,L.abort()}var k=function(){return Bm(this,null,function(){var D,Y,le,$e,we,vt,_e;return Mm(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),$e=(D=n?.condition)==null?void 0:D.call(n,m,{getState:y,extra:S}),eg($e)?[4,$e]:[3,2];case 1:$e=x.sent(),x.label=2;case 2:if($e===!1||L.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return M=!0,we=new Promise(function(E,$){return L.signal.addEventListener("abort",function(){return $({name:"AbortError",message:_||"Aborted"})})}),g(i(C,m,(Y=n?.getPendingMeta)==null?void 0:Y.call(n,{requestId:C,arg:m},{getState:y,extra:S}))),[4,Promise.race([we,Promise.resolve(r(m,{dispatch:g,getState:y,extra:S,requestId:C,signal:L.signal,abort:N,rejectWithValue:function(E,$){return new vs(E,$)},fulfillWithValue:function(E,$){return new a0(E,$)}})).then(function(E){if(E instanceof vs)throw E;return E instanceof a0?a(E.payload,C,m,E.meta):a(E,C,m)})])];case 3:return le=x.sent(),[3,5];case 4:return vt=x.sent(),le=vt instanceof vs?s(null,C,m,vt.payload,vt.meta):s(vt,C,m),[3,5];case 5:return _e=n&&!n.dispatchConditionRejection&&s.match(le)&&le.meta.condition,_e||g(le),[2,le]}})})}();return Object.assign(k,{abort:N,requestId:C,arg:m,unwrap:function(){return k.then(Jm)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Jm(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function eg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var f0="listener",u0="completed",p0="cancelled",ZS="task-"+p0,qS="task-"+u0,YS=f0+"-"+p0,XS=f0+"-"+u0;var Cs="listenerMiddleware";var QS=or(Cs+"/add"),JS=or(Cs+"/removeAll"),eC=or(Cs+"/remove");var i0,tC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(i0||(i0=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},tg=function(e){return function(t){setTimeout(t,e)}},rC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tg(10);Vd();var rg=kn(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Kn=class extends rg(Object){};window.ftReduxStores||(window.ftReduxStores={});var h0=class e extends Kn{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Hn(i))return i;if(a==null)return;let s=d0({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=c0({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Ed(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Dn;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zn=class{static format(t,r,n,a,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a,!!i)):this.getIntlDateTime(t,r,n,a,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a,i){let s=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),f=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return i?f:a?`${l} ${f}`:l}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 qn=v(P()),og="ft-app-info",wr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};wr.eventName="authentication-change";var ng={session:(e,t)=>{(0,qn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>I.dispatchEvent(new wr(t.payload)),0))}},I=qn.FtReduxStore.get({name:og,reducers:ng,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var m0=v(P()),Yn=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},NC=(0,m0.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(I)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Zn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Yn([(0,Es.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Yn([(0,Es.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Yn([Ji({store:I.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Yn([Ji({store:I.name})],t.prototype,"uiLocale",void 0),t});var ig=v(y0(),1);var b0;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(b0||(b0={}));var x0;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(x0||(x0={}));var v0;(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"})(v0||(v0={}));var S0;(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"})(S0||(S0={}));var C0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(C0||(C0={}));var E0;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(E0||(E0={}));var L0;(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"})(L0||(L0={}));var A0;(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"})(A0||(A0={}));var O0;(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"})(O0||(O0={}));var R0;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(R0||(R0={}));var w0;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(w0||(w0={}));var _0;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(_0||(_0={}));var N0;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(N0||(N0={}));var T0;(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"})(T0||(T0={}));var M0;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(M0||(M0={}));var z0;(function(e){e.ASC="ASC",e.DESC="DESC"})(z0||(z0={}));var P0;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(P0||(P0={}));var I0;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(I0||(I0={}));var k0;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(k0||(k0={}));var D0;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(D0||(D0={}));var B0;(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"})(B0||(B0={}));var U0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(U0||(U0={}));var $0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($0||($0={}));var H0;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(H0||(H0={}));var G0;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(G0||(G0={}));var Se;(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"})(Se||(Se={}));var nt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(nt||(nt={}));var F0;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(F0||(F0={}));var W0;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(W0||(W0={}));var V0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(V0||(V0={}));var j0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(j0||(j0={}));var K0;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(K0||(K0={}));var Z0;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(Z0||(Z0={}));var q0;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(q0||(q0={}));var Y0;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Y0||(Y0={}));var X0;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(X0||(X0={}));var ag={[Se.PERSONAL_BOOK_SHARE_USER]:[Se.PERSONAL_BOOK_USER],[Se.HTML_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.PDF_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.KHUB_ADMIN]:[Se.CONTENT_PUBLISHER],[Se.ADMIN]:[Se.KHUB_ADMIN,Se.USERS_ADMIN,Se.PORTAL_ADMIN,Se.BEHAVIOR_DATA_USER],[Se.GENERATIVE_AI_EXPORT_USER]:[Se.GENERATIVE_AI_USER]};function Q0(e,t){return e===t||(ag[e]??[]).some(r=>Q0(r,t))}function J0(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=>Q0(n,t))}var na=v(P());var Ls=v(P());var _r=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=I.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=I.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var Jn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var qe=class extends Jn{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ls.CacheRegistry,this.cache=t?a.commonCache:new Ls.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 ea=class extends qe{async listMySearches(){let{session:t}=I.getState();return J0(t,Se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ta=class extends qe{async listMyBookmarks(){let t=I.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ra=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var oa=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var sg="ft-user-assets",cg={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(nt).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:a}=t.payload;Os(e,r,[...As(e,r),a]),e4(e,r,1,n),t4(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Os(e,r,As(e,r).map(a=>a.id===n.id?n:a)),t4(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Os(e,r,As(e,r).filter(i=>i.id!==a)),e4(e,r,-1,n)}},r4={[nt.SEARCHES]:"savedSearches",[nt.BOOKMARKS]:"bookmarks",[nt.BOOKS]:void 0,[nt.COLLECTIONS]:void 0},As=(e,t)=>{var r;let n=r4[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Os=(e,t,r)=>{let n=r4[t];n&&(e[n]=r)},e4=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===nt.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},t4=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Ye=na.FtReduxStore.get({name:sg,reducers:cg,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(nt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Rs=class{constructor(t=new ra,r=new oa){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ta,this.savedSearchesService=new ea,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=I.getState();(0,na.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(),Ye.actions.clearAssetCount(),Ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ye.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Ye.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Ye.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Ye.getState().assetCounts.bookmarkByMap).length!==0;t===nt.BOOKMARKS&&r&&Ye.actions.clearBookmarkCountByMap(),Ye.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;Ye.actions.bookmarks(r)}}},lg=new Rs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=lg);var ws=class{addCommand(t,r=!1){I.commands.add(t,r)}consumeCommand(t){return I.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ws;var at=v(P());var o4,co=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},dg=Symbol("clearAfterUnitTest"),aa=class extends(0,at.withEventBus)(qe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[o4]=()=>{this.defaultMessages={},this.cache=new at.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=I.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 a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,at.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,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 a;let i=t.toLowerCase(),s=this.resolveContext(i);return new at.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).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(a){!(a instanceof at.CanceledPromiseError)&&r&&console.error(a)}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 a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new co({loadedContexts:t})),this.dispatchEvent(new co({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new co({loadedContexts:[t]})),this.dispatchEvent(new co({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,at.delay)(0).then(()=>n()).catch(()=>null)))}};o4=dg;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends aa{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends aa{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var lo=window.FluidTopicsI18nService,ia=window.FluidTopicsCustomI18nService;var n4=v(P()),_s=class{highlightHtml(t,r,n){(0,n4.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new _s;var a4=v(P());var Ns=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i,s;if(t==null)return"";try{return a4.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(t)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ns;var i4=v(P());var Zo=class{static get(t,r){var n,a;let i=I.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new i4.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Ts=class{urlToSearchRequest(t){return Zo.get().parse(t)}searchRequestToUrl(t){return Zo.get().serialize(t)}};window.FluidTopicsUrlService=new Ts;var ar=v(P());var Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nr.eventName="change";var Ms=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))}},s4=new Ms;var sa=class e extends ar.WithEventBus{static build(){return new e(window.history,s4,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}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,ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nr(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,l])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Nr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nr.eventName,t)}currentItem(){return(0,ar.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,ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,ar.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 a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}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 a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sa.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var c4=v(X());var l4=c4.css`
1799
1799
  `;var f4=v(X()),Me=v(de()),yt=v(P());function d4(e,t){let{authenticationRequired:r,session:n}=I.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Le=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},ce=class extends yt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>_r.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new yt.CacheRegistry,this.cleanSessionDebouncer=new yt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return f4.html`
1800
1800
  <slot></slot>
1801
1801
  `}connectedCallback(){super.connectedCallback(),I.addEventListener(wr.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(wr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var r,n,a,i,s,l,f;super.update(t),t.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&I.actions.noCustom(this.noCustom),t.has("editorMode")&&I.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&I.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>lo.addContext(u)),t.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(I.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),I.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&I.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>d4(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ce.elementDefinitions={};ce.styles=l4;Le([(0,Me.property)()],ce.prototype,"baseUrl",void 0);Le([(0,Me.property)()],ce.prototype,"apiIntegrationIdentifier",void 0);Le([(0,Me.property)()],ce.prototype,"apiIntegrationAppVersion",void 0);Le([(0,Me.property)()],ce.prototype,"uiLocale",void 0);Le([(0,yt.jsonProperty)(null)],ce.prototype,"availableUiLocales",void 0);Le([(0,yt.jsonProperty)(null)],ce.prototype,"metadataConfiguration",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"editorMode",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"noCustom",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"openExternalDocumentInNewTab",void 0);Le([(0,Me.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],ce.prototype,"noCustomComponent",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"withManualResources",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"navigatorOnline",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"forcedOffline",void 0);Le([(0,Me.property)({type:Object})],ce.prototype,"apiProvider",void 0);Le([(0,Me.property)({type:Boolean})],ce.prototype,"authenticationRequired",void 0);Le([(0,yt.jsonProperty)([])],ce.prototype,"messageContexts",void 0);Le([(0,yt.jsonProperty)(void 0)],ce.prototype,"session",void 0);Le([(0,Me.state)()],ce.prototype,"localesConfiguration",void 0);Le([(0,Me.state)()],ce.prototype,"availableContentLocales",void 0);var u4=v(P());(0,u4.customElement)("ft-app-context")(ce);var p4=v(de());var zs=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-]+$/)}},fo=new zs;var fg=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Yo=Symbol("i18nAttributes"),h4=Symbol("i18nListAttributes"),m4=Symbol("i18nProperties"),ca=Symbol("i18nContexts"),qo=Symbol("i18nUnsubs"),fa=(0,uo.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?ia:lo}i18n(i){let{context:s,key:l,message:f}=i,{custom:u,args:m,argsProvider:g}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=m??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(fo.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var u;return((u=f?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,u=(m,g,y)=>y?.context&&y.key&&i(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[Yo])===null||s===void 0||s.forEach((m,g)=>f[g]=u(m,g,f[g])),(l=this[h4])===null||l===void 0||l.forEach((m,g)=>{var y;return f[g]=(y=f[g])===null||y===void 0?void 0:y.map(S=>u(m,g,S))})}updateI18nProperties(i){var s;(s=this[m4])===null||s===void 0||s.forEach((l,f)=>{i(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let f=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[ca].set(f,{isCustomContext:l}),this[qo].has(f)||this[qo].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[ca].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ca].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[qo].forEach(i=>i()),this[qo].clear()}}return t=ca,r=qo,fg([(0,p4.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),la=class extends fa(uo.FtLitElement){},da=class extends fa(uo.FtLitElementRedux){};var g4=v(P());var Ps=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?fo.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},ug=new Ps;var y4=(e,t)=>(r,n)=>{var a;r.constructor.createProperty(n,{type:Object,hasChanged:g4.hasChanged,converter:fo,...t}),r[Yo]=(a=r[Yo])!==null&&a!==void 0?a:new Map,r[Yo].set(n,e??{})};var ua=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?ia:lo}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,a)=>{let i=a;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...i)=>this.service.resolveMessage(this.name,a,...i)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};var b4=v(X());var x4=b4.css`
@@ -45,7 +45,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var Ed={};var fs={};J(fs,{ParametrizedLabelResolver:()=>qo});var qo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var zs={};J(zs,{FtCommandQueue:()=>Yo,FtLitElementRedux:()=>Qo,FtReduxStore:()=>Lr,FtStateManager:()=>ks,ReduxWatcher:()=>Yn,clearAllStores:()=>Dp,isFtReduxStore:()=>Jr,redux:()=>Qr,reduxEventListener:()=>ep,reduxReactive:()=>J4,watch:()=>$p,withRedux:()=>Ad});var J4=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Qr=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:Pt,attribute:!1,...e};x(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[o],store:e.store})}},ep=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Yo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),Er=Symbol("internalStores"),Ad=_e(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Er].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Er].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Er].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Er].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Er].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let f=this.getStore(s.store);f&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[c]=s.selector(f.getState(),this))}})}subscribeToStore(s,c){var d;this[Yt].set(s,c.subscribe(()=>this.updateFromStores())),this[Xo].set(s,[]),Jr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let p=g=>this[h](g);c.addEventListener(f.eventName,p),this[Xo].get(s).push(()=>c.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Yt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].delete(s),(c=this[Xo].get(s))===null||c===void 0||c.forEach(d=>d()),this[Xo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=Er,o=Xo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Qo=class extends Ad(X){};function et(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Dt(t){return!!t&&!!t[ge]}function ut(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===cp}(t)||Array.isArray(t)||!!t[Nd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nd])||vs(t)||Ss(t))}function Ar(t,e,r){r===void 0&&(r=!1),ro(t)===0?(r?Object.keys:to)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,i){return e(i,o,t)})}function ro(t){var e=t[ge];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vs(t)?2:Ss(t)?3:0}function eo(t,e){return ro(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tp(t,e){return ro(t)===2?t.get(e):t[e]}function Md(t,e,r){var o=ro(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Pd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function vs(t){return ap&&t instanceof Map}function Ss(t){return sp&&t instanceof Set}function Xt(t){return t.o||t.t}function Cs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zd(t);delete e[ge];for(var r=to(e),o=0;o<r.length;o++){var i=r[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Es(t,e){return e===void 0&&(e=!1),As(t)||Dt(t)||!ut(t)||(ro(t)>1&&(t.set=t.add=t.clear=t.delete=rp),Object.freeze(t),e&&Ar(t,function(r,o){return Es(o,!0)},!0)),t}function rp(){et(2)}function As(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function At(t){var e=xs[t];return e||et(18,t),e}function op(t,e){xs[t]||(xs[t]=e)}function gs(){return en}function us(t,e){e&&(At("Patches"),t.u=[],t.s=[],t.v=e)}function Vn(t){ys(t),t.p.forEach(np),t.p=null}function ys(t){t===en&&(en=t.l)}function Od(t){return en={p:[],l:en,h:t,m:!0,_:0}}function np(t){var e=t[ge];e.i===0||e.i===1?e.j():e.g=!0}function ps(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||At("ES5").S(e,t,o),o?(r[ge].P&&(Vn(e),et(4)),ut(t)&&(t=jn(e,t),e.l||Kn(e,t)),e.u&&At("Patches").M(r[ge].t,t,e.u,e.s)):t=jn(e,r,[]),Vn(e),e.u&&e.v(e.u,e.s),t!==kd?t:void 0}function jn(t,e,r){if(As(e))return e;var o=e[ge];if(!o)return Ar(e,function(c,d){return Ld(t,o,e,c,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Kn(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=Cs(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),Ar(a,function(c,d){return Ld(t,o,i,c,d,r,s)}),Kn(t,i,!1),r&&t.u&&At("Patches").N(o,r,t.u,t.s)}return o.o}function Ld(t,e,r,o,i,a,s){if(Dt(i)){var c=jn(t,i,a&&e&&e.i!==3&&!eo(e.R,o)?a.concat(o):void 0);if(Md(r,o,c),!Dt(c))return;t.m=!1}else s&&r.add(i);if(ut(i)&&!As(i)){if(!t.h.D&&t._<1)return;jn(t,i),e&&e.A.l||Kn(t,i)}}function Kn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Es(e,r)}function hs(t,e){var r=t[ge];return(r?Xt(r):t)[e]}function Rd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Qt(t){t.P||(t.P=!0,t.l&&Qt(t.l))}function ms(t){t.o||(t.o=Cs(t.t))}function bs(t,e,r){var o=vs(e)?At("MapSet").F(e,r):Ss(e)?At("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:gs(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=c,f=tn;s&&(d=[c],f=Jo);var h=Proxy.revocable(d,f),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,r):At("ES5").J(e,r);return(r?r.A:gs()).p.push(o),o}function ip(t){return Dt(t)||et(22,t),function e(r){if(!ut(r))return r;var o,i=r[ge],a=ro(r);if(i){if(!i.P&&(i.i<4||!At("ES5").K(i)))return i.t;i.I=!0,o=wd(r,a),i.I=!1}else o=wd(r,a);return Ar(o,function(s,c){i&&tp(i.t,s)===c||Md(o,s,e(c))}),a===3?new Set(o):o}(t)}function wd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Cs(t)}function Id(){function t(s,c){var d=a[s];return d?d.enumerable=c:a[s]=d={configurable:!0,enumerable:c,get:function(){var f=this[ge];return tn.get(f,s)},set:function(f){var h=this[ge];tn.set(h,s,f)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][ge];if(!d.P)switch(d.i){case 5:o(d)&&Qt(d);break;case 4:r(d)&&Qt(d)}}}function r(s){for(var c=s.t,d=s.k,f=to(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==ge){var g=c[p];if(g===void 0&&!eo(c,p))return!0;var S=d[p],C=S&&S[ge];if(C?C.t!==g:!Pd(S,g))return!0}}var R=!!c[ge];return f.length!==to(c).length+(R?0:1)}function o(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&et(3,JSON.stringify(Xt(s)))}var a={};op("ES5",{J:function(s,c){var d=Array.isArray(s),f=function(p,g){if(p){for(var S=Array(g.length),C=0;C<g.length;C++)Object.defineProperty(S,""+C,t(C,!0));return S}var R=zd(g);delete R[ge];for(var _=to(R),N=0;N<_.length;N++){var P=_[N];R[P]=t(P,p||!!R[P].enumerable)}return Object.create(Object.getPrototypeOf(g),R)}(d,s),h={i:d?5:4,A:c?c.A:gs(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ge,{value:h,writable:!0}),f},S:function(s,c,d){d?Dt(c)&&c[ge].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[ge];if(p){var g=p.t,S=p.k,C=p.R,R=p.i;if(R===4)Ar(S,function(A){A!==ge&&(g[A]!==void 0||eo(g,A)?C[A]||f(S[A]):(C[A]=!0,Qt(p)))}),Ar(g,function(A){S[A]!==void 0||eo(S,A)||(C[A]=!1,Qt(p))});else if(R===5){if(o(p)&&(Qt(p),C.length=!0),S.length<g.length)for(var _=S.length;_<g.length;_++)C[_]=!1;else for(var N=g.length;N<S.length;N++)C[N]=!0;for(var P=Math.min(S.length,g.length),O=0;O<P;O++)S.hasOwnProperty(O)||(C[O]=!0),C[O]===void 0&&f(S[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var _d,en,Os=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ap=typeof Map<"u",sp=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",kd=Os?Symbol.for("immer-nothing"):((_d={})["immer-nothing"]=!0,_d),Nd=Os?Symbol.for("immer-draftable"):"__$immer_draftable",ge=Os?Symbol.for("immer-state"):"__$immer_state";var cp=""+Object.prototype.constructor,to=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zd=Object.getOwnPropertyDescriptors||function(t){var e={};return to(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},xs={},tn={get:function(t,e){if(e===ge)return t;var r=Xt(t);if(!eo(r,e))return function(i,a,s){var c,d=Rd(a,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,r,e);var o=r[e];return t.I||!ut(o)?o:o===hs(t.t,e)?(ms(t),t.o[e]=bs(t.A.h,o,t)):o},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,r){var o=Rd(Xt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var i=hs(Xt(t),e),a=i?.[ge];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Pd(r,i)&&(r!==void 0||eo(t.t,e)))return!0;ms(t),Qt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ms(t),Qt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Xt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){et(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){et(12)}},Jo={};Ar(tn,function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,r){return tn.set.call(this,t[0],e,r,t[0])};var lp=function(){function t(r){var o=this;this.O=Td,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var d=o;return function(R){var _=this;R===void 0&&(R=c);for(var N=arguments.length,P=Array(N>1?N-1:0),O=1;O<N;O++)P[O-1]=arguments[O];return d.produce(R,function(A){var w;return(w=a).call.apply(w,[_,A].concat(P))})}}var f;if(typeof a!="function"&&et(6),s!==void 0&&typeof s!="function"&&et(7),ut(i)){var h=Od(o),p=bs(o,i,void 0),g=!0;try{f=a(p),g=!1}finally{g?Vn(h):ys(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return us(h,s),ps(R,h)},function(R){throw Vn(h),R}):(us(h,s),ps(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===kd&&(f=void 0),o.D&&Es(f,!0),s){var S=[],C=[];At("Patches").M(i,f,S,C),s(S,C)}return f}et(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return o.produceWithPatches(f,function(S){return i.apply(void 0,[S].concat(p))})};var s,c,d=o.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,c]}):[d,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ut(r)||et(8),Dt(r)&&(r=ip(r));var o=Od(this),i=bs(this,r,void 0);return i[ge].C=!0,ys(o),i},e.finishDraft=function(r,o){var i=r&&r[ge],a=i.A;return us(a,o),ps(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Td&&et(20),this.O=r},e.applyPatches=function(r,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(o=o.slice(i+1));var s=At("Patches").$;return Dt(r)?s(r,o):this.produce(r,function(c){return s(c,o)})},t}(),We=new lp,dp=We.produce,Hv=We.produceWithPatches.bind(We),Fv=We.setAutoFreeze.bind(We),Gv=We.setUseProxies.bind(We),Wv=We.applyPatches.bind(We),Vv=We.createDraft.bind(We),jv=We.finishDraft.bind(We),Zn=dp;function Or(t){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(t)}function Dd(t,e){if(Or(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Or(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $d(t){var e=Dd(t,"string");return Or(e)=="symbol"?e:e+""}function Ud(t,e,r){return(e=$d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function Ls(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(r),!0).forEach(function(o){Ud(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Me(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Hd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Rs=function(){return Math.random().toString(36).substring(7).split("").join(".")},qn={INIT:"@@redux/INIT"+Rs(),REPLACE:"@@redux/REPLACE"+Rs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rs()}};function fp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ws(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(ws)(t,e)}if(typeof t!="function")throw new Error(Me(2));var i=t,a=e,s=[],c=s,d=!1;function f(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(Me(3));return a}function p(R){if(typeof R!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));var _=!0;return f(),c.push(R),function(){if(_){if(d)throw new Error(Me(6));_=!1,f();var P=c.indexOf(R);c.splice(P,1),s=null}}}function g(R){if(!fp(R))throw new Error(Me(7));if(typeof R.type>"u")throw new Error(Me(8));if(d)throw new Error(Me(9));try{d=!0,a=i(a,R)}finally{d=!1}for(var _=s=c,N=0;N<_.length;N++){var P=_[N];P()}return R}function S(R){if(typeof R!="function")throw new Error(Me(10));i=R,g({type:qn.REPLACE})}function C(){var R,_=p;return R={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Me(11));function O(){P.next&&P.next(h())}O();var A=_(O);return{unsubscribe:A}}},R[Hd]=function(){return this},R}return g({type:qn.INIT}),o={dispatch:g,subscribe:p,getState:h,replaceReducer:S},o[Hd]=C,o}function up(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:qn.INIT});if(typeof o>"u")throw new Error(Me(12));if(typeof r(void 0,{type:qn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Fd(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var i=e[o];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,c;try{up(r)}catch(d){c=d}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var p;for(var g=!1,S={},C=0;C<a.length;C++){var R=a[C],_=r[R],N=f[R],P=_(N,h);if(typeof P>"u"){var O=h&&h.type;throw new Error(Me(14))}S[R]=P,g=g||P!==N}return g=g||a.length!==Object.keys(f).length,g?S:f}}function oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function Gd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(Me(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return a=oo.apply(void 0,c)(i.dispatch),Ls(Ls({},i),{},{dispatch:a})}}}function Wd(t){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Vd=Wd();Vd.withExtraArgument=Wd;var _s=Vd;var Yd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),pp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return d([f,h])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],i=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},no=function(t,e){for(var r=0,o=e.length,i=t.length;r<o;r++,i++)t[i]=e[r];return t},hp=Object.defineProperty,mp=Object.defineProperties,gp=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable,Kd=function(t,e,r){return e in t?hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Jt=function(t,e){for(var r in e||(e={}))yp.call(e,r)&&Kd(t,r,e[r]);if(jd)for(var o=0,i=jd(e);o<i.length;o++){var r=i[o];bp.call(e,r)&&Kd(t,r,e[r])}return t},Ts=function(t,e){return mp(t,gp(e))},xp=function(t,e,r){return new Promise(function(o,i){var a=function(d){try{c(r.next(d))}catch(f){i(f)}},s=function(d){try{c(r.throw(d))}catch(f){i(f)}},c=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};c((r=r.apply(t,e)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)},dS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Cp=function(t){Yd(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e}(Array),Ep=function(t){Yd(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e}(Array);function Ps(t){return ut(t)?Zn(t,function(){}):t}function Ap(t){return typeof t=="boolean"}function Op(){return function(e){return Lp(e)}}function Lp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,i=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,c=new Cp;if(r&&(Ap(r)?c.push(_s):c.push(_s.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var f}return c}var Ns=!0;function Xd(t){var e=Op(),r=t||{},o=r.reducer,i=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,c=r.devTools,d=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,g=p===void 0?void 0:p,S;if(typeof i=="function")S=i;else if(Sp(i))S=Fd(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(e),!Ns&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ns&&C.some(function(A){return typeof A!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=Gd.apply(void 0,C),_=oo;d&&(_=vp(Jt({trace:!Ns},typeof d=="object"&&d)));var N=new Ep(R),P=N;Array.isArray(g)?P=no([R],g):typeof g=="function"&&(P=g(N));var O=_.apply(void 0,P);return ws(S,h,O)}function er(t,e){function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Jt(Jt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function Qd(t){var e={},r=[],o,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return t(i),[e,r,o]}function Rp(t){return typeof t=="function"}function wp(t,e,r,o){r===void 0&&(r=[]);var i=typeof e=="function"?Qd(e):[e,r,o],a=i[0],s=i[1],c=i[2],d;if(Rp(t))d=function(){return Ps(t())};else{var f=Ps(t);d=function(){return f}}function h(p,g){p===void 0&&(p=d());var S=no([a[g.type]],s.filter(function(C){var R=C.matcher;return R(g)}).map(function(C){var R=C.reducer;return R}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,R){if(R)if(Dt(C)){var _=C,N=R(_,g);return N===void 0?C:N}else{if(ut(C))return Zn(C,function(P){return R(P,g)});var N=R(C,g);if(N===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return C},p)}return h.getInitialState=d,h}function _p(t,e){return t+"/"+e}function Jd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ps(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},c={};i.forEach(function(h){var p=o[h],g=_p(e,h),S,C;"reducer"in p?(S=p.reducer,C=p.prepare):S=p,a[h]=S,s[g]=S,c[h]=C?er(g,C):er(g)});function d(){var h=typeof t.extraReducers=="function"?Qd(t.extraReducers):[t.extraReducers],p=h[0],g=p===void 0?{}:p,S=h[1],C=S===void 0?[]:S,R=h[2],_=R===void 0?void 0:R,N=Jt(Jt({},g),s);return wp(r,function(P){for(var O in N)P.addCase(O,N[O]);for(var A=0,w=C;A<w.length;A++){var z=w[A];P.addMatcher(z.matcher,z.reducer)}_&&P.addDefaultCase(_)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var Tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Tp[Math.random()*64|0];return e},Mp=["name","message","stack","code"],Ms=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Zd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Pp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Mp;r<o.length;r++){var i=o[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hS=function(){function t(e,r,o){var i=er(e+"/fulfilled",function(h,p,g,S){return{payload:h,meta:Ts(Jt({},S||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),a=er(e+"/pending",function(h,p,g){return{payload:void 0,meta:Ts(Jt({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=er(e+"/rejected",function(h,p,g,S,C){return{payload:S,error:(o&&o.serializeError||Pp)(h||"Rejected"),meta:Ts(Jt({},C||{}),{arg:g,requestId:p,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,g,S){var C=o?.idGenerator?o.idGenerator(h):Np(),R=new d,_,N=!1;function P(A){_=A,R.abort()}var O=function(){return xp(this,null,function(){var A,w,z,j,re,te,H;return pp(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),j=(A=o?.condition)==null?void 0:A.call(o,h,{getState:g,extra:S}),kp(j)?[4,j]:[3,2];case 1:j=b.sent(),b.label=2;case 2:if(j===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,re=new Promise(function(L,$){return R.signal.addEventListener("abort",function(){return $({name:"AbortError",message:_||"Aborted"})})}),p(a(C,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:C,arg:h},{getState:g,extra:S}))),[4,Promise.race([re,Promise.resolve(r(h,{dispatch:p,getState:g,extra:S,requestId:C,signal:R.signal,abort:P,rejectWithValue:function(L,$){return new Ms(L,$)},fulfillWithValue:function(L,$){return new Zd(L,$)}})).then(function(L){if(L instanceof Ms)throw L;return L instanceof Zd?i(L.payload,C,h,L.meta):i(L,C,h)})])];case 3:return z=b.sent(),[3,5];case 4:return te=b.sent(),z=te instanceof Ms?s(null,C,h,te.payload,te.meta):s(te,C,h),[3,5];case 5:return H=o&&!o.dispatchConditionRejection&&s.match(z)&&z.meta.condition,H||p(z),[2,z]}})})}();return Object.assign(O,{abort:P,requestId:C,arg:h,unwrap:function(){return O.then(Ip)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ip(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var e1="listener",t1="completed",r1="cancelled",mS="task-"+r1,gS="task-"+t1,yS=e1+"-"+r1,bS=e1+"-"+t1;var Is="listenerMiddleware";var xS=er(Is+"/add"),vS=er(Is+"/removeAll"),SS=er(Is+"/remove");var qd,CS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(qd||(qd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},zp=function(t){return function(e){setTimeout(e,t)}},ES=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zp(10);Id();window.ftReduxStores||(window.ftReduxStores={});var Lr=class t extends It{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Jr(a))return a;if(i==null)return;let s=Jd({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Xd({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=hr(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Yo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,f=a[d];return f?(...h)=>{let p=f(...h.map(i));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Dp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Jr(e)&&e.clear()}var Yn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Pt(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function $p(t,e,r){return new Yn(t,e,r).watch()}var ks=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Us={};J(Us,{scrollHelper:()=>Up});var Ds,Xn=new Map,$s=class{lock(e,r){if(r){let o=Xn.get(r);if(o==null||o===e)return Xn.set(r,e),r}}release(e,r){r&&Xn.get(r)===e&&Xn.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of ca(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=pr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Ds=window.FluidTopicsScrollHelper)!==null&&Ds!==void 0?Ds:new $s;var Up=window.FluidTopicsScrollHelper;var Hs={};J(Hs,{SearchPlaceConverter:()=>co,SearchPlaceQueryParams:()=>se,isSearchPlaceQueryParams:()=>H1,serializeRequest:()=>Gp});var Hp=hu(n1(),1);var i1;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(i1||(i1={}));var a1;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(a1||(a1={}));var s1;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(s1||(s1={}));var c1;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(c1||(c1={}));var l1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(l1||(l1={}));var d1;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(d1||(d1={}));var f1;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(f1||(f1={}));var u1;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(u1||(u1={}));var p1;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(p1||(p1={}));var h1;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(h1||(h1={}));var m1;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(m1||(m1={}));var g1;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(g1||(g1={}));var y1;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(y1||(y1={}));var b1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(b1||(b1={}));var ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ao||(ao={}));var x1;(function(t){t.ASC="ASC",t.DESC="DESC"})(x1||(x1={}));var v1;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(v1||(v1={}));var Bs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Bs||(Bs={}));var w1=t=>Object.keys(Bs).includes(t);var S1;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(S1||(S1={}));var C1;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(C1||(C1={}));var E1;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(E1||(E1={}));var so;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(so||(so={}));var _1=t=>Object.keys(so).includes(t);var A1;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(A1||(A1={}));var O1;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(O1||(O1={}));var L1;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(L1||(L1={}));var Ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Ce||(Ce={}));var tt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(tt||(tt={}));var R1;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(R1||(R1={}));var T1;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(T1||(T1={}));var N1;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(N1||(N1={}));var M1;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(M1||(M1={}));var P1;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(P1||(P1={}));var I1;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(I1||(I1={}));var k1;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(k1||(k1={}));var z1;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(z1||(z1={}));var D1;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(D1||(D1={}));var Bp={[Ce.PERSONAL_BOOK_SHARE_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.HTML_EXPORT_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.PDF_EXPORT_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.KHUB_ADMIN]:[Ce.CONTENT_PUBLISHER],[Ce.ADMIN]:[Ce.KHUB_ADMIN,Ce.USERS_ADMIN,Ce.PORTAL_ADMIN,Ce.BEHAVIOR_DATA_USER],[Ce.GENERATIVE_AI_EXPORT_USER]:[Ce.GENERATIVE_AI_USER]};function $1(t,e){return t===e||(Bp[t]??[]).some(r=>$1(r,e))}function U1(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>$1(o,e))}function Fp(t){return`"${t}"`}function B1(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new co(t).serialize(e)}var se;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(se||(se={}));var Wp=new Set(Object.values(se));function H1(t){return Wp.has(t)}var co=class{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,c,d,f,h,p,g,S;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(se.LOCALE,e.contentLocale):C.append(se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&C.append(se.QUERY,e.query);let R=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(A=>A.valueFilter&&!A.valueFilter.negative))!==null&&a!==void 0?a:[];if(R.length>0){let A=R.map(w=>{var z,j;let re=((j=(z=w.valueFilter)===null||z===void 0?void 0:z.values)!==null&&j!==void 0?j:[]).map(te=>this.escapeFilters(te)).map(te=>Fp(B1(te))).join("_");return`${w.key}~${re}`}).join("*");C.append(se.VALUE_FILTERS,A)}let _=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(A=>A.dateFilter))!==null&&c!==void 0?c:[];if(_.length>0){let A=_.map(w=>{var z;return`${w.key}~${(z=w.dateFilter)===null||z===void 0?void 0:z.type.toLowerCase()}`}).join("*");C.append(se.DATE_FILTERS,A)}let N=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(A=>A.rangeFilter))!==null&&f!==void 0?f:[];if(N.length>0){let A=N.map(w=>{var z,j;return`${w.key}~${(z=w.rangeFilter)===null||z===void 0?void 0:z.from}_${(j=w.rangeFilter)===null||j===void 0?void 0:j.to}`}).join("*");C.append(se.RANGE_FILTERS,A)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(se.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((g=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&C.append(se.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&C.append(se.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let P=(S=e.otherQueryParams)!==null&&S!==void 0?S:{};for(let A in P)C.append(A,P[A]);let O=new Array;return C.forEach((A,w)=>{O.push(this.encodeQueryString(w)+"="+this.encodeQueryString(A))}),encodeURI(O.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(N){console.warn("Could not decode search request query params, fallback on raw value",N)}let d=new URLSearchParams(e),f=d.get(se.LOCALE)==="all"?void 0:d.get(se.LOCALE),h=((r=d.get(se.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),p=(o=d.get(se.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(i=d.get(se.SCOPE))!==null&&i!==void 0?i:"default",S=+((a=d.get(se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(se.KEYWORD_MATCH),R=C?C.toUpperCase()===ao.MANDATORY?ao.MANDATORY:ao.OPTIONAL:void 0,_={};for(let N of d.keys())H1(N)||(_[N]=d.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(se.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:w1(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:pr(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:R,otherQueryParams:_}}parseCompatFilters(e){var r,o,i,a,s,c;let d=[];return e.has(se.FILTERS)&&(d=this.parseValueFilters((r=e.get(se.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(se.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(se.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(se.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(B1).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:so[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(o,i);return e}unescapeFilterValue(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(_1(e))return[{key:"ft:lastEdition",dateFilter:{type:so[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}};var Gs={};J(Gs,{toFtFormComponent:()=>rn});var Fs=Symbol("elementInternals"),rn=_e(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Fs].form}constructor(...o){super(o),this[Fs]=this.attachInternals()}setFormValue(o){this[Fs].setFormValue(o)}}return e});var Ws={};J(Ws,{DateFormatter:()=>Rr});var Rr=class{static format(e,r,o,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i)):this.getIntlDateTime(e,r,o,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(a);if(!i)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var js={};J(js,{ALL_KEYS_VALUE:()=>Vs,SameWindowStorageEvent:()=>lo});var Vs="__all__",lo=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Vs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new lo(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new lo(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new lo(Vs))}});var Zs={};J(Zs,{FocusMainContentEvent:()=>Ks});var Ks=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var F1={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Vp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function jp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Vp);document.addEventListener("click",jp);var ei=D`
48
+ `;var Ed={};var fs={};J(fs,{ParametrizedLabelResolver:()=>qo});var qo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,i;e=this.resolvePluralKey(e,r);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(o,s))),e}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let o=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var zs={};J(zs,{FtCommandQueue:()=>Yo,FtLitElementRedux:()=>Qo,FtReduxStore:()=>Lr,FtStateManager:()=>ks,ReduxWatcher:()=>Yn,clearAllStores:()=>Dp,isFtReduxStore:()=>Jr,redux:()=>Qr,reduxEventListener:()=>ep,reduxReactive:()=>J4,watch:()=>$p,withRedux:()=>Ad});var J4=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},Qr=t=>{let e=t??{};return(r,o)=>{var i;let a={hasChanged:Pt,attribute:!1,...e};x(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[o],store:e.store})}},ep=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var Yo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Jr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),Er=Symbol("internalStores"),Ad=_e(Symbol("withRedux"),function(t){var e,r,o;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Er].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Er].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Er].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Er].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Er].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let f=this.getStore(s.store);f&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[c]=s.selector(f.getState(),this))}})}subscribeToStore(s,c){var d;this[Yt].set(s,c.subscribe(()=>this.updateFromStores())),this[Xo].set(s,[]),Jr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,h)=>{if(typeof this[h]=="function"&&(!f.store||c.name===f.store)){let p=g=>this[h](g);c.addEventListener(f.eventName,p),this[Xo].get(s).push(()=>c.removeEventListener(f.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Yt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].delete(s),(c=this[Xo].get(s))===null||c===void 0||c.forEach(d=>d()),this[Xo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=Er,o=Xo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Qo=class extends Ad(X){};function et(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Dt(t){return!!t&&!!t[ge]}function ut(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===cp}(t)||Array.isArray(t)||!!t[Nd]||!!(!((e=t.constructor)===null||e===void 0)&&e[Nd])||vs(t)||Ss(t))}function Ar(t,e,r){r===void 0&&(r=!1),ro(t)===0?(r?Object.keys:to)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,i){return e(i,o,t)})}function ro(t){var e=t[ge];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vs(t)?2:Ss(t)?3:0}function eo(t,e){return ro(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tp(t,e){return ro(t)===2?t.get(e):t[e]}function Md(t,e,r){var o=ro(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Pd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function vs(t){return ap&&t instanceof Map}function Ss(t){return sp&&t instanceof Set}function Xt(t){return t.o||t.t}function Cs(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zd(t);delete e[ge];for(var r=to(e),o=0;o<r.length;o++){var i=r[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Es(t,e){return e===void 0&&(e=!1),As(t)||Dt(t)||!ut(t)||(ro(t)>1&&(t.set=t.add=t.clear=t.delete=rp),Object.freeze(t),e&&Ar(t,function(r,o){return Es(o,!0)},!0)),t}function rp(){et(2)}function As(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function At(t){var e=xs[t];return e||et(18,t),e}function op(t,e){xs[t]||(xs[t]=e)}function gs(){return en}function us(t,e){e&&(At("Patches"),t.u=[],t.s=[],t.v=e)}function Vn(t){ys(t),t.p.forEach(np),t.p=null}function ys(t){t===en&&(en=t.l)}function Od(t){return en={p:[],l:en,h:t,m:!0,_:0}}function np(t){var e=t[ge];e.i===0||e.i===1?e.j():e.g=!0}function ps(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||At("ES5").S(e,t,o),o?(r[ge].P&&(Vn(e),et(4)),ut(t)&&(t=jn(e,t),e.l||Kn(e,t)),e.u&&At("Patches").M(r[ge].t,t,e.u,e.s)):t=jn(e,r,[]),Vn(e),e.u&&e.v(e.u,e.s),t!==kd?t:void 0}function jn(t,e,r){if(As(e))return e;var o=e[ge];if(!o)return Ar(e,function(c,d){return Ld(t,o,e,c,d,r)},!0),e;if(o.A!==t)return e;if(!o.P)return Kn(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=Cs(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),Ar(a,function(c,d){return Ld(t,o,i,c,d,r,s)}),Kn(t,i,!1),r&&t.u&&At("Patches").N(o,r,t.u,t.s)}return o.o}function Ld(t,e,r,o,i,a,s){if(Dt(i)){var c=jn(t,i,a&&e&&e.i!==3&&!eo(e.R,o)?a.concat(o):void 0);if(Md(r,o,c),!Dt(c))return;t.m=!1}else s&&r.add(i);if(ut(i)&&!As(i)){if(!t.h.D&&t._<1)return;jn(t,i),e&&e.A.l||Kn(t,i)}}function Kn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Es(e,r)}function hs(t,e){var r=t[ge];return(r?Xt(r):t)[e]}function Rd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Qt(t){t.P||(t.P=!0,t.l&&Qt(t.l))}function ms(t){t.o||(t.o=Cs(t.t))}function bs(t,e,r){var o=vs(e)?At("MapSet").F(e,r):Ss(e)?At("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:gs(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=c,f=tn;s&&(d=[c],f=Jo);var h=Proxy.revocable(d,f),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,r):At("ES5").J(e,r);return(r?r.A:gs()).p.push(o),o}function ip(t){return Dt(t)||et(22,t),function e(r){if(!ut(r))return r;var o,i=r[ge],a=ro(r);if(i){if(!i.P&&(i.i<4||!At("ES5").K(i)))return i.t;i.I=!0,o=wd(r,a),i.I=!1}else o=wd(r,a);return Ar(o,function(s,c){i&&tp(i.t,s)===c||Md(o,s,e(c))}),a===3?new Set(o):o}(t)}function wd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Cs(t)}function Id(){function t(s,c){var d=a[s];return d?d.enumerable=c:a[s]=d={configurable:!0,enumerable:c,get:function(){var f=this[ge];return tn.get(f,s)},set:function(f){var h=this[ge];tn.set(h,s,f)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][ge];if(!d.P)switch(d.i){case 5:o(d)&&Qt(d);break;case 4:r(d)&&Qt(d)}}}function r(s){for(var c=s.t,d=s.k,f=to(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==ge){var g=c[p];if(g===void 0&&!eo(c,p))return!0;var S=d[p],C=S&&S[ge];if(C?C.t!==g:!Pd(S,g))return!0}}var R=!!c[ge];return f.length!==to(c).length+(R?0:1)}function o(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&et(3,JSON.stringify(Xt(s)))}var a={};op("ES5",{J:function(s,c){var d=Array.isArray(s),f=function(p,g){if(p){for(var S=Array(g.length),C=0;C<g.length;C++)Object.defineProperty(S,""+C,t(C,!0));return S}var R=zd(g);delete R[ge];for(var _=to(R),N=0;N<_.length;N++){var P=_[N];R[P]=t(P,p||!!R[P].enumerable)}return Object.create(Object.getPrototypeOf(g),R)}(d,s),h={i:d?5:4,A:c?c.A:gs(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ge,{value:h,writable:!0}),f},S:function(s,c,d){d?Dt(c)&&c[ge].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[ge];if(p){var g=p.t,S=p.k,C=p.R,R=p.i;if(R===4)Ar(S,function(A){A!==ge&&(g[A]!==void 0||eo(g,A)?C[A]||f(S[A]):(C[A]=!0,Qt(p)))}),Ar(g,function(A){S[A]!==void 0||eo(S,A)||(C[A]=!1,Qt(p))});else if(R===5){if(o(p)&&(Qt(p),C.length=!0),S.length<g.length)for(var _=S.length;_<g.length;_++)C[_]=!1;else for(var N=g.length;N<S.length;N++)C[N]=!0;for(var P=Math.min(S.length,g.length),O=0;O<P;O++)S.hasOwnProperty(O)||(C[O]=!0),C[O]===void 0&&f(S[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var _d,en,Os=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ap=typeof Map<"u",sp=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",kd=Os?Symbol.for("immer-nothing"):((_d={})["immer-nothing"]=!0,_d),Nd=Os?Symbol.for("immer-draftable"):"__$immer_draftable",ge=Os?Symbol.for("immer-state"):"__$immer_state";var cp=""+Object.prototype.constructor,to=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zd=Object.getOwnPropertyDescriptors||function(t){var e={};return to(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},xs={},tn={get:function(t,e){if(e===ge)return t;var r=Xt(t);if(!eo(r,e))return function(i,a,s){var c,d=Rd(a,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,r,e);var o=r[e];return t.I||!ut(o)?o:o===hs(t.t,e)?(ms(t),t.o[e]=bs(t.A.h,o,t)):o},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,r){var o=Rd(Xt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var i=hs(Xt(t),e),a=i?.[ge];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Pd(r,i)&&(r!==void 0||eo(t.t,e)))return!0;ms(t),Qt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return hs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ms(t),Qt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Xt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){et(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){et(12)}},Jo={};Ar(tn,function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,r){return tn.set.call(this,t[0],e,r,t[0])};var lp=function(){function t(r){var o=this;this.O=Td,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var d=o;return function(R){var _=this;R===void 0&&(R=c);for(var N=arguments.length,P=Array(N>1?N-1:0),O=1;O<N;O++)P[O-1]=arguments[O];return d.produce(R,function(A){var w;return(w=a).call.apply(w,[_,A].concat(P))})}}var f;if(typeof a!="function"&&et(6),s!==void 0&&typeof s!="function"&&et(7),ut(i)){var h=Od(o),p=bs(o,i,void 0),g=!0;try{f=a(p),g=!1}finally{g?Vn(h):ys(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(R){return us(h,s),ps(R,h)},function(R){throw Vn(h),R}):(us(h,s),ps(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===kd&&(f=void 0),o.D&&Es(f,!0),s){var S=[],C=[];At("Patches").M(i,f,S,C),s(S,C)}return f}et(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return o.produceWithPatches(f,function(S){return i.apply(void 0,[S].concat(p))})};var s,c,d=o.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,c]}):[d,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ut(r)||et(8),Dt(r)&&(r=ip(r));var o=Od(this),i=bs(this,r,void 0);return i[ge].C=!0,ys(o),i},e.finishDraft=function(r,o){var i=r&&r[ge],a=i.A;return us(a,o),ps(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Td&&et(20),this.O=r},e.applyPatches=function(r,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(o=o.slice(i+1));var s=At("Patches").$;return Dt(r)?s(r,o):this.produce(r,function(c){return s(c,o)})},t}(),We=new lp,dp=We.produce,Hv=We.produceWithPatches.bind(We),Fv=We.setAutoFreeze.bind(We),Gv=We.setUseProxies.bind(We),Wv=We.applyPatches.bind(We),Vv=We.createDraft.bind(We),jv=We.finishDraft.bind(We),Zn=dp;function Or(t){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(t)}function Dd(t,e){if(Or(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(Or(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $d(t){var e=Dd(t,"string");return Or(e)=="symbol"?e:e+""}function Ud(t,e,r){return(e=$d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function Ls(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(r),!0).forEach(function(o){Ud(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Me(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Hd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Rs=function(){return Math.random().toString(36).substring(7).split("").join(".")},qn={INIT:"@@redux/INIT"+Rs(),REPLACE:"@@redux/REPLACE"+Rs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rs()}};function fp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ws(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(ws)(t,e)}if(typeof t!="function")throw new Error(Me(2));var i=t,a=e,s=[],c=s,d=!1;function f(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(Me(3));return a}function p(R){if(typeof R!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));var _=!0;return f(),c.push(R),function(){if(_){if(d)throw new Error(Me(6));_=!1,f();var P=c.indexOf(R);c.splice(P,1),s=null}}}function g(R){if(!fp(R))throw new Error(Me(7));if(typeof R.type>"u")throw new Error(Me(8));if(d)throw new Error(Me(9));try{d=!0,a=i(a,R)}finally{d=!1}for(var _=s=c,N=0;N<_.length;N++){var P=_[N];P()}return R}function S(R){if(typeof R!="function")throw new Error(Me(10));i=R,g({type:qn.REPLACE})}function C(){var R,_=p;return R={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Me(11));function O(){P.next&&P.next(h())}O();var A=_(O);return{unsubscribe:A}}},R[Hd]=function(){return this},R}return g({type:qn.INIT}),o={dispatch:g,subscribe:p,getState:h,replaceReducer:S},o[Hd]=C,o}function up(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:qn.INIT});if(typeof o>"u")throw new Error(Me(12));if(typeof r(void 0,{type:qn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Fd(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var i=e[o];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,c;try{up(r)}catch(d){c=d}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var p;for(var g=!1,S={},C=0;C<a.length;C++){var R=a[C],_=r[R],N=f[R],P=_(N,h);if(typeof P>"u"){var O=h&&h.type;throw new Error(Me(14))}S[R]=P,g=g||P!==N}return g=g||a.length!==Object.keys(f).length,g?S:f}}function oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function Gd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(Me(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return a=oo.apply(void 0,c)(i.dispatch),Ls(Ls({},i),{},{dispatch:a})}}}function Wd(t){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Vd=Wd();Vd.withExtraArgument=Wd;var _s=Vd;var Yd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),pp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return d([f,h])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],i=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},no=function(t,e){for(var r=0,o=e.length,i=t.length;r<o;r++,i++)t[i]=e[r];return t},hp=Object.defineProperty,mp=Object.defineProperties,gp=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable,Kd=function(t,e,r){return e in t?hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Jt=function(t,e){for(var r in e||(e={}))yp.call(e,r)&&Kd(t,r,e[r]);if(jd)for(var o=0,i=jd(e);o<i.length;o++){var r=i[o];bp.call(e,r)&&Kd(t,r,e[r])}return t},Ts=function(t,e){return mp(t,gp(e))},xp=function(t,e,r){return new Promise(function(o,i){var a=function(d){try{c(r.next(d))}catch(f){i(f)}},s=function(d){try{c(r.throw(d))}catch(f){i(f)}},c=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};c((r=r.apply(t,e)).next())})};var vp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)},dS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Cp=function(t){Yd(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e}(Array),Ep=function(t){Yd(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e}(Array);function Ps(t){return ut(t)?Zn(t,function(){}):t}function Ap(t){return typeof t=="boolean"}function Op(){return function(e){return Lp(e)}}function Lp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,i=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,c=new Cp;if(r&&(Ap(r)?c.push(_s):c.push(_s.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var f}return c}var Ns=!0;function Xd(t){var e=Op(),r=t||{},o=r.reducer,i=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,c=r.devTools,d=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,g=p===void 0?void 0:p,S;if(typeof i=="function")S=i;else if(Sp(i))S=Fd(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=s;if(typeof C=="function"&&(C=C(e),!Ns&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ns&&C.some(function(A){return typeof A!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=Gd.apply(void 0,C),_=oo;d&&(_=vp(Jt({trace:!Ns},typeof d=="object"&&d)));var N=new Ep(R),P=N;Array.isArray(g)?P=no([R],g):typeof g=="function"&&(P=g(N));var O=_.apply(void 0,P);return ws(S,h,O)}function er(t,e){function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Jt(Jt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function Qd(t){var e={},r=[],o,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return t(i),[e,r,o]}function Rp(t){return typeof t=="function"}function wp(t,e,r,o){r===void 0&&(r=[]);var i=typeof e=="function"?Qd(e):[e,r,o],a=i[0],s=i[1],c=i[2],d;if(Rp(t))d=function(){return Ps(t())};else{var f=Ps(t);d=function(){return f}}function h(p,g){p===void 0&&(p=d());var S=no([a[g.type]],s.filter(function(C){var R=C.matcher;return R(g)}).map(function(C){var R=C.reducer;return R}));return S.filter(function(C){return!!C}).length===0&&(S=[c]),S.reduce(function(C,R){if(R)if(Dt(C)){var _=C,N=R(_,g);return N===void 0?C:N}else{if(ut(C))return Zn(C,function(P){return R(P,g)});var N=R(C,g);if(N===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return C},p)}return h.getInitialState=d,h}function _p(t,e){return t+"/"+e}function Jd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ps(t.initialState),o=t.reducers||{},i=Object.keys(o),a={},s={},c={};i.forEach(function(h){var p=o[h],g=_p(e,h),S,C;"reducer"in p?(S=p.reducer,C=p.prepare):S=p,a[h]=S,s[g]=S,c[h]=C?er(g,C):er(g)});function d(){var h=typeof t.extraReducers=="function"?Qd(t.extraReducers):[t.extraReducers],p=h[0],g=p===void 0?{}:p,S=h[1],C=S===void 0?[]:S,R=h[2],_=R===void 0?void 0:R,N=Jt(Jt({},g),s);return wp(r,function(P){for(var O in N)P.addCase(O,N[O]);for(var A=0,w=C;A<w.length;A++){var z=w[A];P.addMatcher(z.matcher,z.reducer)}_&&P.addDefaultCase(_)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var Tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Np=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Tp[Math.random()*64|0];return e},Mp=["name","message","stack","code"],Ms=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Zd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Pp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Mp;r<o.length;r++){var i=o[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hS=function(){function t(e,r,o){var i=er(e+"/fulfilled",function(h,p,g,S){return{payload:h,meta:Ts(Jt({},S||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),a=er(e+"/pending",function(h,p,g){return{payload:void 0,meta:Ts(Jt({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=er(e+"/rejected",function(h,p,g,S,C){return{payload:S,error:(o&&o.serializeError||Pp)(h||"Rejected"),meta:Ts(Jt({},C||{}),{arg:g,requestId:p,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,g,S){var C=o?.idGenerator?o.idGenerator(h):Np(),R=new d,_,N=!1;function P(A){_=A,R.abort()}var O=function(){return xp(this,null,function(){var A,w,z,j,re,te,H;return pp(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),j=(A=o?.condition)==null?void 0:A.call(o,h,{getState:g,extra:S}),kp(j)?[4,j]:[3,2];case 1:j=b.sent(),b.label=2;case 2:if(j===!1||R.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,re=new Promise(function(L,$){return R.signal.addEventListener("abort",function(){return $({name:"AbortError",message:_||"Aborted"})})}),p(a(C,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:C,arg:h},{getState:g,extra:S}))),[4,Promise.race([re,Promise.resolve(r(h,{dispatch:p,getState:g,extra:S,requestId:C,signal:R.signal,abort:P,rejectWithValue:function(L,$){return new Ms(L,$)},fulfillWithValue:function(L,$){return new Zd(L,$)}})).then(function(L){if(L instanceof Ms)throw L;return L instanceof Zd?i(L.payload,C,h,L.meta):i(L,C,h)})])];case 3:return z=b.sent(),[3,5];case 4:return te=b.sent(),z=te instanceof Ms?s(null,C,h,te.payload,te.meta):s(te,C,h),[3,5];case 5:return H=o&&!o.dispatchConditionRejection&&s.match(z)&&z.meta.condition,H||p(z),[2,z]}})})}();return Object.assign(O,{abort:P,requestId:C,arg:h,unwrap:function(){return O.then(Ip)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ip(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function kp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var e1="listener",t1="completed",r1="cancelled",mS="task-"+r1,gS="task-"+t1,yS=e1+"-"+r1,bS=e1+"-"+t1;var Is="listenerMiddleware";var xS=er(Is+"/add"),vS=er(Is+"/removeAll"),SS=er(Is+"/remove");var qd,CS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(qd||(qd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},zp=function(t){return function(e){setTimeout(e,t)}},ES=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zp(10);Id();window.ftReduxStores||(window.ftReduxStores={});var Lr=class t extends It{static get(e){var r;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Jr(a))return a;if(i==null)return;let s=Jd({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=Xd({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let h=hr(s.getInitialState());for(let p of f.keeping)h[p]=(d??h)[p];return h}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Yo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,f=a[d];return f?(...h)=>{let p=f(...h.map(i));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Dp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Jr(e)&&e.clear()}var Yn=class{constructor(e,r,o){this.store=e,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Pt(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function $p(t,e,r){return new Yn(t,e,r).watch()}var ks=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,r){for(let o of r)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Us={};J(Us,{scrollHelper:()=>Up});var Ds,Xn=new Map,$s=class{lock(e,r){if(r){let o=Xn.get(r);if(o==null||o===e)return Xn.set(r,e),r}}release(e,r){r&&Xn.get(r)===e&&Xn.delete(r)}findFirstScrollableParent(e){var r;let o,i;for(let a of ca(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else c&&i==null&&(i=s)}return(r=o??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var o,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=pr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Ds=window.FluidTopicsScrollHelper)!==null&&Ds!==void 0?Ds:new $s;var Up=window.FluidTopicsScrollHelper;var Hs={};J(Hs,{SearchPlaceConverter:()=>co,SearchPlaceQueryParams:()=>se,isSearchPlaceQueryParams:()=>H1,serializeRequest:()=>Gp});var Hp=hu(n1(),1);var i1;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(i1||(i1={}));var a1;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(a1||(a1={}));var s1;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(s1||(s1={}));var c1;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(c1||(c1={}));var l1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(l1||(l1={}));var d1;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(d1||(d1={}));var f1;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(f1||(f1={}));var u1;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(u1||(u1={}));var p1;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(p1||(p1={}));var h1;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(h1||(h1={}));var m1;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(m1||(m1={}));var g1;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(g1||(g1={}));var y1;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(y1||(y1={}));var b1;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(b1||(b1={}));var ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ao||(ao={}));var x1;(function(t){t.ASC="ASC",t.DESC="DESC"})(x1||(x1={}));var v1;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(v1||(v1={}));var Bs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Bs||(Bs={}));var w1=t=>Object.keys(Bs).includes(t);var S1;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(S1||(S1={}));var C1;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(C1||(C1={}));var E1;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(E1||(E1={}));var so;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(so||(so={}));var _1=t=>Object.keys(so).includes(t);var A1;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(A1||(A1={}));var O1;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(O1||(O1={}));var L1;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(L1||(L1={}));var Ce;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Ce||(Ce={}));var tt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(tt||(tt={}));var R1;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(R1||(R1={}));var T1;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(T1||(T1={}));var N1;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(N1||(N1={}));var M1;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(M1||(M1={}));var P1;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(P1||(P1={}));var I1;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(I1||(I1={}));var k1;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(k1||(k1={}));var z1;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(z1||(z1={}));var D1;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(D1||(D1={}));var Bp={[Ce.PERSONAL_BOOK_SHARE_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.HTML_EXPORT_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.PDF_EXPORT_USER]:[Ce.PERSONAL_BOOK_USER],[Ce.KHUB_ADMIN]:[Ce.CONTENT_PUBLISHER],[Ce.ADMIN]:[Ce.KHUB_ADMIN,Ce.USERS_ADMIN,Ce.PORTAL_ADMIN,Ce.BEHAVIOR_DATA_USER],[Ce.GENERATIVE_AI_EXPORT_USER]:[Ce.GENERATIVE_AI_USER]};function $1(t,e){return t===e||(Bp[t]??[]).some(r=>$1(r,e))}function U1(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>$1(o,e))}function Fp(t){return`"${t}"`}function B1(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new co(t).serialize(e)}var se;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(se||(se={}));var Wp=new Set(Object.values(se));function H1(t){return Wp.has(t)}var co=class{constructor(e,r=20,o=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=o,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let o=r==null||r.trim().length===0,i=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var o,i,a,s,c,d,f,h,p,g,S;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(se.LOCALE,e.contentLocale):C.append(se.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&C.append(se.QUERY,e.query);let R=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(A=>A.valueFilter&&!A.valueFilter.negative))!==null&&a!==void 0?a:[];if(R.length>0){let A=R.map(w=>{var z,j;let re=((j=(z=w.valueFilter)===null||z===void 0?void 0:z.values)!==null&&j!==void 0?j:[]).map(te=>this.escapeFilters(te)).map(te=>Fp(B1(te))).join("_");return`${w.key}~${re}`}).join("*");C.append(se.VALUE_FILTERS,A)}let _=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(A=>A.dateFilter))!==null&&c!==void 0?c:[];if(_.length>0){let A=_.map(w=>{var z;return`${w.key}~${(z=w.dateFilter)===null||z===void 0?void 0:z.type.toLowerCase()}`}).join("*");C.append(se.DATE_FILTERS,A)}let N=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(A=>A.rangeFilter))!==null&&f!==void 0?f:[];if(N.length>0){let A=N.map(w=>{var z,j;return`${w.key}~${(z=w.rangeFilter)===null||z===void 0?void 0:z.from}_${(j=w.rangeFilter)===null||j===void 0?void 0:j.to}`}).join("*");C.append(se.RANGE_FILTERS,A)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&C.append(se.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&C.append(se.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((g=(p=e.paging)===null||p===void 0?void 0:p.perPage)!==null&&g!==void 0?g:this.defaultPerPage)!=this.defaultPerPage&&C.append(se.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&C.append(se.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let P=(S=e.otherQueryParams)!==null&&S!==void 0?S:{};for(let A in P)C.append(A,P[A]);let O=new Array;return C.forEach((A,w)=>{O.push(this.encodeQueryString(w)+"="+this.encodeQueryString(A))}),encodeURI(O.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let o=e.split("?"),i=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,o,i,a,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(N){console.warn("Could not decode search request query params, fallback on raw value",N)}let d=new URLSearchParams(e),f=d.get(se.LOCALE)==="all"?void 0:d.get(se.LOCALE),h=((r=d.get(se.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),p=(o=d.get(se.SORT))===null||o===void 0?void 0:o.toLowerCase(),g=(i=d.get(se.SCOPE))!==null&&i!==void 0?i:"default",S=+((a=d.get(se.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(se.KEYWORD_MATCH),R=C?C.toUpperCase()===ao.MANDATORY?ao.MANDATORY:ao.OPTIONAL:void 0,_={};for(let N of d.keys())H1(N)||(_[N]=d.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(se.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:w1(h)?h:"EVERYWHERE",sortId:p,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:pr(1,isNaN(S)?this.defaultPerPage:S,1e3)},keywordMatch:R,otherQueryParams:_}}parseCompatFilters(e){var r,o,i,a,s,c;let d=[];return e.has(se.FILTERS)&&(d=this.parseValueFilters((r=e.get(se.FILTERS))!==null&&r!==void 0?r:"")),(o=e.has(se.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(se.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(se.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(B1).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:so[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(r,o);return e}superEscapeFilters(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replaceAll(o,i);return e}unescapeFilterValue(e){for(let[r,o,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(_1(e))return[{key:"ft:lastEdition",dateFilter:{type:so[e]}}];if(e.startsWith("CUSTOM_")){let[r,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}};var Gs={};J(Gs,{toFtFormComponent:()=>rn});var Fs=Symbol("elementInternals"),rn=_e(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Fs].form}constructor(...o){super(o),this[Fs]=this.attachInternals()}setFormValue(o){this[Fs].setFormValue(o)}}return e});var Ws={};J(Ws,{DateFormatter:()=>Rr});var Rr=class{static format(e,r,o,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,i,!!a)):this.getIntlDateTime(e,r,o,i,!!a)}static getMomentDateFormat(e,r,o){return o?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,i,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:i?`${c} ${d}`:c}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var js={};J(js,{ALL_KEYS_VALUE:()=>Vs,SameWindowStorageEvent:()=>lo});var Vs="__all__",lo=class extends CustomEvent{constructor(e,r,o){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Vs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new lo(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let o=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new lo(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new lo(Vs))}});var Zs={};J(Zs,{FocusMainContentEvent:()=>Ks});var Ks=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var F1={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Vp(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function jp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Vp);document.addEventListener("click",jp);var ei=D`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -1875,7 +1875,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1875
1875
  position: relative;
1876
1876
  word-break: break-word;
1877
1877
  }
1878
- `;var e5="ft-app-info",Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="authentication-change";var t5={session:(t,e)=>{Ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>B.dispatchEvent(new Ir(e.payload)),0))}},B=Lr.get({name:e5,reducers:t5,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var vi=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},qR=_e(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(B)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(c=>c.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>Rr.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return vi([x({type:Boolean})],e.prototype,"useLongDateFormat",void 0),vi([x({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),vi([Qr({store:B.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),vi([Qr({store:B.name})],e.prototype,"uiLocale",void 0),e});var kr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=B.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=B.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Si=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kr.await()}};var Ze=class extends Si{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new vt,this.cache=e?i.commonCache:new vt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var Ci=class extends Ze{async listMySearches(){let{session:e}=B.getState();return U1(e,Ce.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ei=class extends Ze{async listMyBookmarks(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ai=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var Oi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var r5="ft-user-assets",o5={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:i}=e.payload;el(t,r,[...Jc(t,r),i]),Gf(t,r,1,o),Wf(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;el(t,r,Jc(t,r).map(i=>i.id===o.id?o:i)),Wf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;el(t,r,Jc(t,r).filter(a=>a.id!==i)),Gf(t,r,-1,o)}},Vf={[tt.SEARCHES]:"savedSearches",[tt.BOOKMARKS]:"bookmarks",[tt.BOOKS]:void 0,[tt.COLLECTIONS]:void 0},Jc=(t,e)=>{var r;let o=Vf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},el=(t,e,r)=>{let o=Vf[e];o&&(t[o]=r)},Gf=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===tt.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},Wf=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},qe=Lr.get({name:r5,reducers:o5,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),tl=class{constructor(e=new Ai,r=new Oi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=B.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ei,this.savedSearchesService=new Ci,B.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=B.getState();Ge((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),qe.actions.clearAssetCount(),qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();qe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&qe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&qe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(qe.getState().assetCounts.bookmarkByMap).length!==0;e===tt.BOOKMARKS&&r&&qe.actions.clearBookmarkCountByMap(),qe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;qe.actions.bookmarks(r)}}},n5=new tl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=n5);var rl=class{addCommand(e,r=!1){B.commands.add(e,r)}consumeCommand(e){return B.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rl;var jf,Oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},i5=Symbol("clearAfterUnitTest"),Li=class extends zn(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jf]=()=>{this.defaultMessages={},this.cache=new vt,this.listeners={}},this.currentUiLocale=B.getState().uiLocale,B.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=B.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};Ge(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new qo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ur)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Oo({loadedContexts:e})),this.dispatchEvent(new Oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Oo({loadedContexts:[e]})),this.dispatchEvent(new Oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>kn(0).then(()=>o()).catch(()=>null)))}};jf=i5;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Li{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Li{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Lo=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var ol=class{highlightHtml(e,r,o){ss(e,r,o)}};window.FluidTopicsHighlightHtmlService=new ol;var nl=class{isDate(e){var r,o,i,a;return(a=(i=((o=(r=B.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a;if(e==null)return"";try{return Rr.format(e,(o=r?.locale)!==null&&o!==void 0?o:B.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}catch(s){throw console.error(`Date ${JSON.stringify(e)} is not valid`,s),s}}};window.FluidTopicsDateService=new nl;var xn=class{static get(e,r){var o,i;let a=B.getState(),{lang:s,region:c}=(i=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new co(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var il=class{urlToSearchRequest(e){return xn.get().parse(e)}searchRequestToUrl(e){return xn.get().serialize(e)}};window.FluidTopicsUrlService=new il;var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zr.eventName="change";var al=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Kf=new al;var wi=class t extends It{static build(){return new t(window.history,Kf,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=r(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};o.apply(i,[f,s,c]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zr.eventName,e)}currentItem(){return hr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return hr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return hr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Zf=D`
1878
+ `;var e5="ft-app-info",Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ir.eventName="authentication-change";var t5={session:(t,e)=>{Ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>B.dispatchEvent(new Ir(e.payload)),0))}},B=Lr.get({name:e5,reducers:t5,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var vi=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},qR=_e(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(B)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var i,a;return((a=(i=this.metadataDescriptors.find(c=>c.key===o))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>Rr.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return vi([x({type:Boolean})],e.prototype,"useLongDateFormat",void 0),vi([x({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),vi([Qr({store:B.name,selector:r=>{var o,i;return(i=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),vi([Qr({store:B.name})],e.prototype,"uiLocale",void 0),e});var kr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=B.getState(),i=e??o;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let i=B.subscribe(()=>{o=t.get(e),o&&(i(),r(o))})}})}};var Si=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kr.await()}};var Ze=class extends Si{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new vt,this.cache=e?i.commonCache:new vt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var Ci=class extends Ze{async listMySearches(){let{session:e}=B.getState();return U1(e,Ce.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ei=class extends Ze{async listMyBookmarks(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ai=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var Oi=class extends Ze{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=B.getState().session;return!!e?.sessionAuthenticated}};var r5="ft-user-assets",o5={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:i}=e.payload;el(t,r,[...Jc(t,r),i]),Gf(t,r,1,o),Wf(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;el(t,r,Jc(t,r).map(i=>i.id===o.id?o:i)),Wf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:i}=e.payload;el(t,r,Jc(t,r).filter(a=>a.id!==i)),Gf(t,r,-1,o)}},Vf={[tt.SEARCHES]:"savedSearches",[tt.BOOKMARKS]:"bookmarks",[tt.BOOKS]:void 0,[tt.COLLECTIONS]:void 0},Jc=(t,e)=>{var r;let o=Vf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},el=(t,e,r)=>{let o=Vf[e];o&&(t[o]=r)},Gf=(t,e,r,o)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===tt.BOOKMARKS&&o)){let a=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,a+r)}},Wf=(t,e)=>{let r=t.assetLabels.map(i=>i.title),o=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...o)},qe=Lr.get({name:r5,reducers:o5,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),tl=class{constructor(e=new Ai,r=new Oi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=B.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ei,this.savedSearchesService=new Ci,B.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=B.getState();Ge((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),qe.actions.clearAssetCount(),qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();qe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&qe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&qe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(qe.getState().assetCounts.bookmarkByMap).length!==0;e===tt.BOOKMARKS&&r&&qe.actions.clearBookmarkCountByMap(),qe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;qe.actions.bookmarks(r)}}},n5=new tl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=n5);var rl=class{addCommand(e,r=!1){B.commands.add(e,r)}consumeCommand(e){return B.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rl;var jf,Oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},i5=Symbol("clearAfterUnitTest"),Li=class extends zn(Ze){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jf]=()=>{this.defaultMessages={},this.cache=new vt,this.listeners={}},this.currentUiLocale=B.getState().uiLocale,B.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=B.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};Ge(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new qo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ur)&&r&&console.error(i)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Oo({loadedContexts:e})),this.dispatchEvent(new Oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Oo({loadedContexts:[e]})),this.dispatchEvent(new Oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>kn(0).then(()=>o()).catch(()=>null)))}};jf=i5;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Li{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Li{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Lo=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var ol=class{highlightHtml(e,r,o){ss(e,r,o)}};window.FluidTopicsHighlightHtmlService=new ol;var nl=class{isDate(e){var r,o,i,a;return(a=(i=((o=(r=B.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var o,i,a,s;if(e==null)return"";try{return Rr.format(e,(o=r?.locale)!==null&&o!==void 0?o:B.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new nl;var xn=class{static get(e,r){var o,i;let a=B.getState(),{lang:s,region:c}=(i=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new co(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var il=class{urlToSearchRequest(e){return xn.get().parse(e)}searchRequestToUrl(e){return xn.get().serialize(e)}};window.FluidTopicsUrlService=new il;var zr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zr.eventName="change";var al=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Kf=new al;var wi=class t extends It{static build(){return new t(window.history,Kf,()=>window.location,!1)}constructor(e,r,o,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zr(this.currentItem())),0)}installProxies(){let e=r=>(o,i,[a,s,c])=>{let d=r(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};o.apply(i,[f,s,c]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zr.eventName,e)}currentItem(){return hr(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return hr(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return hr(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Zf=D`
1879
1879
  `;function qf(t,e){let{authenticationRequired:r,session:o}=B.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var Ae=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},me=class extends X{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>kr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new vt,this.cleanSessionDebouncer=new ke,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return k`
1880
1880
  <slot></slot>
1881
1881
  `}connectedCallback(){super.connectedCallback(),B.addEventListener(Ir.eventName,this.reloadConfiguration)}disconnectedCallback(){B.addEventListener(Ir.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,o,i,a,s,c,d;super.update(e),e.has("baseUrl")&&(B.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&B.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&B.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&B.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&B.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&B.actions.noCustom(this.noCustom),e.has("editorMode")&&B.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&B.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&B.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(f=>Lo.addContext(f)),e.has("openExternalDocumentInNewTab")&&B.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&B.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&B.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(B.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),B.actions.availableUiLocales((i=(o=this.localesConfiguration)===null||o===void 0?void 0:o.availableUiLocales)!==null&&i!==void 0?i:[]),B.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&B.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&B.actions.availableContentLocales((d=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>qf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};me.elementDefinitions={};me.styles=Zf;Ae([x()],me.prototype,"baseUrl",void 0);Ae([x()],me.prototype,"apiIntegrationIdentifier",void 0);Ae([x()],me.prototype,"apiIntegrationAppVersion",void 0);Ae([x()],me.prototype,"uiLocale",void 0);Ae([Xe(null)],me.prototype,"availableUiLocales",void 0);Ae([Xe(null)],me.prototype,"metadataConfiguration",void 0);Ae([x({type:Boolean})],me.prototype,"editorMode",void 0);Ae([x({type:Boolean})],me.prototype,"noCustom",void 0);Ae([x({type:Boolean})],me.prototype,"openExternalDocumentInNewTab",void 0);Ae([x({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],me.prototype,"noCustomComponent",void 0);Ae([x({type:Boolean})],me.prototype,"withManualResources",void 0);Ae([x({type:Boolean})],me.prototype,"navigatorOnline",void 0);Ae([x({type:Boolean})],me.prototype,"forcedOffline",void 0);Ae([x({type:Object})],me.prototype,"apiProvider",void 0);Ae([x({type:Boolean})],me.prototype,"authenticationRequired",void 0);Ae([Xe([])],me.prototype,"messageContexts",void 0);Ae([Xe(void 0)],me.prototype,"session",void 0);Ae([Z()],me.prototype,"localesConfiguration",void 0);Ae([Z()],me.prototype,"availableContentLocales",void 0);ae("ft-app-context")(me);var sl=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ro=new sl;var a5=function(t,e,r,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Sn=Symbol("i18nAttributes"),Yf=Symbol("i18nListAttributes"),Xf=Symbol("i18nProperties"),_i=Symbol("i18nContexts"),vn=Symbol("i18nUnsubs"),Mi=_e(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ri:Lo}i18n(a){let{context:s,key:c,message:d}=a,{custom:f,args:h,argsProvider:p}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let g=h??(p?p(this):[]);return this.getI18nService(f).resolveMessage(s,c,...g)}return d}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ro.isI18nKey(a)){let[c,d]=a.split(".");return this.i18n({custom:!0,context:c,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,d)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let d=this,f=(h,p,g)=>g?.context&&g.key&&a(h,p,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[Sn])===null||s===void 0||s.forEach((h,p)=>d[p]=f(h,p,d[p])),(c=this[Yf])===null||c===void 0||c.forEach((h,p)=>{var g;return d[p]=(g=d[p])===null||g===void 0?void 0:g.map(S=>f(h,p,S))})}updateI18nProperties(a){var s;(s=this[Xf])===null||s===void 0||s.forEach((c,d)=>{a(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let d=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[_i].set(d,{isCustomContext:c}),this[vn].has(d)||this[vn].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(a){return this[_i].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[_i].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vn].forEach(a=>a()),this[vn].clear()}}return e=_i,r=vn,a5([x({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ti=class extends Mi(X){},Ni=class extends Mi(Qo){};var cl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Ro.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},s5=new cl;var Qf=(t,e)=>(r,o)=>{var i;r.constructor.createProperty(o,{type:Object,hasChanged:Pt,converter:Ro,...e}),r[Sn]=(i=r[Sn])!==null&&i!==void 0?i:new Map,r[Sn].set(o,t??{})};var Pi=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Ri:Lo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(o,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(o,i)=>()=>i}),this.attributes=new Proxy({},{get:(o,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Jf=D`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-combobox",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "A",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.0.11",
22
+ "@fluid-topics/ft-wc-utils": "2.0.12",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "2.0.11"
26
+ "@fluid-topics/ft-wc-test-utils": "2.0.12"
27
27
  },
28
- "gitHead": "aedc97fb65c7bafd16b7adef8218a58f59fea690"
28
+ "gitHead": "4811b3ed72672d41022c271d4a0d1db15b458aca"
29
29
  }