@fluid-topics/ft-chip 1.3.54 → 1.3.55

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.
@@ -545,7 +545,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
545
545
  word-break: break-word;
546
546
  }
547
547
  `;var $i=["top","right","bottom","left"],Ui=["start","end"],wn=$i.reduce((e,t)=>e.concat(t,t+"-"+Ui[0],t+"-"+Ui[1]),[]),Fi=Math.min,zi=Math.max;var Pl={left:"right",right:"left",bottom:"top",top:"bottom"},kl={start:"end",end:"start"};function Rn(e,t,o){return zi(e,Fi(t,o))}function Kr(e,t){return typeof e=="function"?e(t):e}function Jt(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Tn(e){return e==="x"?"y":"x"}function Nn(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(Jt(e))?"y":"x"}function Ln(e){return Tn(Vr(e))}function Hi(e,t,o){o===void 0&&(o=!1);let n=ct(e),a=Ln(e),i=Nn(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=An(c)),[c,An(c)]}function Wi(e){return e.replace(/start|end/g,t=>kl[t])}function An(e){return e.replace(/left|right|bottom|top/g,t=>Pl[t])}function Dl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gi(e){return typeof e!="number"?Dl(e):{top:e,right:e,bottom:e,left:e}}function At(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function ji(e,t,o){let{reference:n,floating:a}=e,i=Vr(t),c=Ln(t),l=Nn(c),p=Jt(t),u=i==="y",m=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,v;switch(p){case"top":v={x:m,y:n.y-a.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:h};break;case"left":v={x:n.x-a.width,y:h};break;default:v={x:n.x,y:n.y}}switch(ct(t)){case"start":v[c]-=g*(o&&u?-1:1);break;case"end":v[c]+=g*(o&&u?-1:1);break}return v}var Ki=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:c}=o,l=i.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(t)),u=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=ji(u,n,p),g=n,v={},x=0;for(let O=0;O<l.length;O++){let{name:T,fn:R}=l[O],{x:N,y:D,data:U,reset:$}=await R({x:m,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:u,platform:c,elements:{reference:e,floating:t}});m=N??m,h=D??h,v={...v,[T]:{...v[T],...U}},$&&x<=50&&(x++,typeof $=="object"&&($.placement&&(g=$.placement),$.rects&&(u=$.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):$.rects),{x:m,y:h}=ji(u,g,p)),O=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:v}};async function In(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:c,elements:l,strategy:p}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Kr(t,e),x=Gi(v),T=l[g?h==="floating"?"reference":"floating":h],R=At(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:p})),N=h==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.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},$=At(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:p}):N);return{top:(R.top-$.top+x.top)/U.y,bottom:($.bottom-R.bottom+x.bottom)/U.y,left:(R.left-$.left+x.left)/U.x,right:($.right-R.right+x.right)/U.x}}function Bl(e,t,o){return(e?[...o.filter(a=>ct(a)===e),...o.filter(a=>ct(a)!==e)]:o.filter(a=>Jt(a)===a)).filter(a=>e?ct(a)===e||(t?Wi(a)!==a:!1):!0)}var _n=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:c,placement:l,platform:p,elements:u}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:g=wn,autoAlignment:v=!0,...x}=Kr(e,t),O=h!==void 0||g===wn?Bl(h||null,v,g):g,T=await In(t,x),R=((o=c.autoPlacement)==null?void 0:o.index)||0,N=O[R];if(N==null)return{};let D=Hi(N,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(l!==N)return{reset:{placement:O[0]}};let U=[T[Jt(N)],T[D[0]],T[D[1]]],$=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:U}],he=O[R+1];if(he)return{data:{index:R+1,overflows:$},reset:{placement:he}};let Ge=$.map(ie=>{let y=ct(ie.placement);return[ie.placement,y&&m?ie.overflows.slice(0,2).reduce((b,_)=>b+_,0):ie.overflows[0],ie.overflows]}).sort((ie,y)=>ie[1]-y[1]),je=((a=Ge.filter(ie=>ie[2].slice(0,ct(ie[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||Ge[0][0];return je!==l?{data:{index:R+1,overflows:$},reset:{placement:je}}:{}}}};var Pn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...p}=Kr(e,t),u={x:o,y:n},m=await In(t,p),h=Vr(Jt(a)),g=Tn(h),v=u[g],x=u[h];if(i){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=v+m[T],D=v-m[R];v=Rn(N,v,D)}if(c){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",N=x+m[T],D=x-m[R];x=Rn(N,x,D)}let O=l.fn({...t,[g]:v,[h]:x});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:c}}}}}};var kn=Math.min,Qt=Math.max,Er=Math.round;var et=e=>({x:e,y:e});function tt(e){return Zi(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(Zi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zi(e){return e instanceof Node||e instanceof me(e).Node}function Ze(e){return e instanceof Element||e instanceof me(e).Element}function $e(e){return e instanceof HTMLElement||e instanceof me(e).HTMLElement}function Vi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function er(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function qi(e){return["table","td","th"].includes(tt(e))}function qr(e){let t=Yr(),o=ve(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(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 Yi(e){let t=wt(e);for(;$e(t)&&!Ar(t);){if(qr(t))return t;t=wt(t)}return null}function Yr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ar(e){return["html","body","#document"].includes(tt(e))}function ve(e){return me(e).getComputedStyle(e)}function wr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wt(e){if(tt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Vi(e)&&e.host||rt(e);return Vi(t)?t.host:t}function Xi(e){let t=wt(e);return Ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&er(t)?t:Xi(t)}function Zr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=Xi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),c=me(a);return i?t.concat(c,c.visualViewport||[],er(a)?a:[],c.frameElement&&o?Zr(c.frameElement):[]):t.concat(a,Zr(a,[],o))}function es(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=$e(e),i=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=Er(o)!==i||Er(n)!==c;return l&&(o=i,n=c),{width:o,height:n,$:l}}function ts(e){return Ze(e)?e:e.contextElement}function tr(e){let t=ts(e);if(!$e(t))return et(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=es(t),c=(i?Er(o.width):o.width)/n,l=(i?Er(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var $l=et(0);function rs(e){let t=me(e);return!Yr()||!t.visualViewport?$l:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fl(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==me(e)?!1:t}function Rr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=ts(e),c=et(1);t&&(n?Ze(n)&&(c=tr(n)):c=tr(e));let l=Fl(i,o,n)?rs(i):et(0),p=(a.left+l.x)/c.x,u=(a.top+l.y)/c.y,m=a.width/c.x,h=a.height/c.y;if(i){let g=me(i),v=n&&Ze(n)?me(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let O=tr(x),T=x.getBoundingClientRect(),R=ve(x),N=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*O.x,D=T.top+(x.clientTop+parseFloat(R.paddingTop))*O.y;p*=O.x,u*=O.y,m*=O.x,h*=O.y,p+=N,u+=D,x=me(x).frameElement}}return At({width:m,height:h,x:p,y:u})}function zl(e){let{rect:t,offsetParent:o,strategy:n}=e,a=$e(o),i=rt(o);if(o===i)return t;let c={scrollLeft:0,scrollTop:0},l=et(1),p=et(0);if((a||!a&&n!=="fixed")&&((tt(o)!=="body"||er(i))&&(c=wr(o)),$e(o))){let u=Rr(o);l=tr(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+p.x,y:t.y*l.y-c.scrollTop*l.y+p.y}}function Hl(e){return Array.from(e.getClientRects())}function os(e){return Rr(rt(e)).left+wr(e).scrollLeft}function Wl(e){let t=rt(e),o=wr(e),n=e.ownerDocument.body,a=Qt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Qt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+os(e),l=-o.scrollTop;return ve(n).direction==="rtl"&&(c+=Qt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:c,y:l}}function Gl(e,t){let o=me(e),n=rt(e),a=o.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,p=0;if(a){i=a.width,c=a.height;let u=Yr();(!u||u&&t==="fixed")&&(l=a.offsetLeft,p=a.offsetTop)}return{width:i,height:c,x:l,y:p}}function jl(e,t){let o=Rr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=$e(e)?tr(e):et(1),c=e.clientWidth*i.x,l=e.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:c,height:l,x:p,y:u}}function Ji(e,t,o){let n;if(t==="viewport")n=Gl(e,o);else if(t==="document")n=Wl(rt(e));else if(Ze(t))n=jl(t,o);else{let a=rs(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return At(n)}function ns(e,t){let o=wt(e);return o===t||!Ze(o)||Ar(o)?!1:ve(o).position==="fixed"||ns(o,t)}function Kl(e,t){let o=t.get(e);if(o)return o;let n=Zr(e,[],!1).filter(l=>Ze(l)&&tt(l)!=="body"),a=null,i=ve(e).position==="fixed",c=i?wt(e):e;for(;Ze(c)&&!Ar(c);){let l=ve(c),p=qr(c);!p&&l.position==="fixed"&&(a=null),(i?!p&&!a:!p&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||er(c)&&!p&&ns(e,c))?n=n.filter(m=>m!==c):a=l,c=wt(c)}return t.set(e,n),n}function Vl(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?Kl(t,this._c):[].concat(o),n],l=c[0],p=c.reduce((u,m)=>{let h=Ji(t,m,a);return u.top=Qt(h.top,u.top),u.right=kn(h.right,u.right),u.bottom=kn(h.bottom,u.bottom),u.left=Qt(h.left,u.left),u},Ji(t,l,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Zl(e){return es(e)}function ql(e,t,o){let n=$e(t),a=rt(t),i=o==="fixed",c=Rr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},p=et(0);if(n||!n&&!i)if((tt(t)!=="body"||er(a))&&(l=wr(t)),n){let u=Rr(t,!0,i,t);p.x=u.x+t.clientLeft,p.y=u.y+t.clientTop}else a&&(p.x=os(a));return{x:c.left+l.scrollLeft-p.x,y:c.top+l.scrollTop-p.y,width:c.width,height:c.height}}function Qi(e,t){return!$e(e)||ve(e).position==="fixed"?null:t?t(e):e.offsetParent}function as(e,t){let o=me(e);if(!$e(e))return o;let n=Qi(e,t);for(;n&&qi(n)&&ve(n).position==="static";)n=Qi(n,t);return n&&(tt(n)==="html"||tt(n)==="body"&&ve(n).position==="static"&&!qr(n))?o:n||Yi(e)||o}var Yl=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||as,i=this.getDimensions;return{reference:ql(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Xl(e){return ve(e).direction==="rtl"}var Xr={convertOffsetParentRelativeRectToViewportRelativeRect:zl,getDocumentElement:rt,getClippingRect:Vl,getOffsetParent:as,getElementRects:Yl,getClientRects:Hl,getDimensions:Zl,getScale:tr,isElement:Ze,isRTL:Xl};var is=(e,t,o)=>{let n=new Map,a={platform:Xr,...o},i={...a.platform,_c:n};return Ki(e,t,{...a,platform:i})};function ss(e){return Jl(e)}function Dn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Jl(e){for(let t=e;t;t=Dn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Dn(e);t;t=Dn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function cs(e,t,o){return is(e,t,{platform:{...Xr,getOffsetParent:n=>Xr.getOffsetParent(n,ss)},middleware:[Pn({crossAxis:!0}),_n({allowedPlacements:[o]})]})}var ur=S(k());var Zc=S(k());var Js=S(W()),de=S(ae()),Fe=S(k());var ls=S(W());var ds=ls.css`
548
- `;var Jr=S(k()),Ql="ft-app-info",Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rt.eventName="authentication-change";var ed={session:(e,t)=>{(0,Jr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>L.dispatchEvent(new Rt(t.payload)),0))}},L=Jr.FtReduxStore.get({name:Ql,reducers:ed,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 Bn=S(k());var Tt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Qr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Tt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tt.await()}};var Se=class extends Qr{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Bn.CacheRegistry,this.cache=t?a.commonCache:new Bn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var eo=class extends Se{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Mn=class{addCommand(t,o=!1){L.commands.add(t,o)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Mn;var Re=S(k());var ps,rr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},td=Symbol("clearAfterUnitTest"),to=class extends(0,Re.withEventBus)(Se){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ps]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Re.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Re.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Re.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new rr({loadedContexts:t})),this.dispatchEvent(new rr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new rr({loadedContexts:[t]})),this.dispatchEvent(new rr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Re.delay)(0).then(()=>n()).catch(()=>null)))}};ps=td;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends to{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends to{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tr=window.FluidTopicsI18nService,Un=window.FluidTopicsCustomI18nService;var us=S(k()),$n=class{highlightHtml(t,o,n){(0,us.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new $n;var od=S(hs(),1);var ys;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ys||(ys={}));var ms;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ms||(ms={}));var gs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(gs||(gs={}));var bs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(bs||(bs={}));var xs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(xs||(xs={}));var vs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(vs||(vs={}));var Ss;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ss||(Ss={}));var Cs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var Os;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(Os||(Os={}));var Es;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Es||(Es={}));var As;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(As||(As={}));var ws;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ws||(ws={}));var Rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Rs||(Rs={}));var Ts;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ts||(Ts={}));var Ns;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ns||(Ns={}));var Ls;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ls||(Ls={}));var Is;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Is||(Is={}));var _s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_s||(_s={}));var Ps;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ps||(Ps={}));var ks;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ks||(ks={}));var Ds;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ds||(Ds={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Bs||(Bs={}));var Ms;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ms||(Ms={}));var Us;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Us||(Us={}));var $s;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})($s||($s={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var Te;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Te||(Te={}));var Fs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Fs||(Fs={}));var zs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(zs||(zs={}));var Hs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(Hs||(Hs={}));var Ws;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Ws||(Ws={}));var Gs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Gs||(Gs={}));var rd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function js(e,t){return e===t||(rd[e]??[]).some(o=>js(o,t))}function Ks(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>js(n,t))}var no=class extends Se{async listMySearches(){let{session:t}=L.getState();return Ks(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Vs=S(k());var Fn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=L.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Vs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Fn;var Zs=S(k());var Nr=class{static get(t,o){var n,a;let i=L.getState(),{lang:c,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 Zs.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var zn=class{urlToSearchRequest(t){return Nr.get().parse(t)}searchRequestToUrl(t){return Nr.get().serialize(t)}};window.FluidTopicsUrlService=new zn;var dt=S(k());var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var Hn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},qs=new Hn;var ao=class e extends dt.WithEventBus{static build(){return new e(window.history,qs,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,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,c,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,dt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ao.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ys=L;function Xs(e,t){var o;return Ys.getState().authenticationRequired&&!(!((o=Ys.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var re=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},G=class extends Fe.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=()=>Tt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Fe.CacheRegistry,this.cleanSessionDebouncer=new Fe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Js.html`
548
+ `;var Jr=S(k()),Ql="ft-app-info",Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rt.eventName="authentication-change";var ed={session:(e,t)=>{(0,Jr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>L.dispatchEvent(new Rt(t.payload)),0))}},L=Jr.FtReduxStore.get({name:Ql,reducers:ed,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 Bn=S(k());var Tt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=L.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=L.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var Qr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Tt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Tt.await()}};var Se=class extends Qr{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[p])=>l.localeCompare(p)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Bn.CacheRegistry,this.cache=t?a.commonCache:new Bn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var eo=class extends Se{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Mn=class{addCommand(t,o=!1){L.commands.add(t,o)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Mn;var Re=S(k());var ps,rr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},td=Symbol("clearAfterUnitTest"),to=class extends(0,Re.withEventBus)(Se){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ps]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Re.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),c=this.resolveContext(i);return new Re.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Re.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new rr({loadedContexts:t})),this.dispatchEvent(new rr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new rr({loadedContexts:[t]})),this.dispatchEvent(new rr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Re.delay)(0).then(()=>n()).catch(()=>null)))}};ps=td;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends to{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends to{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tr=window.FluidTopicsI18nService,Un=window.FluidTopicsCustomI18nService;var us=S(k()),$n=class{highlightHtml(t,o,n){(0,us.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new $n;var od=S(hs(),1);var ys;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ys||(ys={}));var ms;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ms||(ms={}));var gs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(gs||(gs={}));var bs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(bs||(bs={}));var xs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(xs||(xs={}));var vs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(vs||(vs={}));var Ss;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ss||(Ss={}));var Cs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Cs||(Cs={}));var Os;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(Os||(Os={}));var Es;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Es||(Es={}));var As;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(As||(As={}));var ws;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ws||(ws={}));var Rs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Rs||(Rs={}));var Ts;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ts||(Ts={}));var Ns;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ns||(Ns={}));var Ls;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ls||(Ls={}));var Is;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Is||(Is={}));var _s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_s||(_s={}));var Ps;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ps||(Ps={}));var ks;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ks||(ks={}));var Ds;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ds||(Ds={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Bs||(Bs={}));var Ms;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ms||(Ms={}));var Us;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Us||(Us={}));var $s;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})($s||($s={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var Te;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Te||(Te={}));var Fs;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Fs||(Fs={}));var zs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(zs||(zs={}));var Hs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Hs||(Hs={}));var Ws;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(Ws||(Ws={}));var Gs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Gs||(Gs={}));var js;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(js||(js={}));var rd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(rd[e]??[]).some(o=>Ks(o,t))}function Vs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ks(n,t))}var no=class extends Se{async listMySearches(){let{session:t}=L.getState();return Vs(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Zs=S(k());var Fn=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=L.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Zs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Fn;var qs=S(k());var Nr=class{static get(t,o){var n,a;let i=L.getState(),{lang:c,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 qs.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var zn=class{urlToSearchRequest(t){return Nr.get().parse(t)}searchRequestToUrl(t){return Nr.get().serialize(t)}};window.FluidTopicsUrlService=new zn;var dt=S(k());var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var Hn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ys=new Hn;var ao=class e extends dt.WithEventBus{static build(){return new e(window.history,Ys,()=>window.location,!1)}constructor(t,o,n,a){var i,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,c,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,c,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,dt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ao.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});function Xs(e,t){let{authenticationRequired:o,session:n}=L.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var re=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},G=class extends Fe.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=()=>Tt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Fe.CacheRegistry,this.cleanSessionDebouncer=new Fe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Js.html`
549
549
  <slot></slot>
