@fluid-topics/ft-reader-metadata 1.3.54 → 1.3.56

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.
@@ -183,7 +183,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
183
183
  word-break: break-word;
184
184
  }
185
185
  `;var Ts=["top","right","bottom","left"],ws=["start","end"],Na=Ts.reduce((t,e)=>t.concat(e,e+"-"+ws[0],e+"-"+ws[1]),[]),Rs=Math.min,Is=Math.max;var pp={left:"right",right:"left",bottom:"top",top:"bottom"},up={start:"end",end:"start"};function _a(t,e,o){return Is(t,Rs(e,o))}function Ao(t,e){return typeof t=="function"?t(e):t}function br(t){return t.split("-")[0]}function Et(t){return t.split("-")[1]}function Pa(t){return t==="x"?"y":"x"}function ka(t){return t==="y"?"height":"width"}function wo(t){return["top","bottom"].includes(br(t))?"y":"x"}function Da(t){return Pa(wo(t))}function Ls(t,e,o){o===void 0&&(o=!1);let n=Et(t),a=Da(t),i=ka(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=La(s)),[s,La(s)]}function Ns(t){return t.replace(/start|end/g,e=>up[e])}function La(t){return t.replace(/left|right|bottom|top/g,e=>pp[e])}function fp(t){return{top:0,right:0,bottom:0,left:0,...t}}function _s(t){return typeof t!="number"?fp(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){let{x:e,y:o,width:n,height:a}=t;return{width:n,height:a,top:o,left:e,right:e+n,bottom:o+a,x:e,y:o}}function Ps(t,e,o){let{reference:n,floating:a}=t,i=wo(e),s=Da(e),l=ka(s),p=br(e),u=i==="y",h=n.x+n.width/2-a.width/2,y=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,x;switch(p){case"top":x={x:h,y:n.y-a.height};break;case"bottom":x={x:h,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y};break;case"left":x={x:n.x-a.width,y};break;default:x={x:n.x,y:n.y}}switch(Et(e)){case"start":x[s]-=g*(o&&u?-1:1);break;case"end":x[s]+=g*(o&&u?-1:1);break}return x}var ks=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:h,y}=Ps(u,n,p),g=n,x={},S=0;for(let O=0;O<l.length;O++){let{name:L,fn:R}=l[O],{x:N,y:D,data:U,reset:F}=await R({x:h,y,initialPlacement:n,placement:g,strategy:a,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=N??h,y=D??y,x={...x,[L]:{...x[L],...U}},F&&S<=50&&(S++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:h,y}=Ps(u,g,p)),O=-1)}return{x:h,y,placement:g,strategy:a,middlewareData:x}};async function Ma(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:g=!1,padding:x=0}=Ao(e,t),S=_s(x),L=l[g?y==="floating"?"reference":"floating":y],R=Zt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:p})),N=y==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),U=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},F=Zt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:p}):N);return{top:(R.top-F.top+S.top)/U.y,bottom:(F.bottom-R.bottom+S.bottom)/U.y,left:(R.left-F.left+S.left)/U.x,right:(F.right-R.right+S.right)/U.x}}function hp(t,e,o){return(t?[...o.filter(a=>Et(a)===t),...o.filter(a=>Et(a)!==t)]:o.filter(a=>br(a)===a)).filter(a=>t?Et(a)===t||(e?Ns(a)!==a:!1):!0)}var Ba=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:y,allowedPlacements:g=Na,autoAlignment:x=!0,...S}=Ao(t,e),O=y!==void 0||g===Na?hp(y||null,x,g):g,L=await Ma(e,S),R=((o=s.autoPlacement)==null?void 0:o.index)||0,N=O[R];if(N==null)return{};let D=Ls(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(l!==N)return{reset:{placement:O[0]}};let U=[L[br(N)],L[D[0]],L[D[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:U}],Ce=O[R+1];if(Ce)return{data:{index:R+1,overflows:F},reset:{placement:Ce}};let nt=F.map(ue=>{let m=Et(ue.placement);return[ue.placement,m&&h?ue.overflows.slice(0,2).reduce((v,P)=>v+P,0):ue.overflows[0],ue.overflows]}).sort((ue,m)=>ue[1]-m[1]),at=((a=nt.filter(ue=>ue[2].slice(0,Et(ue[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||nt[0][0];return at!==l?{data:{index:R+1,overflows:F},reset:{placement:at}}:{}}}};var Ua=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:L=>{let{x:R,y:N}=L;return{x:R,y:N}}},...p}=Ao(t,e),u={x:o,y:n},h=await Ma(e,p),y=wo(br(a)),g=Pa(y),x=u[g],S=u[y];if(i){let L=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=x+h[L],D=x-h[R];x=_a(N,x,D)}if(s){let L=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=S+h[L],D=S-h[R];S=_a(N,S,D)}let O=l.fn({...e,[g]:x,[y]:S});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[y]:s}}}}}};var $a=Math.min,xr=Math.max,Gr=Math.round;var mt=t=>({x:t,y:t});function gt(t){return Ms(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(Ms(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ms(t){return t instanceof Node||t instanceof Oe(t).Node}function st(t){return t instanceof Element||t instanceof Oe(t).Element}function Ye(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Ds(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}function vr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function Bs(t){return["table","td","th"].includes(gt(t))}function Ro(t){let e=Io(),o=ke(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Us(t){let e=qt(t);for(;Ye(e)&&!jr(e);){if(Ro(e))return e;e=qt(e)}return null}function Io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jr(t){return["html","body","#document"].includes(gt(t))}function ke(t){return Oe(t).getComputedStyle(t)}function Vr(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(t){if(gt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ds(t)&&t.host||bt(t);return Ds(e)?e.host:e}function $s(t){let e=qt(t);return jr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ye(e)&&vr(e)?e:$s(e)}function To(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=$s(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Oe(a);return i?e.concat(s,s.visualViewport||[],vr(a)?a:[],s.frameElement&&o?To(s.frameElement):[]):e.concat(a,To(a,[],o))}function zs(t){let e=ke(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=Ye(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,l=Gr(o)!==i||Gr(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function Ws(t){return st(t)?t:t.contextElement}function Sr(t){let e=Ws(t);if(!Ye(e))return mt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=zs(e),s=(i?Gr(o.width):o.width)/n,l=(i?Gr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var gp=mt(0);function Gs(t){let e=Oe(t);return!Io()||!e.visualViewport?gp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Oe(t)?!1:e}function Kr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Ws(t),s=mt(1);e&&(n?st(n)&&(s=Sr(n)):s=Sr(t));let l=bp(i,o,n)?Gs(i):mt(0),p=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,y=a.height/s.y;if(i){let g=Oe(i),x=n&&st(n)?Oe(n):n,S=g.frameElement;for(;S&&n&&x!==g;){let O=Sr(S),L=S.getBoundingClientRect(),R=ke(S),N=L.left+(S.clientLeft+parseFloat(R.paddingLeft))*O.x,D=L.top+(S.clientTop+parseFloat(R.paddingTop))*O.y;p*=O.x,u*=O.y,h*=O.x,y*=O.y,p+=N,u+=D,S=Oe(S).frameElement}}return Zt({width:h,height:y,x:p,y:u})}function xp(t){let{rect:e,offsetParent:o,strategy:n}=t,a=Ye(o),i=bt(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},l=mt(1),p=mt(0);if((a||!a&&n!=="fixed")&&((gt(o)!=="body"||vr(i))&&(s=Vr(o)),Ye(o))){let u=Kr(o);l=Sr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function vp(t){return Array.from(t.getClientRects())}function js(t){return Kr(bt(t)).left+Vr(t).scrollLeft}function Sp(t){let e=bt(t),o=Vr(t),n=t.ownerDocument.body,a=xr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=xr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+js(t),l=-o.scrollTop;return ke(n).direction==="rtl"&&(s+=xr(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Cp(t,e){let o=Oe(t),n=bt(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,p=0;if(a){i=a.width,s=a.height;let u=Io();(!u||u&&e==="fixed")&&(l=a.offsetLeft,p=a.offsetTop)}return{width:i,height:s,x:l,y:p}}function Op(t,e){let o=Kr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Ye(t)?Sr(t):mt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:s,height:l,x:p,y:u}}function Fs(t,e,o){let n;if(e==="viewport")n=Cp(t,o);else if(e==="document")n=Sp(bt(t));else if(st(e))n=Op(e,o);else{let a=Gs(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Zt(n)}function Vs(t,e){let o=qt(t);return o===e||!st(o)||jr(o)?!1:ke(o).position==="fixed"||Vs(o,e)}function Ep(t,e){let o=e.get(t);if(o)return o;let n=To(t,[],!1).filter(l=>st(l)&&gt(l)!=="body"),a=null,i=ke(t).position==="fixed",s=i?qt(t):t;for(;st(s)&&!jr(s);){let l=ke(s),p=Ro(s);!p&&l.position==="fixed"&&(a=null),(i?!p&&!a:!p&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||vr(s)&&!p&&Vs(t,s))?n=n.filter(h=>h!==s):a=l,s=qt(s)}return e.set(t,n),n}function Ap(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?Ep(e,this._c):[].concat(o),n],l=s[0],p=s.reduce((u,h)=>{let y=Fs(e,h,a);return u.top=xr(y.top,u.top),u.right=$a(y.right,u.right),u.bottom=$a(y.bottom,u.bottom),u.left=xr(y.left,u.left),u},Fs(e,l,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function wp(t){return zs(t)}function Tp(t,e,o){let n=Ye(e),a=bt(e),i=o==="fixed",s=Kr(t,!0,i,e),l={scrollLeft:0,scrollTop:0},p=mt(0);if(n||!n&&!i)if((gt(e)!=="body"||vr(a))&&(l=Vr(e)),n){let u=Kr(e,!0,i,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else a&&(p.x=js(a));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function Hs(t,e){return!Ye(t)||ke(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ks(t,e){let o=Oe(t);if(!Ye(t))return o;let n=Hs(t,e);for(;n&&Bs(n)&&ke(n).position==="static";)n=Hs(n,e);return n&&(gt(n)==="html"||gt(n)==="body"&&ke(n).position==="static"&&!Ro(n))?o:n||Us(t)||o}var Rp=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||Ks,i=this.getDimensions;return{reference:Tp(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Ip(t){return ke(t).direction==="rtl"}var Lo={convertOffsetParentRelativeRectToViewportRelativeRect:xp,getDocumentElement:bt,getClippingRect:Ap,getOffsetParent:Ks,getElementRects:Rp,getClientRects:vp,getDimensions:wp,getScale:Sr,isElement:st,isRTL:Ip};var Zs=(t,e,o)=>{let n=new Map,a={platform:Lo,...o},i={...a.platform,_c:n};return ks(t,e,{...a,platform:i})};function qs(t){return Lp(t)}function Fa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Lp(t){for(let e=t;e;e=Fa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fa(t);e;e=Fa(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function No(t,e,o){return Zs(t,e,{platform:{...Lo,getOffsetParent:n=>Lo.getOffsetParent(n,qs)},middleware:[Ua({crossAxis:!0}),Ba({allowedPlacements:[o]})]})}var Pr=b(I());var kl=b(I());var Bc=b($()),ye=b(X()),Xe=b(I());var Ys=b($());var Xs=Ys.css`
186
- `;var _o=b(I()),Ha="ft-app-info",ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ct.eventName="authentication-change";var Np={session:(t,e)=>{(0,_o.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ct(e.payload)),0))}},T=_o.FtReduxStore.get({name:Ha,reducers:Np,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 za=b(I());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var Se=class extends Po{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new za.CacheRegistry,this.cache=e?a.commonCache:new za.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ko=class extends Se{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wa=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var He=b(I());var Qs,Cr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},_p=Symbol("clearAfterUnitTest"),Do=class extends(0,He.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qs]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,He.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new He.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof He.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Cr({loadedContexts:e})),this.dispatchEvent(new Cr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Cr({loadedContexts:[e]})),this.dispatchEvent(new Cr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};Qs=_p;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Or=window.FluidTopicsI18nService,Mo=window.FluidTopicsCustomI18nService;var Js=b(I()),Ga=class{highlightHtml(e,o,n){(0,Js.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var kp=b(tc(),1);var rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var sc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(sc||(sc={}));var cc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(cc||(cc={}));var lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(lc||(lc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(dc||(dc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(mc||(mc={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bc||(bc={}));var xc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xc||(xc={}));var vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var Sc;(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"})(Sc||(Sc={}));var Cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Oc||(Oc={}));var Ec;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ec||(Ec={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var V;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(V||(V={}));var ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var wc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wc||(wc={}));var Tc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tc||(Tc={}));var Rc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Rc||(Rc={}));var Ic;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ic||(Ic={}));var Lc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Lc||(Lc={}));var Pp={[V.PERSONAL_BOOK_SHARE_USER]:[V.PERSONAL_BOOK_USER],[V.HTML_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.PDF_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.KHUB_ADMIN]:[V.CONTENT_PUBLISHER],[V.ADMIN]:[V.KHUB_ADMIN,V.USERS_ADMIN,V.PORTAL_ADMIN],[V.GENERATIVE_AI_EXPORT_USER]:[V.GENERATIVE_AI_USER]};function Nc(t,e){return t===e||(Pp[t]??[]).some(o=>Nc(o,e))}function xt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>Nc(n,e))}var Fo=class extends Se{async listMySearches(){let{session:e}=T.getState();return xt(e,V.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var _c=b(I());var ja=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return _c.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ja;var Pc=b(I());var Zr=class{static get(e,o){var n,a;let i=T.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 Pc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Va=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Va;var wt=b(I());var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Ka=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},kc=new Ka;var Ho=class t extends wt.WithEventBus{static build(){return new t(window.history,kc,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,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: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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return(0,wt.deepCopy)(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(0,wt.deepCopy)(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(0,wt.deepCopy)(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ho.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 Dc=T;function Mc(t,e){var o;return Dc.getState().authenticationRequired&&!(!((o=Dc.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ce=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends Xe.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=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Bc.html`
186
+ `;var _o=b(I()),Ha="ft-app-info",ct=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ct.eventName="authentication-change";var Np={session:(t,e)=>{(0,_o.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ct(e.payload)),0))}},T=_o.FtReduxStore.get({name:Ha,reducers:Np,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 za=b(I());var Yt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=T.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var Po=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Yt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Yt.await()}};var Se=class extends Po{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new za.CacheRegistry,this.cache=e?a.commonCache:new za.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ko=class extends Se{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Wa=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var He=b(I());var Qs,Cr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},_p=Symbol("clearAfterUnitTest"),Do=class extends(0,He.withEventBus)(Se){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qs]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,He.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new He.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(a){!(a instanceof He.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Cr({loadedContexts:e})),this.dispatchEvent(new Cr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Cr({loadedContexts:[e]})),this.dispatchEvent(new Cr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};Qs=_p;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Do{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Or=window.FluidTopicsI18nService,Mo=window.FluidTopicsCustomI18nService;var Js=b(I()),Ga=class{highlightHtml(e,o,n){(0,Js.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var kp=b(tc(),1);var rc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rc||(rc={}));var oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(oc||(oc={}));var nc;(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"})(nc||(nc={}));var ac;(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"})(ac||(ac={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var sc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(sc||(sc={}));var cc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(cc||(cc={}));var lc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(lc||(lc={}));var dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(dc||(dc={}));var pc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fc||(fc={}));var hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hc||(hc={}));var yc;(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"})(yc||(yc={}));var mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(mc||(mc={}));var gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(gc||(gc={}));var bc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bc||(bc={}));var xc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xc||(xc={}));var vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vc||(vc={}));var $o;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})($o||($o={}));var Sc;(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"})(Sc||(Sc={}));var Cc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Cc||(Cc={}));var Oc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Oc||(Oc={}));var Ec;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ec||(Ec={}));var Ac;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ac||(Ac={}));var V;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(V||(V={}));var ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ze||(ze={}));var wc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(wc||(wc={}));var Tc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Tc||(Tc={}));var Rc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Rc||(Rc={}));var Ic;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ic||(Ic={}));var Lc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Lc||(Lc={}));var Nc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Nc||(Nc={}));var Pp={[V.PERSONAL_BOOK_SHARE_USER]:[V.PERSONAL_BOOK_USER],[V.HTML_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.PDF_EXPORT_USER]:[V.PERSONAL_BOOK_USER],[V.KHUB_ADMIN]:[V.CONTENT_PUBLISHER],[V.ADMIN]:[V.KHUB_ADMIN,V.USERS_ADMIN,V.PORTAL_ADMIN],[V.GENERATIVE_AI_EXPORT_USER]:[V.GENERATIVE_AI_USER]};function _c(t,e){return t===e||(Pp[t]??[]).some(o=>_c(o,e))}function xt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>_c(n,e))}var Fo=class extends Se{async listMySearches(){let{session:e}=T.getState();return xt(e,V.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Pc=b(I());var ja=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Pc.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ja;var kc=b(I());var Zr=class{static get(e,o){var n,a;let i=T.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 kc.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Va=class{urlToSearchRequest(e){return Zr.get().parse(e)}searchRequestToUrl(e){return Zr.get().serialize(e)}};window.FluidTopicsUrlService=new Va;var wt=b(I());var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Ka=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Dc=new Ka;var Ho=class t extends wt.WithEventBus{static build(){return new t(window.history,Dc,()=>window.location,!1)}constructor(e,o,n,a){var i,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=o=>(n,a,[i,s,l])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...i,index:p,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: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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return(0,wt.deepCopy)(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(0,wt.deepCopy)(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(0,wt.deepCopy)(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ho.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)});function Mc(t,e){let{authenticationRequired:o,session:n}=T.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ce=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends Xe.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=()=>Yt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Bc.html`
187
187
  <slot></slot>
