@fluid-topics/ft-search-period-filter 1.3.49 → 1.3.51
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.
|
@@ -540,7 +540,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
540
540
|
word-break: break-word;
|
|
541
541
|
}
|
|
542
542
|
`;var Ns=["top","right","bottom","left"],Ls=["start","end"],mi=Ns.reduce((t,e)=>t.concat(e,e+"-"+Ls[0],e+"-"+Ls[1]),[]),Is=Math.min,_s=Math.max;var eu={left:"right",right:"left",bottom:"top",top:"bottom"},tu={start:"end",end:"start"};function gi(t,e,o){return _s(t,Is(e,o))}function No(t,e){return typeof t=="function"?t(e):t}function _r(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function bi(t){return t==="x"?"y":"x"}function xi(t){return t==="y"?"height":"width"}function Io(t){return["top","bottom"].includes(_r(t))?"y":"x"}function vi(t){return bi(Io(t))}function ks(t,e,o){o===void 0&&(o=!1);let n=Lt(t),i=vi(t),a=xi(i),s=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=yi(s)),[s,yi(s)]}function Ps(t){return t.replace(/start|end/g,e=>tu[e])}function yi(t){return t.replace(/left|right|bottom|top/g,e=>eu[e])}function ru(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ds(t){return typeof t!="number"?ru(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){let{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function Bs(t,e,o){let{reference:n,floating:i}=t,a=Io(e),s=vi(e),c=xi(s),u=_r(e),p=a==="y",m=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,b=n[c]/2-i[c]/2,S;switch(u){case"top":S={x:m,y:n.y-i.height};break;case"bottom":S={x:m,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-i.width,y:h};break;default:S={x:n.x,y:n.y}}switch(Lt(e)){case"start":S[s]-=b*(o&&p?-1:1);break;case"end":S[s]+=b*(o&&p?-1:1);break}return S}var $s=async(t,e,o)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:m,y:h}=Bs(p,n,u),b=n,S={},v=0;for(let E=0;E<c.length;E++){let{name:I,fn:N}=c[E],{x:_,y:P,data:M,reset:F}=await N({x:m,y:h,initialPlacement:n,placement:b,strategy:i,middlewareData:S,rects:p,platform:s,elements:{reference:t,floating:e}});m=_??m,h=P??h,S={...S,[I]:{...S[I],...M}},F&&v<=50&&(v++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(p=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):F.rects),{x:m,y:h}=Bs(p,b,u)),E=-1)}return{x:m,y:h,placement:b,strategy:i,middlewareData:S}};async function Si(t,e){var o;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:b=!1,padding:S=0}=No(e,t),v=Ds(S),I=c[b?h==="floating"?"reference":"floating":h],N=Jt(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(I)))==null||o?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:m,strategy:u})),_=h==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),M=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},F=Jt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:P,strategy:u}):_);return{top:(N.top-F.top+v.top)/M.y,bottom:(F.bottom-N.bottom+v.bottom)/M.y,left:(N.left-F.left+v.left)/M.x,right:(F.right-N.right+v.right)/M.x}}function ou(t,e,o){return(t?[...o.filter(i=>Lt(i)===t),...o.filter(i=>Lt(i)!==t)]:o.filter(i=>_r(i)===i)).filter(i=>t?Lt(i)===t||(e?Ps(i)!==i:!1):!0)}var Oi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,i;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:b=mi,autoAlignment:S=!0,...v}=No(t,e),E=h!==void 0||b===mi?ou(h||null,S,b):b,I=await Si(e,v),N=((o=s.autoPlacement)==null?void 0:o.index)||0,_=E[N];if(_==null)return{};let P=ks(_,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==_)return{reset:{placement:E[0]}};let M=[I[_r(_)],I[P[0]],I[P[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:M}],Re=E[N+1];if(Re)return{data:{index:N+1,overflows:F},reset:{placement:Re}};let nt=F.map(fe=>{let y=Lt(fe.placement);return[fe.placement,y&&m?fe.overflows.slice(0,2).reduce((x,k)=>x+k,0):fe.overflows[0],fe.overflows]}).sort((fe,y)=>fe[1]-y[1]),it=((i=nt.filter(fe=>fe[2].slice(0,Lt(fe[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||nt[0][0];return it!==c?{data:{index:N+1,overflows:F},reset:{placement:it}}:{}}}};var Ci=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:I=>{let{x:N,y:_}=I;return{x:N,y:_}}},...u}=No(t,e),p={x:o,y:n},m=await Si(e,u),h=Io(_r(i)),b=bi(h),S=p[b],v=p[h];if(a){let I=b==="y"?"top":"left",N=b==="y"?"bottom":"right",_=S+m[I],P=S-m[N];S=gi(_,S,P)}if(s){let I=h==="y"?"top":"left",N=h==="y"?"bottom":"right",_=v+m[I],P=v-m[N];v=gi(_,v,P)}let E=c.fn({...e,[b]:S,[h]:v});return{...E,data:{x:E.x-o,y:E.y-n,enabled:{[b]:a,[h]:s}}}}}};var Ei=Math.min,kr=Math.max,oo=Math.round;var Ot=t=>({x:t,y:t});function Ct(t){return Fs(t)?(t.nodeName||"").toLowerCase():"#document"}function Le(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Et(t){var e;return(e=(Fs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fs(t){return t instanceof Node||t instanceof Le(t).Node}function ct(t){return t instanceof Element||t instanceof Le(t).Element}function Ye(t){return t instanceof HTMLElement||t instanceof Le(t).HTMLElement}function Ms(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Le(t).ShadowRoot}function Pr(t){let{overflow:e,overflowX:o,overflowY:n,display:i}=De(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Us(t){return["table","td","th"].includes(Ct(t))}function ko(t){let e=Po(),o=De(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function zs(t){let e=er(t);for(;Ye(e)&&!no(e);){if(ko(e))return e;e=er(e)}return null}function Po(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function no(t){return["html","body","#document"].includes(Ct(t))}function De(t){return Le(t).getComputedStyle(t)}function io(t){return ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function er(t){if(Ct(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ms(t)&&t.host||Et(t);return Ms(e)?e.host:e}function Hs(t){let e=er(t);return no(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ye(e)&&Pr(e)?e:Hs(e)}function _o(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let i=Hs(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Le(i);return a?e.concat(s,s.visualViewport||[],Pr(i)?i:[],s.frameElement&&o?_o(s.frameElement):[]):e.concat(i,_o(i,[],o))}function js(t){let e=De(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Ye(t),a=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=oo(o)!==a||oo(n)!==s;return c&&(o=a,n=s),{width:o,height:n,$:c}}function Vs(t){return ct(t)?t:t.contextElement}function Dr(t){let e=Vs(t);if(!Ye(e))return Ot(1);let o=e.getBoundingClientRect(),{width:n,height:i,$:a}=js(e),s=(a?oo(o.width):o.width)/n,c=(a?oo(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var au=Ot(0);function Ks(t){let e=Le(t);return!Po()||!e.visualViewport?au:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function su(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Le(t)?!1:e}function ao(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let i=t.getBoundingClientRect(),a=Vs(t),s=Ot(1);e&&(n?ct(n)&&(s=Dr(n)):s=Dr(t));let c=su(a,o,n)?Ks(a):Ot(0),u=(i.left+c.x)/s.x,p=(i.top+c.y)/s.y,m=i.width/s.x,h=i.height/s.y;if(a){let b=Le(a),S=n&&ct(n)?Le(n):n,v=b.frameElement;for(;v&&n&&S!==b;){let E=Dr(v),I=v.getBoundingClientRect(),N=De(v),_=I.left+(v.clientLeft+parseFloat(N.paddingLeft))*E.x,P=I.top+(v.clientTop+parseFloat(N.paddingTop))*E.y;u*=E.x,p*=E.y,m*=E.x,h*=E.y,u+=_,p+=P,v=Le(v).frameElement}}return Jt({width:m,height:h,x:u,y:p})}function lu(t){let{rect:e,offsetParent:o,strategy:n}=t,i=Ye(o),a=Et(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Ot(1),u=Ot(0);if((i||!i&&n!=="fixed")&&((Ct(o)!=="body"||Pr(a))&&(s=io(o)),Ye(o))){let p=ao(o);c=Dr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function cu(t){return Array.from(t.getClientRects())}function Zs(t){return ao(Et(t)).left+io(t).scrollLeft}function du(t){let e=Et(t),o=io(t),n=t.ownerDocument.body,i=kr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=kr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+Zs(t),c=-o.scrollTop;return De(n).direction==="rtl"&&(s+=kr(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function uu(t,e){let o=Le(t),n=Et(t),i=o.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,u=0;if(i){a=i.width,s=i.height;let p=Po();(!p||p&&e==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:c,y:u}}function pu(t,e){let o=ao(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,a=Ye(t)?Dr(t):Ot(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,u=i*a.x,p=n*a.y;return{width:s,height:c,x:u,y:p}}function Ws(t,e,o){let n;if(e==="viewport")n=uu(t,o);else if(e==="document")n=du(Et(t));else if(ct(e))n=pu(e,o);else{let i=Ks(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Jt(n)}function qs(t,e){let o=er(t);return o===e||!ct(o)||no(o)?!1:De(o).position==="fixed"||qs(o,e)}function fu(t,e){let o=e.get(t);if(o)return o;let n=_o(t,[],!1).filter(c=>ct(c)&&Ct(c)!=="body"),i=null,a=De(t).position==="fixed",s=a?er(t):t;for(;ct(s)&&!no(s);){let c=De(s),u=ko(s);!u&&c.position==="fixed"&&(i=null),(a?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pr(s)&&!u&&qs(t,s))?n=n.filter(m=>m!==s):i=c,s=er(s)}return e.set(t,n),n}function hu(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t,s=[...o==="clippingAncestors"?fu(e,this._c):[].concat(o),n],c=s[0],u=s.reduce((p,m)=>{let h=Ws(e,m,i);return p.top=kr(h.top,p.top),p.right=Ei(h.right,p.right),p.bottom=Ei(h.bottom,p.bottom),p.left=kr(h.left,p.left),p},Ws(e,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function yu(t){return js(t)}function mu(t,e,o){let n=Ye(e),i=Et(e),a=o==="fixed",s=ao(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=Ot(0);if(n||!n&&!a)if((Ct(e)!=="body"||Pr(i))&&(c=io(e)),n){let p=ao(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else i&&(u.x=Zs(i));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Gs(t,e){return!Ye(t)||De(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ys(t,e){let o=Le(t);if(!Ye(t))return o;let n=Gs(t,e);for(;n&&Us(n)&&De(n).position==="static";)n=Gs(n,e);return n&&(Ct(n)==="html"||Ct(n)==="body"&&De(n).position==="static"&&!ko(n))?o:n||zs(t)||o}var gu=async function(t){let{reference:e,floating:o,strategy:n}=t,i=this.getOffsetParent||Ys,a=this.getDimensions;return{reference:mu(e,await i(o),n),floating:{x:0,y:0,...await a(o)}}};function bu(t){return De(t).direction==="rtl"}var Do={convertOffsetParentRelativeRectToViewportRelativeRect:lu,getDocumentElement:Et,getClippingRect:hu,getOffsetParent:Ys,getElementRects:gu,getClientRects:cu,getDimensions:yu,getScale:Dr,isElement:ct,isRTL:bu};var Xs=(t,e,o)=>{let n=new Map,i={platform:Do,...o},a={...i.platform,_c:n};return $s(t,e,{...i,platform:a})};function Qs(t){return xu(t)}function Ai(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function xu(t){for(let e=t;e;e=Ai(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ai(t);e;e=Ai(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Js(t,e,o){return Xs(t,e,{platform:{...Do,getOffsetParent:n=>Do.getOffsetParent(n,Qs)},middleware:[Ci({crossAxis:!0}),Oi({allowedPlacements:[o]})]})}var Kr=g(R());var Dc=g(R());var Fl=g($()),me=g(Z()),Xe=g(R());var el=g($());var tl=el.css`
|
|
543
|
-
`;var Bo=g(R()),vu="ft-app-info",tr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};tr.eventName="authentication-change";var Su={session:(t,e)=>{(0,Bo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>L.dispatchEvent(new tr(e.payload)),0))}},L=Bo.FtReduxStore.get({name:vu,reducers:Su,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 wi=g(R());var rr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=L.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=L.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var $o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:rr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):rr.await()}};var Ne=class extends $o{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],[u])=>c.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new wi.CacheRegistry,this.cache=e?i.commonCache:new wi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Mo=class extends Ne{async listMyBookmarks(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ri=class{addCommand(e,o=!1){L.commands.add(e,o)}consumeCommand(e){return L.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ri;var He=g(R());var rl,Br=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ou=Symbol("clearAfterUnitTest"),Fo=class extends(0,He.withEventBus)(Ne){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[rl]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=L.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};(0,He.deepEqual)(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 He.ParametrizedLabelResolver((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 He.CanceledPromiseError)&&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 Br({loadedContexts:e})),this.dispatchEvent(new Br({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Br({loadedContexts:[e]})),this.dispatchEvent(new Br({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};rl=Ou;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,Uo=window.FluidTopicsCustomI18nService;var ol=g(R()),Ti=class{highlightHtml(e,o,n){(0,ol.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ti;var Eu=g(il(),1);var al;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(al||(al={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(sl||(sl={}));var ll;(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"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var dl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dl||(dl={}));var ul;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ul||(ul={}));var pl;(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__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"})(pl||(pl={}));var fl;(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"})(fl||(fl={}));var hl;(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"})(hl||(hl={}));var yl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yl||(yl={}));var ml;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ml||(ml={}));var gl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gl||(gl={}));var bl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bl||(bl={}));var xl;(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"})(xl||(xl={}));var Li;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Li||(Li={}));var vl;(function(t){t.ASC="ASC",t.DESC="DESC"})(vl||(vl={}));var Sl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sl||(Sl={}));var Ni;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ni||(Ni={}));var Ol;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ol||(Ol={}));var Cl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cl||(Cl={}));var El;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(El||(El={}));var Wo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wo||(Wo={}));var Al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Al||(Al={}));var Ii;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ii||(Ii={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var ae;(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"})(ae||(ae={}));var We;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(We||(We={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var Ll;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ll||(Ll={}));var Nl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Nl||(Nl={}));var Il;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Il||(Il={}));var Cu={[ae.PERSONAL_BOOK_SHARE_USER]:[ae.PERSONAL_BOOK_USER],[ae.HTML_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.PDF_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.KHUB_ADMIN]:[ae.CONTENT_PUBLISHER],[ae.ADMIN]:[ae.KHUB_ADMIN,ae.USERS_ADMIN,ae.PORTAL_ADMIN],[ae.GENERATIVE_AI_EXPORT_USER]:[ae.GENERATIVE_AI_USER]};function _l(t,e){return t===e||(Cu[t]??[]).some(o=>_l(o,e))}function kl(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=>_l(n,e))}var Go=class extends Ne{async listMySearches(){let{session:e}=L.getState();return kl(e,ae.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Pl=g(R());var _i=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=L.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 Pl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new _i;var Dl=g(R());var so=class{static get(e,o){var n,i;let a=L.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 Dl.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var ki=class{urlToSearchRequest(e){return so.get().parse(e)}searchRequestToUrl(e){return so.get().serialize(e)}};window.FluidTopicsUrlService=new ki;var It=g(R());var or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};or.eventName="change";var Pi=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))}},Bl=new Pi;var jo=class t extends It.WithEventBus{static build(){return new t(window.history,Bl,()=>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),(0,It.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new or(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let 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(or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(or.eventName,e)}currentItem(){return(0,It.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,It.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,It.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let 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=jo.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 $l=L;function Ml(t,e){var o;return $l.getState().authenticationRequired&&!(!((o=$l.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var se=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},q=class extends Xe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>rr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Fl.html`
|
|
543
|
+
`;var Bo=g(R()),vu="ft-app-info",tr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};tr.eventName="authentication-change";var Su={session:(t,e)=>{(0,Bo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>L.dispatchEvent(new tr(e.payload)),0))}},L=Bo.FtReduxStore.get({name:vu,reducers:Su,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 wi=g(R());var rr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=L.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=L.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var $o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:rr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):rr.await()}};var Ne=class extends $o{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],[u])=>c.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new wi.CacheRegistry,this.cache=e?i.commonCache:new wi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Mo=class extends Ne{async listMyBookmarks(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ri=class{addCommand(e,o=!1){L.commands.add(e,o)}consumeCommand(e){return L.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ri;var He=g(R());var rl,Br=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ou=Symbol("clearAfterUnitTest"),Fo=class extends(0,He.withEventBus)(Ne){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[rl]=()=>{this.defaultMessages={},this.cache=new He.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=L.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};(0,He.deepEqual)(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 He.ParametrizedLabelResolver((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 He.CanceledPromiseError)&&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 Br({loadedContexts:e})),this.dispatchEvent(new Br({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Br({loadedContexts:[e]})),this.dispatchEvent(new Br({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,He.delay)(0).then(()=>n()).catch(()=>null)))}};rl=Ou;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,Uo=window.FluidTopicsCustomI18nService;var ol=g(R()),Ti=class{highlightHtml(e,o,n){(0,ol.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ti;var Eu=g(il(),1);var al;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(al||(al={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(sl||(sl={}));var ll;(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"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var dl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dl||(dl={}));var ul;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ul||(ul={}));var pl;(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"})(pl||(pl={}));var fl;(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"})(fl||(fl={}));var hl;(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"})(hl||(hl={}));var yl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yl||(yl={}));var ml;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ml||(ml={}));var gl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gl||(gl={}));var bl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bl||(bl={}));var xl;(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"})(xl||(xl={}));var Li;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Li||(Li={}));var vl;(function(t){t.ASC="ASC",t.DESC="DESC"})(vl||(vl={}));var Sl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sl||(Sl={}));var Ni;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ni||(Ni={}));var Ol;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ol||(Ol={}));var Cl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Cl||(Cl={}));var El;(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"})(El||(El={}));var Wo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wo||(Wo={}));var Al;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Al||(Al={}));var Ii;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ii||(Ii={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var ae;(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"})(ae||(ae={}));var We;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(We||(We={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Tl||(Tl={}));var Ll;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ll||(Ll={}));var Nl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Nl||(Nl={}));var Il;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Il||(Il={}));var Cu={[ae.PERSONAL_BOOK_SHARE_USER]:[ae.PERSONAL_BOOK_USER],[ae.HTML_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.PDF_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.KHUB_ADMIN]:[ae.CONTENT_PUBLISHER],[ae.ADMIN]:[ae.KHUB_ADMIN,ae.USERS_ADMIN,ae.PORTAL_ADMIN],[ae.GENERATIVE_AI_EXPORT_USER]:[ae.GENERATIVE_AI_USER]};function _l(t,e){return t===e||(Cu[t]??[]).some(o=>_l(o,e))}function kl(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=>_l(n,e))}var Go=class extends Ne{async listMySearches(){let{session:e}=L.getState();return kl(e,ae.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Pl=g(R());var _i=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=L.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 Pl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new _i;var Dl=g(R());var so=class{static get(e,o){var n,i;let a=L.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 Dl.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var ki=class{urlToSearchRequest(e){return so.get().parse(e)}searchRequestToUrl(e){return so.get().serialize(e)}};window.FluidTopicsUrlService=new ki;var It=g(R());var or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};or.eventName="change";var Pi=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))}},Bl=new Pi;var jo=class t extends It.WithEventBus{static build(){return new t(window.history,Bl,()=>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),(0,It.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new or(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let 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(or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(or.eventName,e)}currentItem(){return(0,It.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,It.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,It.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let 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=jo.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 $l=L;function Ml(t,e){var o;return $l.getState().authenticationRequired&&!(!((o=$l.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var se=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},q=class extends Xe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>rr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Xe.CacheRegistry,this.cleanSessionDebouncer=new Xe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Fl.html`
|
|
544
544
|
<slot></slot>
|
|
545
545
|
`}connectedCallback(){super.connectedCallback(),L.addEventListener(tr.eventName,this.reloadConfiguration)}disconnectedCallback(){L.addEventListener(tr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,c,u;super.update(e),e.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&L.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&L.actions.noCustom(this.noCustom),e.has("editorMode")&&L.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&L.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>$r.addContext(p)),e.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(L.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),L.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),L.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&L.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&L.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),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",()=>Ml(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};q.elementDefinitions={};q.styles=tl;se([(0,me.property)()],q.prototype,"baseUrl",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationIdentifier",void 0);se([(0,me.property)()],q.prototype,"apiIntegrationAppVersion",void 0);se([(0,me.property)()],q.prototype,"uiLocale",void 0);se([(0,Xe.jsonProperty)(null)],q.prototype,"availableUiLocales",void 0);se([(0,Xe.jsonProperty)(null)],q.prototype,"metadataConfiguration",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"editorMode",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"noCustom",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"openExternalDocumentInNewTab",void 0);se([(0,me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],q.prototype,"noCustomComponent",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"withManualResources",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"navigatorOnline",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"forcedOffline",void 0);se([(0,me.property)({type:Object})],q.prototype,"apiProvider",void 0);se([(0,me.property)({type:Boolean})],q.prototype,"authenticationRequired",void 0);se([(0,Xe.jsonProperty)([])],q.prototype,"messageContexts",void 0);se([(0,Xe.jsonProperty)(void 0)],q.prototype,"session",void 0);se([(0,me.state)()],q.prototype,"localesConfiguration",void 0);se([(0,me.state)()],q.prototype,"availableContentLocales",void 0);var ia=g(Z());function Au(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Vo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Vo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(i=a(t),o=i.length,o!==a(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){let s=i[n];if(!Vo(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Vo(t,e){try{return Au(t,e)}catch{return!1}}function lo(t,e){return!Vo(t,e)}function Ko(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let i=e(n);return i[t]=!0,i}}var Ul=g(Z(),1);var Di=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:lo,attribute:!1,...e};(0,Ul.property)(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})}};var Zo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var nr=g(Z(),1);var zl=g(Z(),1);function Hl(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,zl.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:lo,...e??{}})}var qo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Gl=g($(),1);var Yo=globalThis,wu=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,av=Symbol();var Wl=(t,e)=>{if(wu)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),i=Yo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)}};var Xo=class extends Gl.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Wl(n,e.elementStyles),n}};function jl(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var Ur=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},ql,Vl=Symbol("constructorPrototype"),Kl=Symbol("constructorName"),Yl=Symbol("exportpartsDebouncer"),Zl=Symbol("dynamicDependenciesLoaded"),Fr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Fr.eventName="exportparts-updated";var dt=class extends Xo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ql]=new qo(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Yl].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Kl]=this.constructor.name,this[Vl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Kl]&&Object.setPrototypeOf(this,this[Vl])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Zl]||(o[Zl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Fr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Fr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Fr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];o=jl(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var o,n,i,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(a=(i=b.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(I=>I.split(":")[1]))!==null&&c!==void 0?c:[],E=[...S,...v].filter(u).map(I=>I.trim());for(let I of E)m.add(I)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...h].join(", ")}};ql=Yl;Ur([(0,nr.property)()],dt.prototype,"exportpartsPrefix",void 0);Ur([Hl([])],dt.prototype,"exportpartsPrefixes",void 0);Ur([(0,nr.property)({reflect:!0})],dt.prototype,"exportparts",void 0);Ur([(0,nr.property)()],dt.prototype,"customStylesheet",void 0);Ur([(0,nr.property)()],dt.prototype,"elementToFocus",void 0);Ur([(0,nr.state)()],dt.prototype,"useAdoptedStyleSheets",void 0);function Qo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var co=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),ir=Symbol("internalStores"),Ru=Ko(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[ir].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ir].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ir].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[ir].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[ir].delete(c)}setupStores(){this.unsubscribeFromStores(),this[ir].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[_t].has(s.store):this[_t].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[_t].set(s,c.subscribe(()=>this.updateFromStores())),this[co].set(s,[]),Qo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||c.name===p.store)){let h=b=>this[m](b);c.addEventListener(p.eventName,h),this[co].get(s).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[_t].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[_t].has(s)&&this[_t].get(s)(),this[_t].delete(s),(c=this[co].get(s))===null||c===void 0||c.forEach(u=>u()),this[co].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=_t,o=ir,n=co,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Xl=class extends Ru(dt){};function Ge(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 At(t){return!!t&&!!t[J]}function Qe(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Du}(t)||Array.isArray(t)||!!t[nc]||!!(!((e=t.constructor)===null||e===void 0)&&e[nc])||Gi(t)||ji(t))}function ar(t,e,o){o===void 0&&(o=!1),Wr(t)===0?(o?Object.keys:Hr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Wr(t){var e=t[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Gi(t)?2:ji(t)?3:0}function zr(t,e){return Wr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tu(t,e){return Wr(t)===2?t.get(e):t[e]}function ic(t,e,o){var n=Wr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ac(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Gi(t){return ku&&t instanceof Map}function ji(t){return Pu&&t instanceof Set}function kt(t){return t.o||t.t}function Vi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=cc(t);delete e[J];for(var o=Hr(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 Ki(t,e){return e===void 0&&(e=!1),Zi(t)||At(t)||!Qe(t)||(Wr(t)>1&&(t.set=t.add=t.clear=t.delete=Lu),Object.freeze(t),e&&ar(t,function(o,n){return Ki(n,!0)},!0)),t}function Lu(){Ge(2)}function Zi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Wi[t];return e||Ge(18,t),e}function Nu(t,e){Wi[t]||(Wi[t]=e)}function Ui(){return po}function Bi(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Jo(t){zi(t),t.p.forEach(Iu),t.p=null}function zi(t){t===po&&(po=t.l)}function Ql(t){return po={p:[],l:po,h:t,m:!0,_:0}}function Iu(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function $i(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||ut("ES5").S(e,t,n),n?(o[J].P&&(Jo(e),Ge(4)),Qe(t)&&(t=en(e,t),e.l||tn(e,t)),e.u&&ut("Patches").M(o[J].t,t,e.u,e.s)):t=en(e,o,[]),Jo(e),e.u&&e.v(e.u,e.s),t!==lc?t:void 0}function en(t,e,o){if(Zi(e))return e;var n=e[J];if(!n)return ar(e,function(c,u){return Jl(t,n,e,c,u,o)},!0),e;if(n.A!==t)return e;if(!n.P)return tn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Vi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ar(a,function(c,u){return Jl(t,n,i,c,u,o,s)}),tn(t,i,!1),o&&t.u&&ut("Patches").N(n,o,t.u,t.s)}return n.o}function Jl(t,e,o,n,i,a,s){if(At(i)){var c=en(t,i,a&&e&&e.i!==3&&!zr(e.R,n)?a.concat(n):void 0);if(ic(o,n,c),!At(c))return;t.m=!1}else s&&o.add(i);if(Qe(i)&&!Zi(i)){if(!t.h.D&&t._<1)return;en(t,i),e&&e.A.l||tn(t,i)}}function tn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Ki(e,o)}function Mi(t,e){var o=t[J];return(o?kt(o):t)[e]}function ec(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 Pt(t){t.P||(t.P=!0,t.l&&Pt(t.l))}function Fi(t){t.o||(t.o=Vi(t.t))}function Hi(t,e,o){var n=Gi(e)?ut("MapSet").F(e,o):ji(e)?ut("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Ui(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=c,p=fo;s&&(u=[c],p=uo);var m=Proxy.revocable(u,p),h=m.revoke,b=m.proxy;return c.k=b,c.j=h,b}(e,o):ut("ES5").J(e,o);return(o?o.A:Ui()).p.push(n),n}function _u(t){return At(t)||Ge(22,t),function e(o){if(!Qe(o))return o;var n,i=o[J],a=Wr(o);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=tc(o,a),i.I=!1}else n=tc(o,a);return ar(n,function(s,c){i&&Tu(i.t,s)===c||ic(n,s,e(c))}),a===3?new Set(n):n}(t)}function tc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vi(t)}function sc(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[J];return fo.get(p,s)},set:function(p){var m=this[J];fo.set(m,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][J];if(!u.P)switch(u.i){case 5:n(u)&&Pt(u);break;case 4:o(u)&&Pt(u)}}}function o(s){for(var c=s.t,u=s.k,p=Hr(u),m=p.length-1;m>=0;m--){var h=p[m];if(h!==J){var b=c[h];if(b===void 0&&!zr(c,h))return!0;var S=u[h],v=S&&S[J];if(v?v.t!==b:!ac(S,b))return!0}}var E=!!c[J];return p.length!==Hr(c).length+(E?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ge(3,JSON.stringify(kt(s)))}var a={};Nu("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(h,b){if(h){for(var S=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var E=cc(b);delete E[J];for(var I=Hr(E),N=0;N<I.length;N++){var _=I[N];E[_]=t(_,h||!!E[_].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(u,s),m={i:u?5:4,A:c?c.A:Ui(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,J,{value:m,writable:!0}),p},S:function(s,c,u){u?At(c)&&c[J].A===s&&e(s.p):(s.u&&function p(m){if(m&&typeof m=="object"){var h=m[J];if(h){var b=h.t,S=h.k,v=h.R,E=h.i;if(E===4)ar(S,function(M){M!==J&&(b[M]!==void 0||zr(b,M)?v[M]||p(S[M]):(v[M]=!0,Pt(h)))}),ar(b,function(M){S[M]!==void 0||zr(S,M)||(v[M]=!1,Pt(h))});else if(E===5){if(n(h)&&(Pt(h),v.length=!0),S.length<b.length)for(var I=S.length;I<b.length;I++)v[I]=!1;else for(var N=b.length;N<S.length;N++)v[N]=!0;for(var _=Math.min(S.length,b.length),P=0;P<_;P++)S.hasOwnProperty(P)||(v[P]=!0),v[P]===void 0&&p(S[P])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var rc,po,qi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ku=typeof Map<"u",Pu=typeof Set<"u",oc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",lc=qi?Symbol.for("immer-nothing"):((rc={})["immer-nothing"]=!0,rc),nc=qi?Symbol.for("immer-draftable"):"__$immer_draftable",J=qi?Symbol.for("immer-state"):"__$immer_state";var Du=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,cc=Object.getOwnPropertyDescriptors||function(t){var e={};return Hr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Wi={},fo={get:function(t,e){if(e===J)return t;var o=kt(t);if(!zr(o,e))return function(i,a,s){var c,u=ec(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!Qe(n)?n:n===Mi(t.t,e)?(Fi(t),t.o[e]=Hi(t.A.h,n,t)):n},has:function(t,e){return e in kt(t)},ownKeys:function(t){return Reflect.ownKeys(kt(t))},set:function(t,e,o){var n=ec(kt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=Mi(kt(t),e),a=i?.[J];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ac(o,i)&&(o!==void 0||zr(t.t,e)))return!0;Fi(t),Pt(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 Mi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fi(t),Pt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=kt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},uo={};ar(fo,function(t,e){uo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),uo.deleteProperty=function(t,e){return uo.set.call(this,t,e,void 0)},uo.set=function(t,e,o){return fo.set.call(this,t[0],e,o,t[0])};var Bu=function(){function t(o){var n=this;this.O=oc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var u=n;return function(E){var I=this;E===void 0&&(E=c);for(var N=arguments.length,_=Array(N>1?N-1:0),P=1;P<N;P++)_[P-1]=arguments[P];return u.produce(E,function(M){var F;return(F=a).call.apply(F,[I,M].concat(_))})}}var p;if(typeof a!="function"&&Ge(6),s!==void 0&&typeof s!="function"&&Ge(7),Qe(i)){var m=Ql(n),h=Hi(n,i,void 0),b=!0;try{p=a(h),b=!1}finally{b?Jo(m):zi(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Bi(m,s),$i(E,m)},function(E){throw Jo(m),E}):(Bi(m,s),$i(p,m))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===lc&&(p=void 0),n.D&&Ki(p,!0),s){var S=[],v=[];ut("Patches").M(i,p,S,v),s(S,v)}return p}Ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var m=arguments.length,h=Array(m>1?m-1:0),b=1;b<m;b++)h[b-1]=arguments[b];return n.produceWithPatches(p,function(S){return i.apply(void 0,[S].concat(h))})};var s,c,u=n.produce(i,a,function(p,m){s=p,c=m});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,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){Qe(o)||Ge(8),At(o)&&(o=_u(o));var n=Ql(this),i=Hi(this,o,void 0);return i[J].C=!0,zi(n),i},e.finishDraft=function(o,n){var i=o&&o[J],a=i.A;return Bi(a,n),$i(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!oc&&Ge(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=ut("Patches").$;return At(o)?s(o,n):this.produce(o,function(c){return s(c,n)})},t}(),Be=new Bu,$u=Be.produce,Sv=Be.produceWithPatches.bind(Be),Ov=Be.setAutoFreeze.bind(Be),Cv=Be.setUseProxies.bind(Be),Ev=Be.applyPatches.bind(Be),Av=Be.createDraft.bind(Be),wv=Be.finishDraft.bind(Be),rn=$u;function sr(t){"@babel/helpers - typeof";return sr=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},sr(t)}function dc(t,e){if(sr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uc(t){var e=dc(t,"string");return sr(e)=="symbol"?e:e+""}function pc(t,e,o){return(e=uc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function fc(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 Yi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?fc(Object(o),!0).forEach(function(n){pc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):fc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ve(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 hc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xi=function(){return Math.random().toString(36).substring(7).split("").join(".")},on={INIT:"@@redux/INIT"+Xi(),REPLACE:"@@redux/REPLACE"+Xi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xi()}};function Mu(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 Qi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ve(1));return o(Qi)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function m(){if(u)throw new Error(ve(3));return a}function h(E){if(typeof E!="function")throw new Error(ve(4));if(u)throw new Error(ve(5));var I=!0;return p(),c.push(E),function(){if(I){if(u)throw new Error(ve(6));I=!1,p();var _=c.indexOf(E);c.splice(_,1),s=null}}}function b(E){if(!Mu(E))throw new Error(ve(7));if(typeof E.type>"u")throw new Error(ve(8));if(u)throw new Error(ve(9));try{u=!0,a=i(a,E)}finally{u=!1}for(var I=s=c,N=0;N<I.length;N++){var _=I[N];_()}return E}function S(E){if(typeof E!="function")throw new Error(ve(10));i=E,b({type:on.REPLACE})}function v(){var E,I=h;return E={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(ve(11));function P(){_.next&&_.next(m())}P();var M=I(P);return{unsubscribe:M}}},E[hc]=function(){return this},E}return b({type:on.INIT}),n={dispatch:b,subscribe:h,getState:m,replaceReducer:S},n[hc]=v,n}function Fu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:on.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof o(void 0,{type:on.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function yc(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{Fu(o)}catch(u){c=u}return function(p,m){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var b=!1,S={},v=0;v<a.length;v++){var E=a[v],I=o[E],N=p[E],_=I(N,m);if(typeof _>"u"){var P=m&&m.type;throw new Error(ve(14))}S[E]=_,b=b||_!==N}return b=b||a.length!==Object.keys(p).length,b?S:p}}function Gr(){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 mc(){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(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=Gr.apply(void 0,c)(i.dispatch),Yi(Yi({},i),{},{dispatch:a})}}}function gc(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 bc=gc();bc.withExtraArgument=gc;var Ji=bc;var Cc=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)}}(),Uu=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(p){return function(m){return u([p,m])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(m){p=[6,m],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},zu=Object.defineProperty,Hu=Object.defineProperties,Wu=Object.getOwnPropertyDescriptors,xc=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,vc=function(t,e,o){return e in t?zu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Dt=function(t,e){for(var o in e||(e={}))Gu.call(e,o)&&vc(t,o,e[o]);if(xc)for(var n=0,i=xc(e);n<i.length;n++){var o=i[n];ju.call(e,o)&&vc(t,o,e[o])}return t},ea=function(t,e){return Hu(t,Wu(e))},Vu=function(t,e,o){return new Promise(function(n,i){var a=function(u){try{c(o.next(u))}catch(p){i(p)}},s=function(u){try{c(o.throw(u))}catch(p){i(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.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"?Gr:Gr.apply(null,arguments)},Gv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Zu(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 qu=function(t){Cc(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,jr([void 0],o[0].concat(this)))):new(e.bind.apply(e,jr([void 0],o.concat(this))))},e}(Array),Yu=function(t){Cc(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,jr([void 0],o[0].concat(this)))):new(e.bind.apply(e,jr([void 0],o.concat(this))))},e}(Array);function oa(t){return Qe(t)?rn(t,function(){}):t}function Xu(t){return typeof t=="boolean"}function Qu(){return function(e){return Ju(e)}}function Ju(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new qu;if(o&&(Xu(o)?c.push(Ji):c.push(Ji.withExtraArgument(o.extraArgument))),0){if(i)var u;if(s)var p}return c}var ta=!0;function Ec(t){var e=Qu(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,m=p===void 0?void 0:p,h=o.enhancers,b=h===void 0?void 0:h,S;if(typeof i=="function")S=i;else if(Zu(i))S=yc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!ta&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ta&&v.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=mc.apply(void 0,v),I=Gr;u&&(I=Ku(Dt({trace:!ta},typeof u=="object"&&u)));var N=new Yu(E),_=N;Array.isArray(b)?_=jr([E],b):typeof b=="function"&&(_=b(N));var P=I.apply(void 0,_);return Qi(S,m,P)}function Bt(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 Dt(Dt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ac(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 ep(t){return typeof t=="function"}function tp(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ac(e):[e,o,n],a=i[0],s=i[1],c=i[2],u;if(ep(t))u=function(){return oa(t())};else{var p=oa(t);u=function(){return p}}function m(h,b){h===void 0&&(h=u());var S=jr([a[b.type]],s.filter(function(v){var E=v.matcher;return E(b)}).map(function(v){var E=v.reducer;return E}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,E){if(E)if(At(v)){var I=v,N=E(I,b);return N===void 0?v:N}else{if(Qe(v))return rn(v,function(_){return E(_,b)});var N=E(v,b);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},h)}return m.getInitialState=u,m}function rp(t,e){return t+"/"+e}function wc(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:oa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(m){var h=n[m],b=rp(e,m),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,a[m]=S,s[b]=S,c[m]=v?Bt(b,v):Bt(b)});function u(){var m=typeof t.extraReducers=="function"?Ac(t.extraReducers):[t.extraReducers],h=m[0],b=h===void 0?{}:h,S=m[1],v=S===void 0?[]:S,E=m[2],I=E===void 0?void 0:E,N=Dt(Dt({},b),s);return tp(o,function(_){for(var P in N)_.addCase(P,N[P]);for(var M=0,F=v;M<F.length;M++){var Re=F[M];_.addMatcher(Re.matcher,Re.reducer)}I&&_.addDefaultCase(I)})}var p;return{name:e,reducer:function(m,h){return p||(p=u()),p(m,h)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var op="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",np=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=op[Math.random()*64|0];return e},ip=["name","message","stack","code"],ra=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Sc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),ap=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=ip;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Zv=function(){function t(e,o,n){var i=Bt(e+"/fulfilled",function(m,h,b,S){return{payload:m,meta:ea(Dt({},S||{}),{arg:b,requestId:h,requestStatus:"fulfilled"})}}),a=Bt(e+"/pending",function(m,h,b){return{payload:void 0,meta:ea(Dt({},b||{}),{arg:h,requestId:m,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(m,h,b,S,v){return{payload:S,error:(n&&n.serializeError||ap)(m||"Rejected"),meta:ea(Dt({},v||{}),{arg:b,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,u=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 p(m){return function(h,b,S){var v=n?.idGenerator?n.idGenerator(m):np(),E=new u,I,N=!1;function _(M){I=M,E.abort()}var P=function(){return Vu(this,null,function(){var M,F,Re,nt,Ce,it,fe;return Uu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),nt=(M=n?.condition)==null?void 0:M.call(n,m,{getState:b,extra:S}),lp(nt)?[4,nt]:[3,2];case 1:nt=y.sent(),y.label=2;case 2:if(nt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,Ce=new Promise(function(x,k){return E.signal.addEventListener("abort",function(){return k({name:"AbortError",message:I||"Aborted"})})}),h(a(v,m,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:v,arg:m},{getState:b,extra:S}))),[4,Promise.race([Ce,Promise.resolve(o(m,{dispatch:h,getState:b,extra:S,requestId:v,signal:E.signal,abort:_,rejectWithValue:function(x,k){return new ra(x,k)},fulfillWithValue:function(x,k){return new Sc(x,k)}})).then(function(x){if(x instanceof ra)throw x;return x instanceof Sc?i(x.payload,v,m,x.meta):i(x,v,m)})])];case 3:return Re=y.sent(),[3,5];case 4:return it=y.sent(),Re=it instanceof ra?s(null,v,m,it.payload,it.meta):s(it,v,m),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(Re)&&Re.meta.condition,fe||h(Re),[2,Re]}})})}();return Object.assign(P,{abort:_,requestId:v,arg:m,unwrap:function(){return P.then(sp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function sp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function lp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Rc="listener",Tc="completed",Lc="cancelled",qv="task-"+Lc,Yv="task-"+Tc,Xv=Rc+"-"+Lc,Qv=Rc+"-"+Tc;var na="listenerMiddleware";var Jv=Bt(na+"/add"),e0=Bt(na+"/removeAll"),t0=Bt(na+"/remove");var Oc,r0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Oc||(Oc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},cp=function(t){return function(e){setTimeout(e,t)}},o0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:cp(10);sc();var dp=Ko(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}),nn=class extends dp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Nc=class t extends nn{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(Qo(a))return a;if(i==null)return;let s=wc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=Ec({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});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 Zo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...m)=>{let h=p(...m.map(i));return this.reduxStore.dispatch(h),h}:m=>{this.setState({[u]:i(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var an=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 Ic=g(R()),sn=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},R0=(0,Ic.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(L)}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=>an.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return sn([(0,ia.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),sn([(0,ia.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),sn([Di({store:L.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),sn([Di({store:L.name})],e.prototype,"uiLocale",void 0),e});var dn=g(R());var ln=class extends Ne{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=L.getState().session;return!!e?.sessionAuthenticated}};var cn=class extends Ne{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=L.getState().session;return!!e?.sessionAuthenticated}};var up="ft-user-assets",pp={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(We).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;sa(t,o,[...aa(t,o),i]),_c(t,o,1,n),kc(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;sa(t,o,aa(t,o).map(i=>i.id===n.id?n:i)),kc(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;sa(t,o,aa(t,o).filter(a=>a.id!==i)),_c(t,o,-1,n)}},Pc={[We.SEARCHES]:"savedSearches",[We.BOOKMARKS]:"bookmarks",[We.BOOKS]:void 0,[We.COLLECTIONS]:void 0},aa=(t,e)=>{var o;let n=Pc[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},sa=(t,e,o)=>{let n=Pc[e];n&&(t[n]=o)},_c=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===We.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},kc=(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=dn.FtReduxStore.get({name:up,reducers:pp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(We).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),la=class{constructor(e=new ln,o=new cn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Go,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=L.getState();(0,dn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),$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===We.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)}}},fp=new la;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=fp);(0,Dc.customElement)("ft-app-context")(q);var Bc=g(Z());var ca=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-]+$/)}},Vr=new ca;var hp=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},yo=Symbol("i18nAttributes"),$c=Symbol("i18nListAttributes"),Mc=Symbol("i18nProperties"),un=Symbol("i18nContexts"),ho=Symbol("i18nUnsubs"),Zr=(0,Kr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Uo:$r}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:m,argsProvider:h}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=m??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Vr.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(m,h,b)=>b?.context&&b.key&&a(m,h,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...m})}:b;(s=this[yo])===null||s===void 0||s.forEach((m,h)=>u[h]=p(m,h,u[h])),(c=this[$c])===null||c===void 0||c.forEach((m,h)=>{var b;return u[h]=(b=u[h])===null||b===void 0?void 0:b.map(S=>p(m,h,S))})}updateI18nProperties(a){var s;(s=this[Mc])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=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 u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[un].set(u,{isCustomContext:c}),this[ho].has(u)||this[ho].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[un].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[un].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ho].forEach(a=>a()),this[ho].clear()}}return e=un,o=ho,hp([(0,Bc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),pn=class extends Zr(Kr.FtLitElement){},fn=class extends Zr(Kr.FtLitElementRedux){};var Fc=g(R());var da=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?Vr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},yp=new da;var Uc=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:Fc.hasChanged,converter:Vr,...e}),o[yo]=(i=o[yo])!==null&&i!==void 0?i:new Map,o[yo].set(n,t??{})};var Wc=g(R());var hn=g($()),yn=g(Z()),mn=g(R());var zc=g($());var Hc=zc.css`
|
|
546
546
|
`;var mo=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 fn{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":hn.nothing:hn.html`
|
|
@@ -562,7 +562,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
562
562
|
</div>
|
|
563
563
|
</div>
|
|
564
564
|
</div>
|
|
565
|
-
`}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="",Js(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 ${je.designSystemVariables.transitionDuration}, left ${je.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,je.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};le.elementDefinitions={"ft-typography":te};le.styles=Ts;et([Uc()],le.prototype,"text",void 0);et([(0,Ve.property)({type:Boolean})],le.prototype,"manual",void 0);et([(0,Ve.property)({type:Boolean})],le.prototype,"inline",void 0);et([(0,je.numberProperty)()],le.prototype,"delay",void 0);et([(0,Ve.property)()],le.prototype,"position",void 0);et([(0,je.jsonProperty)([])],le.prototype,"ignoreMatchingElements",void 0);et([(0,Ve.queryAssignedNodes)()],le.prototype,"slotNodes",void 0);et([(0,Ve.query)(".ft-tooltip--container")],le.prototype,"container",void 0);et([(0,Ve.query)(".ft-tooltip")],le.prototype,"tooltip",void 0);et([(0,Ve.query)(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0);et([(0,Ve.state)()],le.prototype,"visible",void 0);(0,jc.customElement)("ft-tooltip")(le);var Yc=g(R());var go=g($()),$t=g(Z()),Zc=g(R()),qc=g(Kc());var bn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID=""})(bn||(bn={}));var A;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(A||(A={}));var US=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var zS={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var pt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(pt||(pt={}));var bo=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},we=class extends Zc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=go.nothing}render(){let e=this.variant&&Object.values(pt).includes(this.variant)?this.variant:pt.fluid_topics,o=e!==pt.material||!!this.value;return go.html`
|
|
565
|
+
`}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="",Js(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 ${je.designSystemVariables.transitionDuration}, left ${je.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,je.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};le.elementDefinitions={"ft-typography":te};le.styles=Ts;et([Uc()],le.prototype,"text",void 0);et([(0,Ve.property)({type:Boolean})],le.prototype,"manual",void 0);et([(0,Ve.property)({type:Boolean})],le.prototype,"inline",void 0);et([(0,je.numberProperty)()],le.prototype,"delay",void 0);et([(0,Ve.property)()],le.prototype,"position",void 0);et([(0,je.jsonProperty)([])],le.prototype,"ignoreMatchingElements",void 0);et([(0,Ve.queryAssignedNodes)()],le.prototype,"slotNodes",void 0);et([(0,Ve.query)(".ft-tooltip--container")],le.prototype,"container",void 0);et([(0,Ve.query)(".ft-tooltip")],le.prototype,"tooltip",void 0);et([(0,Ve.query)(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0);et([(0,Ve.state)()],le.prototype,"visible",void 0);(0,jc.customElement)("ft-tooltip")(le);var Yc=g(R());var go=g($()),$t=g(Z()),Zc=g(R()),qc=g(Kc());var bn;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(bn||(bn={}));var A;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(A||(A={}));var US=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var zS={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var pt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(pt||(pt={}));var bo=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},we=class extends Zc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=go.nothing}render(){let e=this.variant&&Object.values(pt).includes(this.variant)?this.variant:pt.fluid_topics,o=e!==pt.material||!!this.value;return go.html`
|
|
566
566
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
567
567
|
${(0,qc.unsafeHTML)(this.resolvedIcon)}
|
|
568
568
|
<slot ?hidden=${o}></slot>
|