550
550
  `}connectedCallback(){super.connectedCallback(),L.addEventListener(Rt.eventName,this.reloadConfiguration)}disconnectedCallback(){L.addEventListener(Rt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,c,l,p;super.update(t),t.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&L.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&L.actions.noCustom(this.noCustom),t.has("editorMode")&&L.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&L.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Tr.addContext(u)),t.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(L.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),t.has("authenticationRequired")&&L.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&L.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Xs(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};G.elementDefinitions={};G.styles=ds;re([(0,de.property)()],G.prototype,"baseUrl",void 0);re([(0,de.property)()],G.prototype,"apiIntegrationIdentifier",void 0);re([(0,de.property)()],G.prototype,"apiIntegrationAppVersion",void 0);re([(0,de.property)()],G.prototype,"uiLocale",void 0);re([(0,Fe.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);re([(0,Fe.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"editorMode",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"noCustom",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);re([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],G.prototype,"noCustomComponent",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"withManualResources",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);re([(0,de.property)({type:Object})],G.prototype,"apiProvider",void 0);re([(0,de.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);re([(0,Fe.jsonProperty)([])],G.prototype,"messageContexts",void 0);re([(0,Fe.jsonProperty)(void 0)],G.prototype,"session",void 0);re([(0,de.state)()],G.prototype,"localesConfiguration",void 0);re([(0,de.state)()],G.prototype,"availableContentLocales",void 0);var fa=S(ae());function nd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!io(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!io(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!io(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function io(e,t){try{return nd(e,t)}catch{return!1}}function Lr(e,t){return!io(e,t)}function so(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var Qs=S(ae(),1);var Wn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Lr,attribute:!1,...t};(0,Qs.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var co=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Lt=S(ae(),1);var ec=S(ae(),1);function tc(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ec.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:Lr,...t??{}})}var lo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}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 oc=S(W(),1);var po=globalThis,ad=po.ShadowRoot&&(po.ShadyCSS===void 0||po.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vb=Symbol();var rc=(e,t)=>{if(ad)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=po.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var uo=class extends oc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return rc(n,t.elementStyles),n}};function nc(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var ar=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},cc,ac=Symbol("constructorPrototype"),ic=Symbol("constructorName"),lc=Symbol("exportpartsDebouncer"),sc=Symbol("dynamicDependenciesLoaded"),nr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};nr.eventName="exportparts-updated";var qe=class extends uo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cc]=new lo(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[lc].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[ic]=this.constructor.name,this[ac]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ic]&&Object.setPrototypeOf(this,this[ac])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[sc]||(o[sc]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(nr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(nr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new nr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=nc(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){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(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,c,l;let p=g=>g!=null&&g.trim().length>0,u=t.filter(p).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=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 v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],O=[...v,...x].filter(p).map(T=>T.trim());for(let T of O)m.add(T)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};cc=lc;ar([(0,Lt.property)()],qe.prototype,"exportpartsPrefix",void 0);ar([tc([])],qe.prototype,"exportpartsPrefixes",void 0);ar([(0,Lt.property)({reflect:!0})],qe.prototype,"exportparts",void 0);ar([(0,Lt.property)()],qe.prototype,"customStylesheet",void 0);ar([(0,Lt.property)()],qe.prototype,"elementToFocus",void 0);ar([(0,Lt.state)()],qe.prototype,"useAdoptedStyleSheets",void 0);function fo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ir=Symbol("internalReduxEventsUnsubscribers"),pt=Symbol("internalStoresUnsubscribers"),It=Symbol("internalStores"),id=so(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[It].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[It].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[It].get(c)}addStore(c,l){var p;l=(p=l??c.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(l),this[It].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[It].delete(l)}setupStores(){this.unsubscribeFromStores(),this[It].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let p=this.constructor.getPropertyOptions(l);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:l)){let u=this.getStore(c.store);u&&(c.store?this[pt].has(c.store):this[pt].size>0)&&(this[l]=c.selector(u.getState(),this))}})}subscribeToStore(c,l){var p;this[pt].set(c,l.subscribe(()=>this.updateFromStores())),this[Ir].set(c,[]),fo(l)&&l.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[Ir].get(c).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[pt].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[pt].has(c)&&this[pt].get(c)(),this[pt].delete(c),(l=this[Ir].get(c))===null||l===void 0||l.forEach(p=>p()),this[Ir].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=pt,o=It,n=Ir,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),dc=class extends id(qe){};function Ne(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ot(e){return!!e&&!!e[V]}function ze(e){var t;return!!e&&(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)===hd}(e)||Array.isArray(e)||!!e[gc]||!!(!((t=e.constructor)===null||t===void 0)&&t[gc])||Jn(e)||Qn(e))}function _t(e,t,o){o===void 0&&(o=!1),cr(e)===0?(o?Object.keys:sr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function cr(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Jn(e)?2:Qn(e)?3:0}function ir(e,t){return cr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sd(e,t){return cr(e)===2?e.get(t):e[t]}function bc(e,t,o){var n=cr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function xc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Jn(e){return ud&&e instanceof Map}function Qn(e){return fd&&e instanceof Set}function ut(e){return e.o||e.t}function ea(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Cc(e);delete t[V];for(var o=sr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ta(e,t){return t===void 0&&(t=!1),ra(e)||ot(e)||!ze(e)||(cr(e)>1&&(e.set=e.add=e.clear=e.delete=cd),Object.freeze(e),t&&_t(e,function(o,n){return ta(n,!0)},!0)),e}function cd(){Ne(2)}function ra(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ye(e){var t=Xn[e];return t||Ne(18,e),t}function ld(e,t){Xn[e]||(Xn[e]=t)}function Zn(){return Pr}function Gn(e,t){t&&(Ye("Patches"),e.u=[],e.s=[],e.v=t)}function ho(e){qn(e),e.p.forEach(dd),e.p=null}function qn(e){e===Pr&&(Pr=e.l)}function pc(e){return Pr={p:[],l:Pr,h:e,m:!0,_:0}}function dd(e){var t=e[V];t.i===0||t.i===1?t.j():t.g=!0}function jn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Ye("ES5").S(t,e,n),n?(o[V].P&&(ho(t),Ne(4)),ze(e)&&(e=yo(t,e),t.l||mo(t,e)),t.u&&Ye("Patches").M(o[V].t,e,t.u,t.s)):e=yo(t,o,[]),ho(t),t.u&&t.v(t.u,t.s),e!==Sc?e:void 0}function yo(e,t,o){if(ra(t))return t;var n=t[V];if(!n)return _t(t,function(l,p){return uc(e,n,t,l,p,o)},!0),t;if(n.A!==e)return t;if(!n.P)return mo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ea(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),_t(i,function(l,p){return uc(e,n,a,l,p,o,c)}),mo(e,a,!1),o&&e.u&&Ye("Patches").N(n,o,e.u,e.s)}return n.o}function uc(e,t,o,n,a,i,c){if(ot(a)){var l=yo(e,a,i&&t&&t.i!==3&&!ir(t.R,n)?i.concat(n):void 0);if(bc(o,n,l),!ot(l))return;e.m=!1}else c&&o.add(a);if(ze(a)&&!ra(a)){if(!e.h.D&&e._<1)return;yo(e,a),t&&t.A.l||mo(e,a)}}function mo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&ta(t,o)}function Kn(e,t){var o=e[V];return(o?ut(o):e)[t]}function fc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ft(e){e.P||(e.P=!0,e.l&&ft(e.l))}function Vn(e){e.o||(e.o=ea(e.t))}function Yn(e,t,o){var n=Jn(t)?Ye("MapSet").F(t,o):Qn(t)?Ye("MapSet").T(t,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Zn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=kr;c&&(p=[l],u=_r);var m=Proxy.revocable(p,u),h=m.revoke,g=m.proxy;return l.k=g,l.j=h,g}(t,o):Ye("ES5").J(t,o);return(o?o.A:Zn()).p.push(n),n}function pd(e){return ot(e)||Ne(22,e),function t(o){if(!ze(o))return o;var n,a=o[V],i=cr(o);if(a){if(!a.P&&(a.i<4||!Ye("ES5").K(a)))return a.t;a.I=!0,n=hc(o,i),a.I=!1}else n=hc(o,i);return _t(n,function(c,l){a&&sd(a.t,c)===l||bc(n,c,t(l))}),i===3?new Set(n):n}(e)}function hc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ea(e)}function vc(){function e(c,l){var p=i[c];return p?p.enumerable=l:i[c]=p={configurable:!0,enumerable:l,get:function(){var u=this[V];return kr.get(u,c)},set:function(u){var m=this[V];kr.set(m,c,u)}},p}function t(c){for(var l=c.length-1;l>=0;l--){var p=c[l][V];if(!p.P)switch(p.i){case 5:n(p)&&ft(p);break;case 4:o(p)&&ft(p)}}}function o(c){for(var l=c.t,p=c.k,u=sr(p),m=u.length-1;m>=0;m--){var h=u[m];if(h!==V){var g=l[h];if(g===void 0&&!ir(l,h))return!0;var v=p[h],x=v&&v[V];if(x?x.t!==g:!xc(v,g))return!0}}var O=!!l[V];return u.length!==sr(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.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(c){c.g&&Ne(3,JSON.stringify(ut(c)))}var i={};ld("ES5",{J:function(c,l){var p=Array.isArray(c),u=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var O=Cc(g);delete O[V];for(var T=sr(O),R=0;R<T.length;R++){var N=T[R];O[N]=e(N,h||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(p,c),m={i:p?5:4,A:l?l.A:Zn(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,V,{value:m,writable:!0}),u},S:function(c,l,p){p?ot(l)&&l[V].A===c&&t(c.p):(c.u&&function u(m){if(m&&typeof m=="object"){var h=m[V];if(h){var g=h.t,v=h.k,x=h.R,O=h.i;if(O===4)_t(v,function(U){U!==V&&(g[U]!==void 0||ir(g,U)?x[U]||u(v[U]):(x[U]=!0,ft(h)))}),_t(g,function(U){v[U]!==void 0||ir(v,U)||(x[U]=!1,ft(h))});else if(O===5){if(n(h)&&(ft(h),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),D=0;D<N;D++)v.hasOwnProperty(D)||(x[D]=!0),x[D]===void 0&&u(v[D])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var yc,Pr,oa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ud=typeof Map<"u",fd=typeof Set<"u",mc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=oa?Symbol.for("immer-nothing"):((yc={})["immer-nothing"]=!0,yc),gc=oa?Symbol.for("immer-draftable"):"__$immer_draftable",V=oa?Symbol.for("immer-state"):"__$immer_state";var hd=""+Object.prototype.constructor,sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Cc=Object.getOwnPropertyDescriptors||function(e){var t={};return sr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Xn={},kr={get:function(e,t){if(t===V)return e;var o=ut(e);if(!ir(o,t))return function(a,i,c){var l,p=fc(i,c);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!ze(n)?n:n===Kn(e.t,t)?(Vn(e),e.o[t]=Yn(e.A.h,n,e)):n},has:function(e,t){return t in ut(e)},ownKeys:function(e){return Reflect.ownKeys(ut(e))},set:function(e,t,o){var n=fc(ut(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Kn(ut(e),t),i=a?.[V];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(xc(o,a)&&(o!==void 0||ir(e.t,t)))return!0;Vn(e),ft(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Kn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Vn(e),ft(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=ut(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ne(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ne(12)}},_r={};_t(kr,function(e,t){_r[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_r.deleteProperty=function(e,t){return _r.set.call(this,e,t,void 0)},_r.set=function(e,t,o){return kr.set.call(this,e[0],t,o,e[0])};var yd=function(){function e(o){var n=this;this.O=mc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(O){var T=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 $;return($=i).call.apply($,[T,U].concat(N))})}}var u;if(typeof i!="function"&&Ne(6),c!==void 0&&typeof c!="function"&&Ne(7),ze(a)){var m=pc(n),h=Yn(n,a,void 0),g=!0;try{u=i(h),g=!1}finally{g?ho(m):qn(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Gn(m,c),jn(O,m)},function(O){throw ho(m),O}):(Gn(m,c),jn(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Sc&&(u=void 0),n.D&&ta(u,!0),c){var v=[],x=[];Ye("Patches").M(a,u,v,x),c(v,x)}return u}Ne(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,h=Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(h))})};var c,l,p=n.produce(a,i,function(u,m){c=u,l=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,c,l]}):[p,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){ze(o)||Ne(8),ot(o)&&(o=pd(o));var n=pc(this),a=Yn(this,o,void 0);return a[V].C=!0,qn(n),a},t.finishDraft=function(o,n){var a=o&&o[V],i=a.A;return Gn(i,n),jn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!mc&&Ne(20),this.O=o},t.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 c=Ye("Patches").$;return ot(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),Ce=new yd,md=Ce.produce,cx=Ce.produceWithPatches.bind(Ce),lx=Ce.setAutoFreeze.bind(Ce),dx=Ce.setUseProxies.bind(Ce),px=Ce.applyPatches.bind(Ce),ux=Ce.createDraft.bind(Ce),fx=Ce.finishDraft.bind(Ce),go=md;function Pt(e){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(e)}function Oc(e,t){if(Pt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ec(e){var t=Oc(e,"string");return Pt(t)=="symbol"?t:t+""}function Ac(e,t,o){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function wc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function na(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?wc(Object(o),!0).forEach(function(n){Ac(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):wc(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function pe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),aa=function(){return Math.random().toString(36).substring(7).split("").join(".")},bo={INIT:"@@redux/INIT"+aa(),REPLACE:"@@redux/REPLACE"+aa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aa()}};function gd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ia(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(pe(1));return o(ia)(e,t)}if(typeof e!="function")throw new Error(pe(2));var a=e,i=t,c=[],l=c,p=!1;function u(){l===c&&(l=c.slice())}function m(){if(p)throw new Error(pe(3));return i}function h(O){if(typeof O!="function")throw new Error(pe(4));if(p)throw new Error(pe(5));var T=!0;return u(),l.push(O),function(){if(T){if(p)throw new Error(pe(6));T=!1,u();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!gd(O))throw new Error(pe(7));if(typeof O.type>"u")throw new Error(pe(8));if(p)throw new Error(pe(9));try{p=!0,i=a(i,O)}finally{p=!1}for(var T=c=l,R=0;R<T.length;R++){var N=T[R];N()}return O}function v(O){if(typeof O!="function")throw new Error(pe(10));a=O,g({type:bo.REPLACE})}function x(){var O,T=h;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(pe(11));function D(){N.next&&N.next(m())}D();var U=T(D);return{unsubscribe:U}}},O[Rc]=function(){return this},O}return g({type:bo.INIT}),n={dispatch:g,subscribe:h,getState:m,replaceReducer:v},n[Rc]=x,n}function bd(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:bo.INIT});if(typeof n>"u")throw new Error(pe(12));if(typeof o(void 0,{type:bo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function Tc(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{bd(o)}catch(p){l=p}return function(u,m){if(u===void 0&&(u={}),l)throw l;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var O=i[x],T=o[O],R=u[O],N=T(R,m);if(typeof N>"u"){var D=m&&m.type;throw new Error(pe(14))}v[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(u).length,g?v:u}}function lr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Nc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(pe(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(p){return p(c)});return i=lr.apply(void 0,l)(a.dispatch),na(na({},a),{},{dispatch:i})}}}function Lc(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return t}var Ic=Lc();Ic.withExtraArgument=Lc;var sa=Ic;var Bc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),xd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(m){return p([u,m])}}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=t.call(e,o)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},dr=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},vd=Object.defineProperty,Sd=Object.defineProperties,Cd=Object.getOwnPropertyDescriptors,_c=Object.getOwnPropertySymbols,Od=Object.prototype.hasOwnProperty,Ed=Object.prototype.propertyIsEnumerable,Pc=function(e,t,o){return t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ht=function(e,t){for(var o in t||(t={}))Od.call(t,o)&&Pc(e,o,t[o]);if(_c)for(var n=0,a=_c(t);n<a.length;n++){var o=a[n];Ed.call(t,o)&&Pc(e,o,t[o])}return e},ca=function(e,t){return Sd(e,Cd(t))},Ad=function(e,t,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},c=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,c)};l((o=o.apply(e,t)).next())})};var wd=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)},Ix=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Td=function(e){Bc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,dr([void 0],o[0].concat(this)))):new(t.bind.apply(t,dr([void 0],o.concat(this))))},t}(Array),Nd=function(e){Bc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,dr([void 0],o[0].concat(this)))):new(t.bind.apply(t,dr([void 0],o.concat(this))))},t}(Array);function pa(e){return ze(e)?go(e,function(){}):e}function Ld(e){return typeof e=="boolean"}function Id(){return function(t){return _d(t)}}function _d(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new Td;if(o&&(Ld(o)?l.push(sa):l.push(sa.withExtraArgument(o.extraArgument))),0){if(a)var p;if(c)var u}return l}var la=!0;function Mc(e){var t=Id(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?t():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,m=u===void 0?void 0:u,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(Rd(a))v=Tc(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 x=c;if(typeof x=="function"&&(x=x(t),!la&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!la&&x.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Nc.apply(void 0,x),T=lr;p&&(T=wd(ht({trace:!la},typeof p=="object"&&p)));var R=new Nd(O),N=R;Array.isArray(g)?N=dr([O],g):typeof g=="function"&&(N=g(R));var D=T.apply(void 0,N);return ia(v,m,D)}function yt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ht(ht({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Uc(e){var t={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Pd(e){return typeof e=="function"}function kd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Uc(t):[t,o,n],i=a[0],c=a[1],l=a[2],p;if(Pd(e))p=function(){return pa(e())};else{var u=pa(e);p=function(){return u}}function m(h,g){h===void 0&&(h=p());var v=dr([i[g.type]],c.filter(function(x){var O=x.matcher;return O(g)}).map(function(x){var O=x.reducer;return O}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,O){if(O)if(ot(x)){var T=x,R=O(T,g);return R===void 0?x:R}else{if(ze(x))return go(x,function(N){return O(N,g)});var R=O(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},h)}return m.getInitialState=p,m}function Dd(e,t){return e+"/"+t}function $c(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:pa(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(m){var h=n[m],g=Dd(t,m),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[m]=v,c[g]=v,l[m]=x?yt(g,x):yt(g)});function p(){var m=typeof e.extraReducers=="function"?Uc(e.extraReducers):[e.extraReducers],h=m[0],g=h===void 0?{}:h,v=m[1],x=v===void 0?[]:v,O=m[2],T=O===void 0?void 0:O,R=ht(ht({},g),c);return kd(o,function(N){for(var D in R)N.addCase(D,R[D]);for(var U=0,$=x;U<$.length;U++){var he=$[U];N.addMatcher(he.matcher,he.reducer)}T&&N.addDefaultCase(T)})}var u;return{name:t,reducer:function(m,h){return u||(u=p()),u(m,h)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var Bd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Md=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Bd[Math.random()*64|0];return t},Ud=["name","message","stack","code"],da=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),kc=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),$d=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Ud;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Dx=function(){function e(t,o,n){var a=yt(t+"/fulfilled",function(m,h,g,v){return{payload:m,meta:ca(ht({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=yt(t+"/pending",function(m,h,g){return{payload:void 0,meta:ca(ht({},g||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),c=yt(t+"/rejected",function(m,h,g,v,x){return{payload:v,error:(n&&n.serializeError||$d)(m||"Rejected"),meta:ca(ht({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(m):Md(),O=new p,T,R=!1;function N(U){T=U,O.abort()}var D=function(){return Ad(this,null,function(){var U,$,he,Ge,fe,je,ie;return xd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Ge=(U=n?.condition)==null?void 0:U.call(n,m,{getState:g,extra:v}),zd(Ge)?[4,Ge]:[3,2];case 1:Ge=y.sent(),y.label=2;case 2:if(Ge===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,fe=new Promise(function(b,_){return O.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),h(i(x,m,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([fe,Promise.resolve(o(m,{dispatch:h,getState:g,extra:v,requestId:x,signal:O.signal,abort:N,rejectWithValue:function(b,_){return new da(b,_)},fulfillWithValue:function(b,_){return new kc(b,_)}})).then(function(b){if(b instanceof da)throw b;return b instanceof kc?a(b.payload,x,m,b.meta):a(b,x,m)})])];case 3:return he=y.sent(),[3,5];case 4:return je=y.sent(),he=je instanceof da?c(null,x,m,je.payload,je.meta):c(je,x,m),[3,5];case 5:return ie=n&&!n.dispatchConditionRejection&&c.match(he)&&he.meta.condition,ie||h(he),[2,he]}})})}();return Object.assign(D,{abort:N,requestId:x,arg:m,unwrap:function(){return D.then(Fd)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Fd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Fc="listener",zc="completed",Hc="cancelled",Bx="task-"+Hc,Mx="task-"+zc,Ux=Fc+"-"+Hc,$x=Fc+"-"+zc;var ua="listenerMiddleware";var Fx=yt(ua+"/add"),zx=yt(ua+"/removeAll"),Hx=yt(ua+"/remove");var Dc,Wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Dc||(Dc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Hd=function(e){return function(t){setTimeout(t,e)}},Gx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hd(10);vc();var Wd=so(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}),xo=class extends Wd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Wc=class e extends xo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(fo(i))return i;if(a==null)return;let c=$c({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Mc({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:c.reducer(p,u)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new co;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,c,l)=>{let p=c,u=i[p];return u?(...m)=>{let h=u(...m.map(a));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[p]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var vo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${c} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var Gc=S(k()),So=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},mv=(0,Gc.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(L)}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=>vo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return So([(0,fa.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),So([(0,fa.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),So([Wn({store:L.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),So([Wn({store:L.name})],t.prototype,"uiLocale",void 0),t});var Eo=S(k());var Co=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=L.getState().session;return!!t?.sessionAuthenticated}};var Oo=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 t=L.getState().session;return!!t?.sessionAuthenticated}};var Gd="ft-user-assets",jd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Te).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;ya(e,o,[...ha(e,o),a]),jc(e,o,1,n),Kc(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;ya(e,o,ha(e,o).map(a=>a.id===n.id?n:a)),Kc(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;ya(e,o,ha(e,o).filter(i=>i.id!==a)),jc(e,o,-1,n)}},Vc={[Te.SEARCHES]:"savedSearches",[Te.BOOKMARKS]:"bookmarks",[Te.BOOKS]:void 0,[Te.COLLECTIONS]:void 0},ha=(e,t)=>{var o;let n=Vc[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},ya=(e,t,o)=>{let n=Vc[t];n&&(e[n]=o)},jc=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Te.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Kc=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Oe=Eo.FtReduxStore.get({name:Gd,reducers:jd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Te).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ma=class{constructor(t=new Co,o=new Oo){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new eo,this.savedSearchesService=new no,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=L.getState();(0,Eo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Oe.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Oe.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;t===Te.BOOKMARKS&&o&&Oe.actions.clearBookmarkCountByMap(),Oe.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oe.actions.bookmarks(o)}}},Kd=new ma;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Kd);(0,Zc.customElement)("ft-app-context")(G);var qc=S(ae());var ga=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},pr=new ga;var Vd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Br=Symbol("i18nAttributes"),Yc=Symbol("i18nListAttributes"),Xc=Symbol("i18nProperties"),Ao=Symbol("i18nContexts"),Dr=Symbol("i18nUnsubs"),Jc=(0,ur.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Un:Tr}i18n(i){let{context:c,key:l,message:p}=i,{custom:u,args:m,argsProvider:h}=i;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(c,l,...g)}return p}async awaitI18n(i){let{context:c,custom:l}=i;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(i)}customI18n(i,c){if(pr.isI18nKey(i)){let[l,p]=i.split(".");return this.i18n({custom:!0,context:l,key:p,...c})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((c,l,p)=>i.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((c,l,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(c=>c.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var c,l;let p=this,u=(m,h,g)=>g?.context&&g.key&&i(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(c=this[Br])===null||c===void 0||c.forEach((m,h)=>p[h]=u(m,h,p[h])),(l=this[Yc])===null||l===void 0||l.forEach((m,h)=>{var g;return p[h]=(g=p[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(i){var c;(c=this[Xc])===null||c===void 0||c.forEach((l,p)=>{i(l,p)&&(this[p]=this.i18n(l))})}addI18nMessages(i,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,c,l)}addI18nContext(i,c,l){let p=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Ao].set(p,{isCustomContext:l}),this[Dr].has(p)||this[Dr].set(p,this.getI18nService(l).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(l).prepareContext(p,c)}hasI18nContext(i){return this[Ao].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ao].forEach((i,c)=>this.addI18nContext(c,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Dr].forEach(i=>i()),this[Dr].clear()}}return t=Ao,o=Dr,Vd([(0,qc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),wo=class extends Jc(ur.FtLitElement){},Ro=class extends Jc(ur.FtLitElementRedux){};var Qc=S(k());var ba=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?pr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Zd=new ba;var el=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:Qc.hasChanged,converter:pr,...t}),o[Br]=(a=o[Br])!==null&&a!==void 0?a:new Map,o[Br].set(n,e??{})};var ol=S(k());var To=S(W()),No=S(ae()),Lo=S(k());var tl=S(W());var rl=tl.css`