188
188
  `}connectedCallback(){super.connectedCallback(),T.addEventListener(ct.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(ct.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,a,i,s,l,p;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Or.addContext(u)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&T.actions.availableContentLocales((p=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&p!==void 0?p:[]),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",()=>Mc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};K.elementDefinitions={};K.styles=Xs;ce([(0,ye.property)()],K.prototype,"baseUrl",void 0);ce([(0,ye.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ce([(0,ye.property)()],K.prototype,"apiIntegrationAppVersion",void 0);ce([(0,ye.property)()],K.prototype,"uiLocale",void 0);ce([(0,Xe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ce([(0,Xe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"editorMode",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"noCustom",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ce([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],K.prototype,"noCustomComponent",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ce([(0,ye.property)({type:Object})],K.prototype,"apiProvider",void 0);ce([(0,ye.property)({type:Boolean})],K.prototype,"authenticationRequired",void 0);ce([(0,Xe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ce([(0,Xe.jsonProperty)(void 0)],K.prototype,"session",void 0);ce([(0,ye.state)()],K.prototype,"localesConfiguration",void 0);ce([(0,ye.state)()],K.prototype,"availableContentLocales",void 0);var bi=b(X());function Dp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!zo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!zo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),o=a.length,o!==i(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!zo(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function zo(t,e){try{return Dp(t,e)}catch{return!1}}function qr(t,e){return!zo(t,e)}function Wo(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let a=e(n);return a[t]=!0,a}}var Uc=b(X(),1);var Za=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:qr,attribute:!1,...e};(0,Uc.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var Go=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var Qt=b(X(),1);var $c=b(X(),1);function Fc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,$c.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:qr,...e??{}})}var jo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>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 zc=b($(),1);var Vo=globalThis,Mp=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rv=Symbol();var Hc=(t,e)=>{if(Mp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=Vo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}};var Ko=class extends zc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Hc(n,e.elementStyles),n}};function Wc(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var wr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Kc,Gc=Symbol("constructorPrototype"),jc=Symbol("constructorName"),Zc=Symbol("exportpartsDebouncer"),Vc=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var lt=class extends Ko{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Kc]=new jo(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Zc].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[jc]=this.constructor.name,this[Gc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jc]&&Object.setPrototypeOf(this,this[Gc])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Vc]||(o[Vc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=Wc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.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(e){var o,n,a,i,s,l;let p=g=>g!=null&&g.trim().length>0,u=e.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],O=[...x,...S].filter(p).map(L=>L.trim());for(let L of O)h.add(L)}if(h.size===0){this.exportparts=void 0;return}let y=[...h.values()].flatMap(g=>u.map(x=>`${g}:${x}--${g}`));this.exportparts=[...this.part,...y].join(", ")}};Kc=Zc;wr([(0,Qt.property)()],lt.prototype,"exportpartsPrefix",void 0);wr([Fc([])],lt.prototype,"exportpartsPrefixes",void 0);wr([(0,Qt.property)({reflect:!0})],lt.prototype,"exportparts",void 0);wr([(0,Qt.property)()],lt.prototype,"customStylesheet",void 0);wr([(0,Qt.property)()],lt.prototype,"elementToFocus",void 0);wr([(0,Qt.state)()],lt.prototype,"useAdoptedStyleSheets",void 0);function Zo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),Tt=Symbol("internalStoresUnsubscribers"),Jt=Symbol("internalStores"),Bp=Wo(Symbol("withRedux"),function(t){var e,o,n;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Jt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Jt].get(s)}addStore(s,l){var p;l=(p=l??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(l),this[Jt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Jt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Jt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let p=this.constructor.getPropertyOptions(l);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Tt].has(s.store):this[Tt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var p;this[Tt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),Zo(l)&&l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let y=g=>this[h](g);l.addEventListener(u.eventName,y),this[Yr].get(s).push(()=>l.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Tt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Tt].has(s)&&this[Tt].get(s)(),this[Tt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(p=>p()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Tt,o=Jt,n=Yr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),qc=class extends Bp(lt){};function We(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vt(t){return!!t&&!!t[Z]}function Qe(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===jp}(t)||Array.isArray(t)||!!t[rl]||!!(!((e=t.constructor)===null||e===void 0)&&e[rl])||oi(t)||ni(t))}function er(t,e,o){o===void 0&&(o=!1),Ir(t)===0?(o?Object.keys:Rr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Ir(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oi(t)?2:ni(t)?3:0}function Tr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Up(t,e){return Ir(t)===2?t.get(e):t[e]}function ol(t,e,o){var n=Ir(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function nl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oi(t){return Wp&&t instanceof Map}function ni(t){return Gp&&t instanceof Set}function Rt(t){return t.o||t.t}function ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sl(t);delete e[Z];for(var o=Rr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ii(t,e){return e===void 0&&(e=!1),si(t)||vt(t)||!Qe(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=$p),Object.freeze(t),e&&er(t,function(o,n){return ii(n,!0)},!0)),t}function $p(){We(2)}function si(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=ri[t];return e||We(18,t),e}function Fp(t,e){ri[t]||(ri[t]=e)}function Ja(){return Qr}function qa(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function qo(t){ei(t),t.p.forEach(Hp),t.p=null}function ei(t){t===Qr&&(Qr=t.l)}function Yc(t){return Qr={p:[],l:Qr,h:t,m:!0,_:0}}function Hp(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Ya(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||dt("ES5").S(e,t,n),n?(o[Z].P&&(qo(e),We(4)),Qe(t)&&(t=Yo(e,t),e.l||Xo(e,t)),e.u&&dt("Patches").M(o[Z].t,t,e.u,e.s)):t=Yo(e,o,[]),qo(e),e.u&&e.v(e.u,e.s),t!==il?t:void 0}function Yo(t,e,o){if(si(e))return e;var n=e[Z];if(!n)return er(e,function(l,p){return Xc(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Xo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ai(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),er(i,function(l,p){return Xc(t,n,a,l,p,o,s)}),Xo(t,a,!1),o&&t.u&&dt("Patches").N(n,o,t.u,t.s)}return n.o}function Xc(t,e,o,n,a,i,s){if(vt(a)){var l=Yo(t,a,i&&e&&e.i!==3&&!Tr(e.R,n)?i.concat(n):void 0);if(ol(o,n,l),!vt(l))return;t.m=!1}else s&&o.add(a);if(Qe(a)&&!si(a)){if(!t.h.D&&t._<1)return;Yo(t,a),e&&e.A.l||Xo(t,a)}}function Xo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ii(e,o)}function Xa(t,e){var o=t[Z];return(o?Rt(o):t)[e]}function Qc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function It(t){t.P||(t.P=!0,t.l&&It(t.l))}function Qa(t){t.o||(t.o=ai(t.t))}function ti(t,e,o){var n=oi(e)?dt("MapSet").F(e,o):ni(e)?dt("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=Jr;s&&(p=[l],u=Xr);var h=Proxy.revocable(p,u),y=h.revoke,g=h.proxy;return l.k=g,l.j=y,g}(e,o):dt("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function zp(t){return vt(t)||We(22,t),function e(o){if(!Qe(o))return o;var n,a=o[Z],i=Ir(o);if(a){if(!a.P&&(a.i<4||!dt("ES5").K(a)))return a.t;a.I=!0,n=Jc(o,i),a.I=!1}else n=Jc(o,i);return er(n,function(s,l){a&&Up(a.t,s)===l||ol(n,s,e(l))}),i===3?new Set(n):n}(t)}function Jc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ai(t)}function al(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[Z];return Jr.get(u,s)},set:function(u){var h=this[Z];Jr.set(h,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][Z];if(!p.P)switch(p.i){case 5:n(p)&&It(p);break;case 4:o(p)&&It(p)}}}function o(s){for(var l=s.t,p=s.k,u=Rr(p),h=u.length-1;h>=0;h--){var y=u[h];if(y!==Z){var g=l[y];if(g===void 0&&!Tr(l,y))return!0;var x=p[y],S=x&&x[Z];if(S?S.t!==g:!nl(x,g))return!0}}var O=!!l[Z];return u.length!==Rr(l).length+(O?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&We(3,JSON.stringify(Rt(s)))}var i={};Fp("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(y,g){if(y){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=sl(g);delete O[Z];for(var L=Rr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,y||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,s),h={i:p?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Z,{value:h,writable:!0}),u},S:function(s,l,p){p?vt(l)&&l[Z].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var y=h[Z];if(y){var g=y.t,x=y.k,S=y.R,O=y.i;if(O===4)er(x,function(U){U!==Z&&(g[U]!==void 0||Tr(g,U)?S[U]||u(x[U]):(S[U]=!0,It(y)))}),er(g,function(U){x[U]!==void 0||Tr(x,U)||(S[U]=!1,It(y))});else if(O===5){if(n(y)&&(It(y),S.length=!0),x.length<g.length)for(var L=x.length;L<g.length;L++)S[L]=!1;else for(var R=g.length;R<x.length;R++)S[R]=!0;for(var N=Math.min(x.length,g.length),D=0;D<N;D++)x.hasOwnProperty(D)||(S[D]=!0),S[D]===void 0&&u(x[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var el,Qr,ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wp=typeof Map<"u",Gp=typeof Set<"u",tl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",il=ci?Symbol.for("immer-nothing"):((el={})["immer-nothing"]=!0,el),rl=ci?Symbol.for("immer-draftable"):"__$immer_draftable",Z=ci?Symbol.for("immer-state"):"__$immer_state";var jp=""+Object.prototype.constructor,Rr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sl=Object.getOwnPropertyDescriptors||function(t){var e={};return Rr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ri={},Jr={get:function(t,e){if(e===Z)return t;var o=Rt(t);if(!Tr(o,e))return function(a,i,s){var l,p=Qc(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Qe(n)?n:n===Xa(t.t,e)?(Qa(t),t.o[e]=ti(t.A.h,n,t)):n},has:function(t,e){return e in Rt(t)},ownKeys:function(t){return Reflect.ownKeys(Rt(t))},set:function(t,e,o){var n=Qc(Rt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Xa(Rt(t),e),i=a?.[Z];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(nl(o,a)&&(o!==void 0||Tr(t.t,e)))return!0;Qa(t),It(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Xa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Qa(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Rt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){We(12)}},Xr={};er(Jr,function(t,e){Xr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)},Xr.set=function(t,e,o){return Jr.set.call(this,t[0],e,o,t[0])};var Vp=function(){function t(o){var n=this;this.O=tl,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),D=1;D<R;D++)N[D-1]=arguments[D];return p.produce(O,function(U){var F;return(F=i).call.apply(F,[L,U].concat(N))})}}var u;if(typeof i!="function"&&We(6),s!==void 0&&typeof s!="function"&&We(7),Qe(a)){var h=Yc(n),y=ti(n,a,void 0),g=!0;try{u=i(y),g=!1}finally{g?qo(h):ei(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return qa(h,s),Ya(O,h)},function(O){throw qo(h),O}):(qa(h,s),Ya(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===il&&(u=void 0),n.D&&ii(u,!0),s){var x=[],S=[];dt("Patches").M(a,u,x,S),s(x,S)}return u}We(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Qe(o)||We(8),vt(o)&&(o=zp(o));var n=Yc(this),a=ti(this,o,void 0);return a[Z].C=!0,ei(n),a},e.finishDraft=function(o,n){var a=o&&o[Z],i=a.A;return qa(i,n),Ya(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!tl&&We(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=dt("Patches").$;return vt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new Vp,Kp=De.produce,gv=De.produceWithPatches.bind(De),bv=De.setAutoFreeze.bind(De),xv=De.setUseProxies.bind(De),vv=De.applyPatches.bind(De),Sv=De.createDraft.bind(De),Cv=De.finishDraft.bind(De),Qo=Kp;function tr(t){"@babel/helpers - typeof";return tr=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},tr(t)}function cl(t,e){if(tr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ll(t){var e=cl(t,"string");return tr(e)=="symbol"?e:e+""}function dl(t,e,o){return(e=ll(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function pl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function li(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?pl(Object(o),!0).forEach(function(n){dl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):pl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(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 ul=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),di=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+di(),REPLACE:"@@redux/REPLACE"+di(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+di()}};function Zp(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 pi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ge(1));return o(pi)(t,e)}if(typeof t!="function")throw new Error(ge(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function h(){if(p)throw new Error(ge(3));return i}function y(O){if(typeof O!="function")throw new Error(ge(4));if(p)throw new Error(ge(5));var L=!0;return u(),l.push(O),function(){if(L){if(p)throw new Error(ge(6));L=!1,u();var N=l.indexOf(O);l.splice(N,1),s=null}}}function g(O){if(!Zp(O))throw new Error(ge(7));if(typeof O.type>"u")throw new Error(ge(8));if(p)throw new Error(ge(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var L=s=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function x(O){if(typeof O!="function")throw new Error(ge(10));a=O,g({type:Jo.REPLACE})}function S(){var O,L=y;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function D(){N.next&&N.next(h())}D();var U=L(D);return{unsubscribe:U}}},O[ul]=function(){return this},O}return g({type:Jo.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:x},n[ul]=S,n}function qp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Jo.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function fl(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{qp(o)}catch(p){l=p}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var y;for(var g=!1,x={},S=0;S<i.length;S++){var O=i[S],L=o[O],R=u[O],N=L(R,h);if(typeof N>"u"){var D=h&&h.type;throw new Error(ge(14))}x[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(u).length,g?x:u}}function Lr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function hl(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ge(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Lr.apply(void 0,l)(a.dispatch),li(li({},a),{},{dispatch:i})}}}function yl(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var ml=yl();ml.withExtraArgument=yl;var ui=ml;var Sl=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Yp=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return p([u,h])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Nr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Xp=Object.defineProperty,Qp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,bl=function(t,e,o){return e in t?Xp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Lt=function(t,e){for(var o in e||(e={}))eu.call(e,o)&&bl(t,o,e[o]);if(gl)for(var n=0,a=gl(e);n<a.length;n++){var o=a[n];tu.call(e,o)&&bl(t,o,e[o])}return t},fi=function(t,e){return Qp(t,Jp(e))},ru=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,s)};l((o=o.apply(t,e)).next())})};var ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lr:Lr.apply(null,arguments)},Fv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function nu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var au=function(t){Sl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array),iu=function(t){Sl(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Nr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],o.concat(this))))},e}(Array);function mi(t){return Qe(t)?Qo(t,function(){}):t}function su(t){return typeof t=="boolean"}function cu(){return function(e){return lu(e)}}function lu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new au;if(o&&(su(o)?l.push(ui):l.push(ui.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}var hi=!0;function Cl(t){var e=cu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,y=o.enhancers,g=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(nu(a))x=fl(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 S=s;if(typeof S=="function"&&(S=S(e),!hi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!hi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=hl.apply(void 0,S),L=Lr;p&&(L=ou(Lt({trace:!hi},typeof p=="object"&&p)));var R=new iu(O),N=R;Array.isArray(g)?N=Nr([O],g):typeof g=="function"&&(N=g(R));var D=L.apply(void 0,N);return pi(x,h,D)}function Nt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Lt(Lt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ol(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function du(t){return typeof t=="function"}function pu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Ol(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(du(t))p=function(){return mi(t())};else{var u=mi(t);p=function(){return u}}function h(y,g){y===void 0&&(y=p());var x=Nr([i[g.type]],s.filter(function(S){var O=S.matcher;return O(g)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,O){if(O)if(vt(S)){var L=S,R=O(L,g);return R===void 0?S:R}else{if(Qe(S))return Qo(S,function(N){return O(N,g)});var R=O(S,g);if(R===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return S},y)}return h.getInitialState=p,h}function uu(t,e){return t+"/"+e}function El(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:mi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var y=n[h],g=uu(e,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,i[h]=x,s[g]=x,l[h]=S?Nt(g,S):Nt(g)});function p(){var h=typeof t.extraReducers=="function"?Ol(t.extraReducers):[t.extraReducers],y=h[0],g=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],L=O===void 0?void 0:O,R=Lt(Lt({},g),s);return pu(o,function(N){for(var D in R)N.addCase(D,R[D]);for(var U=0,F=S;U<F.length;U++){var Ce=F[U];N.addMatcher(Ce.matcher,Ce.reducer)}L&&N.addDefaultCase(L)})}var u;return{name:e,reducer:function(h,y){return u||(u=p()),u(h,y)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var fu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=fu[Math.random()*64|0];return e},yu=["name","message","stack","code"],yi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),xl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),mu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=yu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Gv=function(){function t(e,o,n){var a=Nt(e+"/fulfilled",function(h,y,g,x){return{payload:h,meta:fi(Lt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),i=Nt(e+"/pending",function(h,y,g){return{payload:void 0,meta:fi(Lt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=Nt(e+"/rejected",function(h,y,g,x,S){return{payload:x,error:(n&&n.serializeError||mu)(h||"Rejected"),meta:fi(Lt({},S||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,p=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 u(h){return function(y,g,x){var S=n?.idGenerator?n.idGenerator(h):hu(),O=new p,L,R=!1;function N(U){L=U,O.abort()}var D=function(){return ru(this,null,function(){var U,F,Ce,nt,ve,at,ue;return Yp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),nt=(U=n?.condition)==null?void 0:U.call(n,h,{getState:g,extra:x}),bu(nt)?[4,nt]:[3,2];case 1:nt=m.sent(),m.label=2;case 2:if(nt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),y(i(S,h,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([ve,Promise.resolve(o(h,{dispatch:y,getState:g,extra:x,requestId:S,signal:O.signal,abort:N,rejectWithValue:function(v,P){return new yi(v,P)},fulfillWithValue:function(v,P){return new xl(v,P)}})).then(function(v){if(v instanceof yi)throw v;return v instanceof xl?a(v.payload,S,h,v.meta):a(v,S,h)})])];case 3:return Ce=m.sent(),[3,5];case 4:return at=m.sent(),Ce=at instanceof yi?s(null,S,h,at.payload,at.meta):s(at,S,h),[3,5];case 5:return ue=n&&!n.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,ue||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:S,arg:h,unwrap:function(){return D.then(gu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function gu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Al="listener",wl="completed",Tl="cancelled",jv="task-"+Tl,Vv="task-"+wl,Kv=Al+"-"+Tl,Zv=Al+"-"+wl;var gi="listenerMiddleware";var qv=Nt(gi+"/add"),Yv=Nt(gi+"/removeAll"),Xv=Nt(gi+"/remove");var vl,Qv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(vl||(vl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},xu=function(t){return function(e){setTimeout(e,t)}},Jv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xu(10);al();var vu=Wo(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),en=class extends vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rl=class t extends en{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Zo(i))return i;if(a==null)return;let s=El({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Cl({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Go;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let p=s,u=i[p];return u?(...h)=>{let y=u(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}};var tn=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,o,n,a)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Il=b(I()),rn=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ll=(0,Il.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}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=>tn.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rn([(0,bi.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rn([(0,bi.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rn([Za({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),rn([Za({store:T.name})],e.prototype,"uiLocale",void 0),e});var an=b(I());var on=class extends Se{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=T.getState().session;return!!e?.sessionAuthenticated}};var nn=class extends Se{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=T.getState().session;return!!e?.sessionAuthenticated}};var Su="ft-user-assets",Cu={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(ze).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:a}=e.payload;vi(t,o,[...xi(t,o),a]),Nl(t,o,1,n),_l(t,a)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;vi(t,o,xi(t,o).map(a=>a.id===n.id?n:a)),_l(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:a}=e.payload;vi(t,o,xi(t,o).filter(i=>i.id!==a)),Nl(t,o,-1,n)}},Pl={[ze.SEARCHES]:"savedSearches",[ze.BOOKMARKS]:"bookmarks",[ze.BOOKS]:void 0,[ze.COLLECTIONS]:void 0},xi=(t,e)=>{var o;let n=Pl[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},vi=(t,e,o)=>{let n=Pl[e];n&&(t[n]=o)},Nl=(t,e,o,n)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+o),e===ze.BOOKMARKS&&n)){let i=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},_l=(t,e)=>{let o=t.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));t.assetLabels.push(...n)},Me=an.FtReduxStore.get({name:Su,reducers:Cu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Si=class{constructor(e=new on,o=new nn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new Fo,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,an.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&Me.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&Me.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===ze.BOOKMARKS&&o&&Me.actions.clearBookmarkCountByMap(),Me.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Me.actions.bookmarks(o)}}},Ci=new Si;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ci);(0,kl.customElement)("ft-app-context")(K);var Dl=b(X());var Oi=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[n,a]=e.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},_r=new Oi;var Ou=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},to=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),ro=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),eo=Symbol("i18nUnsubs"),dn=(0,Pr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Mo:Or}i18n(i){let{context:s,key:l,message:p}=i,{custom:u,args:h,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=h??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}return p}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(_r.isI18nKey(i)){let[l,p]=i.split(".");return this.i18n({custom:!0,context:l,key:p,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,p)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,p)=>{var u;return((u=p?.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 p=this,u=(h,y,g)=>g?.context&&g.key&&i(h,y,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[to])===null||s===void 0||s.forEach((h,y)=>p[y]=u(h,y,p[y])),(l=this[Ml])===null||l===void 0||l.forEach((h,y)=>{var g;return p[y]=(g=p[y])===null||g===void 0?void 0:g.map(x=>u(h,y,x))})}updateI18nProperties(i){var s;(s=this[ro])===null||s===void 0||s.forEach((l,p)=>{i(l,p)&&(this[p]=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 p=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[sn].set(p,{isCustomContext:l}),this[eo].has(p)||this[eo].set(p,this.getI18nService(l).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(l).prepareContext(p,s)}hasI18nContext(i){return this[sn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[eo].forEach(i=>i()),this[eo].clear()}}return e=sn,o=eo,Ou([(0,Dl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),cn=class extends dn(Pr.FtLitElement){},ln=class extends dn(Pr.FtLitElementRedux){};var Bl=b(I());var Ei=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?_r.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Eu=new Ei;var Ul=(t,e)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Bl.hasChanged,converter:_r,...e}),o[to]=(a=o[to])!==null&&a!==void 0?a:new Map,o[to].set(n,t??{})};var zl=b(I());var pn=b($()),un=b(X()),fn=b(I());var $l=b($());var Fl=$l.css`