551
551
  `;var Mr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(t,o,i):c(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},He=class extends Ro{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":To.nothing:To.html`
@@ -45,7 +45,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var ac={};var Yi={};V(Yi,{ParametrizedLabelResolver:()=>eo});var eo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)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,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Sa={};V(Sa,{FtCommandQueue:()=>to,FtLitElementRedux:()=>oo,FtReduxStore:()=>Ft,FtStateManager:()=>va,ReduxWatcher:()=>gn,clearAllStores:()=>Xu,isFtReduxStore:()=>cr,redux:()=>sr,reduxEventListener:()=>hu,reduxReactive:()=>fu,watch:()=>Ju,withRedux:()=>sc});var fu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},sr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:it,attribute:!1,...e};C(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},hu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var to=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function cr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ro=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),sc=fe(Symbol("withRedux"),function(t){var e,o,n;class i 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(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Bt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Bt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Bt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[xt].has(s.store):this[xt].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var d;this[xt].set(s,c.subscribe(()=>this.updateFromStores())),this[ro].set(s,[]),cr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let f=y=>this[h](y);c.addEventListener(u.eventName,f),this[ro].get(s).push(()=>c.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[xt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[xt].has(s)&&this[xt].get(s)(),this[xt].delete(s),(c=this[ro].get(s))===null||c===void 0||c.forEach(d=>d()),this[ro].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=xt,o=Bt,n=ro,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),oo=class extends sc(Z){};function Pe(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 i,a;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 ut(t){return!!t&&!!t[ee]}function We(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Cu}(t)||Array.isArray(t)||!!t[hc]||!!(!((e=t.constructor)===null||e===void 0)&&e[hc])||ia(t)||aa(t))}function $t(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function pr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ia(t)?2:aa(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yu(t,e){return pr(t)===2?t.get(e):t[e]}function yc(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function mc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ia(t){return vu&&t instanceof Map}function aa(t){return Su&&t instanceof Set}function vt(t){return t.o||t.t}function sa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=xc(t);delete e[ee];for(var o=dr(e),n=0;n<o.length;n++){var i=o[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 ca(t,e){return e===void 0&&(e=!1),la(t)||ut(t)||!We(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=mu),Object.freeze(t),e&&$t(t,function(o,n){return ca(n,!0)},!0)),t}function mu(){Pe(2)}function la(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=na[t];return e||Pe(18,t),e}function gu(t,e){na[t]||(na[t]=e)}function ta(){return io}function Xi(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function un(t){ra(t),t.p.forEach(bu),t.p=null}function ra(t){t===io&&(io=t.l)}function cc(t){return io={p:[],l:io,h:t,m:!0,_:0}}function bu(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function Ji(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[ee].P&&(un(e),Pe(4)),We(t)&&(t=fn(e,t),e.l||hn(e,t)),e.u&&et("Patches").M(o[ee].t,t,e.u,e.s)):t=fn(e,o,[]),un(e),e.u&&e.v(e.u,e.s),t!==bc?t:void 0}function fn(t,e,o){if(la(e))return e;var n=e[ee];if(!n)return $t(e,function(c,d){return lc(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return hn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=sa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),$t(a,function(c,d){return lc(t,n,i,c,d,o,s)}),hn(t,i,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function lc(t,e,o,n,i,a,s){if(ut(i)){var c=fn(t,i,a&&e&&e.i!==3&&!lr(e.R,n)?a.concat(n):void 0);if(yc(o,n,c),!ut(c))return;t.m=!1}else s&&o.add(i);if(We(i)&&!la(i)){if(!t.h.D&&t._<1)return;fn(t,i),e&&e.A.l||hn(t,i)}}function hn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ca(e,o)}function Qi(t,e){var o=t[ee];return(o?vt(o):t)[e]}function dc(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 St(t){t.P||(t.P=!0,t.l&&St(t.l))}function ea(t){t.o||(t.o=sa(t.t))}function oa(t,e,o){var n=ia(e)?et("MapSet").F(e,o):aa(e)?et("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:ta(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=c,u=ao;s&&(d=[c],u=no);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):et("ES5").J(e,o);return(o?o.A:ta()).p.push(n),n}function xu(t){return ut(t)||Pe(22,t),function e(o){if(!We(o))return o;var n,i=o[ee],a=pr(o);if(i){if(!i.P&&(i.i<4||!et("ES5").K(i)))return i.t;i.I=!0,n=pc(o,a),i.I=!1}else n=pc(o,a);return $t(n,function(s,c){i&&yu(i.t,s)===c||yc(n,s,e(c))}),a===3?new Set(n):n}(t)}function pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return sa(t)}function gc(){function t(s,c){var d=a[s];return d?d.enumerable=c:a[s]=d={configurable:!0,enumerable:c,get:function(){var u=this[ee];return ao.get(u,s)},set:function(u){var h=this[ee];ao.set(h,s,u)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][ee];if(!d.P)switch(d.i){case 5:n(d)&&St(d);break;case 4:o(d)&&St(d)}}}function o(s){for(var c=s.t,d=s.k,u=dr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==ee){var y=c[f];if(y===void 0&&!lr(c,f))return!0;var x=d[f],b=x&&x[ee];if(b?b.t!==y:!mc(x,y))return!0}}var w=!!c[ee];return u.length!==dr(c).length+(w?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Pe(3,JSON.stringify(vt(s)))}var a={};gu("ES5",{J:function(s,c){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=xc(y);delete w[ee];for(var R=dr(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:c?c.A:ta(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ee,{value:h,writable:!0}),u},S:function(s,c,d){d?ut(c)&&c[ee].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[ee];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)$t(x,function(v){v!==ee&&(y[v]!==void 0||lr(y,v)?b[v]||u(x[v]):(b[v]=!0,St(f)))}),$t(y,function(v){x[v]!==void 0||lr(x,v)||(b[v]=!1,St(f))});else if(w===5){if(n(f)&&(St(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var uc,io,da=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",Su=typeof Set<"u",fc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",bc=da?Symbol.for("immer-nothing"):((uc={})["immer-nothing"]=!0,uc),hc=da?Symbol.for("immer-draftable"):"__$immer_draftable",ee=da?Symbol.for("immer-state"):"__$immer_state";var Cu=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,xc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},na={},ao={get:function(t,e){if(e===ee)return t;var o=vt(t);if(!lr(o,e))return function(i,a,s){var c,d=dc(a,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===Qi(t.t,e)?(ea(t),t.o[e]=oa(t.A.h,n,t)):n},has:function(t,e){return e in vt(t)},ownKeys:function(t){return Reflect.ownKeys(vt(t))},set:function(t,e,o){var n=dc(vt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Qi(vt(t),e),a=i?.[ee];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(mc(o,i)&&(o!==void 0||lr(t.t,e)))return!0;ea(t),St(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 Qi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ea(t),St(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=vt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Pe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Pe(12)}},no={};$t(ao,function(t,e){no[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),no.deleteProperty=function(t,e){return no.set.call(this,t,e,void 0)},no.set=function(t,e,o){return ao.set.call(this,t[0],e,o,t[0])};var Ou=function(){function t(o){var n=this;this.O=fc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var d=n;return function(w){var R=this;w===void 0&&(w=c);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&Pe(6),s!==void 0&&typeof s!="function"&&Pe(7),We(i)){var h=cc(n),f=oa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?un(h):ra(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return Xi(h,s),Ji(w,h)},function(w){throw un(h),w}):(Xi(h,s),Ji(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===bc&&(u=void 0),n.D&&ca(u,!0),s){var x=[],b=[];et("Patches").M(i,u,x,b),s(x,b)}return u}Pe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].concat(f))})};var s,c,d=n.produce(i,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,c]}):[d,s,c]},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){We(o)||Pe(8),ut(o)&&(o=xu(o));var n=cc(this),i=oa(this,o,void 0);return i[ee].C=!0,ra(n),i},e.finishDraft=function(o,n){var i=o&&o[ee],a=i.A;return Xi(a,n),Ji(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!fc&&Pe(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=et("Patches").$;return ut(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Re=new Ou,Eu=Re.produce,ix=Re.produceWithPatches.bind(Re),ax=Re.setAutoFreeze.bind(Re),sx=Re.setUseProxies.bind(Re),cx=Re.applyPatches.bind(Re),lx=Re.createDraft.bind(Re),dx=Re.finishDraft.bind(Re),yn=Eu;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function vc(t,e){if(Ut(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sc(t){var e=vc(t,"string");return Ut(e)=="symbol"?e:e+""}function Cc(t,e,o){return(e=Sc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Oc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function pa(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(o),!0).forEach(function(n){Cc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Oc(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 Ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},mn={INIT:"@@redux/INIT"+ua(),REPLACE:"@@redux/REPLACE"+ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ua()}};function Au(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 fa(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(fa)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],c=s,d=!1;function u(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(ge(3));return a}function f(w){if(typeof w!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var R=!0;return u(),c.push(w),function(){if(R){if(d)throw new Error(ge(6));R=!1,u();var N=c.indexOf(w);c.splice(N,1),s=null}}}function y(w){if(!Au(w))throw new Error(ge(7));if(typeof w.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=c,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(ge(10));i=w,y({type:mn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Ec]=function(){return this},w}return y({type:mn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Ec]=b,n}function wu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:mn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:mn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function Ac(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{wu(o)}catch(d){c=d}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(ge(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function ur(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function wc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return a=ur.apply(void 0,c)(i.dispatch),pa(pa({},i),{},{dispatch:a})}}}function Rc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Tc=Rc();Tc.withExtraArgument=Rc;var ha=Tc;var Pc=function(){var t=function(e,o){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,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)}}(),Ru=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},fr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Tu=Object.defineProperty,Lu=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,Lc=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,_c=function(t,e,o){return e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ct=function(t,e){for(var o in e||(e={}))Nu.call(e,o)&&_c(t,o,e[o]);if(Lc)for(var n=0,i=Lc(e);n<i.length;n++){var o=i[n];Iu.call(e,o)&&_c(t,o,e[o])}return t},ya=function(t,e){return Lu(t,_u(e))},Pu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{c(o.next(d))}catch(u){i(u)}},s=function(d){try{c(o.throw(d))}catch(u){i(u)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};c((o=o.apply(t,e)).next())})};var ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},Tx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Du(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 Mu=function(t){Pc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 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,fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,fr([void 0],o.concat(this))))},e}(Array),Bu=function(t){Pc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 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,fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,fr([void 0],o.concat(this))))},e}(Array);function ba(t){return We(t)?yn(t,function(){}):t}function $u(t){return typeof t=="boolean"}function Uu(){return function(e){return Fu(e)}}function Fu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new Mu;if(o&&($u(o)?c.push(ha):c.push(ha.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return c}var ma=!0;function kc(t){var e=Uu(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,d=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Du(i))x=Ac(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 b=s;if(typeof b=="function"&&(b=b(e),!ma&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=wc.apply(void 0,b),R=ur;d&&(R=ku(Ct({trace:!ma},typeof d=="object"&&d)));var L=new Bu(w),N=L;Array.isArray(y)?N=fr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return fa(x,h,E)}function Ot(t,e){function o(){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 Ct(Ct({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.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 Dc(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Hu(t){return typeof t=="function"}function zu(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Dc(e):[e,o,n],a=i[0],s=i[1],c=i[2],d;if(Hu(t))d=function(){return ba(t())};else{var u=ba(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=fr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,w){if(w)if(ut(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(We(b))return yn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function Wu(t,e){return t+"/"+e}function Mc(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:ba(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var f=n[h],y=Wu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,c[h]=b?Ot(y,b):Ot(y)});function d(){var h=typeof t.extraReducers=="function"?Dc(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Ct(Ct({},y),s);return zu(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Gu[Math.random()*64|0];return e},Vu=["name","message","stack","code"],ga=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Nc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ku=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Vu;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ix=function(){function t(e,o,n){var i=Ot(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:ya(Ct({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=Ot(e+"/pending",function(h,f,y){return{payload:void 0,meta:ya(Ct({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ot(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Ku)(h||"Rejected"),meta:ya(Ct({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):ju(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Pu(this,null,function(){var v,A,D,U,j,H,M;return Ru(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),qu(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,j=new Promise(function(S,I){return w.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([j,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(S,I){return new ga(S,I)},fulfillWithValue:function(S,I){return new Nc(S,I)}})).then(function(S){if(S instanceof ga)throw S;return S instanceof Nc?i(S.payload,b,h,S.meta):i(S,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return H=m.sent(),D=H instanceof ga?s(null,b,h,H.payload,H.meta):s(H,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(Zu)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function qu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Bc="listener",$c="completed",Uc="cancelled",Px="task-"+Uc,kx="task-"+$c,Dx=Bc+"-"+Uc,Mx=Bc+"-"+$c;var xa="listenerMiddleware";var Bx=Ot(xa+"/add"),$x=Ot(xa+"/removeAll"),Ux=Ot(xa+"/remove");var Ic,Fx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ic||(Ic=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Yu=function(t){return function(e){setTimeout(e,t)}},Hx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yu(10);gc();window.ftReduxStores||(window.ftReduxStores={});var Ft=class t extends at{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(cr(a))return a;if(i==null)return;let s=Mc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=kc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new to;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...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 Xu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))cr(e)&&e.clear()}var gn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);it(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Ju(t,e,o){return new gn(t,e,o).watch()}var va=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ea={};V(Ea,{scrollHelper:()=>Qu});var Ca,bn=new Map,Oa=class{lock(e,o){if(o){let n=bn.get(o);if(n==null||n===e)return bn.set(o,e),o}}release(e,o){o&&bn.get(o)===e&&bn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of ci(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=zr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,c)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ca=window.FluidTopicsScrollHelper)!==null&&Ca!==void 0?Ca:new Oa;var Qu=window.FluidTopicsScrollHelper;var wa={};V(wa,{SearchPlaceConverter:()=>gr,SearchPlaceQueryParams:()=>q,isSearchPlaceQueryParams:()=>vl,serializeRequest:()=>of});var tf=Ld(Hc(),1);var zc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(zc||(zc={}));var Wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wc||(Wc={}));var Gc;(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"})(Gc||(Gc={}));var jc;(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"})(jc||(jc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Kc||(Kc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(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"})(qc||(qc={}));var Yc;(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"})(Yc||(Yc={}));var Xc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Xc||(Xc={}));var Jc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Jc||(Jc={}));var Qc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Qc||(Qc={}));var el;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(el||(el={}));var tl;(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"})(tl||(tl={}));var yr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yr||(yr={}));var rl;(function(t){t.ASC="ASC",t.DESC="DESC"})(rl||(rl={}));var ol;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ol||(ol={}));var Aa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Aa||(Aa={}));var dl=t=>Object.keys(Aa).includes(t);var nl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(nl||(nl={}));var il;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(il||(il={}));var al;(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"})(al||(al={}));var mr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(mr||(mr={}));var pl=t=>Object.keys(mr).includes(t);var sl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(sl||(sl={}));var cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(cl||(cl={}));var ll;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ll||(ll={}));var se;(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"})(se||(se={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var ul;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ul||(ul={}));var fl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(fl||(fl={}));var hl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(hl||(hl={}));var yl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(yl||(yl={}));var ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ml||(ml={}));var ef={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function gl(t,e){return t===e||(ef[t]??[]).some(o=>gl(o,e))}function bl(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=>gl(n,e))}function rf(t){return`"${t}"`}function xl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function of(t,e){return new gr(t).serialize(e)}var q;(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"})(q||(q={}));var nf=new Set(Object.values(q));function vl(t){return nf.has(t)}var gr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,c,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(q.LOCALE,e.contentLocale):b.append(q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(q.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,U;let j=((U=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&U!==void 0?U:[]).map(H=>this.escapeFilters(H)).map(H=>rf(xl(H))).join("_");return`${A.key}~${j}`}).join("*");b.append(q.VALUE_FILTERS,v)}let R=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&c!==void 0?c:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(q.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,U;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(U=A.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(q.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(q.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(q.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(q.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(q.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(q.LOCALE)==="all"?void 0:d.get(q.LOCALE),h=((o=d.get(q.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(q.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(q.KEYWORD_MATCH),w=b?b.toUpperCase()===yr.MANDATORY?yr.MANDATORY:yr.OPTIONAL:void 0,R={};for(let L of d.keys())vl(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(q.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[y])!==null&&c!==void 0?c:"DEFAULT",virtualField:dl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:zr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,c;let d=[];return e.has(q.FILTERS)&&(d=this.parseValueFilters((o=e.get(q.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(q.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(xl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:mr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(pl(e))return[{key:"ft:lastEdition",dateFilter:{type:mr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var La={};V(La,{toFtFormComponent:()=>Ta});var Ra=Symbol("elementInternals"),Ta=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ra].form}constructor(...n){super(n),this[Ra]=this.attachInternals()}setFormValue(n){this[Ra].setFormValue(n)}}return e});var _a={};V(_a,{DateFormatter:()=>Ht});var Ht=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${c}`}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 Ia={};V(Ia,{ALL_KEYS_VALUE:()=>Na,SameWindowStorageEvent:()=>br});var Na="__all__",br=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Na}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new br(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new br(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new br(Na))}});var ka={};V(ka,{FocusMainContentEvent:()=>Pa});var Pa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Sl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function af(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function sf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",af);document.addEventListener("click",sf);var Cl=P`
48
+ `;var ac={};var Yi={};V(Yi,{ParametrizedLabelResolver:()=>eo});var eo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)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,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Sa={};V(Sa,{FtCommandQueue:()=>to,FtLitElementRedux:()=>oo,FtReduxStore:()=>Ft,FtStateManager:()=>va,ReduxWatcher:()=>gn,clearAllStores:()=>Xu,isFtReduxStore:()=>cr,redux:()=>sr,reduxEventListener:()=>hu,reduxReactive:()=>fu,watch:()=>Ju,withRedux:()=>sc});var fu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},sr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:it,attribute:!1,...e};C(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},hu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var to=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function cr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ro=Symbol("internalReduxEventsUnsubscribers"),xt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),sc=fe(Symbol("withRedux"),function(t){var e,o,n;class i 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(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Bt].get(s)}addStore(s,c){var d;c=(d=c??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(c),this[Bt].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Bt].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let d=this.constructor.getPropertyOptions(c);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[xt].has(s.store):this[xt].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var d;this[xt].set(s,c.subscribe(()=>this.updateFromStores())),this[ro].set(s,[]),cr(c)&&c.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let f=y=>this[h](y);c.addEventListener(u.eventName,f),this[ro].get(s).push(()=>c.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[xt].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[xt].has(s)&&this[xt].get(s)(),this[xt].delete(s),(c=this[ro].get(s))===null||c===void 0||c.forEach(d=>d()),this[ro].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=xt,o=Bt,n=ro,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),oo=class extends sc(Z){};function Pe(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 i,a;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 ut(t){return!!t&&!!t[ee]}function We(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Cu}(t)||Array.isArray(t)||!!t[hc]||!!(!((e=t.constructor)===null||e===void 0)&&e[hc])||ia(t)||aa(t))}function $t(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function pr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ia(t)?2:aa(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yu(t,e){return pr(t)===2?t.get(e):t[e]}function yc(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function mc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ia(t){return vu&&t instanceof Map}function aa(t){return Su&&t instanceof Set}function vt(t){return t.o||t.t}function sa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=xc(t);delete e[ee];for(var o=dr(e),n=0;n<o.length;n++){var i=o[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 ca(t,e){return e===void 0&&(e=!1),la(t)||ut(t)||!We(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=mu),Object.freeze(t),e&&$t(t,function(o,n){return ca(n,!0)},!0)),t}function mu(){Pe(2)}function la(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=na[t];return e||Pe(18,t),e}function gu(t,e){na[t]||(na[t]=e)}function ta(){return io}function Xi(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function un(t){ra(t),t.p.forEach(bu),t.p=null}function ra(t){t===io&&(io=t.l)}function cc(t){return io={p:[],l:io,h:t,m:!0,_:0}}function bu(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function Ji(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[ee].P&&(un(e),Pe(4)),We(t)&&(t=fn(e,t),e.l||hn(e,t)),e.u&&et("Patches").M(o[ee].t,t,e.u,e.s)):t=fn(e,o,[]),un(e),e.u&&e.v(e.u,e.s),t!==bc?t:void 0}function fn(t,e,o){if(la(e))return e;var n=e[ee];if(!n)return $t(e,function(c,d){return lc(t,n,e,c,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return hn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=sa(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),$t(a,function(c,d){return lc(t,n,i,c,d,o,s)}),hn(t,i,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function lc(t,e,o,n,i,a,s){if(ut(i)){var c=fn(t,i,a&&e&&e.i!==3&&!lr(e.R,n)?a.concat(n):void 0);if(yc(o,n,c),!ut(c))return;t.m=!1}else s&&o.add(i);if(We(i)&&!la(i)){if(!t.h.D&&t._<1)return;fn(t,i),e&&e.A.l||hn(t,i)}}function hn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ca(e,o)}function Qi(t,e){var o=t[ee];return(o?vt(o):t)[e]}function dc(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 St(t){t.P||(t.P=!0,t.l&&St(t.l))}function ea(t){t.o||(t.o=sa(t.t))}function oa(t,e,o){var n=ia(e)?et("MapSet").F(e,o):aa(e)?et("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:ta(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=c,u=ao;s&&(d=[c],u=no);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return c.k=y,c.j=f,y}(e,o):et("ES5").J(e,o);return(o?o.A:ta()).p.push(n),n}function xu(t){return ut(t)||Pe(22,t),function e(o){if(!We(o))return o;var n,i=o[ee],a=pr(o);if(i){if(!i.P&&(i.i<4||!et("ES5").K(i)))return i.t;i.I=!0,n=pc(o,a),i.I=!1}else n=pc(o,a);return $t(n,function(s,c){i&&yu(i.t,s)===c||yc(n,s,e(c))}),a===3?new Set(n):n}(t)}function pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return sa(t)}function gc(){function t(s,c){var d=a[s];return d?d.enumerable=c:a[s]=d={configurable:!0,enumerable:c,get:function(){var u=this[ee];return ao.get(u,s)},set:function(u){var h=this[ee];ao.set(h,s,u)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][ee];if(!d.P)switch(d.i){case 5:n(d)&&St(d);break;case 4:o(d)&&St(d)}}}function o(s){for(var c=s.t,d=s.k,u=dr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==ee){var y=c[f];if(y===void 0&&!lr(c,f))return!0;var x=d[f],b=x&&x[ee];if(b?b.t!==y:!mc(x,y))return!0}}var w=!!c[ee];return u.length!==dr(c).length+(w?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Pe(3,JSON.stringify(vt(s)))}var a={};gu("ES5",{J:function(s,c){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=xc(y);delete w[ee];for(var R=dr(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:c?c.A:ta(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ee,{value:h,writable:!0}),u},S:function(s,c,d){d?ut(c)&&c[ee].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[ee];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)$t(x,function(v){v!==ee&&(y[v]!==void 0||lr(y,v)?b[v]||u(x[v]):(b[v]=!0,St(f)))}),$t(y,function(v){x[v]!==void 0||lr(x,v)||(b[v]=!1,St(f))});else if(w===5){if(n(f)&&(St(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var uc,io,da=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vu=typeof Map<"u",Su=typeof Set<"u",fc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",bc=da?Symbol.for("immer-nothing"):((uc={})["immer-nothing"]=!0,uc),hc=da?Symbol.for("immer-draftable"):"__$immer_draftable",ee=da?Symbol.for("immer-state"):"__$immer_state";var Cu=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,xc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},na={},ao={get:function(t,e){if(e===ee)return t;var o=vt(t);if(!lr(o,e))return function(i,a,s){var c,d=dc(a,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!We(n)?n:n===Qi(t.t,e)?(ea(t),t.o[e]=oa(t.A.h,n,t)):n},has:function(t,e){return e in vt(t)},ownKeys:function(t){return Reflect.ownKeys(vt(t))},set:function(t,e,o){var n=dc(vt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Qi(vt(t),e),a=i?.[ee];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(mc(o,i)&&(o!==void 0||lr(t.t,e)))return!0;ea(t),St(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 Qi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ea(t),St(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=vt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Pe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Pe(12)}},no={};$t(ao,function(t,e){no[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),no.deleteProperty=function(t,e){return no.set.call(this,t,e,void 0)},no.set=function(t,e,o){return ao.set.call(this,t[0],e,o,t[0])};var Ou=function(){function t(o){var n=this;this.O=fc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var d=n;return function(w){var R=this;w===void 0&&(w=c);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&Pe(6),s!==void 0&&typeof s!="function"&&Pe(7),We(i)){var h=cc(n),f=oa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?un(h):ra(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return Xi(h,s),Ji(w,h)},function(w){throw un(h),w}):(Xi(h,s),Ji(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===bc&&(u=void 0),n.D&&ca(u,!0),s){var x=[],b=[];et("Patches").M(i,u,x,b),s(x,b)}return u}Pe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].concat(f))})};var s,c,d=n.produce(i,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,c]}):[d,s,c]},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){We(o)||Pe(8),ut(o)&&(o=xu(o));var n=cc(this),i=oa(this,o,void 0);return i[ee].C=!0,ra(n),i},e.finishDraft=function(o,n){var i=o&&o[ee],a=i.A;return Xi(a,n),Ji(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!fc&&Pe(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=et("Patches").$;return ut(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Re=new Ou,Eu=Re.produce,ix=Re.produceWithPatches.bind(Re),ax=Re.setAutoFreeze.bind(Re),sx=Re.setUseProxies.bind(Re),cx=Re.applyPatches.bind(Re),lx=Re.createDraft.bind(Re),dx=Re.finishDraft.bind(Re),yn=Eu;function Ut(t){"@babel/helpers - typeof";return Ut=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},Ut(t)}function vc(t,e){if(Ut(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sc(t){var e=vc(t,"string");return Ut(e)=="symbol"?e:e+""}function Cc(t,e,o){return(e=Sc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Oc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function pa(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(o),!0).forEach(function(n){Cc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Oc(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 Ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},mn={INIT:"@@redux/INIT"+ua(),REPLACE:"@@redux/REPLACE"+ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ua()}};function Au(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 fa(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(fa)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],c=s,d=!1;function u(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(ge(3));return a}function f(w){if(typeof w!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var R=!0;return u(),c.push(w),function(){if(R){if(d)throw new Error(ge(6));R=!1,u();var N=c.indexOf(w);c.splice(N,1),s=null}}}function y(w){if(!Au(w))throw new Error(ge(7));if(typeof w.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=c,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(ge(10));i=w,y({type:mn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ge(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Ec]=function(){return this},w}return y({type:mn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Ec]=b,n}function wu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:mn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof o(void 0,{type:mn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function Ac(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,c;try{wu(o)}catch(d){c=d}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(ge(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function ur(){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,i){return function(){return n(i.apply(void 0,arguments))}})}function wc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return a=ur.apply(void 0,c)(i.dispatch),pa(pa({},i),{},{dispatch:a})}}}function Rc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Tc=Rc();Tc.withExtraArgument=Rc;var ha=Tc;var Pc=function(){var t=function(e,o){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,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)}}(),Ru=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},fr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},Tu=Object.defineProperty,Lu=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,Lc=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,_c=function(t,e,o){return e in t?Tu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ct=function(t,e){for(var o in e||(e={}))Nu.call(e,o)&&_c(t,o,e[o]);if(Lc)for(var n=0,i=Lc(e);n<i.length;n++){var o=i[n];Iu.call(e,o)&&_c(t,o,e[o])}return t},ya=function(t,e){return Lu(t,_u(e))},Pu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{c(o.next(d))}catch(u){i(u)}},s=function(d){try{c(o.throw(d))}catch(u){i(u)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};c((o=o.apply(t,e)).next())})};var ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},Tx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Du(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 Mu=function(t){Pc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 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,fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,fr([void 0],o.concat(this))))},e}(Array),Bu=function(t){Pc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 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,fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,fr([void 0],o.concat(this))))},e}(Array);function ba(t){return We(t)?yn(t,function(){}):t}function $u(t){return typeof t=="boolean"}function Uu(){return function(e){return Fu(e)}}function Fu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new Mu;if(o&&($u(o)?c.push(ha):c.push(ha.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return c}var ma=!0;function kc(t){var e=Uu(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,d=c===void 0?!0:c,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Du(i))x=Ac(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 b=s;if(typeof b=="function"&&(b=b(e),!ma&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ma&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=wc.apply(void 0,b),R=ur;d&&(R=ku(Ct({trace:!ma},typeof d=="object"&&d)));var L=new Bu(w),N=L;Array.isArray(y)?N=fr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return fa(x,h,E)}function Ot(t,e){function o(){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 Ct(Ct({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.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 Dc(t){var e={},o=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Hu(t){return typeof t=="function"}function zu(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Dc(e):[e,o,n],a=i[0],s=i[1],c=i[2],d;if(Hu(t))d=function(){return ba(t())};else{var u=ba(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=fr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[c]),x.reduce(function(b,w){if(w)if(ut(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(We(b))return yn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function Wu(t,e){return t+"/"+e}function Mc(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:ba(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var f=n[h],y=Wu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,c[h]=b?Ot(y,b):Ot(y)});function d(){var h=typeof t.extraReducers=="function"?Dc(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Ct(Ct({},y),s);return zu(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ju=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Gu[Math.random()*64|0];return e},Vu=["name","message","stack","code"],ga=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Nc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ku=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Vu;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ix=function(){function t(e,o,n){var i=Ot(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:ya(Ct({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=Ot(e+"/pending",function(h,f,y){return{payload:void 0,meta:ya(Ct({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ot(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Ku)(h||"Rejected"),meta:ya(Ct({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,y,x){var b=n?.idGenerator?n.idGenerator(h):ju(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Pu(this,null,function(){var v,A,D,U,j,H,M;return Ru(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),U=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),qu(U)?[4,U]:[3,2];case 1:U=m.sent(),m.label=2;case 2:if(U===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,j=new Promise(function(S,I){return w.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([j,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(S,I){return new ga(S,I)},fulfillWithValue:function(S,I){return new Nc(S,I)}})).then(function(S){if(S instanceof ga)throw S;return S instanceof Nc?i(S.payload,b,h,S.meta):i(S,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return H=m.sent(),D=H instanceof ga?s(null,b,h,H.payload,H.meta):s(H,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(Zu)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Zu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function qu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Bc="listener",$c="completed",Uc="cancelled",Px="task-"+Uc,kx="task-"+$c,Dx=Bc+"-"+Uc,Mx=Bc+"-"+$c;var xa="listenerMiddleware";var Bx=Ot(xa+"/add"),$x=Ot(xa+"/removeAll"),Ux=Ot(xa+"/remove");var Ic,Fx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ic||(Ic=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Yu=function(t){return function(e){setTimeout(e,t)}},Hx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yu(10);gc();window.ftReduxStores||(window.ftReduxStores={});var Ft=class t extends at{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(cr(a))return a;if(i==null)return;let s=Mc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=kc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,c,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new to;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...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 Xu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))cr(e)&&e.clear()}var gn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);it(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Ju(t,e,o){return new gn(t,e,o).watch()}var va=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ea={};V(Ea,{scrollHelper:()=>Qu});var Ca,bn=new Map,Oa=class{lock(e,o){if(o){let n=bn.get(o);if(n==null||n===e)return bn.set(o,e),o}}release(e,o){o&&bn.get(o)===e&&bn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of ci(e)){let s=a,c=this.elementCanScroll(s);if(c&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else c&&i==null&&(i=s)}return(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=zr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,c)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ca=window.FluidTopicsScrollHelper)!==null&&Ca!==void 0?Ca:new Oa;var Qu=window.FluidTopicsScrollHelper;var wa={};V(wa,{SearchPlaceConverter:()=>gr,SearchPlaceQueryParams:()=>q,isSearchPlaceQueryParams:()=>Sl,serializeRequest:()=>of});var tf=Ld(Hc(),1);var zc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(zc||(zc={}));var Wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Wc||(Wc={}));var Gc;(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"})(Gc||(Gc={}));var jc;(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"})(jc||(jc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Kc||(Kc={}));var Zc;(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"})(Zc||(Zc={}));var qc;(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"})(qc||(qc={}));var Yc;(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"})(Yc||(Yc={}));var Xc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Xc||(Xc={}));var Jc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Jc||(Jc={}));var Qc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Qc||(Qc={}));var el;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(el||(el={}));var tl;(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"})(tl||(tl={}));var yr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(yr||(yr={}));var rl;(function(t){t.ASC="ASC",t.DESC="DESC"})(rl||(rl={}));var ol;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ol||(ol={}));var Aa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Aa||(Aa={}));var pl=t=>Object.keys(Aa).includes(t);var nl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(nl||(nl={}));var il;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(il||(il={}));var al;(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"})(al||(al={}));var mr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(mr||(mr={}));var ul=t=>Object.keys(mr).includes(t);var sl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(sl||(sl={}));var cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(cl||(cl={}));var ll;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ll||(ll={}));var se;(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"})(se||(se={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var dl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(dl||(dl={}));var fl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(fl||(fl={}));var hl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(hl||(hl={}));var yl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(yl||(yl={}));var ml;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ml||(ml={}));var gl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(gl||(gl={}));var ef={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function bl(t,e){return t===e||(ef[t]??[]).some(o=>bl(o,e))}function xl(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=>bl(n,e))}function rf(t){return`"${t}"`}function vl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function of(t,e){return new gr(t).serialize(e)}var q;(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"})(q||(q={}));var nf=new Set(Object.values(q));function Sl(t){return nf.has(t)}var gr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,c,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(q.LOCALE,e.contentLocale):b.append(q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(q.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,U;let j=((U=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&U!==void 0?U:[]).map(H=>this.escapeFilters(H)).map(H=>rf(vl(H))).join("_");return`${A.key}~${j}`}).join("*");b.append(q.VALUE_FILTERS,v)}let R=(c=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&c!==void 0?c:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(q.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,U;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(U=A.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");b.append(q.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(q.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(q.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(q.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(q.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,c;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(q.LOCALE)==="all"?void 0:d.get(q.LOCALE),h=((o=d.get(q.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(q.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(q.KEYWORD_MATCH),w=b?b.toUpperCase()===yr.MANDATORY?yr.MANDATORY:yr.OPTIONAL:void 0,R={};for(let L of d.keys())Sl(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(q.QUERY))!==null&&s!==void 0?s:"",scope:(c=this.scopeMapping[y])!==null&&c!==void 0?c:"DEFAULT",virtualField:pl(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:zr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,c;let d=[];return e.has(q.FILTERS)&&(d=this.parseValueFilters((o=e.get(q.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(q.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(vl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:mr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(ul(e))return[{key:"ft:lastEdition",dateFilter:{type:mr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var La={};V(La,{toFtFormComponent:()=>Ta});var Ra=Symbol("elementInternals"),Ta=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ra].form}constructor(...n){super(n),this[Ra]=this.attachInternals()}setFormValue(n){this[Ra].setFormValue(n)}}return e});var _a={};V(_a,{DateFormatter:()=>Ht});var Ht=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${c}`}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 Ia={};V(Ia,{ALL_KEYS_VALUE:()=>Na,SameWindowStorageEvent:()=>br});var Na="__all__",br=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Na}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new br(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new br(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new br(Na))}});var ka={};V(ka,{FocusMainContentEvent:()=>Pa});var Pa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Cl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function af(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function sf(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",af);document.addEventListener("click",sf);var Ol=P`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var cf={checkVisibility:!0},Rv=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...cf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Gr({type:"aria",message:n})))},20)}}return e});function Ol(t,e,o){return t?e(t):o?.(t)}var he=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},zt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(zt||(zt={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Da=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Bv=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=zt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===zt.blur||this.validateOn===zt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Wt.default&&this.validateOn===zt.blurWithStatusResolutionOnInput||this.validateOn===zt.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 Da(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return F`
72
+ `;var cf={checkVisibility:!0},Rv=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...cf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Gr({type:"aria",message:n})))},20)}}return e});function El(t,e,o){return t?e(t):o?.(t)}var he=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},zt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(zt||(zt={}));var Wt;(function(t){t.default="default",t.warning="warning",t.error="error"})(Wt||(Wt={}));var Da=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Bv=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=zt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Wt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===zt.blur||this.validateOn===zt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Wt.default&&this.validateOn===zt.blurWithStatusResolutionOnInput||this.validateOn===zt.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 Da(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return F`
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
  ${Ro(this.errorMessages,n=>F`
@@ -78,11 +78,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
78
78
  ${Ro(this.warningMessages,n=>F`
79
79
  <li>${n}</li>
80
80
  `)}
81
- ${Ol(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>F`
81
+ ${El(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>F`
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return he([C()],e.prototype,"warningRules",void 0),he([C()],e.prototype,"errorRules",void 0),he([C()],e.prototype,"validateOn",void 0),he([C({type:Boolean})],e.prototype,"validateAtRender",void 0),he([C()],e.prototype,"label",void 0),he([C({type:Boolean})],e.prototype,"hideLabel",void 0),he([C()],e.prototype,"name",void 0),he([C({type:Boolean})],e.prototype,"disabled",void 0),he([C()],e.prototype,"helperText",void 0),he([C()],e.prototype,"forceStatus",void 0),he([C({reflect:!0})],e.prototype,"value",void 0),he([Q()],e.prototype,"errorMessages",void 0),he([Q()],e.prototype,"warningMessages",void 0),he([Q()],e.prototype,"status",void 0),he([Q()],e.prototype,"focused",void 0),he([Q()],e.prototype,"additionalWarningRules",void 0),he([Q()],e.prototype,"additionalErrorRules",void 0),e});var so=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),so(n,e);return!0},Sn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},El=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),pf(e)}};function lf(t){this._$AN!==void 0?(Sn(this),this._$AM=t,El(this)):this._$AM=t}function df(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)so(n[a],!1),Sn(n[a]);else n!=null&&(so(n,!1),Sn(n));else so(this,t)}var pf=t=>{t.type==qe.CHILD&&(t._$AP??=df,t._$AQ??=lf)},Cn=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),El(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(so(this,e),Sn(this))}setValue(e){if(vs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var Al;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Al||(Al={}));var uf={sm:640,md:768,lg:1024,xl:1280},Ma=class extends Cn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,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,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>G);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:uf[e]}},Xv=He(Ma);var Ba,$a,Ua,Fa,co=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ua=($a=(Ba=window.safari)===null||Ba===void 0?void 0:Ba.pushNotification)===null||$a===void 0?void 0:$a.toString())!==null&&Ua!==void 0?Ua:"")==="[object SafariRemoteNotification]",ff="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fa=window.ftGlobals)!==null&&Fa!==void 0?Fa:{lit:Xn,litDecorators:Qn,litRepeat:ei,litClassMap:ti,litStyleMap:ri,litUnsafeHTML:ni,wcUtils:{...fi,...ai,...bi,..._a,...xi,...vi,...Ei,...ui,...Fi,...ka,...Sl,...Ea,...Oi,...ji,...La,...Gi,...nc,...li,...Zi,...Ai,...qi,...Cl,...ac,...Yi,...Sa,...Ia,...Hi,...Wi,...wa,...yi,isSafari:co,isTouchScreen:ff,setVariable:O}};var wl=r.extend("--ft-ripple-color","",z.colorContent),T={color:wl,backgroundColor:r.extend("--ft-ripple-background-color","",wl),opacityContentOnSurfacePressed:r.external(z.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(z.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(z.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(z.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Rl=r.extend("--ft-ripple-color","",z.colorPrimary),Tl={color:Rl,backgroundColor:r.extend("--ft-ripple-background-color","",Rl)},Ll=r.extend("--ft-ripple-color","",z.colorSecondary),_l={color:Ll,backgroundColor:r.extend("--ft-ripple-background-color","",Ll)},Nl=P`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Wt.error:this.warningMessages.length?Wt.warning:Wt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return he([C()],e.prototype,"warningRules",void 0),he([C()],e.prototype,"errorRules",void 0),he([C()],e.prototype,"validateOn",void 0),he([C({type:Boolean})],e.prototype,"validateAtRender",void 0),he([C()],e.prototype,"label",void 0),he([C({type:Boolean})],e.prototype,"hideLabel",void 0),he([C()],e.prototype,"name",void 0),he([C({type:Boolean})],e.prototype,"disabled",void 0),he([C()],e.prototype,"helperText",void 0),he([C()],e.prototype,"forceStatus",void 0),he([C({reflect:!0})],e.prototype,"value",void 0),he([Q()],e.prototype,"errorMessages",void 0),he([Q()],e.prototype,"warningMessages",void 0),he([Q()],e.prototype,"status",void 0),he([Q()],e.prototype,"focused",void 0),he([Q()],e.prototype,"additionalWarningRules",void 0),he([Q()],e.prototype,"additionalErrorRules",void 0),e});var so=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),so(n,e);return!0},Sn=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Al=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),pf(e)}};function lf(t){this._$AN!==void 0?(Sn(this),this._$AM=t,Al(this)):this._$AM=t}function df(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)so(n[a],!1),Sn(n[a]);else n!=null&&(so(n,!1),Sn(n));else so(this,t)}var pf=t=>{t.type==qe.CHILD&&(t._$AP??=df,t._$AQ??=lf)},Cn=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Al(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(so(this,e),Sn(this))}setValue(e){if(vs(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var wl;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(wl||(wl={}));var uf={sm:640,md:768,lg:1024,xl:1280},Ma=class extends Cn{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,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,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>G);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:uf[e]}},Xv=He(Ma);var Ba,$a,Ua,Fa,co=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ua=($a=(Ba=window.safari)===null||Ba===void 0?void 0:Ba.pushNotification)===null||$a===void 0?void 0:$a.toString())!==null&&Ua!==void 0?Ua:"")==="[object SafariRemoteNotification]",ff="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fa=window.ftGlobals)!==null&&Fa!==void 0?Fa:{lit:Xn,litDecorators:Qn,litRepeat:ei,litClassMap:ti,litStyleMap:ri,litUnsafeHTML:ni,wcUtils:{...fi,...ai,...bi,..._a,...xi,...vi,...Ei,...ui,...Fi,...ka,...Cl,...Ea,...Oi,...ji,...La,...Gi,...nc,...li,...Zi,...Ai,...qi,...Ol,...ac,...Yi,...Sa,...Ia,...Hi,...Wi,...wa,...yi,isSafari:co,isTouchScreen:ff,setVariable:O}};var Rl=r.extend("--ft-ripple-color","",z.colorContent),T={color:Rl,backgroundColor:r.extend("--ft-ripple-background-color","",Rl),opacityContentOnSurfacePressed:r.external(z.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(z.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(z.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(z.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Tl=r.extend("--ft-ripple-color","",z.colorPrimary),Ll={color:Tl,backgroundColor:r.extend("--ft-ripple-background-color","",Tl)},_l=r.extend("--ft-ripple-color","",z.colorSecondary),Nl={color:_l,backgroundColor:r.extend("--ft-ripple-background-color","",_l)},Il=P`
86
86
  :host {
87
87
  display: contents;
88
88
  }
@@ -137,19 +137,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
137
137
  }
138
138
 
139
139
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
140
- background-color: ${_l.backgroundColor};
140
+ background-color: ${Nl.backgroundColor};
141
141
  }
142
142
 
143
143
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
144
- background-color: ${_l.color};
144
+ background-color: ${Nl.color};
145
145
  }
146
146
 
147
147
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
148
- background-color: ${Tl.backgroundColor};
148
+ background-color: ${Ll.backgroundColor};
149
149
  }
150
150
 
151
151
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
152
- background-color: ${Tl.color};
152
+ background-color: ${Ll.color};
153
153
  }
154
154
 
155
155
  .ft-ripple .ft-ripple--background {
@@ -205,7 +205,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
205
205
  <div class="ft-ripple--background"></div>
206
206
  <div class="ft-ripple--effect"></div>
207
207
  </div>
208
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>d=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};te.elementDefinitions={};te.styles=Nl;ve([C({type:Boolean})],te.prototype,"primary",void 0);ve([C({type:Boolean})],te.prototype,"secondary",void 0);ve([C({type:Boolean})],te.prototype,"unbounded",void 0);ve([C({type:Boolean})],te.prototype,"activated",void 0);ve([C({type:Boolean})],te.prototype,"selected",void 0);ve([C({type:Boolean})],te.prototype,"disabled",void 0);ve([Q()],te.prototype,"hovered",void 0);ve([Q()],te.prototype,"focused",void 0);ve([Q()],te.prototype,"pressed",void 0);ve([Q()],te.prototype,"rippling",void 0);ve([Q()],te.prototype,"originX",void 0);ve([Q()],te.prototype,"originY",void 0);ve([pe(".ft-ripple")],te.prototype,"ripple",void 0);ve([pe(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0);oe("ft-ripple")(te);var Pl=Symbol.for(""),hf=t=>{if(t?.r===Pl)return t?._$litStatic$},xr=t=>({_$litStatic$:t,r:Pl});var Il=new Map,Ha=t=>(e,...o)=>{let n=o.length,i,a,s=[],c=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=hf(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&c.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Il.get(f))===void 0&&(s.raw=s,Il.set(f,e=s)),o=c}return t(e,...o)},vr=Ha(F),tS=Ha(Vn),rS=Ha(Kn);var At;(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"})(At||(At={}));function kl(t,e){let o=mt[t];return P`
208
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>d=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};te.elementDefinitions={};te.styles=Il;ve([C({type:Boolean})],te.prototype,"primary",void 0);ve([C({type:Boolean})],te.prototype,"secondary",void 0);ve([C({type:Boolean})],te.prototype,"unbounded",void 0);ve([C({type:Boolean})],te.prototype,"activated",void 0);ve([C({type:Boolean})],te.prototype,"selected",void 0);ve([C({type:Boolean})],te.prototype,"disabled",void 0);ve([Q()],te.prototype,"hovered",void 0);ve([Q()],te.prototype,"focused",void 0);ve([Q()],te.prototype,"pressed",void 0);ve([Q()],te.prototype,"rippling",void 0);ve([Q()],te.prototype,"originX",void 0);ve([Q()],te.prototype,"originY",void 0);ve([pe(".ft-ripple")],te.prototype,"ripple",void 0);ve([pe(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0);oe("ft-ripple")(te);var kl=Symbol.for(""),hf=t=>{if(t?.r===kl)return t?._$litStatic$},xr=t=>({_$litStatic$:t,r:kl});var Pl=new Map,Ha=t=>(e,...o)=>{let n=o.length,i,a,s=[],c=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=hf(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&c.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Pl.get(f))===void 0&&(s.raw=s,Pl.set(f,e=s)),o=c}return t(e,...o)},vr=Ha(F),tS=Ha(Vn),rS=Ha(Kn);var At;(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"})(At||(At={}));function Dl(t,e){let o=mt[t];return P`
209
209
  ${e?Oe(e):P`.ft-typography--${Oe(t)}`} {
210
210
  font-family: ${o.fontFamily};
211
211
  font-size: ${o.fontSize};
@@ -215,7 +215,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
215
215
  text-decoration: ${o.textDecoration};
216
216
  text-transform: ${o.textCase};
217
217
  }
218
- `}var Dl=r.extend("--ft-typography-font-family","",z.titleFont),ft=r.extend("--ft-typography-font-family","",z.contentFont),B={fontFamily:ft,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Sr={fontFamily:r.extend("--ft-typography-title-font-family","",Dl),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Cr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Dl),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Or={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",ft),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Er={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",ft),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-body1-font-family","",ft),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},De={fontFamily:r.extend("--ft-typography-body2-font-family","",ft),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},wr={fontFamily:r.extend("--ft-typography-caption-font-family","",ft),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",ft),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:r.extend("--ft-typography-overline-font-family","",ft),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},tt={fontFamily:r.extend("--ft-typography-button-font-family","",ft),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Ml=P`
218
+ `}var Ml=r.extend("--ft-typography-font-family","",z.titleFont),ft=r.extend("--ft-typography-font-family","",z.contentFont),B={fontFamily:ft,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Sr={fontFamily:r.extend("--ft-typography-title-font-family","",Ml),fontSize:r.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Cr={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Ml),fontSize:r.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Or={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",ft),fontSize:r.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Er={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",ft),fontSize:r.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-body1-font-family","",ft),fontSize:r.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},De={fontFamily:r.extend("--ft-typography-body2-font-family","",ft),fontSize:r.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},wr={fontFamily:r.extend("--ft-typography-caption-font-family","",ft),fontSize:r.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",ft),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:r.extend("--ft-typography-overline-font-family","",ft),fontSize:r.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},tt={fontFamily:r.extend("--ft-typography-button-font-family","",ft),fontSize:r.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Bl=P`
219
219
  .ft-typography--title {
220
220
  font-family: ${Sr.fontFamily};
221
221
  font-size: ${Sr.fontSize};
@@ -224,7 +224,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
224
224
  line-height: ${Sr.lineHeight};
225
225
  text-transform: ${Sr.textTransform};
226
226
  }
227
- `,Bl=P`
227
+ `,$l=P`
228
228
  .ft-typography--title-dense {
229
229
  font-family: ${Cr.fontFamily};
230
230
  font-size: ${Cr.fontSize};
@@ -233,7 +233,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
233
233
  line-height: ${Cr.lineHeight};
234
234
  text-transform: ${Cr.textTransform};
235
235
  }
236
- `,$l=P`
236
+ `,Ul=P`
237
237
  .ft-typography--subtitle1 {
238
238
  font-family: ${Or.fontFamily};
239
239
  font-size: ${Or.fontSize};
@@ -242,7 +242,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
242
242
  line-height: ${Or.lineHeight};
243
243
  text-transform: ${Or.textTransform};
244
244
  }
245
- `,Ul=P`
245
+ `,Fl=P`
246
246
  .ft-typography--subtitle2 {
247
247
  font-family: ${Er.fontFamily};
248
248
  font-size: ${Er.fontSize};
@@ -252,7 +252,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
252
252
  text-transform: ${Er.textTransform};
253
253
  }
254
254
 
255
- `,Fl=P`
255
+ `,Hl=P`
256
256
  .ft-typography--body1 {
257
257
  font-family: ${Ar.fontFamily};
258
258
  font-size: ${Ar.fontSize};
@@ -261,7 +261,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
261
261
  line-height: ${Ar.lineHeight};
262
262
  text-transform: ${Ar.textTransform};
263
263
  }
264
- `,Hl=P`
264
+ `,zl=P`
265
265
  .ft-typography--body2 {
266
266
  font-family: ${De.fontFamily};
267
267
  font-size: ${De.fontSize};
@@ -270,7 +270,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
270
270
  line-height: ${De.lineHeight};
271
271
  text-transform: ${De.textTransform};
272
272
  }
273
- `,zl=P`
273
+ `,Wl=P`
274
274
  .ft-typography--caption {
275
275
  font-family: ${wr.fontFamily};
276
276
  font-size: ${wr.fontSize};
@@ -279,7 +279,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
279
279
  line-height: ${wr.lineHeight};
280
280
  text-transform: ${wr.textTransform};
281
281
  }
282
- `,Wl=P`
282
+ `,Gl=P`
283
283
  .ft-typography--breadcrumb {
284
284
  font-family: ${Rr.fontFamily};
285
285
  font-size: ${Rr.fontSize};
@@ -288,7 +288,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
288
288
  line-height: ${Rr.lineHeight};
289
289
  text-transform: ${Rr.textTransform};
290
290
  }
291
- `,Gl=P`
291
+ `,jl=P`
292
292
  .ft-typography--overline {
293
293
  font-family: ${Tr.fontFamily};
294
294
  font-size: ${Tr.fontSize};
@@ -297,7 +297,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
297
297
  line-height: ${Tr.lineHeight};
298
298
  text-transform: ${Tr.textTransform};
299
299
  }
300
- `,jl=P`
300
+ `,Vl=P`
301
301
  .ft-typography--button {
302
302
  font-family: ${tt.fontFamily};
303
303
  font-size: ${tt.fontSize};
@@ -306,11 +306,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
306
306
  line-height: ${tt.lineHeight};
307
307
  text-transform: ${tt.textTransform};
308
308
  }
309
- `,Vl=P`
309
+ `,Kl=P`
310
310
  .ft-typography {
311
311
  vertical-align: inherit;
312
312
  }
313
- `,Kl=[Object.keys(mt).map(t=>kl(t))];var Zl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Te=class extends Z{constructor(){super(...arguments),this.variant=At.body1}render(){return this.element?vr`
313
+ `,Zl=[Object.keys(mt).map(t=>Dl(t))];var ql=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Te=class extends Z{constructor(){super(...arguments),this.variant=At.body1}render(){return this.element?vr`
314
314
  <${xr(this.element)}
315
315
  part="text"
316
316
  class="ft-typography ft-typography--${this.variant}">
@@ -318,7 +318,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
318
318
  </${xr(this.element)}>
319
319
  `:vr`
320
320
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
321
- `}};Te.styles=[Ml,Bl,$l,Ul,Fl,Hl,zl,Wl,Gl,jl,Vl,...Kl];Zl([C()],Te.prototype,"element",void 0);Zl([C()],Te.prototype,"variant",void 0);var Ge;(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"})(Ge||(Ge={}));function yf(t,e){let o=mt[t];return P`
321
+ `}};Te.styles=[Bl,$l,Ul,Fl,Hl,zl,Wl,Gl,jl,Vl,Kl,...Zl];ql([C()],Te.prototype,"element",void 0);ql([C()],Te.prototype,"variant",void 0);var Ge;(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"})(Ge||(Ge={}));function yf(t,e){let o=mt[t];return P`
322
322
  ${e?Oe(e):P`.ftds-typography--${Oe(t)}`} {
323
323
  font-family: ${o.fontFamily};
324
324
  font-size: ${o.fontSize};
@@ -328,7 +328,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
328
328
  text-decoration: ${o.textDecoration};
329
329
  text-transform: ${o.textCase};
330
330
  }
331
- `}var ql=[Object.keys(mt).map(t=>yf(t))];var Yl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},je=class extends Z{constructor(){super(...arguments),this.variant=Ge.body2medium}render(){return this.element?vr`
331
+ `}var Yl=[Object.keys(mt).map(t=>yf(t))];var Xl=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},je=class extends Z{constructor(){super(...arguments),this.variant=Ge.body2medium}render(){return this.element?vr`
332
332
  <${xr(this.element)}
333
333
  part="text"
334
334
  class="ftds-typography ftds-typography--${this.variant}">
@@ -336,7 +336,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
336
336
  </${xr(this.element)}>
337
337
  `:vr`
338
338
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
339
- `}};je.styles=[...ql];Yl([C()],je.prototype,"element",void 0);Yl([C()],je.prototype,"variant",void 0);oe("ft-typography")(Te);oe("ftds-typography")(je);var Lr;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Lr||(Lr={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var BC=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var $C={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ie={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Xl=[P`
339
+ `}};je.styles=[...Yl];Xl([C()],je.prototype,"element",void 0);Xl([C()],je.prototype,"variant",void 0);oe("ft-typography")(Te);oe("ftds-typography")(je);var Lr;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Lr||(Lr={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var BC=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var $C={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ie={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Jl=[P`
340
340
  :host, i.ft-icon {
341
341
  display: inline-flex;
342
342
  align-items: center;
@@ -389,7 +389,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
389
389
  ${oi(this.resolvedIcon)}
390
390
  <slot ?hidden=${o}></slot>
391
391
  </i>
392
- `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Me.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Me.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=Lr[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=Xl;lo([C()],ye.prototype,"variant",void 0);lo([C()],ye.prototype,"value",void 0);lo([C({reflect:!0,attribute:"aria-hidden"})],ye.prototype,"ariaHidden",void 0);lo([Q()],ye.prototype,"resolvedIcon",void 0);lo([pe("slot")],ye.prototype,"slottedContent",void 0);oe("ft-icon")(ye);var re={color:r.extend("--ft-loader-color","",z.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},Jl=P`
392
+ `}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case Me.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Me.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=Lr[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=Jl;lo([C()],ye.prototype,"variant",void 0);lo([C()],ye.prototype,"value",void 0);lo([C({reflect:!0,attribute:"aria-hidden"})],ye.prototype,"ariaHidden",void 0);lo([Q()],ye.prototype,"resolvedIcon",void 0);lo([pe("slot")],ye.prototype,"slottedContent",void 0);oe("ft-icon")(ye);var re={color:r.extend("--ft-loader-color","",z.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},Ql=P`
393
393
  :host {
394
394
  line-height: 0;
395
395
  }
@@ -458,7 +458,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
458
458
  transform: translate(calc(0.35 * ${re.size}), 0);
459
459
  }
460
460
  }
461
- `;var Ql=r.extend("--ft-button-color","",z.colorPrimary),ne={backgroundColor:r.extend("--ft-button-background-color","",z.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",z.borderRadiusL),color:Ql,fontSize:r.extend("--ft-button-font-size","",tt.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",Ql),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(z.colorOpacityDisabled,"Design system")},ed=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",z.colorOnPrimary)),za={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",z.colorPrimary)),color:ed,rippleColor:r.extend("--ft-button-primary-ripple-color","",ed)},rt={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",z.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},td=[P`
461
+ `;var ed=r.extend("--ft-button-color","",z.colorPrimary),ne={backgroundColor:r.extend("--ft-button-background-color","",z.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",z.borderRadiusL),color:ed,fontSize:r.extend("--ft-button-font-size","",tt.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",ed),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(z.colorOpacityDisabled,"Design system")},td=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",z.colorOnPrimary)),za={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",z.colorPrimary)),color:td,rippleColor:r.extend("--ft-button-primary-ripple-color","",td)},rt={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",z.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},rd=[P`
462
462
  :host {
463
463
  display: inline-block;
464
464
  max-width: 100%;
@@ -595,7 +595,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
595
595
  ${O(re.size,ne.iconSize)};
596
596
  ${O(re.color,"var(--button-internal-color)")};
597
597
  }
598
- `,pt];var _r={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",z.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},rd=P`
598
+ `,pt];var _r={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",z.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},od=P`
599
599
  .ft-tooltip--container {
600
600
  display: block;
601
601
  }
@@ -624,10 +624,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
624
624
  position: relative;
625
625
  word-break: break-word;
626
626
  }
627
- `;var od=P`
628
- `;var mf="ft-app-info",Gt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Gt.eventName="authentication-change";var gf={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Gt(e.payload)),0))}},k=Ft.get({name:mf,reducers:gf,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 jt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var On=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:jt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):jt.await()}};var Le=class extends On{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xe,this.cache=e?i.commonCache:new Xe}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 En=class extends Le{async listMyBookmarks(){let e=k.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){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var nd,Nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},bf=Symbol("clearAfterUnitTest"),An=class extends _o(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[nd]=()=>{this.defaultMessages={},this.cache=new Xe,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.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 i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ee(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,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 i;let a=e.toLowerCase(),s=this.resolveContext(a);return new eo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},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(i){!(i instanceof It)&&o&&console.error(i)}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 i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:e})),this.dispatchEvent(new Nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Nr({loadedContexts:[e]})),this.dispatchEvent(new Nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Lo(0).then(()=>n()).catch(()=>null)))}};nd=bf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends An{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends An{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var po=window.FluidTopicsI18nService,Ga=window.FluidTopicsCustomI18nService;var ja=class{highlightHtml(e,o,n){Ki(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ja;var wn=class extends Le{async listMySearches(){let{session:e}=k.getState();return bl(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Va=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Ht.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Va;var uo=class{static get(e,o){var n,i;let a=k.getState(),{lang:s,region:c}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new gr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var Ka=class{urlToSearchRequest(e){return uo.get().parse(e)}searchRequestToUrl(e){return uo.get().serialize(e)}};window.FluidTopicsUrlService=new Ka;var Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Vt.eventName="change";var Za=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))}},id=new Za;var Rn=class t extends at{static build(){return new t(window.history,id,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,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,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),Ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Vt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,c])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[u,s,c]),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(Vt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Vt.eventName,e)}currentItem(){return Wr(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 Wr(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 Wr(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 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,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 i=o??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=Rn.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 ad=k;function sd(t,e){var o;return ad.getState().authenticationRequired&&!(!((o=ad.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends Z{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=()=>jt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe,this.cleanSessionDebouncer=new Ae,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return F`
627
+ `;var nd=P`
628
+ `;var mf="ft-app-info",Gt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Gt.eventName="authentication-change";var gf={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Gt(e.payload)),0))}},k=Ft.get({name:mf,reducers:gf,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 jt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var On=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:jt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):jt.await()}};var Le=class extends On{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[d])=>c.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xe,this.cache=e?i.commonCache:new Xe}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 En=class extends Le{async listMyBookmarks(){let e=k.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){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var id,Nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},bf=Symbol("clearAfterUnitTest"),An=class extends _o(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[id]=()=>{this.defaultMessages={},this.cache=new Xe,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.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 i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ee(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,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 i;let a=e.toLowerCase(),s=this.resolveContext(a);return new eo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},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(i){!(i instanceof It)&&o&&console.error(i)}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 i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:e})),this.dispatchEvent(new Nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Nr({loadedContexts:[e]})),this.dispatchEvent(new Nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Lo(0).then(()=>n()).catch(()=>null)))}};id=bf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends An{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends An{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var po=window.FluidTopicsI18nService,Ga=window.FluidTopicsCustomI18nService;var ja=class{highlightHtml(e,o,n){Ki(e,o,n)}};window.FluidTopicsHighlightHtmlService=new ja;var wn=class extends Le{async listMySearches(){let{session:e}=k.getState();return xl(e,se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Va=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Ht.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Va;var uo=class{static get(e,o){var n,i;let a=k.getState(),{lang:s,region:c}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new gr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var Ka=class{urlToSearchRequest(e){return uo.get().parse(e)}searchRequestToUrl(e){return uo.get().serialize(e)}};window.FluidTopicsUrlService=new Ka;var Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Vt.eventName="change";var Za=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))}},ad=new Za;var Rn=class t extends at{static build(){return new t(window.history,ad,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,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,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),Ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Vt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,c])=>{let d=o(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[u,s,c]),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(Vt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Vt.eventName,e)}currentItem(){return Wr(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 Wr(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 Wr(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 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,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 i=o??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=Rn.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 sd(t,e){let{authenticationRequired:o,session:n}=k.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},J=class extends Z{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=()=>jt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe,this.cleanSessionDebouncer=new Ae,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return F`
629
629
  <slot></slot>
630
- `}connectedCallback(){super.connectedCallback(),k.addEventListener(Gt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Gt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,c,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>po.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};J.elementDefinitions={};J.styles=od;ce([C()],J.prototype,"baseUrl",void 0);ce([C()],J.prototype,"apiIntegrationIdentifier",void 0);ce([C()],J.prototype,"apiIntegrationAppVersion",void 0);ce([C()],J.prototype,"uiLocale",void 0);ce([Ie(null)],J.prototype,"availableUiLocales",void 0);ce([Ie(null)],J.prototype,"metadataConfiguration",void 0);ce([C({type:Boolean})],J.prototype,"editorMode",void 0);ce([C({type:Boolean})],J.prototype,"noCustom",void 0);ce([C({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);ce([C({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);ce([C({type:Boolean})],J.prototype,"withManualResources",void 0);ce([C({type:Boolean})],J.prototype,"navigatorOnline",void 0);ce([C({type:Boolean})],J.prototype,"forcedOffline",void 0);ce([C({type:Object})],J.prototype,"apiProvider",void 0);ce([C({type:Boolean})],J.prototype,"authenticationRequired",void 0);ce([Ie([])],J.prototype,"messageContexts",void 0);ce([Ie(void 0)],J.prototype,"session",void 0);ce([Q()],J.prototype,"localesConfiguration",void 0);ce([Q()],J.prototype,"availableContentLocales",void 0);var Tn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},FE=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(k)}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(c=>c.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>Ht.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Tn([C({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Tn([C({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Tn([sr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Tn([sr({store:k.name})],e.prototype,"uiLocale",void 0),e});var Ln=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var _n=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var xf="ft-user-assets",vf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(ke).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:i}=e.payload;Ya(t,o,[...qa(t,o),i]),cd(t,o,1,n),ld(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;Ya(t,o,qa(t,o).map(i=>i.id===n.id?n:i)),ld(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;Ya(t,o,qa(t,o).filter(a=>a.id!==i)),cd(t,o,-1,n)}},dd={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},qa=(t,e)=>{var o;let n=dd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},Ya=(t,e,o)=>{let n=dd[e];n&&(t[n]=o)},cd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===ke.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},ld=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},_e=Ft.get({name:xf,reducers:vf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xa=class{constructor(e=new Ln,o=new _n){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new wn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((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(),_e.actions.clearAssetCount(),_e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();_e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&_e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&_e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(_e.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&o&&_e.actions.clearBookmarkCountByMap(),_e.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;_e.actions.bookmarks(o)}}},Sf=new Xa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sf);oe("ft-app-context")(J);var Ja=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-]+$/)}},Ir=new Ja;var Cf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ho=Symbol("i18nAttributes"),pd=Symbol("i18nListAttributes"),ud=Symbol("i18nProperties"),Nn=Symbol("i18nContexts"),fo=Symbol("i18nUnsubs"),fd=fe(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(a){return a??this.useCustomMessageContexts?Ga:po}i18n(a){let{context:s,key:c,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,c,...y)}return d}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ir.isI18nKey(a)){let[c,d]=a.split(".");return this.i18n({custom:!0,context:c,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,d)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[ho])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(c=this[pd])===null||c===void 0||c.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[ud])===null||s===void 0||s.forEach((c,d)=>{a(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let d=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Nn].set(d,{isCustomContext:c}),this[fo].has(d)||this[fo].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(a){return this[Nn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Nn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fo].forEach(a=>a()),this[fo].clear()}}return e=Nn,o=fo,Cf([C({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),In=class extends fd(Z){},Pn=class extends fd(oo){};var Qa=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Ir.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Of=new Qa;var hd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:it,converter:Ir,...e}),o[ho]=(i=o[ho])!==null&&i!==void 0?i:new Map,o[ho].set(n,t??{})};var yd=P`
630
+ `}connectedCallback(){super.connectedCallback(),k.addEventListener(Gt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Gt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,c,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>po.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.actions.availableContentLocales((d=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>sd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};J.elementDefinitions={};J.styles=nd;ce([C()],J.prototype,"baseUrl",void 0);ce([C()],J.prototype,"apiIntegrationIdentifier",void 0);ce([C()],J.prototype,"apiIntegrationAppVersion",void 0);ce([C()],J.prototype,"uiLocale",void 0);ce([Ie(null)],J.prototype,"availableUiLocales",void 0);ce([Ie(null)],J.prototype,"metadataConfiguration",void 0);ce([C({type:Boolean})],J.prototype,"editorMode",void 0);ce([C({type:Boolean})],J.prototype,"noCustom",void 0);ce([C({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);ce([C({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);ce([C({type:Boolean})],J.prototype,"withManualResources",void 0);ce([C({type:Boolean})],J.prototype,"navigatorOnline",void 0);ce([C({type:Boolean})],J.prototype,"forcedOffline",void 0);ce([C({type:Object})],J.prototype,"apiProvider",void 0);ce([C({type:Boolean})],J.prototype,"authenticationRequired",void 0);ce([Ie([])],J.prototype,"messageContexts",void 0);ce([Ie(void 0)],J.prototype,"session",void 0);ce([Q()],J.prototype,"localesConfiguration",void 0);ce([Q()],J.prototype,"availableContentLocales",void 0);var Tn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},FE=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(k)}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(c=>c.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>Ht.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Tn([C({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Tn([C({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Tn([sr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Tn([sr({store:k.name})],e.prototype,"uiLocale",void 0),e});var Ln=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var _n=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var xf="ft-user-assets",vf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(ke).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:i}=e.payload;Ya(t,o,[...qa(t,o),i]),cd(t,o,1,n),ld(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;Ya(t,o,qa(t,o).map(i=>i.id===n.id?n:i)),ld(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;Ya(t,o,qa(t,o).filter(a=>a.id!==i)),cd(t,o,-1,n)}},dd={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},qa=(t,e)=>{var o;let n=dd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},Ya=(t,e,o)=>{let n=dd[e];n&&(t[n]=o)},cd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===ke.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},ld=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},_e=Ft.get({name:xf,reducers:vf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xa=class{constructor(e=new Ln,o=new _n){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new En,this.savedSearchesService=new wn,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((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(),_e.actions.clearAssetCount(),_e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();_e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&_e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&_e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(_e.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&o&&_e.actions.clearBookmarkCountByMap(),_e.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;_e.actions.bookmarks(o)}}},Sf=new Xa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sf);oe("ft-app-context")(J);var Ja=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-]+$/)}},Ir=new Ja;var Cf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ho=Symbol("i18nAttributes"),pd=Symbol("i18nListAttributes"),ud=Symbol("i18nProperties"),Nn=Symbol("i18nContexts"),fo=Symbol("i18nUnsubs"),fd=fe(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(a){return a??this.useCustomMessageContexts?Ga:po}i18n(a){let{context:s,key:c,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,c,...y)}return d}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ir.isI18nKey(a)){let[c,d]=a.split(".");return this.i18n({custom:!0,context:c,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,d)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let d=this,u=(h,f,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[ho])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(c=this[pd])===null||c===void 0||c.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[ud])===null||s===void 0||s.forEach((c,d)=>{a(c,d)&&(this[d]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let d=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Nn].set(d,{isCustomContext:c}),this[fo].has(d)||this[fo].set(d,this.getI18nService(c).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(c).prepareContext(d,s)}hasI18nContext(a){return this[Nn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Nn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fo].forEach(a=>a()),this[fo].clear()}}return e=Nn,o=fo,Cf([C({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),In=class extends fd(Z){},Pn=class extends fd(oo){};var Qa=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Ir.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Of=new Qa;var hd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:it,converter:Ir,...e}),o[ho]=(i=o[ho])!==null&&i!==void 0?i:new Map,o[ho].set(n,t??{})};var yd=P`
631
631
  `;var yo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ve=class extends Pn{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":G:F`
632
632
  <span class="ft-i18n">
633
633
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -647,14 +647,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
647
647
  </div>
648
648
  </div>
649
649
  </div>
650
- `}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(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),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(o=>o.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="",Ui(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||si(e,this.ignoreMatchingElements,this.eventsTarget)}};le.elementDefinitions={"ft-typography":Te};le.styles=rd;Ke([hd()],le.prototype,"text",void 0);Ke([C({type:Boolean})],le.prototype,"manual",void 0);Ke([C({type:Boolean})],le.prototype,"inline",void 0);Ke([No()],le.prototype,"delay",void 0);Ke([C()],le.prototype,"position",void 0);Ke([Ie([])],le.prototype,"ignoreMatchingElements",void 0);Ke([Jn()],le.prototype,"slotNodes",void 0);Ke([pe(".ft-tooltip--container")],le.prototype,"container",void 0);Ke([pe(".ft-tooltip")],le.prototype,"tooltip",void 0);Ke([pe(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0);Ke([Q()],le.prototype,"visible",void 0);oe("ft-tooltip")(le);var Kt=class extends Z{render(){return F`
650
+ `}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(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),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(o=>o.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="",Ui(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${z.transitionDuration}, left ${z.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||si(e,this.ignoreMatchingElements,this.eventsTarget)}};le.elementDefinitions={"ft-typography":Te};le.styles=od;Ke([hd()],le.prototype,"text",void 0);Ke([C({type:Boolean})],le.prototype,"manual",void 0);Ke([C({type:Boolean})],le.prototype,"inline",void 0);Ke([No()],le.prototype,"delay",void 0);Ke([C()],le.prototype,"position",void 0);Ke([Ie([])],le.prototype,"ignoreMatchingElements",void 0);Ke([Jn()],le.prototype,"slotNodes",void 0);Ke([pe(".ft-tooltip--container")],le.prototype,"container",void 0);Ke([pe(".ft-tooltip")],le.prototype,"tooltip",void 0);Ke([pe(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0);Ke([Q()],le.prototype,"visible",void 0);oe("ft-tooltip")(le);var Kt=class extends Z{render(){return F`
651
651
  <div class="ft-loader">
652
652
  <div></div>
653
653
  <div></div>
654
654
  <div></div>
655
655
  <div></div>
656
656
  </div>
657
- `}};Kt.styles=Jl;oe("ft-loader")(Kt);var es=t=>t??G;var de=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Y=class extends Ta(Z){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=F`
657
+ `}};Kt.styles=Ql;oe("ft-loader")(Kt);var es=t=>t??G;var de=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Y=class extends Ta(Z){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=F`
658
658
  <ft-ripple part="ripple"
659
659
  ?disabled=${this.isDisabled()}
660
660
  ?activated=${this.activated}
@@ -696,7 +696,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
696
696
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
697
697
  `:F`
698
698
  <slot part="icon" name="icon"></slot>
699
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Qt(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":te,"ft-tooltip":le,"ft-icon":ye,"ft-loader":Kt};de([C()],Y.prototype,"href",void 0);de([C()],Y.prototype,"target",void 0);de([C()],Y.prototype,"type",void 0);de([C({type:Boolean})],Y.prototype,"disabled",void 0);de([C()],Y.prototype,"label",void 0);de([C()],Y.prototype,"icon",void 0);de([C()],Y.prototype,"iconVariant",void 0);de([C({type:Boolean})],Y.prototype,"trailingIcon",void 0);de([C({type:Boolean})],Y.prototype,"loading",void 0);de([C({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);de([C()],Y.prototype,"ariaHasPopup",void 0);de([C({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);de([C()],Y.prototype,"tooltipPosition",void 0);de([C({type:Boolean})],Y.prototype,"hideTooltip",void 0);de([C({type:Boolean})],Y.prototype,"forceTooltip",void 0);de([C({type:Boolean})],Y.prototype,"activated",void 0);de([pe(".ft-button")],Y.prototype,"button",void 0);de([pe(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);de([pe("[part=tooltip]")],Y.prototype,"tooltip",void 0);var kn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return At.button}};Be.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[Qr,td];kn([C({type:Boolean})],Be.prototype,"primary",void 0);kn([C({type:Boolean})],Be.prototype,"outlined",void 0);kn([C({type:Boolean})],Be.prototype,"dense",void 0);kn([C({type:Boolean})],Be.prototype,"round",void 0);var ts={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},md=[P`
699
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Qt(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":te,"ft-tooltip":le,"ft-icon":ye,"ft-loader":Kt};de([C()],Y.prototype,"href",void 0);de([C()],Y.prototype,"target",void 0);de([C()],Y.prototype,"type",void 0);de([C({type:Boolean})],Y.prototype,"disabled",void 0);de([C()],Y.prototype,"label",void 0);de([C()],Y.prototype,"icon",void 0);de([C()],Y.prototype,"iconVariant",void 0);de([C({type:Boolean})],Y.prototype,"trailingIcon",void 0);de([C({type:Boolean})],Y.prototype,"loading",void 0);de([C({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);de([C()],Y.prototype,"ariaHasPopup",void 0);de([C({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);de([C()],Y.prototype,"tooltipPosition",void 0);de([C({type:Boolean})],Y.prototype,"hideTooltip",void 0);de([C({type:Boolean})],Y.prototype,"forceTooltip",void 0);de([C({type:Boolean})],Y.prototype,"activated",void 0);de([pe(".ft-button")],Y.prototype,"button",void 0);de([pe(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);de([pe("[part=tooltip]")],Y.prototype,"tooltip",void 0);var kn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return At.button}};Be.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[Qr,rd];kn([C({type:Boolean})],Be.prototype,"primary",void 0);kn([C({type:Boolean})],Be.prototype,"outlined",void 0);kn([C({type:Boolean})],Be.prototype,"dense",void 0);kn([C({type:Boolean})],Be.prototype,"round",void 0);var ts={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},md=[P`
700
700
  :host {
701
701
  display: inline-block;
702
702
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chip",
3
- "version": "1.3.54",
3
+ "version": "1.3.55",
4
4
  "description": "A generic Fluid Topics chip",
5
5
  "keywords": [
6
6
  "Lit"
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@fluid-topics/design-system-variables": "2.53.1",
23
- "@fluid-topics/ft-icon": "1.3.54",
24
- "@fluid-topics/ft-ripple": "1.3.54",
25
- "@fluid-topics/ft-typography": "1.3.54",
26
- "@fluid-topics/ft-wc-utils": "1.3.54",
23
+ "@fluid-topics/ft-icon": "1.3.55",
24
+ "@fluid-topics/ft-ripple": "1.3.55",
25
+ "@fluid-topics/ft-typography": "1.3.55",
26
+ "@fluid-topics/ft-wc-utils": "1.3.55",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "cf94f6196c0b97b6f3ee585302a0ffe35c442f32"
29
+ "gitHead": "4b1a60c10c8b8d68e0b9075038c0508a94ff7d38"
30
30
  }