189
189
  `;var oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Je=class extends ln{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":pn.nothing:pn.html`
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var rc={};var Fa={};K(Fa,{ParametrizedLabelResolver:()=>Eo});var Eo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;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 n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var fs={};K(fs,{FtCommandQueue:()=>wo,FtLitElementRedux:()=>Ct,FtReduxStore:()=>Et,FtStateManager:()=>us,ReduxWatcher:()=>$n,clearAllStores:()=>Kf,isFtReduxStore:()=>Ar,redux:()=>me,reduxEventListener:()=>za,reduxReactive:()=>Ha,watch:()=>Zf,withRedux:()=>oc});var Ha=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},me=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:mt,attribute:!1,...e};b(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},za=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var wo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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 Ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ao=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),er=Symbol("internalStores"),oc=fe(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=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[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,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[er].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[er].delete(l)}setupStores(){this.unsubscribeFromStores(),this[er].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Pt].has(s.store):this[Pt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Pt].set(s,l.subscribe(()=>this.updateFromStores())),this[Ao].set(s,[]),Ar(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Ao].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Pt].has(s)&&this[Pt].get(s)(),this[Pt].delete(s),(l=this[Ao].get(s))===null||l===void 0||l.forEach(d=>d()),this[Ao].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pt,r=er,n=Ao,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ct=class extends oc(W){};function je(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];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 Ot(t){return!!t&&!!t[ne]}function Je(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===bf}(t)||Array.isArray(t)||!!t[dc]||!!(!((e=t.constructor)===null||e===void 0)&&e[dc])||Xa(t)||Ja(t))}function tr(t,e,r){r===void 0&&(r=!1),Ir(t)===0?(r?Object.keys:Tr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ir(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xa(t)?2:Ja(t)?3:0}function Rr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pf(t,e){return Ir(t)===2?t.get(e):t[e]}function pc(t,e,r){var n=Ir(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xa(t){return yf&&t instanceof Map}function Ja(t){return gf&&t instanceof Set}function kt(t){return t.o||t.t}function Qa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=mc(t);delete e[ne];for(var r=Tr(e),n=0;n<r.length;n++){var i=r[n],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),ts(t)||Ot(t)||!Je(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=uf),Object.freeze(t),e&&tr(t,function(r,n){return es(n,!0)},!0)),t}function uf(){je(2)}function ts(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function lt(t){var e=Ya[t];return e||je(18,t),e}function ff(t,e){Ya[t]||(Ya[t]=e)}function Ka(){return To}function Wa(t,e){e&&(lt("Patches"),t.u=[],t.s=[],t.v=e)}function Pn(t){Za(t),t.p.forEach(hf),t.p=null}function Za(t){t===To&&(To=t.l)}function nc(t){return To={p:[],l:To,h:t,m:!0,_:0}}function hf(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function Va(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||lt("ES5").S(e,t,n),n?(r[ne].P&&(Pn(e),je(4)),Je(t)&&(t=kn(e,t),e.l||Mn(e,t)),e.u&&lt("Patches").M(r[ne].t,t,e.u,e.s)):t=kn(e,r,[]),Pn(e),e.u&&e.v(e.u,e.s),t!==hc?t:void 0}function kn(t,e,r){if(ts(e))return e;var n=e[ne];if(!n)return tr(e,function(l,d){return ic(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Qa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),tr(a,function(l,d){return ic(t,n,i,l,d,r,s)}),Mn(t,i,!1),r&&t.u&&lt("Patches").N(n,r,t.u,t.s)}return n.o}function ic(t,e,r,n,i,a,s){if(Ot(i)){var l=kn(t,i,a&&e&&e.i!==3&&!Rr(e.R,n)?a.concat(n):void 0);if(pc(r,n,l),!Ot(l))return;t.m=!1}else s&&r.add(i);if(Je(i)&&!ts(i)){if(!t.h.D&&t._<1)return;kn(t,i),e&&e.A.l||Mn(t,i)}}function Mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&es(e,r)}function ja(t,e){var r=t[ne];return(r?kt(r):t)[e]}function ac(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Ga(t){t.o||(t.o=Qa(t.t))}function qa(t,e,r){var n=Xa(e)?lt("MapSet").F(e,r):Ja(e)?lt("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Ka(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=Io;s&&(d=[l],p=Ro);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,r):lt("ES5").J(e,r);return(r?r.A:Ka()).p.push(n),n}function mf(t){return Ot(t)||je(22,t),function e(r){if(!Je(r))return r;var n,i=r[ne],a=Ir(r);if(i){if(!i.P&&(i.i<4||!lt("ES5").K(i)))return i.t;i.I=!0,n=sc(r,a),i.I=!1}else n=sc(r,a);return tr(n,function(s,l){i&&pf(i.t,s)===l||pc(n,s,e(l))}),a===3?new Set(n):n}(t)}function sc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qa(t)}function fc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[ne];return Io.get(p,s)},set:function(p){var h=this[ne];Io.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ne];if(!d.P)switch(d.i){case 5:n(d)&&Mt(d);break;case 4:r(d)&&Mt(d)}}}function r(s){for(var l=s.t,d=s.k,p=Tr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==ne){var m=l[f];if(m===void 0&&!Rr(l,f))return!0;var x=d[f],v=x&&x[ne];if(v?v.t!==m:!uc(x,m))return!0}}var A=!!l[ne];return p.length!==Tr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&je(3,JSON.stringify(kt(s)))}var a={};ff("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var x=Array(m.length),v=0;v<m.length;v++)Object.defineProperty(x,""+v,t(v,!0));return x}var A=mc(m);delete A[ne];for(var R=Tr(A),I=0;I<R.length;I++){var P=R[I];A[P]=t(P,f||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(m),A)}(d,s),h={i:d?5:4,A:l?l.A:Ka(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ne,{value:h,writable:!0}),p},S:function(s,l,d){d?Ot(l)&&l[ne].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[ne];if(f){var m=f.t,x=f.k,v=f.R,A=f.i;if(A===4)tr(x,function(S){S!==ne&&(m[S]!==void 0||Rr(m,S)?v[S]||p(x[S]):(v[S]=!0,Mt(f)))}),tr(m,function(S){x[S]!==void 0||Rr(x,S)||(v[S]=!1,Mt(f))});else if(A===5){if(n(f)&&(Mt(f),v.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)v[R]=!1;else for(var I=m.length;I<x.length;I++)v[I]=!0;for(var P=Math.min(x.length,m.length),E=0;E<P;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&p(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var lc,To,rs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",yf=typeof Map<"u",gf=typeof Set<"u",cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hc=rs?Symbol.for("immer-nothing"):((lc={})["immer-nothing"]=!0,lc),dc=rs?Symbol.for("immer-draftable"):"__$immer_draftable",ne=rs?Symbol.for("immer-state"):"__$immer_state";var bf=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,mc=Object.getOwnPropertyDescriptors||function(t){var e={};return Tr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ya={},Io={get:function(t,e){if(e===ne)return t;var r=kt(t);if(!Rr(r,e))return function(i,a,s){var l,d=ac(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Je(n)?n:n===ja(t.t,e)?(Ga(t),t.o[e]=qa(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,r){var n=ac(kt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ja(kt(t),e),a=i?.[ne];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(uc(r,i)&&(r!==void 0||Rr(t.t,e)))return!0;Ga(t),Mt(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 ja(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ga(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=kt(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){je(12)}},Ro={};tr(Io,function(t,e){Ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ro.deleteProperty=function(t,e){return Ro.set.call(this,t,e,void 0)},Ro.set=function(t,e,r){return Io.set.call(this,t[0],e,r,t[0])};var vf=function(){function t(r){var n=this;this.O=cc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(A){var R=this;A===void 0&&(A=l);for(var I=arguments.length,P=Array(I>1?I-1:0),E=1;E<I;E++)P[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[R,S].concat(P))})}}var p;if(typeof a!="function"&&je(6),s!==void 0&&typeof s!="function"&&je(7),Je(i)){var h=nc(n),f=qa(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Pn(h):Za(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Wa(h,s),Va(A,h)},function(A){throw Pn(h),A}):(Wa(h,s),Va(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===hc&&(p=void 0),n.D&&es(p,!0),s){var x=[],v=[];lt("Patches").M(i,p,x,v),s(x,v)}return p}je(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return i.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Je(r)||je(8),Ot(r)&&(r=mf(r));var n=nc(this),i=qa(this,r,void 0);return i[ne].C=!0,Za(n),i},e.finishDraft=function(r,n){var i=r&&r[ne],a=i.A;return Wa(a,n),Va(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!cc&&je(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=lt("Patches").$;return Ot(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),He=new vf,xf=He.produce,ix=He.produceWithPatches.bind(He),ax=He.setAutoFreeze.bind(He),sx=He.setUseProxies.bind(He),lx=He.applyPatches.bind(He),cx=He.createDraft.bind(He),dx=He.finishDraft.bind(He),Dn=xf;function rr(t){"@babel/helpers - typeof";return rr=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},rr(t)}function yc(t,e){if(rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gc(t){var e=yc(t,"string");return rr(e)=="symbol"?e:e+""}function bc(t,e,r){return(e=gc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function os(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(n){bc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ee(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 xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ns=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bn={INIT:"@@redux/INIT"+ns(),REPLACE:"@@redux/REPLACE"+ns(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ns()}};function Sf(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 is(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ee(1));return r(is)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ee(3));return a}function f(A){if(typeof A!="function")throw new Error(Ee(4));if(d)throw new Error(Ee(5));var R=!0;return p(),l.push(A),function(){if(R){if(d)throw new Error(Ee(6));R=!1,p();var P=l.indexOf(A);l.splice(P,1),s=null}}}function m(A){if(!Sf(A))throw new Error(Ee(7));if(typeof A.type>"u")throw new Error(Ee(8));if(d)throw new Error(Ee(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var R=s=l,I=0;I<R.length;I++){var P=R[I];P()}return A}function x(A){if(typeof A!="function")throw new Error(Ee(10));i=A,m({type:Bn.REPLACE})}function v(){var A,R=f;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Ee(11));function E(){P.next&&P.next(h())}E();var S=R(E);return{unsubscribe:S}}},A[xc]=function(){return this},A}return m({type:Bn.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:x},n[xc]=v,n}function Cf(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Bn.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof r(void 0,{type:Bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function Sc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Cf(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},v=0;v<a.length;v++){var A=a[v],R=r[A],I=p[A],P=R(I,h);if(typeof P>"u"){var E=h&&h.type;throw new Error(Ee(14))}x[A]=P,m=m||P!==I}return m=m||a.length!==Object.keys(p).length,m?x:p}}function _r(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Cc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ee(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=_r.apply(void 0,l)(i.dispatch),os(os({},i),{},{dispatch:a})}}}function Oc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Ec=Oc();Ec.withExtraArgument=Oc;var as=Ec;var Ic=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Of=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Ef=Object.defineProperty,wf=Object.defineProperties,Af=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertySymbols,Rf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,Ac=function(t,e,r){return e in t?Ef(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dt=function(t,e){for(var r in e||(e={}))Rf.call(e,r)&&Ac(t,r,e[r]);if(wc)for(var n=0,i=wc(e);n<i.length;n++){var r=i[n];Tf.call(e,r)&&Ac(t,r,e[r])}return t},ss=function(t,e){return wf(t,Af(e))},If=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var _f=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)},Tx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lf(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 Nf=function(t){Ic(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];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=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.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(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array),Pf=function(t){Ic(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];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=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.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(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array);function ds(t){return Je(t)?Dn(t,function(){}):t}function kf(t){return typeof t=="boolean"}function Mf(){return function(e){return Df(e)}}function Df(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Nf;if(r&&(kf(r)?l.push(as):l.push(as.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var ls=!0;function _c(t){var e=Mf(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Lf(i))x=Sc(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 v=s;if(typeof v=="function"&&(v=v(e),!ls&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ls&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Cc.apply(void 0,v),R=_r;d&&(R=_f(Dt({trace:!ls},typeof d=="object"&&d)));var I=new Pf(A),P=I;Array.isArray(m)?P=Lr([A],m):typeof m=="function"&&(P=m(I));var E=R.apply(void 0,P);return is(x,h,E)}function Bt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Lc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Bf(t){return typeof t=="function"}function $f(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Lc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Bf(t))d=function(){return ds(t())};else{var p=ds(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var x=Lr([a[m.type]],s.filter(function(v){var A=v.matcher;return A(m)}).map(function(v){var A=v.reducer;return A}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,A){if(A)if(Ot(v)){var R=v,I=A(R,m);return I===void 0?v:I}else{if(Je(v))return Dn(v,function(P){return A(P,m)});var I=A(v,m);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},f)}return h.getInitialState=d,h}function Uf(t,e){return t+"/"+e}function Nc(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:ds(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Uf(e,h),x,v;"reducer"in f?(x=f.reducer,v=f.prepare):x=f,a[h]=x,s[m]=x,l[h]=v?Bt(m,v):Bt(m)});function d(){var h=typeof t.extraReducers=="function"?Lc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,x=h[1],v=x===void 0?[]:x,A=h[2],R=A===void 0?void 0:A,I=Dt(Dt({},m),s);return $f(r,function(P){for(var E in I)P.addCase(E,I[E]);for(var S=0,w=v;S<w.length;S++){var D=w[S];P.addMatcher(D.matcher,D.reducer)}R&&P.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Ff="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ff[Math.random()*64|0];return e},zf=["name","message","stack","code"],cs=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Wf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=zf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Nx=function(){function t(e,r,n){var i=Bt(e+"/fulfilled",function(h,f,m,x){return{payload:h,meta:ss(Dt({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(h,f,m){return{payload:void 0,meta:ss(Dt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(h,f,m,x,v){return{payload:x,error:(n&&n.serializeError||Wf)(h||"Rejected"),meta:ss(Dt({},v||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,x){var v=n?.idGenerator?n.idGenerator(h):Hf(),A=new d,R,I=!1;function P(S){R=S,A.abort()}var E=function(){return If(this,null,function(){var S,w,D,z,G,V,B;return Of(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:x}),jf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,G=new Promise(function(C,k){return A.signal.addEventListener("abort",function(){return k({name:"AbortError",message:R||"Aborted"})})}),f(a(v,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:v,arg:h},{getState:m,extra:x}))),[4,Promise.race([G,Promise.resolve(r(h,{dispatch:f,getState:m,extra:x,requestId:v,signal:A.signal,abort:P,rejectWithValue:function(C,k){return new cs(C,k)},fulfillWithValue:function(C,k){return new Rc(C,k)}})).then(function(C){if(C instanceof cs)throw C;return C instanceof Rc?i(C.payload,v,h,C.meta):i(C,v,h)})])];case 3:return D=y.sent(),[3,5];case 4:return V=y.sent(),D=V instanceof cs?s(null,v,h,V.payload,V.meta):s(V,v,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,B||f(D),[2,D]}})})}();return Object.assign(E,{abort:P,requestId:v,arg:h,unwrap:function(){return E.then(Vf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function jf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Pc="listener",kc="completed",Mc="cancelled",Px="task-"+Mc,kx="task-"+kc,Mx=Pc+"-"+Mc,Dx=Pc+"-"+kc;var ps="listenerMiddleware";var Bx=Bt(ps+"/add"),$x=Bt(ps+"/removeAll"),Ux=Bt(ps+"/remove");var Tc,Fx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Tc||(Tc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Gf=function(t){return function(e){setTimeout(e,t)}},Hx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gf(10);fc();window.ftReduxStores||(window.ftReduxStores={});var Et=class t extends yt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Ar(a))return a;if(i==null)return;let s=Nc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=_c({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new wo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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 Kf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ar(e)&&e.clear()}var $n=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}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);mt(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 Zf(t,e,r){return new $n(t,e,r).watch()}var us=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 n of r)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ys={};K(ys,{scrollHelper:()=>qf});var hs,Un=new Map,ms=class{lock(e,r){if(r){let n=Un.get(r);if(n==null||n===e)return Un.set(r,e),r}}release(e,r){r&&Un.get(r)===e&&Un.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of ea(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n: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 n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=po(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(hs=window.FluidTopicsScrollHelper)!==null&&hs!==void 0?hs:new ms;var qf=window.FluidTopicsScrollHelper;var bs={};K(bs,{SearchPlaceConverter:()=>Mr,SearchPlaceQueryParams:()=>X,isSearchPlaceQueryParams:()=>hd,serializeRequest:()=>Qf});var Xf=Ip(Bc(),1);var $c;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})($c||($c={}));var Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Fc;(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"})(Fc||(Fc={}));var Hc;(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"})(Hc||(Hc={}));var zc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(zc||(zc={}));var Wc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Wc||(Wc={}));var Vc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Vc||(Vc={}));var jc;(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"})(jc||(jc={}));var Gc;(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"})(Gc||(Gc={}));var Kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kc||(Kc={}));var Zc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Zc||(Zc={}));var qc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(qc||(qc={}));var Yc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Pr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pr||(Pr={}));var Jc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Jc||(Jc={}));var Qc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Qc||(Qc={}));var gs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gs||(gs={}));var id=t=>Object.keys(gs).includes(t);var ed;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ed||(ed={}));var zn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zn||(zn={}));var td;(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"})(td||(td={}));var kr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kr||(kr={}));var ad=t=>Object.keys(kr).includes(t);var rd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rd||(rd={}));var od;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(od||(od={}));var nd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nd||(nd={}));var re;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var Ge;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ge||(Ge={}));var sd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(sd||(sd={}));var ld;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ld||(ld={}));var cd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(cd||(cd={}));var dd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(dd||(dd={}));var pd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(pd||(pd={}));var Yf={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function ud(t,e){return t===e||(Yf[t]??[]).some(r=>ud(r,e))}function wt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ud(n,e))}function Jf(t){return`"${t}"`}function fd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Qf(t,e){return new Mr(t).serialize(e)}var X;(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"})(X||(X={}));var eh=new Set(Object.values(X));function hd(t){return eh.has(t)}var Mr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,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 n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,h,f,m,x;let v=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&v.append(X.LOCALE,e.contentLocale):v.append(X.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(X.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var D,z;let G=((z=(D=w.valueFilter)===null||D===void 0?void 0:D.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>Jf(fd(V))).join("_");return`${w.key}~${G}`}).join("*");v.append(X.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(w=>{var D;return`${w.key}~${(D=w.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(X.DATE_FILTERS,S)}let I=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(I.length>0){let S=I.map(w=>{var D,z;return`${w.key}~${(D=w.rangeFilter)===null||D===void 0?void 0:D.from}_${(z=w.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");v.append(X.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(X.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(X.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(X.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&v.append(X.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(X.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let P=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in P)v.append(S,P[S]);let E=new Array;return v.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[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,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),p=d.get(X.LOCALE)==="all"?void 0:d.get(X.LOCALE),h=((r=d.get(X.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(X.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(X.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(X.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(X.KEYWORD_MATCH),A=v?v.toUpperCase()===Pr.MANDATORY?Pr.MANDATORY:Pr.OPTIONAL:void 0,R={};for(let I of d.keys())hd(I)||(R[I]=d.get(I));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(X.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:id(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:po(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(X.FILTERS)&&(d=this.parseValueFilters((r=e.get(X.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(X.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(X.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(X.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(X.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(X.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(fd).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:kr[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,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(ad(e))return[{key:"ft:lastEdition",dateFilter:{type:kr[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ss={};K(Ss,{toFtFormComponent:()=>xs});var vs=Symbol("elementInternals"),xs=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[vs].form}constructor(...n){super(n),this[vs]=this.attachInternals()}setFormValue(n){this[vs].setFormValue(n)}}return e});var Cs={};K(Cs,{DateFormatter:()=>or});var or=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,r,n,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Es={};K(Es,{ALL_KEYS_VALUE:()=>Os,SameWindowStorageEvent:()=>Dr});var Os="__all__",Dr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Os}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Dr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Dr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Dr(Os))}});var As={};K(As,{FocusMainContentEvent:()=>ws});var ws=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var md={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function th(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function rh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",th);document.addEventListener("click",rh);var yd=L`
48
+ `;var rc={};var Fa={};K(Fa,{ParametrizedLabelResolver:()=>Eo});var Eo=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;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 n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var fs={};K(fs,{FtCommandQueue:()=>wo,FtLitElementRedux:()=>Ct,FtReduxStore:()=>Et,FtStateManager:()=>us,ReduxWatcher:()=>$n,clearAllStores:()=>Kf,isFtReduxStore:()=>Ar,redux:()=>me,reduxEventListener:()=>za,reduxReactive:()=>Ha,watch:()=>Zf,withRedux:()=>oc});var Ha=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},me=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:mt,attribute:!1,...e};b(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},za=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var wo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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 Ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ao=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),er=Symbol("internalStores"),oc=fe(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=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[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,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[er].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[er].delete(l)}setupStores(){this.unsubscribeFromStores(),this[er].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Pt].has(s.store):this[Pt].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var d;this[Pt].set(s,l.subscribe(()=>this.updateFromStores())),this[Ao].set(s,[]),Ar(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[Ao].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Pt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Pt].has(s)&&this[Pt].get(s)(),this[Pt].delete(s),(l=this[Ao].get(s))===null||l===void 0||l.forEach(d=>d()),this[Ao].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Pt,r=er,n=Ao,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ct=class extends oc(W){};function je(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];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 Ot(t){return!!t&&!!t[ne]}function Je(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===bf}(t)||Array.isArray(t)||!!t[dc]||!!(!((e=t.constructor)===null||e===void 0)&&e[dc])||Xa(t)||Ja(t))}function tr(t,e,r){r===void 0&&(r=!1),Ir(t)===0?(r?Object.keys:Tr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ir(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xa(t)?2:Ja(t)?3:0}function Rr(t,e){return Ir(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pf(t,e){return Ir(t)===2?t.get(e):t[e]}function pc(t,e,r){var n=Ir(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xa(t){return yf&&t instanceof Map}function Ja(t){return gf&&t instanceof Set}function kt(t){return t.o||t.t}function Qa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=mc(t);delete e[ne];for(var r=Tr(e),n=0;n<r.length;n++){var i=r[n],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),ts(t)||Ot(t)||!Je(t)||(Ir(t)>1&&(t.set=t.add=t.clear=t.delete=uf),Object.freeze(t),e&&tr(t,function(r,n){return es(n,!0)},!0)),t}function uf(){je(2)}function ts(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function lt(t){var e=Ya[t];return e||je(18,t),e}function ff(t,e){Ya[t]||(Ya[t]=e)}function Ka(){return To}function Wa(t,e){e&&(lt("Patches"),t.u=[],t.s=[],t.v=e)}function Pn(t){Za(t),t.p.forEach(hf),t.p=null}function Za(t){t===To&&(To=t.l)}function nc(t){return To={p:[],l:To,h:t,m:!0,_:0}}function hf(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function Va(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||lt("ES5").S(e,t,n),n?(r[ne].P&&(Pn(e),je(4)),Je(t)&&(t=kn(e,t),e.l||Mn(e,t)),e.u&&lt("Patches").M(r[ne].t,t,e.u,e.s)):t=kn(e,r,[]),Pn(e),e.u&&e.v(e.u,e.s),t!==hc?t:void 0}function kn(t,e,r){if(ts(e))return e;var n=e[ne];if(!n)return tr(e,function(l,d){return ic(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Mn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Qa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),tr(a,function(l,d){return ic(t,n,i,l,d,r,s)}),Mn(t,i,!1),r&&t.u&&lt("Patches").N(n,r,t.u,t.s)}return n.o}function ic(t,e,r,n,i,a,s){if(Ot(i)){var l=kn(t,i,a&&e&&e.i!==3&&!Rr(e.R,n)?a.concat(n):void 0);if(pc(r,n,l),!Ot(l))return;t.m=!1}else s&&r.add(i);if(Je(i)&&!ts(i)){if(!t.h.D&&t._<1)return;kn(t,i),e&&e.A.l||Mn(t,i)}}function Mn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&es(e,r)}function ja(t,e){var r=t[ne];return(r?kt(r):t)[e]}function ac(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Mt(t){t.P||(t.P=!0,t.l&&Mt(t.l))}function Ga(t){t.o||(t.o=Qa(t.t))}function qa(t,e,r){var n=Xa(e)?lt("MapSet").F(e,r):Ja(e)?lt("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Ka(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=Io;s&&(d=[l],p=Ro);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,r):lt("ES5").J(e,r);return(r?r.A:Ka()).p.push(n),n}function mf(t){return Ot(t)||je(22,t),function e(r){if(!Je(r))return r;var n,i=r[ne],a=Ir(r);if(i){if(!i.P&&(i.i<4||!lt("ES5").K(i)))return i.t;i.I=!0,n=sc(r,a),i.I=!1}else n=sc(r,a);return tr(n,function(s,l){i&&pf(i.t,s)===l||pc(n,s,e(l))}),a===3?new Set(n):n}(t)}function sc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qa(t)}function fc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[ne];return Io.get(p,s)},set:function(p){var h=this[ne];Io.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][ne];if(!d.P)switch(d.i){case 5:n(d)&&Mt(d);break;case 4:r(d)&&Mt(d)}}}function r(s){for(var l=s.t,d=s.k,p=Tr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==ne){var m=l[f];if(m===void 0&&!Rr(l,f))return!0;var x=d[f],v=x&&x[ne];if(v?v.t!==m:!uc(x,m))return!0}}var A=!!l[ne];return p.length!==Tr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&je(3,JSON.stringify(kt(s)))}var a={};ff("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var x=Array(m.length),v=0;v<m.length;v++)Object.defineProperty(x,""+v,t(v,!0));return x}var A=mc(m);delete A[ne];for(var R=Tr(A),I=0;I<R.length;I++){var P=R[I];A[P]=t(P,f||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(m),A)}(d,s),h={i:d?5:4,A:l?l.A:Ka(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ne,{value:h,writable:!0}),p},S:function(s,l,d){d?Ot(l)&&l[ne].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[ne];if(f){var m=f.t,x=f.k,v=f.R,A=f.i;if(A===4)tr(x,function(S){S!==ne&&(m[S]!==void 0||Rr(m,S)?v[S]||p(x[S]):(v[S]=!0,Mt(f)))}),tr(m,function(S){x[S]!==void 0||Rr(x,S)||(v[S]=!1,Mt(f))});else if(A===5){if(n(f)&&(Mt(f),v.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)v[R]=!1;else for(var I=m.length;I<x.length;I++)v[I]=!0;for(var P=Math.min(x.length,m.length),E=0;E<P;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&p(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var lc,To,rs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",yf=typeof Map<"u",gf=typeof Set<"u",cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hc=rs?Symbol.for("immer-nothing"):((lc={})["immer-nothing"]=!0,lc),dc=rs?Symbol.for("immer-draftable"):"__$immer_draftable",ne=rs?Symbol.for("immer-state"):"__$immer_state";var bf=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,mc=Object.getOwnPropertyDescriptors||function(t){var e={};return Tr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ya={},Io={get:function(t,e){if(e===ne)return t;var r=kt(t);if(!Rr(r,e))return function(i,a,s){var l,d=ac(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Je(n)?n:n===ja(t.t,e)?(Ga(t),t.o[e]=qa(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,r){var n=ac(kt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ja(kt(t),e),a=i?.[ne];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(uc(r,i)&&(r!==void 0||Rr(t.t,e)))return!0;Ga(t),Mt(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 ja(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ga(t),Mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=kt(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){je(12)}},Ro={};tr(Io,function(t,e){Ro[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ro.deleteProperty=function(t,e){return Ro.set.call(this,t,e,void 0)},Ro.set=function(t,e,r){return Io.set.call(this,t[0],e,r,t[0])};var vf=function(){function t(r){var n=this;this.O=cc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(A){var R=this;A===void 0&&(A=l);for(var I=arguments.length,P=Array(I>1?I-1:0),E=1;E<I;E++)P[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[R,S].concat(P))})}}var p;if(typeof a!="function"&&je(6),s!==void 0&&typeof s!="function"&&je(7),Je(i)){var h=nc(n),f=qa(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Pn(h):Za(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Wa(h,s),Va(A,h)},function(A){throw Pn(h),A}):(Wa(h,s),Va(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===hc&&(p=void 0),n.D&&es(p,!0),s){var x=[],v=[];lt("Patches").M(i,p,x,v),s(x,v)}return p}je(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return i.apply(void 0,[x].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Je(r)||je(8),Ot(r)&&(r=mf(r));var n=nc(this),i=qa(this,r,void 0);return i[ne].C=!0,Za(n),i},e.finishDraft=function(r,n){var i=r&&r[ne],a=i.A;return Wa(a,n),Va(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!cc&&je(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=lt("Patches").$;return Ot(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),He=new vf,xf=He.produce,ix=He.produceWithPatches.bind(He),ax=He.setAutoFreeze.bind(He),sx=He.setUseProxies.bind(He),lx=He.applyPatches.bind(He),cx=He.createDraft.bind(He),dx=He.finishDraft.bind(He),Dn=xf;function rr(t){"@babel/helpers - typeof";return rr=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},rr(t)}function yc(t,e){if(rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gc(t){var e=yc(t,"string");return rr(e)=="symbol"?e:e+""}function bc(t,e,r){return(e=gc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function os(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(n){bc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ee(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 xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ns=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bn={INIT:"@@redux/INIT"+ns(),REPLACE:"@@redux/REPLACE"+ns(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ns()}};function Sf(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 is(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ee(1));return r(is)(t,e)}if(typeof t!="function")throw new Error(Ee(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ee(3));return a}function f(A){if(typeof A!="function")throw new Error(Ee(4));if(d)throw new Error(Ee(5));var R=!0;return p(),l.push(A),function(){if(R){if(d)throw new Error(Ee(6));R=!1,p();var P=l.indexOf(A);l.splice(P,1),s=null}}}function m(A){if(!Sf(A))throw new Error(Ee(7));if(typeof A.type>"u")throw new Error(Ee(8));if(d)throw new Error(Ee(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var R=s=l,I=0;I<R.length;I++){var P=R[I];P()}return A}function x(A){if(typeof A!="function")throw new Error(Ee(10));i=A,m({type:Bn.REPLACE})}function v(){var A,R=f;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Ee(11));function E(){P.next&&P.next(h())}E();var S=R(E);return{unsubscribe:S}}},A[xc]=function(){return this},A}return m({type:Bn.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:x},n[xc]=v,n}function Cf(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Bn.INIT});if(typeof n>"u")throw new Error(Ee(12));if(typeof r(void 0,{type:Bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function Sc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Cf(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},v=0;v<a.length;v++){var A=a[v],R=r[A],I=p[A],P=R(I,h);if(typeof P>"u"){var E=h&&h.type;throw new Error(Ee(14))}x[A]=P,m=m||P!==I}return m=m||a.length!==Object.keys(p).length,m?x:p}}function _r(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Cc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ee(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=_r.apply(void 0,l)(i.dispatch),os(os({},i),{},{dispatch:a})}}}function Oc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Ec=Oc();Ec.withExtraArgument=Oc;var as=Ec;var Ic=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Of=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Ef=Object.defineProperty,wf=Object.defineProperties,Af=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertySymbols,Rf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,Ac=function(t,e,r){return e in t?Ef(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dt=function(t,e){for(var r in e||(e={}))Rf.call(e,r)&&Ac(t,r,e[r]);if(wc)for(var n=0,i=wc(e);n<i.length;n++){var r=i[n];Tf.call(e,r)&&Ac(t,r,e[r])}return t},ss=function(t,e){return wf(t,Af(e))},If=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var _f=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_r:_r.apply(null,arguments)},Tx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lf(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 Nf=function(t){Ic(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];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=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.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(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array),Pf=function(t){Ic(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];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=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.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(e.bind.apply(e,Lr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Lr([void 0],r.concat(this))))},e}(Array);function ds(t){return Je(t)?Dn(t,function(){}):t}function kf(t){return typeof t=="boolean"}function Mf(){return function(e){return Df(e)}}function Df(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Nf;if(r&&(kf(r)?l.push(as):l.push(as.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var ls=!0;function _c(t){var e=Mf(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Lf(i))x=Sc(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 v=s;if(typeof v=="function"&&(v=v(e),!ls&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ls&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Cc.apply(void 0,v),R=_r;d&&(R=_f(Dt({trace:!ls},typeof d=="object"&&d)));var I=new Pf(A),P=I;Array.isArray(m)?P=Lr([A],m):typeof m=="function"&&(P=m(I));var E=R.apply(void 0,P);return is(x,h,E)}function Bt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Lc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Bf(t){return typeof t=="function"}function $f(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Lc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Bf(t))d=function(){return ds(t())};else{var p=ds(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var x=Lr([a[m.type]],s.filter(function(v){var A=v.matcher;return A(m)}).map(function(v){var A=v.reducer;return A}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,A){if(A)if(Ot(v)){var R=v,I=A(R,m);return I===void 0?v:I}else{if(Je(v))return Dn(v,function(P){return A(P,m)});var I=A(v,m);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},f)}return h.getInitialState=d,h}function Uf(t,e){return t+"/"+e}function Nc(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:ds(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Uf(e,h),x,v;"reducer"in f?(x=f.reducer,v=f.prepare):x=f,a[h]=x,s[m]=x,l[h]=v?Bt(m,v):Bt(m)});function d(){var h=typeof t.extraReducers=="function"?Lc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,x=h[1],v=x===void 0?[]:x,A=h[2],R=A===void 0?void 0:A,I=Dt(Dt({},m),s);return $f(r,function(P){for(var E in I)P.addCase(E,I[E]);for(var S=0,w=v;S<w.length;S++){var D=w[S];P.addMatcher(D.matcher,D.reducer)}R&&P.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Ff="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Ff[Math.random()*64|0];return e},zf=["name","message","stack","code"],cs=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Wf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=zf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Nx=function(){function t(e,r,n){var i=Bt(e+"/fulfilled",function(h,f,m,x){return{payload:h,meta:ss(Dt({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(h,f,m){return{payload:void 0,meta:ss(Dt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(h,f,m,x,v){return{payload:x,error:(n&&n.serializeError||Wf)(h||"Rejected"),meta:ss(Dt({},v||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,x){var v=n?.idGenerator?n.idGenerator(h):Hf(),A=new d,R,I=!1;function P(S){R=S,A.abort()}var E=function(){return If(this,null,function(){var S,w,D,z,G,V,B;return Of(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:x}),jf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,G=new Promise(function(C,k){return A.signal.addEventListener("abort",function(){return k({name:"AbortError",message:R||"Aborted"})})}),f(a(v,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:v,arg:h},{getState:m,extra:x}))),[4,Promise.race([G,Promise.resolve(r(h,{dispatch:f,getState:m,extra:x,requestId:v,signal:A.signal,abort:P,rejectWithValue:function(C,k){return new cs(C,k)},fulfillWithValue:function(C,k){return new Rc(C,k)}})).then(function(C){if(C instanceof cs)throw C;return C instanceof Rc?i(C.payload,v,h,C.meta):i(C,v,h)})])];case 3:return D=y.sent(),[3,5];case 4:return V=y.sent(),D=V instanceof cs?s(null,v,h,V.payload,V.meta):s(V,v,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,B||f(D),[2,D]}})})}();return Object.assign(E,{abort:P,requestId:v,arg:h,unwrap:function(){return E.then(Vf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function jf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Pc="listener",kc="completed",Mc="cancelled",Px="task-"+Mc,kx="task-"+kc,Mx=Pc+"-"+Mc,Dx=Pc+"-"+kc;var ps="listenerMiddleware";var Bx=Bt(ps+"/add"),$x=Bt(ps+"/removeAll"),Ux=Bt(ps+"/remove");var Tc,Fx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Tc||(Tc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Gf=function(t){return function(e){setTimeout(e,t)}},Hx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gf(10);fc();window.ftReduxStores||(window.ftReduxStores={});var Et=class t extends yt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Ar(a))return a;if(i==null)return;let s=Nc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=_c({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new wo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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 Kf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ar(e)&&e.clear()}var $n=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}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);mt(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 Zf(t,e,r){return new $n(t,e,r).watch()}var us=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 n of r)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var ys={};K(ys,{scrollHelper:()=>qf});var hs,Un=new Map,ms=class{lock(e,r){if(r){let n=Un.get(r);if(n==null||n===e)return Un.set(r,e),r}}release(e,r){r&&Un.get(r)===e&&Un.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of ea(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n: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 n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=po(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(hs=window.FluidTopicsScrollHelper)!==null&&hs!==void 0?hs:new ms;var qf=window.FluidTopicsScrollHelper;var bs={};K(bs,{SearchPlaceConverter:()=>Mr,SearchPlaceQueryParams:()=>X,isSearchPlaceQueryParams:()=>md,serializeRequest:()=>Qf});var Xf=Ip(Bc(),1);var $c;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})($c||($c={}));var Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Fc;(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"})(Fc||(Fc={}));var Hc;(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"})(Hc||(Hc={}));var zc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(zc||(zc={}));var Wc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Wc||(Wc={}));var Vc;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(Vc||(Vc={}));var jc;(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"})(jc||(jc={}));var Gc;(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"})(Gc||(Gc={}));var Kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kc||(Kc={}));var Zc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Zc||(Zc={}));var qc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(qc||(qc={}));var Yc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Pr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pr||(Pr={}));var Jc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Jc||(Jc={}));var Qc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Qc||(Qc={}));var gs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(gs||(gs={}));var ad=t=>Object.keys(gs).includes(t);var ed;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ed||(ed={}));var zn;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(zn||(zn={}));var td;(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"})(td||(td={}));var kr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kr||(kr={}));var sd=t=>Object.keys(kr).includes(t);var rd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rd||(rd={}));var od;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(od||(od={}));var nd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nd||(nd={}));var re;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var Ge;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ge||(Ge={}));var id;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(id||(id={}));var ld;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ld||(ld={}));var cd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(cd||(cd={}));var dd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(dd||(dd={}));var pd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(pd||(pd={}));var ud;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ud||(ud={}));var Yf={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function fd(t,e){return t===e||(Yf[t]??[]).some(r=>fd(r,e))}function wt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>fd(n,e))}function Jf(t){return`"${t}"`}function hd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Qf(t,e){return new Mr(t).serialize(e)}var X;(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"})(X||(X={}));var eh=new Set(Object.values(X));function md(t){return eh.has(t)}var Mr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,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 n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,h,f,m,x;let v=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&v.append(X.LOCALE,e.contentLocale):v.append(X.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&v.append(X.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var D,z;let G=((z=(D=w.valueFilter)===null||D===void 0?void 0:D.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>Jf(hd(V))).join("_");return`${w.key}~${G}`}).join("*");v.append(X.VALUE_FILTERS,S)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let S=R.map(w=>{var D;return`${w.key}~${(D=w.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(X.DATE_FILTERS,S)}let I=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(I.length>0){let S=I.map(w=>{var D,z;return`${w.key}~${(D=w.rangeFilter)===null||D===void 0?void 0:D.from}_${(z=w.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");v.append(X.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(X.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(X.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(X.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&v.append(X.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(X.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let P=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in P)v.append(S,P[S]);let E=new Array;return v.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[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,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),p=d.get(X.LOCALE)==="all"?void 0:d.get(X.LOCALE),h=((r=d.get(X.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(X.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(X.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(X.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(X.KEYWORD_MATCH),A=v?v.toUpperCase()===Pr.MANDATORY?Pr.MANDATORY:Pr.OPTIONAL:void 0,R={};for(let I of d.keys())md(I)||(R[I]=d.get(I));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(X.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:ad(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:po(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:A,otherQueryParams:R}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(X.FILTERS)&&(d=this.parseValueFilters((r=e.get(X.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(X.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(X.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(X.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(X.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(X.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}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(hd).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:kr[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,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(sd(e))return[{key:"ft:lastEdition",dateFilter:{type:kr[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ss={};K(Ss,{toFtFormComponent:()=>xs});var vs=Symbol("elementInternals"),xs=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[vs].form}constructor(...n){super(n),this[vs]=this.attachInternals()}setFormValue(n){this[vs].setFormValue(n)}}return e});var Cs={};K(Cs,{DateFormatter:()=>or});var or=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,r,n,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Es={};K(Es,{ALL_KEYS_VALUE:()=>Os,SameWindowStorageEvent:()=>Dr});var Os="__all__",Dr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Os}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Dr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Dr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Dr(Os))}});var As={};K(As,{FocusMainContentEvent:()=>ws});var ws=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var yd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function th(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function rh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",th);document.addEventListener("click",rh);var gd=L`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var oh={checkVisibility:!0},R0=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...oh,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new fo({type:"aria",message:n})))},20)}}return e});function gd(t,e,r){return t?e(t):r?.(t)}var Se=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},nr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(nr||(nr={}));var ir;(function(t){t.default="default",t.warning="warning",t.error="error"})(ir||(ir={}));var Rs=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},B0=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=nr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=ir.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===nr.blur||this.validateOn===nr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==ir.default&&this.validateOn===nr.blurWithStatusResolutionOnInput||this.validateOn===nr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Rs(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return M`
72
+ `;var oh={checkVisibility:!0},R0=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...oh,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new fo({type:"aria",message:n})))},20)}}return e});function bd(t,e,r){return t?e(t):r?.(t)}var Se=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},nr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(nr||(nr={}));var ir;(function(t){t.default="default",t.warning="warning",t.error="error"})(ir||(ir={}));var Rs=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},B0=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=nr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=ir.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===nr.blur||this.validateOn===nr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==ir.default&&this.validateOn===nr.blurWithStatusResolutionOnInput||this.validateOn===nr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Rs(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return M`
73
73
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
74
74
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
75
75
  ${hr(this.errorMessages,n=>M`
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
78
78
  ${hr(this.warningMessages,n=>M`
79
79
  <li>${n}</li>
80
80
  `)}
81
- ${gd(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>M`
81
+ ${bd(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>M`
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ir.error:this.warningMessages.length?ir.warning:ir.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Se([b()],e.prototype,"warningRules",void 0),Se([b()],e.prototype,"errorRules",void 0),Se([b()],e.prototype,"validateOn",void 0),Se([b({type:Boolean})],e.prototype,"validateAtRender",void 0),Se([b()],e.prototype,"label",void 0),Se([b({type:Boolean})],e.prototype,"hideLabel",void 0),Se([b()],e.prototype,"name",void 0),Se([b({type:Boolean})],e.prototype,"disabled",void 0),Se([b()],e.prototype,"helperText",void 0),Se([b()],e.prototype,"forceStatus",void 0),Se([b({reflect:!0})],e.prototype,"value",void 0),Se([Z()],e.prototype,"errorMessages",void 0),Se([Z()],e.prototype,"warningMessages",void 0),Se([Z()],e.prototype,"status",void 0),Se([Z()],e.prototype,"focused",void 0),Se([Z()],e.prototype,"additionalWarningRules",void 0),Se([Z()],e.prototype,"additionalErrorRules",void 0),e});var _o=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),_o(n,e);return!0},Wn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},bd=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),ah(e)}};function nh(t){this._$AN!==void 0?(Wn(this),this._$AM=t,bd(this)):this._$AM=t}function ih(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)_o(n[a],!1),Wn(n[a]);else n!=null&&(_o(n,!1),Wn(n));else _o(this,t)}var ah=t=>{t.type==nt.CHILD&&(t._$AP??=ih,t._$AQ??=nh)},Vn=class extends We{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),bd(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(_o(this,e),Wn(this))}setValue(e){if(gl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var vd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(vd||(vd={}));var sh={sm:640,md:768,lg:1024,xl:1280},Ts=class extends Vn{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>H);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:sh[e]}},X0=Ye(Ts);var Is,_s,Ls,Ns,Lo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ls=(_s=(Is=window.safari)===null||Is===void 0?void 0:Is.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Ls!==void 0?Ls:"")==="[object SafariRemoteNotification]",lh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ns=window.ftGlobals)!==null&&Ns!==void 0?Ns:{lit:zi,litDecorators:ji,litRepeat:Gi,litClassMap:Ki,litStyleMap:Zi,litUnsafeHTML:Yi,wcUtils:{...ia,...Ji,...ca,...Cs,...da,...pa,...ma,...na,..._a,...As,...md,...ys,...ha,...Ma,...Ss,...ka,...ec,...ta,...$a,...ya,...Ua,...yd,...rc,...Fa,...fs,...Es,...La,...Pa,...bs,...sa,isSafari:Lo,isTouchScreen:lh,setVariable:O}};var FS={},xd=L`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?ir.error:this.warningMessages.length?ir.warning:ir.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Se([b()],e.prototype,"warningRules",void 0),Se([b()],e.prototype,"errorRules",void 0),Se([b()],e.prototype,"validateOn",void 0),Se([b({type:Boolean})],e.prototype,"validateAtRender",void 0),Se([b()],e.prototype,"label",void 0),Se([b({type:Boolean})],e.prototype,"hideLabel",void 0),Se([b()],e.prototype,"name",void 0),Se([b({type:Boolean})],e.prototype,"disabled",void 0),Se([b()],e.prototype,"helperText",void 0),Se([b()],e.prototype,"forceStatus",void 0),Se([b({reflect:!0})],e.prototype,"value",void 0),Se([Z()],e.prototype,"errorMessages",void 0),Se([Z()],e.prototype,"warningMessages",void 0),Se([Z()],e.prototype,"status",void 0),Se([Z()],e.prototype,"focused",void 0),Se([Z()],e.prototype,"additionalWarningRules",void 0),Se([Z()],e.prototype,"additionalErrorRules",void 0),e});var _o=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),_o(n,e);return!0},Wn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},vd=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),ah(e)}};function nh(t){this._$AN!==void 0?(Wn(this),this._$AM=t,vd(this)):this._$AM=t}function ih(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)_o(n[a],!1),Wn(n[a]);else n!=null&&(_o(n,!1),Wn(n));else _o(this,t)}var ah=t=>{t.type==nt.CHILD&&(t._$AP??=ih,t._$AQ??=nh)},Vn=class extends We{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),vd(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(_o(this,e),Wn(this))}setValue(e){if(gl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var xd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(xd||(xd={}));var sh={sm:640,md:768,lg:1024,xl:1280},Ts=class extends Vn{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>H);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:sh[e]}},X0=Ye(Ts);var Is,_s,Ls,Ns,Lo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ls=(_s=(Is=window.safari)===null||Is===void 0?void 0:Is.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Ls!==void 0?Ls:"")==="[object SafariRemoteNotification]",lh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ns=window.ftGlobals)!==null&&Ns!==void 0?Ns:{lit:zi,litDecorators:ji,litRepeat:Gi,litClassMap:Ki,litStyleMap:Zi,litUnsafeHTML:Yi,wcUtils:{...ia,...Ji,...ca,...Cs,...da,...pa,...ma,...na,..._a,...As,...yd,...ys,...ha,...Ma,...Ss,...ka,...ec,...ta,...$a,...ya,...Ua,...gd,...rc,...Fa,...fs,...Es,...La,...Pa,...bs,...sa,isSafari:Lo,isTouchScreen:lh,setVariable:O}};var FS={},Sd=L`
86
86
  :host {
87
87
  display: inline-block;
88
88
  }
@@ -102,7 +102,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
102
102
  all: unset;
103
103
  position: relative;
104
104
  }
105
- `;var ar;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(ar||(ar={}));var At;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(At||(At={}));var ch=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},ks=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ps=Symbol("registerInterval"),dh=fe(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Ps]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ps]):this.dispatchEvent(new ks)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ps,ch([Z()],r.prototype,"stateManager",void 0),r}),jn=class extends dh(Ct){};var Cd=Symbol.for(""),ph=t=>{if(t?.r===Cd)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:Cd});var Sd=new Map,Ms=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=r[p],(i=ph(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Sd.get(f))===void 0&&(s.raw=s,Sd.set(f,e=s)),r=l}return t(e,...r)},$r=Ms(M),ZS=Ms(Bi),qS=Ms($i);var Ut;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ut||(Ut={}));function Od(t,e){let r=_t[t];return L`
105
+ `;var ar;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(ar||(ar={}));var At;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(At||(At={}));var ch=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},ks=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ps=Symbol("registerInterval"),dh=fe(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Ps]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ps]):this.dispatchEvent(new ks)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ps,ch([Z()],r.prototype,"stateManager",void 0),r}),jn=class extends dh(Ct){};var Od=Symbol.for(""),ph=t=>{if(t?.r===Od)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:Od});var Cd=new Map,Ms=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=r[p],(i=ph(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Cd.get(f))===void 0&&(s.raw=s,Cd.set(f,e=s)),r=l}return t(e,...r)},$r=Ms(M),ZS=Ms(Bi),qS=Ms($i);var Ut;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ut||(Ut={}));function Ed(t,e){let r=_t[t];return L`
106
106
  ${e?$e(e):L`.ft-typography--${$e(t)}`} {
107
107
  font-family: ${r.fontFamily};
108
108
  font-size: ${r.fontSize};
@@ -112,7 +112,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
112
112
  text-decoration: ${r.textDecoration};
113
113
  text-transform: ${r.textCase};
114
114
  }
115
- `}var Ed=o.extend("--ft-typography-font-family","",F.titleFont),Rt=o.extend("--ft-typography-font-family","",F.contentFont),$={fontFamily:Rt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ur={fontFamily:o.extend("--ft-typography-title-font-family","",Ed),fontSize:o.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},Fr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Ed),fontSize:o.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Hr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Rt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},zr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Rt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},Wr={fontFamily:o.extend("--ft-typography-body1-font-family","",Rt),fontSize:o.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Ke={fontFamily:o.extend("--ft-typography-body2-font-family","",Rt),fontSize:o.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},Vr={fontFamily:o.extend("--ft-typography-caption-font-family","",Rt),fontSize:o.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},jr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Rt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},Gr={fontFamily:o.extend("--ft-typography-overline-font-family","",Rt),fontSize:o.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ct={fontFamily:o.extend("--ft-typography-button-font-family","",Rt),fontSize:o.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},wd=L`
115
+ `}var wd=o.extend("--ft-typography-font-family","",F.titleFont),Rt=o.extend("--ft-typography-font-family","",F.contentFont),$={fontFamily:Rt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ur={fontFamily:o.extend("--ft-typography-title-font-family","",wd),fontSize:o.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},Fr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",wd),fontSize:o.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Hr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Rt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},zr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Rt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},Wr={fontFamily:o.extend("--ft-typography-body1-font-family","",Rt),fontSize:o.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Ke={fontFamily:o.extend("--ft-typography-body2-font-family","",Rt),fontSize:o.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},Vr={fontFamily:o.extend("--ft-typography-caption-font-family","",Rt),fontSize:o.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},jr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Rt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},Gr={fontFamily:o.extend("--ft-typography-overline-font-family","",Rt),fontSize:o.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ct={fontFamily:o.extend("--ft-typography-button-font-family","",Rt),fontSize:o.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Ad=L`
116
116
  .ft-typography--title {
117
117
  font-family: ${Ur.fontFamily};
118
118
  font-size: ${Ur.fontSize};
@@ -121,7 +121,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
121
121
  line-height: ${Ur.lineHeight};
122
122
  text-transform: ${Ur.textTransform};
123
123
  }
124
- `,Ad=L`
124
+ `,Rd=L`
125
125
  .ft-typography--title-dense {
126
126
  font-family: ${Fr.fontFamily};
127
127
  font-size: ${Fr.fontSize};
@@ -130,7 +130,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
130
130
  line-height: ${Fr.lineHeight};
131
131
  text-transform: ${Fr.textTransform};
132
132
  }
133
- `,Rd=L`
133
+ `,Td=L`
134
134
  .ft-typography--subtitle1 {
135
135
  font-family: ${Hr.fontFamily};
136
136
  font-size: ${Hr.fontSize};
@@ -139,7 +139,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
139
139
  line-height: ${Hr.lineHeight};
140
140
  text-transform: ${Hr.textTransform};
141
141
  }
142
- `,Td=L`
142
+ `,Id=L`
143
143
  .ft-typography--subtitle2 {
144
144
  font-family: ${zr.fontFamily};
145
145
  font-size: ${zr.fontSize};
@@ -149,7 +149,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
149
149
  text-transform: ${zr.textTransform};
150
150
  }
151
151
 
152
- `,Id=L`
152
+ `,_d=L`
153
153
  .ft-typography--body1 {
154
154
  font-family: ${Wr.fontFamily};
155
155
  font-size: ${Wr.fontSize};
@@ -158,7 +158,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
158
158
  line-height: ${Wr.lineHeight};
159
159
  text-transform: ${Wr.textTransform};
160
160
  }
161
- `,_d=L`
161
+ `,Ld=L`
162
162
  .ft-typography--body2 {
163
163
  font-family: ${Ke.fontFamily};
164
164
  font-size: ${Ke.fontSize};
@@ -167,7 +167,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
167
167
  line-height: ${Ke.lineHeight};
168
168
  text-transform: ${Ke.textTransform};
169
169
  }
170
- `,Ld=L`
170
+ `,Nd=L`
171
171
  .ft-typography--caption {
172
172
  font-family: ${Vr.fontFamily};
173
173
  font-size: ${Vr.fontSize};
@@ -176,7 +176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
176
176
  line-height: ${Vr.lineHeight};
177
177
  text-transform: ${Vr.textTransform};
178
178
  }
179
- `,Nd=L`
179
+ `,Pd=L`
180
180
  .ft-typography--breadcrumb {
181
181
  font-family: ${jr.fontFamily};
182
182
  font-size: ${jr.fontSize};
@@ -185,7 +185,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
185
185
  line-height: ${jr.lineHeight};
186
186
  text-transform: ${jr.textTransform};
187
187
  }
188
- `,Pd=L`
188
+ `,kd=L`
189
189
  .ft-typography--overline {
190
190
  font-family: ${Gr.fontFamily};
191
191
  font-size: ${Gr.fontSize};
@@ -194,7 +194,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
194
194
  line-height: ${Gr.lineHeight};
195
195
  text-transform: ${Gr.textTransform};
196
196
  }
197
- `,kd=L`
197
+ `,Md=L`
198
198
  .ft-typography--button {
199
199
  font-family: ${ct.fontFamily};
200
200
  font-size: ${ct.fontSize};
@@ -203,11 +203,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
203
203
  line-height: ${ct.lineHeight};
204
204
  text-transform: ${ct.textTransform};
205
205
  }
206
- `,Md=L`
206
+ `,Dd=L`
207
207
  .ft-typography {
208
208
  vertical-align: inherit;
209
209
  }
210
- `,Dd=[Object.keys(_t).map(t=>Od(t))];var Bd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},Ce=class extends W{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?$r`
210
+ `,Bd=[Object.keys(_t).map(t=>Ed(t))];var $d=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},Ce=class extends W{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?$r`
211
211
  <${Br(this.element)}
212
212
  part="text"
213
213
  class="ft-typography ft-typography--${this.variant}">
@@ -215,7 +215,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
215
215
  </${Br(this.element)}>
216
216
  `:$r`
217
217
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
218
- `}};Ce.styles=[wd,Ad,Rd,Td,Id,_d,Ld,Nd,Pd,kd,Md,...Dd];Bd([b()],Ce.prototype,"element",void 0);Bd([b()],Ce.prototype,"variant",void 0);var Qe;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Qe||(Qe={}));function uh(t,e){let r=_t[t];return L`
218
+ `}};Ce.styles=[Ad,Rd,Td,Id,_d,Ld,Nd,Pd,kd,Md,Dd,...Bd];$d([b()],Ce.prototype,"element",void 0);$d([b()],Ce.prototype,"variant",void 0);var Qe;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Qe||(Qe={}));function uh(t,e){let r=_t[t];return L`
219
219
  ${e?$e(e):L`.ftds-typography--${$e(t)}`} {
220
220
  font-family: ${r.fontFamily};
221
221
  font-size: ${r.fontSize};
@@ -225,7 +225,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
225
225
  text-decoration: ${r.textDecoration};
226
226
  text-transform: ${r.textCase};
227
227
  }
228
- `}var $d=[Object.keys(_t).map(t=>uh(t))];var Ud=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},et=class extends W{constructor(){super(...arguments),this.variant=Qe.body2medium}render(){return this.element?$r`
228
+ `}var Ud=[Object.keys(_t).map(t=>uh(t))];var Fd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},et=class extends W{constructor(){super(...arguments),this.variant=Qe.body2medium}render(){return this.element?$r`
229
229
  <${Br(this.element)}
230
230
  part="text"
231
231
  class="ftds-typography ftds-typography--${this.variant}">
@@ -233,7 +233,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
233
233
  </${Br(this.element)}>
234
234
  `:$r`
235
235
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
236
- `}};et.styles=[...$d];Ud([b()],et.prototype,"element",void 0);Ud([b()],et.prototype,"variant",void 0);Y("ft-typography")(Ce);Y("ftds-typography")(et);var Kr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",F.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Fd=L`
236
+ `}};et.styles=[...Ud];Fd([b()],et.prototype,"element",void 0);Fd([b()],et.prototype,"variant",void 0);Y("ft-typography")(Ce);Y("ftds-typography")(et);var Kr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",F.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Hd=L`
237
237
  .ft-tooltip--container {
238
238
  display: block;
239
239
  }
@@ -262,10 +262,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
262
262
  position: relative;
263
263
  word-break: break-word;
264
264
  }
265
- `;var Hd=L`
266
- `;var Ds="ft-app-info",dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};dt.eventName="authentication-change";var fh={session:(t,e)=>{Ue(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new dt(e.payload)),0))}},N=Et.get({name:Ds,reducers:fh,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 sr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Gn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):sr.await()}};var Ae=class extends Gn{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new it,this.cache=e?i.commonCache:new it}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Kn=class extends Ae{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Bs=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bs;var zd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hh=Symbol("clearAfterUnitTest"),Zn=class extends Jo(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zd]=()=>{this.defaultMessages={},this.cache=new it,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Ue(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Eo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ht)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n: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 Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Xo(0).then(()=>n()).catch(()=>null)))}};zd=hh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var qr=window.FluidTopicsI18nService,qn=window.FluidTopicsCustomI18nService;var $s=class{highlightHtml(e,r,n){Ba(e,r,n)}};window.FluidTopicsHighlightHtmlService=new $s;var Yn=class extends Ae{async listMySearches(){let{session:e}=N.getState();return wt(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Us=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return or.format(e,(n=r?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Us;var No=class{static get(e,r){var n,i;let a=N.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Mr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Fs=class{urlToSearchRequest(e){return No.get().parse(e)}searchRequestToUrl(e){return No.get().serialize(e)}};window.FluidTopicsUrlService=new Fs;var lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};lr.eventName="change";var Hs=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))}},Wd=new Hs;var Xn=class t extends yt{static build(){return new t(window.history,Wd,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,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 n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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),Ue(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new lr(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(lr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(lr.eventName,e)}currentItem(){return uo(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 uo(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 uo(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xn.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 Vd=N;function jd(t,e){var r;return Vd.getState().authenticationRequired&&!(!((r=Vd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var ye=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},oe=class extends W{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=()=>sr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new it,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M`
265
+ `;var zd=L`
266
+ `;var Ds="ft-app-info",dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};dt.eventName="authentication-change";var fh={session:(t,e)=>{Ue(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new dt(e.payload)),0))}},N=Et.get({name:Ds,reducers:fh,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 sr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=N.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=N.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Gn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):sr.await()}};var Ae=class extends Gn{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new it,this.cache=e?i.commonCache:new it}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Kn=class extends Ae{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Bs=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bs;var Wd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hh=Symbol("clearAfterUnitTest"),Zn=class extends Jo(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wd]=()=>{this.defaultMessages={},this.cache=new it,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Ue(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Eo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ht)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n: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 Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Xo(0).then(()=>n()).catch(()=>null)))}};Wd=hh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var qr=window.FluidTopicsI18nService,qn=window.FluidTopicsCustomI18nService;var $s=class{highlightHtml(e,r,n){Ba(e,r,n)}};window.FluidTopicsHighlightHtmlService=new $s;var Yn=class extends Ae{async listMySearches(){let{session:e}=N.getState();return wt(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Us=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return or.format(e,(n=r?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Us;var No=class{static get(e,r){var n,i;let a=N.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Mr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var Fs=class{urlToSearchRequest(e){return No.get().parse(e)}searchRequestToUrl(e){return No.get().serialize(e)}};window.FluidTopicsUrlService=new Fs;var lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};lr.eventName="change";var Hs=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))}},Vd=new Hs;var Xn=class t extends yt{static build(){return new t(window.history,Vd,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,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 n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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),Ue(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new lr(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(lr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(lr.eventName,e)}currentItem(){return uo(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 uo(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 uo(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xn.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)});function jd(t,e){let{authenticationRequired:r,session:n}=N.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ye=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},oe=class extends W{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=()=>sr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new it,this.cleanSessionDebouncer=new he,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M`
267
267
  <slot></slot>
268
- `}connectedCallback(){super.connectedCallback(),N.addEventListener(dt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(dt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>qr.addContext(p)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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",()=>jd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Hd;ye([b()],oe.prototype,"baseUrl",void 0);ye([b()],oe.prototype,"apiIntegrationIdentifier",void 0);ye([b()],oe.prototype,"apiIntegrationAppVersion",void 0);ye([b()],oe.prototype,"uiLocale",void 0);ye([Re(null)],oe.prototype,"availableUiLocales",void 0);ye([Re(null)],oe.prototype,"metadataConfiguration",void 0);ye([b({type:Boolean})],oe.prototype,"editorMode",void 0);ye([b({type:Boolean})],oe.prototype,"noCustom",void 0);ye([b({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);ye([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);ye([b({type:Boolean})],oe.prototype,"withManualResources",void 0);ye([b({type:Boolean})],oe.prototype,"navigatorOnline",void 0);ye([b({type:Boolean})],oe.prototype,"forcedOffline",void 0);ye([b({type:Object})],oe.prototype,"apiProvider",void 0);ye([b({type:Boolean})],oe.prototype,"authenticationRequired",void 0);ye([Re([])],oe.prototype,"messageContexts",void 0);ye([Re(void 0)],oe.prototype,"session",void 0);ye([Z()],oe.prototype,"localesConfiguration",void 0);ye([Z()],oe.prototype,"availableContentLocales",void 0);var Jn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},Gd=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>or.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jn([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Jn([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Jn([me({store:N.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Jn([me({store:N.name})],e.prototype,"uiLocale",void 0),e});var Qn=class extends Ae{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=N.getState().session;return!!e?.sessionAuthenticated}};var ei=class extends Ae{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=N.getState().session;return!!e?.sessionAuthenticated}};var mh="ft-user-assets",yh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Ge).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:n,asset:i}=e.payload;Ws(t,r,[...zs(t,r),i]),Kd(t,r,1,n),Zd(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ws(t,r,zs(t,r).map(i=>i.id===n.id?n:i)),Zd(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ws(t,r,zs(t,r).filter(a=>a.id!==i)),Kd(t,r,-1,n)}},qd={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},zs=(t,e)=>{var r;let n=qd[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ws=(t,e,r)=>{let n=qd[e];n&&(t[n]=r)},Kd=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ge.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},Zd=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ze=Et.get({name:mh,reducers:yh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vs=class{constructor(e=new Qn,r=new ei){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kn,this.savedSearchesService=new Yn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Ue((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(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&r&&ze.actions.clearBookmarkCountByMap(),ze.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;ze.actions.bookmarks(r)}}},js=new Vs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=js);Y("ft-app-context")(oe);var Gs=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[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Yr=new Gs;var gh=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},ko=Symbol("i18nAttributes"),Yd=Symbol("i18nListAttributes"),Mo=Symbol("i18nProperties"),ti=Symbol("i18nContexts"),Po=Symbol("i18nUnsubs"),ni=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?qn:qr}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Yr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,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,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[ko])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[Yd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(x=>p(h,f,x))})}updateI18nProperties(a){var s;(s=this[Mo])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ti].set(d,{isCustomContext:l}),this[Po].has(d)||this[Po].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ti].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ti].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(a=>a()),this[Po].clear()}}return e=ti,r=Po,gh([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),ri=class extends ni(W){},oi=class extends ni(Ct){};var Ks=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?Yr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},bh=new Ks;var Xd=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:mt,converter:Yr,...e}),r[ko]=(i=r[ko])!==null&&i!==void 0?i:new Map,r[ko].set(n,t??{})};var Jd=L`
268
+ `}connectedCallback(){super.connectedCallback(),N.addEventListener(dt.eventName,this.reloadConfiguration)}disconnectedCallback(){N.addEventListener(dt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&N.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>qr.addContext(p)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),N.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),N.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&N.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&N.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.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",()=>jd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=zd;ye([b()],oe.prototype,"baseUrl",void 0);ye([b()],oe.prototype,"apiIntegrationIdentifier",void 0);ye([b()],oe.prototype,"apiIntegrationAppVersion",void 0);ye([b()],oe.prototype,"uiLocale",void 0);ye([Re(null)],oe.prototype,"availableUiLocales",void 0);ye([Re(null)],oe.prototype,"metadataConfiguration",void 0);ye([b({type:Boolean})],oe.prototype,"editorMode",void 0);ye([b({type:Boolean})],oe.prototype,"noCustom",void 0);ye([b({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);ye([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);ye([b({type:Boolean})],oe.prototype,"withManualResources",void 0);ye([b({type:Boolean})],oe.prototype,"navigatorOnline",void 0);ye([b({type:Boolean})],oe.prototype,"forcedOffline",void 0);ye([b({type:Object})],oe.prototype,"apiProvider",void 0);ye([b({type:Boolean})],oe.prototype,"authenticationRequired",void 0);ye([Re([])],oe.prototype,"messageContexts",void 0);ye([Re(void 0)],oe.prototype,"session",void 0);ye([Z()],oe.prototype,"localesConfiguration",void 0);ye([Z()],oe.prototype,"availableContentLocales",void 0);var Jn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},Gd=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>or.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jn([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Jn([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Jn([me({store:N.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Jn([me({store:N.name})],e.prototype,"uiLocale",void 0),e});var Qn=class extends Ae{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=N.getState().session;return!!e?.sessionAuthenticated}};var ei=class extends Ae{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=N.getState().session;return!!e?.sessionAuthenticated}};var mh="ft-user-assets",yh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Ge).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:n,asset:i}=e.payload;Ws(t,r,[...zs(t,r),i]),Kd(t,r,1,n),Zd(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ws(t,r,zs(t,r).map(i=>i.id===n.id?n:i)),Zd(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ws(t,r,zs(t,r).filter(a=>a.id!==i)),Kd(t,r,-1,n)}},qd={[Ge.SEARCHES]:"savedSearches",[Ge.BOOKMARKS]:"bookmarks",[Ge.BOOKS]:void 0,[Ge.COLLECTIONS]:void 0},zs=(t,e)=>{var r;let n=qd[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ws=(t,e,r)=>{let n=qd[e];n&&(t[n]=r)},Kd=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Ge.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},Zd=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ze=Et.get({name:mh,reducers:yh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ge).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vs=class{constructor(e=new Qn,r=new ei){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Kn,this.savedSearchesService=new Yn,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();Ue((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(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Ge.BOOKMARKS&&r&&ze.actions.clearBookmarkCountByMap(),ze.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;ze.actions.bookmarks(r)}}},js=new Vs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=js);Y("ft-app-context")(oe);var Gs=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[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Yr=new Gs;var gh=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},ko=Symbol("i18nAttributes"),Yd=Symbol("i18nListAttributes"),Mo=Symbol("i18nProperties"),ti=Symbol("i18nContexts"),Po=Symbol("i18nUnsubs"),ni=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?qn:qr}i18n(a){let{context:s,key:l,message:d}=a,{custom:p,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let m=h??(f?f(this):[]);return this.getI18nService(p).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Yr.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,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,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[ko])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[Yd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(x=>p(h,f,x))})}updateI18nProperties(a){var s;(s=this[Mo])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ti].set(d,{isCustomContext:l}),this[Po].has(d)||this[Po].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ti].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ti].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(a=>a()),this[Po].clear()}}return e=ti,r=Po,gh([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),ri=class extends ni(W){},oi=class extends ni(Ct){};var Ks=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?Yr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},bh=new Ks;var Xd=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:mt,converter:Yr,...e}),r[ko]=(i=r[ko])!==null&&i!==void 0?i:new Map,r[ko].set(n,t??{})};var Jd=L`
269
269
  `;var Do=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(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},tt=class extends oi{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:M`
270
270
  <span class="ft-i18n">
271
271
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -285,7 +285,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
285
285
  </div>
286
286
  </div>
287
287
  </div>
288
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",vo(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||co(e,this.ignoreMatchingElements,this.eventsTarget)}};de.elementDefinitions={"ft-typography":Ce};de.styles=Fd;rt([Xd()],de.prototype,"text",void 0);rt([b({type:Boolean})],de.prototype,"manual",void 0);rt([b({type:Boolean})],de.prototype,"inline",void 0);rt([br()],de.prototype,"delay",void 0);rt([b()],de.prototype,"position",void 0);rt([Re([])],de.prototype,"ignoreMatchingElements",void 0);rt([Vi()],de.prototype,"slotNodes",void 0);rt([ae(".ft-tooltip--container")],de.prototype,"container",void 0);rt([ae(".ft-tooltip")],de.prototype,"tooltip",void 0);rt([ae(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);rt([Z()],de.prototype,"visible",void 0);Y("ft-tooltip")(de);var ep=o.extend("--ft-ripple-color","",F.colorContent),T={color:ep,backgroundColor:o.extend("--ft-ripple-background-color","",ep),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},tp=o.extend("--ft-ripple-color","",F.colorPrimary),rp={color:tp,backgroundColor:o.extend("--ft-ripple-background-color","",tp)},op=o.extend("--ft-ripple-color","",F.colorSecondary),np={color:op,backgroundColor:o.extend("--ft-ripple-background-color","",op)},ip=L`
288
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",vo(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${F.transitionDuration}, left ${F.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||co(e,this.ignoreMatchingElements,this.eventsTarget)}};de.elementDefinitions={"ft-typography":Ce};de.styles=Hd;rt([Xd()],de.prototype,"text",void 0);rt([b({type:Boolean})],de.prototype,"manual",void 0);rt([b({type:Boolean})],de.prototype,"inline",void 0);rt([br()],de.prototype,"delay",void 0);rt([b()],de.prototype,"position",void 0);rt([Re([])],de.prototype,"ignoreMatchingElements",void 0);rt([Vi()],de.prototype,"slotNodes",void 0);rt([ae(".ft-tooltip--container")],de.prototype,"container",void 0);rt([ae(".ft-tooltip")],de.prototype,"tooltip",void 0);rt([ae(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);rt([Z()],de.prototype,"visible",void 0);Y("ft-tooltip")(de);var ep=o.extend("--ft-ripple-color","",F.colorContent),T={color:ep,backgroundColor:o.extend("--ft-ripple-background-color","",ep),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},tp=o.extend("--ft-ripple-color","",F.colorPrimary),rp={color:tp,backgroundColor:o.extend("--ft-ripple-background-color","",tp)},op=o.extend("--ft-ripple-color","",F.colorSecondary),np={color:op,backgroundColor:o.extend("--ft-ripple-background-color","",op)},ip=L`
289
289
  :host {
290
290
  display: contents;
291
291
  }
@@ -1736,7 +1736,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1736
1736
  display: none !important;
1737
1737
  }
1738
1738
  </style>
1739
- `:H}addTopicPivotParam(e,r){let n=this.stateManager.store.getState().visibleTopics[0];if(n&&r.type=="MAP"){e.stopPropagation(),e.preventDefault();let i=this.service.getTocNodeNow(n);this.service.getTopicInfo(i).then(a=>{var s;let l=a?.metadata.find(h=>h.key==this.relativeTopicPivotMetadata),d=new URL((s=Js(r))!==null&&s!==void 0?s:"");l&&l.values.forEach(h=>d.searchParams.append("topicPivot",h));let p=document.createElement("a");p.href=d.toString(),(e.ctrlKey||e.metaKey)&&(p.target="_blank"),this.append(p),p.click()})}}willUpdate(e){var r,n,i,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(i=this.stateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key):(a=this.stateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?qt.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new $o((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}get metadataLabel(){var e,r,n,i,a,s;return this.metadata?this.metadata.label:(s=(i=(n=(r=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&i!==void 0?i:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}};ce.elementDefinitions={"ft-chip":le,"ft-floating-menu":Ht,"ft-floating-menu-item":De,"ft-floating-menu-label":zt,"ft-ripple":J,"ft-tooltip":de};ce.styles=xd;we([b(),Ha()],ce.prototype,"key",void 0);we([b({type:Boolean})],ce.prototype,"multiLine",void 0);we([b({type:Boolean})],ce.prototype,"useForSwitchingToRelatives",void 0);we([b({type:Boolean})],ce.prototype,"displayLabel",void 0);we([br()],ce.prototype,"hierarchicalValueTruncatingLevel",void 0);we([b({type:Boolean})],ce.prototype,"forceTooltip",void 0);we([b({attribute:!1})],ce.prototype,"editorMode",void 0);we([b({type:Boolean})],ce.prototype,"translateValues",void 0);we([me({store:"reader",selector:(t,e)=>{var r,n;return(n=(r=t.map)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.find(i=>i.key===e.key)}})],ce.prototype,"metadata",void 0);we([Z()],ce.prototype,"flatMetadata",void 0);we([me({store:"reader"})],ce.prototype,"map",void 0);we([me({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.relativeTopicPivotMetadata}})],ce.prototype,"relativeTopicPivotMetadata",void 0);we([Z()],ce.prototype,"relatives",void 0);we([me({store:Ds})],ce.prototype,"availableContentLocales",void 0);we([Qd(Qs.properties.itemWithNoValueForSwitchToRelatives())],ce.prototype,"noValueMessage",void 0);we([za({eventName:ar.clusteringHelperCreated})],ce.prototype,"updateRelatives",null);Y("ft-reader-metadata")(ce);})();
1739
+ `:H}addTopicPivotParam(e,r){let n=this.stateManager.store.getState().visibleTopics[0];if(n&&r.type=="MAP"){e.stopPropagation(),e.preventDefault();let i=this.service.getTocNodeNow(n);this.service.getTopicInfo(i).then(a=>{var s;let l=a?.metadata.find(h=>h.key==this.relativeTopicPivotMetadata),d=new URL((s=Js(r))!==null&&s!==void 0?s:"");l&&l.values.forEach(h=>d.searchParams.append("topicPivot",h));let p=document.createElement("a");p.href=d.toString(),(e.ctrlKey||e.metaKey)&&(p.target="_blank"),this.append(p),p.click()})}}willUpdate(e){var r,n,i,a,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(i=this.stateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key):(a=this.stateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?qt.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new $o((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}get metadataLabel(){var e,r,n,i,a,s;return this.metadata?this.metadata.label:(s=(i=(n=(r=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&i!==void 0?i:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}};ce.elementDefinitions={"ft-chip":le,"ft-floating-menu":Ht,"ft-floating-menu-item":De,"ft-floating-menu-label":zt,"ft-ripple":J,"ft-tooltip":de};ce.styles=Sd;we([b(),Ha()],ce.prototype,"key",void 0);we([b({type:Boolean})],ce.prototype,"multiLine",void 0);we([b({type:Boolean})],ce.prototype,"useForSwitchingToRelatives",void 0);we([b({type:Boolean})],ce.prototype,"displayLabel",void 0);we([br()],ce.prototype,"hierarchicalValueTruncatingLevel",void 0);we([b({type:Boolean})],ce.prototype,"forceTooltip",void 0);we([b({attribute:!1})],ce.prototype,"editorMode",void 0);we([b({type:Boolean})],ce.prototype,"translateValues",void 0);we([me({store:"reader",selector:(t,e)=>{var r,n;return(n=(r=t.map)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.find(i=>i.key===e.key)}})],ce.prototype,"metadata",void 0);we([Z()],ce.prototype,"flatMetadata",void 0);we([me({store:"reader"})],ce.prototype,"map",void 0);we([me({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.relativeTopicPivotMetadata}})],ce.prototype,"relativeTopicPivotMetadata",void 0);we([Z()],ce.prototype,"relatives",void 0);we([me({store:Ds})],ce.prototype,"availableContentLocales",void 0);we([Qd(Qs.properties.itemWithNoValueForSwitchToRelatives())],ce.prototype,"noValueMessage",void 0);we([za({eventName:ar.clusteringHelperCreated})],ce.prototype,"updateRelatives",null);Y("ft-reader-metadata")(ce);})();
1740
1740
  /*! Bundled license information:
1741
1741
 
1742
1742
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-metadata",
3
- "version": "1.3.54",
3
+ "version": "1.3.56",
4
4
  "description": "Metadata for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,16 +19,16 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.3.54",
23
- "@fluid-topics/ft-floating-menu": "1.3.54",
24
- "@fluid-topics/ft-reader-context": "1.3.54",
25
- "@fluid-topics/ft-ripple": "1.3.54",
26
- "@fluid-topics/ft-tooltip": "1.3.54",
27
- "@fluid-topics/ft-wc-utils": "1.3.54",
22
+ "@fluid-topics/ft-chip": "1.3.56",
23
+ "@fluid-topics/ft-floating-menu": "1.3.56",
24
+ "@fluid-topics/ft-reader-context": "1.3.56",
25
+ "@fluid-topics/ft-ripple": "1.3.56",
26
+ "@fluid-topics/ft-tooltip": "1.3.56",
27
+ "@fluid-topics/ft-wc-utils": "1.3.56",
28
28
  "lit": "3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@fluid-topics/ft-wc-test-utils": "1.3.54"
31
+ "@fluid-topics/ft-wc-test-utils": "1.3.56"
32
32
  },
33
- "gitHead": "cf94f6196c0b97b6f3ee585302a0ffe35c442f32"
33
+ "gitHead": "01868f9694982c27cc22b788567208da17c855e2"
34
34
  }