@fluid-topics/ft-search-bar 2.0.9 → 2.0.11

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.
@@ -624,7 +624,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
624
624
  position: relative;
625
625
  word-break: break-word;
626
626
  }
627
- `;var E1=["top","right","bottom","left"],L1=["start","end"],Ds=E1.reduce((t,e)=>t.concat(e,e+"-"+L1[0],e+"-"+L1[1]),[]),Kn=Math.min,Vr=Math.max,qn=Math.round;var tr=t=>({x:t,y:t}),Lh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(t,e,r){return Vr(t,Kn(e,r))}function Wa(t,e){return typeof t=="function"?t(e):t}function sn(t){return t.split("-")[0]}function jr(t){return t.split("-")[1]}function Fs(t){return t==="x"?"y":"x"}function Us(t){return t==="y"?"height":"width"}function Va(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Hs(t){return Fs(Va(t))}function A1(t,e,r){r===void 0&&(r=!1);let o=jr(t),a=Hs(t),i=Us(a),s=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=$s(s)),[s,$s(s)]}function w1(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function $s(t){let e=sn(t);return Lh[e]+t.slice(e.length)}function Eh(t){return{top:0,right:0,bottom:0,left:0,...t}}function R1(t){return typeof t!="number"?Eh(t):{top:t,right:t,bottom:t,left:t}}function Lo(t){let{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function _1(t,e,r){let{reference:o,floating:a}=t,i=Va(e),s=Hs(e),l=Us(s),f=sn(e),p=i==="y",g=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,b=o[l]/2-a[l]/2,S;switch(f){case"top":S={x:g,y:o.y-a.height};break;case"bottom":S={x:g,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-a.width,y};break;default:S={x:o.x,y:o.y}}switch(jr(e)){case"start":S[s]-=b*(r&&p?-1:1);break;case"end":S[s]+=b*(r&&p?-1:1);break}return S}async function k1(t,e){var r;e===void 0&&(e={});let{x:o,y:a,platform:i,rects:s,elements:l,strategy:f}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=Wa(e,t),O=R1(S),T=l[b?y==="floating"?"reference":"floating":y],z=Lo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(T)))==null||r?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:g,strategy:f})),N=y==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),F=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},oe=Lo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:f}):N);return{top:(z.top-oe.top+O.top)/F.y,bottom:(oe.bottom-z.bottom+O.bottom)/F.y,left:(z.left-oe.left+O.left)/F.x,right:(oe.right-z.right+O.right)/F.x}}var Ah=50,T1=async(t,e,r)=>{let{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:k1},f=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:g,y}=_1(p,o,f),b=o,S=0,O={};for(let A=0;A<i.length;A++){let T=i[A];if(!T)continue;let{name:z,fn:N}=T,{x:D,y:F,data:oe,reset:Ce}=await N({x:g,y,initialPlacement:o,placement:b,strategy:a,middlewareData:O,rects:p,platform:l,elements:{reference:t,floating:e}});g=D??g,y=F??y,O[z]={...O[z],...oe},Ce&&S<Ah&&(S++,typeof Ce=="object"&&(Ce.placement&&(b=Ce.placement),Ce.rects&&(p=Ce.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):Ce.rects),{x:g,y}=_1(p,b,f)),A=-1)}return{x:g,y,placement:b,strategy:a,middlewareData:O}};function wh(t,e,r){return(t?[...r.filter(a=>jr(a)===t),...r.filter(a=>jr(a)!==t)]:r.filter(a=>sn(a)===a)).filter(a=>t?jr(a)===t||(e?w1(a)!==a:!1):!0)}var N1=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:p}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Ds,autoAlignment:S=!0,...O}=Wa(t,e),A=y!==void 0||b===Ds?wh(y||null,S,b):b,T=await f.detectOverflow(e,O),z=((r=s.autoPlacement)==null?void 0:r.index)||0,N=A[z];if(N==null)return{};let D=A1(N,i,await(f.isRTL==null?void 0:f.isRTL(p.floating)));if(l!==N)return{reset:{placement:A[0]}};let F=[T[sn(N)],T[D[0]],T[D[1]]],oe=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:F}],Ce=A[z+1];if(Ce)return{data:{index:z+1,overflows:oe},reset:{placement:Ce}};let St=oe.map(Ye=>{let x=jr(Ye.placement);return[Ye.placement,x&&g?Ye.overflows.slice(0,2).reduce((L,U)=>L+U,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,x)=>Ye[1]-x[1]),fr=((a=St.filter(Ye=>Ye[2].slice(0,jr(Ye[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||St[0][0];return fr!==l?{data:{index:z+1,overflows:oe},reset:{placement:fr}}:{}}}};var M1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:a,platform:i}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:z=>{let{x:N,y:D}=z;return{x:N,y:D}}},...p}=Wa(t,e),g={x:r,y:o},y=await i.detectOverflow(e,p),b=Va(sn(a)),S=Fs(b),O=g[S],A=g[b];if(s){let z=S==="y"?"top":"left",N=S==="y"?"bottom":"right",D=O+y[z],F=O-y[N];O=Bs(D,O,F)}if(l){let z=b==="y"?"top":"left",N=b==="y"?"bottom":"right",D=A+y[z],F=A-y[N];A=Bs(D,A,F)}let T=f.fn({...e,[S]:O,[b]:A});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[S]:s,[b]:l}}}}}};function Ka(){return typeof window<"u"}function Ao(t){return P1(t)?(t.nodeName||"").toLowerCase():"#document"}function Ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mr(t){var e;return(e=(P1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function P1(t){return Ka()?t instanceof Node||t instanceof Ot(t).Node:!1}function Ut(t){return Ka()?t instanceof Element||t instanceof Ot(t).Element:!1}function gr(t){return Ka()?t instanceof HTMLElement||t instanceof Ot(t).HTMLElement:!1}function z1(t){return!Ka()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ot(t).ShadowRoot}function ln(t){let{overflow:e,overflowX:r,overflowY:o,display:a}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&a!=="inline"&&a!=="contents"}function I1(t){return/^(table|td|th)$/.test(Ao(t))}function Zn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Rh=/transform|translate|scale|rotate|perspective|filter/,_h=/paint|layout|strict|content/,Eo=t=>!!t&&t!=="none",Gs;function qa(t){let e=Ut(t)?Ht(t):t;return Eo(e.transform)||Eo(e.translate)||Eo(e.scale)||Eo(e.rotate)||Eo(e.perspective)||!Za()&&(Eo(e.backdropFilter)||Eo(e.filter))||Rh.test(e.willChange||"")||_h.test(e.contain||"")}function $1(t){let e=Nr(t);for(;gr(e)&&!wo(e);){if(qa(e))return e;if(Zn(e))return null;e=Nr(e)}return null}function Za(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function wo(t){return/^(html|body|#document)$/.test(Ao(t))}function Ht(t){return Ot(t).getComputedStyle(t)}function Yn(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nr(t){if(Ao(t)==="html")return t;let e=t.assignedSlot||t.parentNode||z1(t)&&t.host||mr(t);return z1(e)?e.host:e}function D1(t){let e=Nr(t);return wo(e)?t.ownerDocument?t.ownerDocument.body:t.body:gr(e)&&ln(e)?e:D1(e)}function ja(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let a=D1(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=Ot(a);if(i){let l=Ya(s);return e.concat(s,s.visualViewport||[],ln(a)?a:[],l&&r?ja(l):[])}else return e.concat(a,ja(a,[],r))}function Ya(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function H1(t){let e=Ht(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,a=gr(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:o,l=qn(r)!==i||qn(o)!==s;return l&&(r=i,o=s),{width:r,height:o,$:l}}function G1(t){return Ut(t)?t:t.contextElement}function cn(t){let e=G1(t);if(!gr(e))return tr(1);let r=e.getBoundingClientRect(),{width:o,height:a,$:i}=H1(e),s=(i?qn(r.width):r.width)/o,l=(i?qn(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kh=tr(0);function W1(t){let e=Ot(t);return!Za()||!e.visualViewport?kh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Th(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ot(t)?!1:e}function Xn(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let a=t.getBoundingClientRect(),i=G1(t),s=tr(1);e&&(o?Ut(o)&&(s=cn(o)):s=cn(t));let l=Th(i,r,o)?W1(i):tr(0),f=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,g=a.width/s.x,y=a.height/s.y;if(i){let b=Ot(i),S=o&&Ut(o)?Ot(o):o,O=b,A=Ya(O);for(;A&&o&&S!==O;){let T=cn(A),z=A.getBoundingClientRect(),N=Ht(A),D=z.left+(A.clientLeft+parseFloat(N.paddingLeft))*T.x,F=z.top+(A.clientTop+parseFloat(N.paddingTop))*T.y;f*=T.x,p*=T.y,g*=T.x,y*=T.y,f+=D,p+=F,O=Ot(A),A=Ya(O)}}return Lo({width:g,height:y,x:f,y:p})}function Xa(t,e){let r=Yn(t).scrollLeft;return e?e.left+r:Xn(mr(t)).left+r}function V1(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-Xa(t,r),a=r.top+e.scrollTop;return{x:o,y:a}}function Nh(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t,i=a==="fixed",s=mr(o),l=e?Zn(e.floating):!1;if(o===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},p=tr(1),g=tr(0),y=gr(o);if((y||!y&&!i)&&((Ao(o)!=="body"||ln(s))&&(f=Yn(o)),y)){let S=Xn(o);p=cn(o),g.x=S.x+o.clientLeft,g.y=S.y+o.clientTop}let b=s&&!y&&!i?V1(s,f):tr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+g.x+b.x,y:r.y*p.y-f.scrollTop*p.y+g.y+b.y}}function Mh(t){return Array.from(t.getClientRects())}function zh(t){let e=mr(t),r=Yn(t),o=t.ownerDocument.body,a=Vr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Vr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Xa(t),l=-r.scrollTop;return Ht(o).direction==="rtl"&&(s+=Vr(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}var B1=25;function Ph(t,e){let r=Ot(t),o=mr(t),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let g=Za();(!g||g&&e==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let p=Xa(o);if(p<=0){let g=o.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,O=Math.abs(o.clientWidth-y.clientWidth-S);O<=B1&&(i-=O)}else p<=B1&&(i+=p);return{width:i,height:s,x:l,y:f}}function Ih(t,e){let r=Xn(t,!0,e==="fixed"),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=gr(t)?cn(t):tr(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,f=a*i.x,p=o*i.y;return{width:s,height:l,x:f,y:p}}function F1(t,e,r){let o;if(e==="viewport")o=Ph(t,r);else if(e==="document")o=zh(mr(t));else if(Ut(e))o=Ih(e,r);else{let a=W1(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Lo(o)}function j1(t,e){let r=Nr(t);return r===e||!Ut(r)||wo(r)?!1:Ht(r).position==="fixed"||j1(r,e)}function $h(t,e){let r=e.get(t);if(r)return r;let o=ja(t,[],!1).filter(l=>Ut(l)&&Ao(l)!=="body"),a=null,i=Ht(t).position==="fixed",s=i?Nr(t):t;for(;Ut(s)&&!wo(s);){let l=Ht(s),f=qa(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(s)&&!f&&j1(t,s))?o=o.filter(g=>g!==s):a=l,s=Nr(s)}return e.set(t,o),o}function Dh(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t,s=[...r==="clippingAncestors"?Zn(e)?[]:$h(e,this._c):[].concat(r),o],l=F1(e,s[0],a),f=l.top,p=l.right,g=l.bottom,y=l.left;for(let b=1;b<s.length;b++){let S=F1(e,s[b],a);f=Vr(S.top,f),p=Kn(S.right,p),g=Kn(S.bottom,g),y=Vr(S.left,y)}return{width:p-y,height:g-f,x:y,y:f}}function Bh(t){let{width:e,height:r}=H1(t);return{width:e,height:r}}function Fh(t,e,r){let o=gr(e),a=mr(e),i=r==="fixed",s=Xn(t,!0,i,e),l={scrollLeft:0,scrollTop:0},f=tr(0);function p(){f.x=Xa(a)}if(o||!o&&!i)if((Ao(e)!=="body"||ln(a))&&(l=Yn(e)),o){let S=Xn(e,!0,i,e);f.x=S.x+e.clientLeft,f.y=S.y+e.clientTop}else a&&p();i&&!o&&a&&p();let g=a&&!o&&!i?V1(a,l):tr(0),y=s.left+l.scrollLeft-f.x-g.x,b=s.top+l.scrollTop-f.y-g.y;return{x:y,y:b,width:s.width,height:s.height}}function Ws(t){return Ht(t).position==="static"}function U1(t,e){if(!gr(t)||Ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mr(t)===r&&(r=r.ownerDocument.body),r}function K1(t,e){let r=Ot(t);if(Zn(t))return r;if(!gr(t)){let a=Nr(t);for(;a&&!wo(a);){if(Ut(a)&&!Ws(a))return a;a=Nr(a)}return r}let o=U1(t,e);for(;o&&I1(o)&&Ws(o);)o=U1(o,e);return o&&wo(o)&&Ws(o)&&!qa(o)?r:o||$1(t)||r}var Uh=async function(t){let e=this.getOffsetParent||K1,r=this.getDimensions,o=await r(t.floating);return{reference:Fh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hh(t){return Ht(t).direction==="rtl"}var Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Nh,getDocumentElement:mr,getClippingRect:Dh,getOffsetParent:K1,getElementRects:Uh,getClientRects:Mh,getDimensions:Bh,getScale:cn,isElement:Ut,isRTL:Hh};var q1=N1,Z1=M1;var Y1=(t,e,r)=>{let o=new Map,a={platform:Qa,...r},i={...a.platform,_c:o};return T1(t,e,{...a,platform:i})};function X1(t){return Gh(t)}function Vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gh(t){for(let e=t;e;e=Vs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vs(t);e;e=Vs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Q1(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Y1(t,e,{strategy:o.strategy,platform:{...Qa,getOffsetParent:a=>Qa.getOffsetParent(a,X1)},middleware:[Z1({crossAxis:!0}),q1({allowedPlacements:[o.placement]})]})}var xn=h(E());var gl=h(q());function Wh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o,a;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ja(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ja(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ja(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ja(t,e){try{return Wh(t,e)}catch{return!1}}function Qn(t,e){return!Ja(t,e)}function J1(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let a=e(o);return a[t]=!0,a}}var e2=h(q(),1);var js=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Qn,attribute:!1,...e};(0,e2.property)(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}};var ti=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ro=h(q(),1);var t2=h(q(),1);function r2(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,t2.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Qn,...e??{}})}var ri=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var n2=h(k(),1);var oi=globalThis,Vh=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IC=Symbol();var o2=(t,e)=>{if(Vh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),a=oi.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=r.cssText,t.appendChild(o)}};var ni=class extends n2.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return o2(o,e.elementStyles),o}};function a2(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}var fn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},c2,i2=Symbol("constructorPrototype"),s2=Symbol("constructorName"),d2=Symbol("exportpartsDebouncer"),l2=Symbol("dynamicDependenciesLoaded"),dn=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dn.eventName="exportparts-updated";var yr=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[c2]=new ri(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[d2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[s2]=this.constructor.name,this[i2]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[s2]&&Object.setPrototypeOf(this,this[i2])}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(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[l2]||(r[l2]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dn.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dn.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 dn)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:a}=this.elementToFocus;if(o!=null){let i=[...a??[],o];r=a2(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,a;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var r,o,a,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],O=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],A=[...S,...O].filter(f).map(T=>T.trim());for(let T of A)g.add(T)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};c2=d2;fn([(0,Ro.property)()],yr.prototype,"exportpartsPrefix",void 0);fn([r2([])],yr.prototype,"exportpartsPrefixes",void 0);fn([(0,Ro.property)({reflect:!0})],yr.prototype,"exportparts",void 0);fn([(0,Ro.property)()],yr.prototype,"customStylesheet",void 0);fn([(0,Ro.property)()],yr.prototype,"elementToFocus",void 0);fn([(0,Ro.state)()],yr.prototype,"useAdoptedStyleSheets",void 0);function ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jn=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),jh=ei(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[Jn].set(s,[]),ai(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,g)=>{if(typeof this[g]=="function"&&(!p.store||l.name===p.store)){let y=b=>this[g](b);l.addEventListener(p.eventName,y),this[Jn].get(s).push(()=>l.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[Jn].get(s))===null||l===void 0||l.forEach(f=>f()),this[Jn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,r=_o,o=Jn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),f2=class extends jh(yr){};function Gt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mr(t){return!!t&&!!t[Ee]}function rr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===e3}(t)||Array.isArray(t)||!!t[b2]||!!(!((e=t.constructor)===null||e===void 0)&&e[b2])||tl(t)||rl(t))}function ko(t,e,r){r===void 0&&(r=!1),hn(t)===0?(r?Object.keys:un)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function hn(t){var e=t[Ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:tl(t)?2:rl(t)?3:0}function pn(t,e){return hn(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Kh(t,e){return hn(t)===2?t.get(e):t[e]}function v2(t,e,r){var o=hn(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function x2(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function tl(t){return Qh&&t instanceof Map}function rl(t){return Jh&&t instanceof Set}function qr(t){return t.o||t.t}function ol(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=O2(t);delete e[Ee];for(var r=un(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function nl(t,e){return e===void 0&&(e=!1),al(t)||Mr(t)||!rr(t)||(hn(t)>1&&(t.set=t.add=t.clear=t.delete=qh),Object.freeze(t),e&&ko(t,function(r,o){return nl(o,!0)},!0)),t}function qh(){Gt(2)}function al(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function br(t){var e=el[t];return e||Gt(18,t),e}function Zh(t,e){el[t]||(el[t]=e)}function Xs(){return ta}function Ks(t,e){e&&(br("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Qs(t),t.p.forEach(Yh),t.p=null}function Qs(t){t===ta&&(ta=t.l)}function p2(t){return ta={p:[],l:ta,h:t,m:!0,_:0}}function Yh(t){var e=t[Ee];e.i===0||e.i===1?e.j():e.g=!0}function qs(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||br("ES5").S(e,t,o),o?(r[Ee].P&&(ii(e),Gt(4)),rr(t)&&(t=si(e,t),e.l||li(e,t)),e.u&&br("Patches").M(r[Ee].t,t,e.u,e.s)):t=si(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==C2?t:void 0}function si(t,e,r){if(al(e))return e;var o=e[Ee];if(!o)return ko(e,function(l,f){return u2(t,o,e,l,f,r)},!0),e;if(o.A!==t)return e;if(!o.P)return li(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ol(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),ko(i,function(l,f){return u2(t,o,a,l,f,r,s)}),li(t,a,!1),r&&t.u&&br("Patches").N(o,r,t.u,t.s)}return o.o}function u2(t,e,r,o,a,i,s){if(Mr(a)){var l=si(t,a,i&&e&&e.i!==3&&!pn(e.R,o)?i.concat(o):void 0);if(v2(r,o,l),!Mr(l))return;t.m=!1}else s&&r.add(a);if(rr(a)&&!al(a)){if(!t.h.D&&t._<1)return;si(t,a),e&&e.A.l||li(t,a)}}function li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&nl(e,r)}function Zs(t,e){var r=t[Ee];return(r?qr(r):t)[e]}function h2(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Zr(t){t.P||(t.P=!0,t.l&&Zr(t.l))}function Ys(t){t.o||(t.o=ol(t.t))}function Js(t,e,r){var o=tl(e)?br("MapSet").F(e,r):rl(e)?br("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Xs(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=ra;s&&(f=[l],p=ea);var g=Proxy.revocable(f,p),y=g.revoke,b=g.proxy;return l.k=b,l.j=y,b}(e,r):br("ES5").J(e,r);return(r?r.A:Xs()).p.push(o),o}function Xh(t){return Mr(t)||Gt(22,t),function e(r){if(!rr(r))return r;var o,a=r[Ee],i=hn(r);if(a){if(!a.P&&(a.i<4||!br("ES5").K(a)))return a.t;a.I=!0,o=m2(r,i),a.I=!1}else o=m2(r,i);return ko(o,function(s,l){a&&Kh(a.t,s)===l||v2(o,s,e(l))}),i===3?new Set(o):o}(t)}function m2(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ol(t)}function S2(){function t(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Ee];return ra.get(p,s)},set:function(p){var g=this[Ee];ra.set(g,s,p)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Ee];if(!f.P)switch(f.i){case 5:o(f)&&Zr(f);break;case 4:r(f)&&Zr(f)}}}function r(s){for(var l=s.t,f=s.k,p=un(f),g=p.length-1;g>=0;g--){var y=p[g];if(y!==Ee){var b=l[y];if(b===void 0&&!pn(l,y))return!0;var S=f[y],O=S&&S[Ee];if(O?O.t!==b:!x2(S,b))return!0}}var A=!!l[Ee];return p.length!==un(l).length+(A?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Gt(3,JSON.stringify(qr(s)))}var i={};Zh("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(y,b){if(y){for(var S=Array(b.length),O=0;O<b.length;O++)Object.defineProperty(S,""+O,t(O,!0));return S}var A=O2(b);delete A[Ee];for(var T=un(A),z=0;z<T.length;z++){var N=T[z];A[N]=t(N,y||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(b),A)}(f,s),g={i:f?5:4,A:l?l.A:Xs(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ee,{value:g,writable:!0}),p},S:function(s,l,f){f?Mr(l)&&l[Ee].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var y=g[Ee];if(y){var b=y.t,S=y.k,O=y.R,A=y.i;if(A===4)ko(S,function(F){F!==Ee&&(b[F]!==void 0||pn(b,F)?O[F]||p(S[F]):(O[F]=!0,Zr(y)))}),ko(b,function(F){S[F]!==void 0||pn(S,F)||(O[F]=!1,Zr(y))});else if(A===5){if(o(y)&&(Zr(y),O.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)O[T]=!1;else for(var z=b.length;z<S.length;z++)O[z]=!0;for(var N=Math.min(S.length,b.length),D=0;D<N;D++)S.hasOwnProperty(D)||(O[D]=!0),O[D]===void 0&&p(S[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var g2,ta,il=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qh=typeof Map<"u",Jh=typeof Set<"u",y2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",C2=il?Symbol.for("immer-nothing"):((g2={})["immer-nothing"]=!0,g2),b2=il?Symbol.for("immer-draftable"):"__$immer_draftable",Ee=il?Symbol.for("immer-state"):"__$immer_state";var e3=""+Object.prototype.constructor,un=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,O2=Object.getOwnPropertyDescriptors||function(t){var e={};return un(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},el={},ra={get:function(t,e){if(e===Ee)return t;var r=qr(t);if(!pn(r,e))return function(a,i,s){var l,f=h2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!rr(o)?o:o===Zs(t.t,e)?(Ys(t),t.o[e]=Js(t.A.h,o,t)):o},has:function(t,e){return e in qr(t)},ownKeys:function(t){return Reflect.ownKeys(qr(t))},set:function(t,e,r){var o=h2(qr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Zs(qr(t),e),i=a?.[Ee];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(x2(r,a)&&(r!==void 0||pn(t.t,e)))return!0;Ys(t),Zr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Zs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ys(t),Zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=qr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gt(12)}},ea={};ko(ra,function(t,e){ea[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ea.deleteProperty=function(t,e){return ea.set.call(this,t,e,void 0)},ea.set=function(t,e,r){return ra.set.call(this,t[0],e,r,t[0])};var t3=function(){function t(r){var o=this;this.O=y2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=o;return function(A){var T=this;A===void 0&&(A=l);for(var z=arguments.length,N=Array(z>1?z-1:0),D=1;D<z;D++)N[D-1]=arguments[D];return f.produce(A,function(F){var oe;return(oe=i).call.apply(oe,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),rr(a)){var g=p2(o),y=Js(o,a,void 0),b=!0;try{p=i(y),b=!1}finally{b?ii(g):Qs(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Ks(g,s),qs(A,g)},function(A){throw ii(g),A}):(Ks(g,s),qs(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===C2&&(p=void 0),o.D&&nl(p,!0),s){var S=[],O=[];br("Patches").M(a,p,S,O),s(S,O)}return p}Gt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return o.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var s,l,f=o.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){rr(r)||Gt(8),Mr(r)&&(r=Xh(r));var o=p2(this),a=Js(this,r,void 0);return a[Ee].C=!0,Qs(o),a},e.finishDraft=function(r,o){var a=r&&r[Ee],i=a.A;return Ks(i,o),qs(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!y2&&Gt(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=br("Patches").$;return Mr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),_t=new t3,r3=_t.produce,XC=_t.produceWithPatches.bind(_t),QC=_t.setAutoFreeze.bind(_t),JC=_t.setUseProxies.bind(_t),eO=_t.applyPatches.bind(_t),tO=_t.createDraft.bind(_t),rO=_t.finishDraft.bind(_t),ci=r3;function To(t){"@babel/helpers - typeof";return To=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},To(t)}function L2(t,e){if(To(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(To(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function E2(t){var e=L2(t,"string");return To(e)=="symbol"?e:e+""}function A2(t,e,r){return(e=E2(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w2(Object(r),!0).forEach(function(o){A2(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function ft(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 R2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},di={INIT:"@@redux/INIT"+ll(),REPLACE:"@@redux/REPLACE"+ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ll()}};function o3(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 cl(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ft(1));return r(cl)(t,e)}if(typeof t!="function")throw new Error(ft(2));var a=t,i=e,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function g(){if(f)throw new Error(ft(3));return i}function y(A){if(typeof A!="function")throw new Error(ft(4));if(f)throw new Error(ft(5));var T=!0;return p(),l.push(A),function(){if(T){if(f)throw new Error(ft(6));T=!1,p();var N=l.indexOf(A);l.splice(N,1),s=null}}}function b(A){if(!o3(A))throw new Error(ft(7));if(typeof A.type>"u")throw new Error(ft(8));if(f)throw new Error(ft(9));try{f=!0,i=a(i,A)}finally{f=!1}for(var T=s=l,z=0;z<T.length;z++){var N=T[z];N()}return A}function S(A){if(typeof A!="function")throw new Error(ft(10));a=A,b({type:di.REPLACE})}function O(){var A,T=y;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ft(11));function D(){N.next&&N.next(g())}D();var F=T(D);return{unsubscribe:F}}},A[R2]=function(){return this},A}return b({type:di.INIT}),o={dispatch:b,subscribe:y,getState:g,replaceReducer:S},o[R2]=O,o}function n3(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:di.INIT});if(typeof o>"u")throw new Error(ft(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function _2(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{n3(r)}catch(f){l=f}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var b=!1,S={},O=0;O<i.length;O++){var A=i[O],T=r[A],z=p[A],N=T(z,g);if(typeof N>"u"){var D=g&&g.type;throw new Error(ft(14))}S[A]=N,b=b||N!==z}return b=b||i.length!==Object.keys(p).length,b?S:p}}function mn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function k2(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ft(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return i=mn.apply(void 0,l)(a.dispatch),sl(sl({},a),{},{dispatch:i})}}}function T2(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var N2=T2();N2.withExtraArgument=T2;var dl=N2;var $2=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),a3=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(g){return f([p,g])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],a=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gn=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},i3=Object.defineProperty,s3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,M2=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,z2=function(t,e,r){return e in t?i3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yr=function(t,e){for(var r in e||(e={}))c3.call(e,r)&&z2(t,r,e[r]);if(M2)for(var o=0,a=M2(e);o<a.length;o++){var r=a[o];d3.call(e,r)&&z2(t,r,e[r])}return t},fl=function(t,e){return s3(t,l3(e))},f3=function(t,e,r){return new Promise(function(o,a){var i=function(f){try{l(r.next(f))}catch(p){a(p)}},s=function(f){try{l(r.throw(f))}catch(p){a(p)}},l=function(f){return f.done?o(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(t,e)).next())})};var p3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mn:mn.apply(null,arguments)},xO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function u3(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var h3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array),m3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array);function hl(t){return rr(t)?ci(t,function(){}):t}function g3(t){return typeof t=="boolean"}function y3(){return function(e){return b3(e)}}function b3(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new h3;if(r&&(g3(r)?l.push(dl):l.push(dl.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var p}return l}var pl=!0;function D2(t){var e=y3(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,f=l===void 0?!0:l,p=r.preloadedState,g=p===void 0?void 0:p,y=r.enhancers,b=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(u3(a))S=_2(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!pl&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pl&&O.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=k2.apply(void 0,O),T=mn;f&&(T=p3(Yr({trace:!pl},typeof f=="object"&&f)));var z=new m3(A),N=z;Array.isArray(b)?N=gn([A],b):typeof b=="function"&&(N=b(z));var D=T.apply(void 0,N);return cl(S,g,D)}function Xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Yr(Yr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function B2(t){var e={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function v3(t){return typeof t=="function"}function x3(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?B2(e):[e,r,o],i=a[0],s=a[1],l=a[2],f;if(v3(t))f=function(){return hl(t())};else{var p=hl(t);f=function(){return p}}function g(y,b){y===void 0&&(y=f());var S=gn([i[b.type]],s.filter(function(O){var A=O.matcher;return A(b)}).map(function(O){var A=O.reducer;return A}));return S.filter(function(O){return!!O}).length===0&&(S=[l]),S.reduce(function(O,A){if(A)if(Mr(O)){var T=O,z=A(T,b);return z===void 0?O:z}else{if(rr(O))return ci(O,function(N){return A(N,b)});var z=A(O,b);if(z===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return z}return O},y)}return g.getInitialState=f,g}function S3(t,e){return t+"/"+e}function F2(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:hl(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(g){var y=o[g],b=S3(e,g),S,O;"reducer"in y?(S=y.reducer,O=y.prepare):S=y,i[g]=S,s[b]=S,l[g]=O?Xr(b,O):Xr(b)});function f(){var g=typeof t.extraReducers=="function"?B2(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,S=g[1],O=S===void 0?[]:S,A=g[2],T=A===void 0?void 0:A,z=Yr(Yr({},b),s);return x3(r,function(N){for(var D in z)N.addCase(D,z[D]);for(var F=0,oe=O;F<oe.length;F++){var Ce=oe[F];N.addMatcher(Ce.matcher,Ce.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:e,reducer:function(g,y){return p||(p=f()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var C3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=C3[Math.random()*64|0];return e},L3=["name","message","stack","code"],ul=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),P2=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),E3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=L3;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},LO=function(){function t(e,r,o){var a=Xr(e+"/fulfilled",function(g,y,b,S){return{payload:g,meta:fl(Yr({},S||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),i=Xr(e+"/pending",function(g,y,b){return{payload:void 0,meta:fl(Yr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Xr(e+"/rejected",function(g,y,b,S,O){return{payload:S,error:(o&&o.serializeError||E3)(g||"Rejected"),meta:fl(Yr({},O||{}),{arg:b,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,b,S){var O=o?.idGenerator?o.idGenerator(g):O3(),A=new f,T,z=!1;function N(F){T=F,A.abort()}var D=function(){return f3(this,null,function(){var F,oe,Ce,St,Ze,fr,Ye;return a3(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),St=(F=o?.condition)==null?void 0:F.call(o,g,{getState:b,extra:S}),w3(St)?[4,St]:[3,2];case 1:St=x.sent(),x.label=2;case 2:if(St===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return z=!0,Ze=new Promise(function(L,U){return A.signal.addEventListener("abort",function(){return U({name:"AbortError",message:T||"Aborted"})})}),y(i(O,g,(oe=o?.getPendingMeta)==null?void 0:oe.call(o,{requestId:O,arg:g},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(g,{dispatch:y,getState:b,extra:S,requestId:O,signal:A.signal,abort:N,rejectWithValue:function(L,U){return new ul(L,U)},fulfillWithValue:function(L,U){return new P2(L,U)}})).then(function(L){if(L instanceof ul)throw L;return L instanceof P2?a(L.payload,O,g,L.meta):a(L,O,g)})])];case 3:return Ce=x.sent(),[3,5];case 4:return fr=x.sent(),Ce=fr instanceof ul?s(null,O,g,fr.payload,fr.meta):s(fr,O,g),[3,5];case 5:return Ye=o&&!o.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,Ye||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:O,arg:g,unwrap:function(){return D.then(A3)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function A3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function w3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var U2="listener",H2="completed",G2="cancelled",EO="task-"+G2,AO="task-"+H2,wO=U2+"-"+G2,RO=U2+"-"+H2;var ml="listenerMiddleware";var _O=Xr(ml+"/add"),kO=Xr(ml+"/removeAll"),TO=Xr(ml+"/remove");var I2,NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(I2||(I2=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},R3=function(t){return function(e){setTimeout(e,t)}},MO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R3(10);S2();var _3=ei(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,a){this.eventBus.addEventListener(r,o,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,a){this.eventBus.removeEventListener(r,o,a)}}}),fi=class extends _3(Object){};window.ftReduxStores||(window.ftReduxStores={});var W2=class t extends fi{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(ai(i))return i;if(a==null)return;let s=F2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=D2({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let g=J1(s.getInitialState());for(let y of p.keeping)g[y]=(f??g)[y];return g}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ti;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[f]:a(g)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var pi=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a)):this.getIntlDateTime(e,r,o,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ui=h(E()),k3="ft-app-info",No=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};No.eventName="authentication-change";var T3={session:(t,e)=>{(0,ui.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new No(e.payload)),0))}},I=ui.FtReduxStore.get({name:k3,reducers:T3,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 V2=h(E()),hi=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},sL=(0,V2.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>pi.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return hi([(0,gl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),hi([(0,gl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),hi([js({store:I.name,selector:r=>{var o,a;return(a=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),hi([js({store:I.name})],e.prototype,"uiLocale",void 0),e});var M3=h(K2(),1);var q2;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(q2||(q2={}));var Z2;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Z2||(Z2={}));var Y2;(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"})(Y2||(Y2={}));var X2;(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"})(X2||(X2={}));var Q2;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Q2||(Q2={}));var J2;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(J2||(J2={}));var ef;(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"})(ef||(ef={}));var tf;(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"})(tf||(tf={}));var rf;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(rf||(rf={}));var of;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(of||(of={}));var nf;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nf||(nf={}));var af;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(af||(af={}));var sf;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sf||(sf={}));var lf;(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"})(lf||(lf={}));var cf;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cf||(cf={}));var df;(function(t){t.ASC="ASC",t.DESC="DESC"})(df||(df={}));var ff;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ff||(ff={}));var pf;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(pf||(pf={}));var uf;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(uf||(uf={}));var hf;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hf||(hf={}));var mf;(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"})(mf||(mf={}));var gf;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gf||(gf={}));var yf;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yf||(yf={}));var bf;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bf||(bf={}));var vf;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vf||(vf={}));var Pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Pe||(Pe={}));var Wt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Wt||(Wt={}));var xf;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xf||(xf={}));var Sf;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sf||(Sf={}));var Cf;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Cf||(Cf={}));var Of;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Of||(Of={}));var Lf;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lf||(Lf={}));var Ef;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ef||(Ef={}));var Af;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Af||(Af={}));var wf;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wf||(wf={}));var Rf;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Rf||(Rf={}));var N3={[Pe.PERSONAL_BOOK_SHARE_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.HTML_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.PDF_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.KHUB_ADMIN]:[Pe.CONTENT_PUBLISHER],[Pe.ADMIN]:[Pe.KHUB_ADMIN,Pe.USERS_ADMIN,Pe.PORTAL_ADMIN,Pe.BEHAVIOR_DATA_USER],[Pe.GENERATIVE_AI_EXPORT_USER]:[Pe.GENERATIVE_AI_USER]};function _f(t,e){return t===e||(N3[t]??[]).some(r=>_f(r,e))}function kf(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>_f(o,e))}var Ci=h(E());var yl=h(E());var Mo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=I.getState(),a=e??o;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let a=I.subscribe(()=>{o=t.get(e),o&&(a(),r(o))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Mo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mo.await()}};var kt=class extends yi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(o=a.commonCache)!==null&&o!==void 0?o:new yl.CacheRegistry,this.cache=e?a.commonCache:new yl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var bi=class extends kt{async listMySearches(){let{session:e}=I.getState();return kf(e,Pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vi=class extends kt{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var xi=class extends kt{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=I.getState().session;return!!e?.sessionAuthenticated}};var Si=class extends kt{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=I.getState().session;return!!e?.sessionAuthenticated}};var z3="ft-user-assets",P3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Wt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:a}=e.payload;vl(t,r,[...bl(t,r),a]),Tf(t,r,1,o),Nf(t,a)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;vl(t,r,bl(t,r).map(a=>a.id===o.id?o:a)),Nf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:a}=e.payload;vl(t,r,bl(t,r).filter(i=>i.id!==a)),Tf(t,r,-1,o)}},Mf={[Wt.SEARCHES]:"savedSearches",[Wt.BOOKMARKS]:"bookmarks",[Wt.BOOKS]:void 0,[Wt.COLLECTIONS]:void 0},bl=(t,e)=>{var r;let o=Mf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},vl=(t,e,r)=>{let o=Mf[e];o&&(t[o]=r)},Tf=(t,e,r,o)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+r),e===Wt.BOOKMARKS&&o)){let i=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,i+r)}},Nf=(t,e)=>{let r=t.assetLabels.map(a=>a.title),o=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));t.assetLabels.push(...o)},Tt=Ci.FtReduxStore.get({name:z3,reducers:P3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Wt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xl=class{constructor(e=new xi,r=new Si){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vi,this.savedSearchesService=new bi,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,Ci.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Tt.actions.clearAssetCount(),Tt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Tt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Tt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Tt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Tt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Tt.getState().assetCounts.bookmarkByMap).length!==0;e===Wt.BOOKMARKS&&r&&Tt.actions.clearBookmarkCountByMap(),Tt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Tt.actions.bookmarks(r)}}},I3=new xl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=I3);var Sl=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sl;var Vt=h(E());var zf,bn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$3=Symbol("clearAfterUnitTest"),Oi=class extends(0,Vt.withEventBus)(kt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zf]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Vt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof Vt.CanceledPromiseError)&&r&&console.error(a)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new bn({loadedContexts:e})),this.dispatchEvent(new bn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new bn({loadedContexts:[e]})),this.dispatchEvent(new bn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Vt.delay)(0).then(()=>o()).catch(()=>null)))}};zf=$3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oa=window.FluidTopicsI18nService,Cl=window.FluidTopicsCustomI18nService;var Pf=h(E()),Ol=class{highlightHtml(e,r,o){(0,Pf.highlightHtml)(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Ol;var If=h(E());var Ll=class{isDate(e){var r,o,a,i;return(i=(a=((o=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var o,a,i;if(e==null)return"";try{return If.DateFormatter.format(e,(o=r?.locale)!==null&&o!==void 0?o:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(e)} is not valid`,s),s}}};window.FluidTopicsDateService=new Ll;var $f=h(E());var na=class{static get(e,r){var o,a;let i=I.getState(),{lang:s,region:l}=(a=(o=i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var El=class{urlToSearchRequest(e){return na.get().parse(e)}searchRequestToUrl(e){return na.get().serialize(e)}};window.FluidTopicsUrlService=new El;var Jr=h(E());var zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zo.eventName="change";var Al=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Df=new Al;var Li=class t extends Jr.WithEventBus{static build(){return new t(window.history,Df,()=>window.location,!1)}constructor(e,r,o,a){var i,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Jr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zo(this.currentItem())),0)}installProxies(){let e=r=>(o,a,[i,s,l])=>{let f=r(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zo.eventName,e)}currentItem(){return(0,Jr.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,Jr.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,Jr.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 r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,o);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Li.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 Bf=h(k());var Ff=Bf.css`
627
+ `;var E1=["top","right","bottom","left"],L1=["start","end"],Ds=E1.reduce((t,e)=>t.concat(e,e+"-"+L1[0],e+"-"+L1[1]),[]),Kn=Math.min,Vr=Math.max,qn=Math.round;var tr=t=>({x:t,y:t}),Lh={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(t,e,r){return Vr(t,Kn(e,r))}function Wa(t,e){return typeof t=="function"?t(e):t}function sn(t){return t.split("-")[0]}function jr(t){return t.split("-")[1]}function Fs(t){return t==="x"?"y":"x"}function Us(t){return t==="y"?"height":"width"}function Va(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Hs(t){return Fs(Va(t))}function A1(t,e,r){r===void 0&&(r=!1);let o=jr(t),a=Hs(t),i=Us(a),s=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=$s(s)),[s,$s(s)]}function w1(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function $s(t){let e=sn(t);return Lh[e]+t.slice(e.length)}function Eh(t){return{top:0,right:0,bottom:0,left:0,...t}}function R1(t){return typeof t!="number"?Eh(t):{top:t,right:t,bottom:t,left:t}}function Lo(t){let{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function _1(t,e,r){let{reference:o,floating:a}=t,i=Va(e),s=Hs(e),l=Us(s),f=sn(e),p=i==="y",g=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,b=o[l]/2-a[l]/2,S;switch(f){case"top":S={x:g,y:o.y-a.height};break;case"bottom":S={x:g,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-a.width,y};break;default:S={x:o.x,y:o.y}}switch(jr(e)){case"start":S[s]-=b*(r&&p?-1:1);break;case"end":S[s]+=b*(r&&p?-1:1);break}return S}async function k1(t,e){var r;e===void 0&&(e={});let{x:o,y:a,platform:i,rects:s,elements:l,strategy:f}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=Wa(e,t),O=R1(S),T=l[b?y==="floating"?"reference":"floating":y],z=Lo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(T)))==null||r?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:g,strategy:f})),N=y==="floating"?{x:o,y:a,width:s.floating.width,height:s.floating.height}:s.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),F=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},oe=Lo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:D,strategy:f}):N);return{top:(z.top-oe.top+O.top)/F.y,bottom:(oe.bottom-z.bottom+O.bottom)/F.y,left:(z.left-oe.left+O.left)/F.x,right:(oe.right-z.right+O.right)/F.x}}var Ah=50,T1=async(t,e,r)=>{let{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:k1},f=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:g,y}=_1(p,o,f),b=o,S=0,O={};for(let A=0;A<i.length;A++){let T=i[A];if(!T)continue;let{name:z,fn:N}=T,{x:D,y:F,data:oe,reset:Ce}=await N({x:g,y,initialPlacement:o,placement:b,strategy:a,middlewareData:O,rects:p,platform:l,elements:{reference:t,floating:e}});g=D??g,y=F??y,O[z]={...O[z],...oe},Ce&&S<Ah&&(S++,typeof Ce=="object"&&(Ce.placement&&(b=Ce.placement),Ce.rects&&(p=Ce.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):Ce.rects),{x:g,y}=_1(p,b,f)),A=-1)}return{x:g,y,placement:b,strategy:a,middlewareData:O}};function wh(t,e,r){return(t?[...r.filter(a=>jr(a)===t),...r.filter(a=>jr(a)!==t)]:r.filter(a=>sn(a)===a)).filter(a=>t?jr(a)===t||(e?w1(a)!==a:!1):!0)}var N1=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:p}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:b=Ds,autoAlignment:S=!0,...O}=Wa(t,e),A=y!==void 0||b===Ds?wh(y||null,S,b):b,T=await f.detectOverflow(e,O),z=((r=s.autoPlacement)==null?void 0:r.index)||0,N=A[z];if(N==null)return{};let D=A1(N,i,await(f.isRTL==null?void 0:f.isRTL(p.floating)));if(l!==N)return{reset:{placement:A[0]}};let F=[T[sn(N)],T[D[0]],T[D[1]]],oe=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:F}],Ce=A[z+1];if(Ce)return{data:{index:z+1,overflows:oe},reset:{placement:Ce}};let St=oe.map(Ye=>{let x=jr(Ye.placement);return[Ye.placement,x&&g?Ye.overflows.slice(0,2).reduce((L,U)=>L+U,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,x)=>Ye[1]-x[1]),fr=((a=St.filter(Ye=>Ye[2].slice(0,jr(Ye[0])?2:3).every(x=>x<=0))[0])==null?void 0:a[0])||St[0][0];return fr!==l?{data:{index:z+1,overflows:oe},reset:{placement:fr}}:{}}}};var M1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:a,platform:i}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:z=>{let{x:N,y:D}=z;return{x:N,y:D}}},...p}=Wa(t,e),g={x:r,y:o},y=await i.detectOverflow(e,p),b=Va(sn(a)),S=Fs(b),O=g[S],A=g[b];if(s){let z=S==="y"?"top":"left",N=S==="y"?"bottom":"right",D=O+y[z],F=O-y[N];O=Bs(D,O,F)}if(l){let z=b==="y"?"top":"left",N=b==="y"?"bottom":"right",D=A+y[z],F=A-y[N];A=Bs(D,A,F)}let T=f.fn({...e,[S]:O,[b]:A});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[S]:s,[b]:l}}}}}};function Ka(){return typeof window<"u"}function Ao(t){return P1(t)?(t.nodeName||"").toLowerCase():"#document"}function Ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mr(t){var e;return(e=(P1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function P1(t){return Ka()?t instanceof Node||t instanceof Ot(t).Node:!1}function Ut(t){return Ka()?t instanceof Element||t instanceof Ot(t).Element:!1}function gr(t){return Ka()?t instanceof HTMLElement||t instanceof Ot(t).HTMLElement:!1}function z1(t){return!Ka()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ot(t).ShadowRoot}function ln(t){let{overflow:e,overflowX:r,overflowY:o,display:a}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&a!=="inline"&&a!=="contents"}function I1(t){return/^(table|td|th)$/.test(Ao(t))}function Zn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Rh=/transform|translate|scale|rotate|perspective|filter/,_h=/paint|layout|strict|content/,Eo=t=>!!t&&t!=="none",Gs;function qa(t){let e=Ut(t)?Ht(t):t;return Eo(e.transform)||Eo(e.translate)||Eo(e.scale)||Eo(e.rotate)||Eo(e.perspective)||!Za()&&(Eo(e.backdropFilter)||Eo(e.filter))||Rh.test(e.willChange||"")||_h.test(e.contain||"")}function $1(t){let e=Nr(t);for(;gr(e)&&!wo(e);){if(qa(e))return e;if(Zn(e))return null;e=Nr(e)}return null}function Za(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function wo(t){return/^(html|body|#document)$/.test(Ao(t))}function Ht(t){return Ot(t).getComputedStyle(t)}function Yn(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nr(t){if(Ao(t)==="html")return t;let e=t.assignedSlot||t.parentNode||z1(t)&&t.host||mr(t);return z1(e)?e.host:e}function D1(t){let e=Nr(t);return wo(e)?t.ownerDocument?t.ownerDocument.body:t.body:gr(e)&&ln(e)?e:D1(e)}function ja(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let a=D1(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=Ot(a);if(i){let l=Ya(s);return e.concat(s,s.visualViewport||[],ln(a)?a:[],l&&r?ja(l):[])}else return e.concat(a,ja(a,[],r))}function Ya(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function H1(t){let e=Ht(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,a=gr(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:o,l=qn(r)!==i||qn(o)!==s;return l&&(r=i,o=s),{width:r,height:o,$:l}}function G1(t){return Ut(t)?t:t.contextElement}function cn(t){let e=G1(t);if(!gr(e))return tr(1);let r=e.getBoundingClientRect(),{width:o,height:a,$:i}=H1(e),s=(i?qn(r.width):r.width)/o,l=(i?qn(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kh=tr(0);function W1(t){let e=Ot(t);return!Za()||!e.visualViewport?kh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Th(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ot(t)?!1:e}function Xn(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let a=t.getBoundingClientRect(),i=G1(t),s=tr(1);e&&(o?Ut(o)&&(s=cn(o)):s=cn(t));let l=Th(i,r,o)?W1(i):tr(0),f=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,g=a.width/s.x,y=a.height/s.y;if(i){let b=Ot(i),S=o&&Ut(o)?Ot(o):o,O=b,A=Ya(O);for(;A&&o&&S!==O;){let T=cn(A),z=A.getBoundingClientRect(),N=Ht(A),D=z.left+(A.clientLeft+parseFloat(N.paddingLeft))*T.x,F=z.top+(A.clientTop+parseFloat(N.paddingTop))*T.y;f*=T.x,p*=T.y,g*=T.x,y*=T.y,f+=D,p+=F,O=Ot(A),A=Ya(O)}}return Lo({width:g,height:y,x:f,y:p})}function Xa(t,e){let r=Yn(t).scrollLeft;return e?e.left+r:Xn(mr(t)).left+r}function V1(t,e){let r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-Xa(t,r),a=r.top+e.scrollTop;return{x:o,y:a}}function Nh(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t,i=a==="fixed",s=mr(o),l=e?Zn(e.floating):!1;if(o===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},p=tr(1),g=tr(0),y=gr(o);if((y||!y&&!i)&&((Ao(o)!=="body"||ln(s))&&(f=Yn(o)),y)){let S=Xn(o);p=cn(o),g.x=S.x+o.clientLeft,g.y=S.y+o.clientTop}let b=s&&!y&&!i?V1(s,f):tr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+g.x+b.x,y:r.y*p.y-f.scrollTop*p.y+g.y+b.y}}function Mh(t){return Array.from(t.getClientRects())}function zh(t){let e=mr(t),r=Yn(t),o=t.ownerDocument.body,a=Vr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Vr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Xa(t),l=-r.scrollTop;return Ht(o).direction==="rtl"&&(s+=Vr(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}var B1=25;function Ph(t,e){let r=Ot(t),o=mr(t),a=r.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let g=Za();(!g||g&&e==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let p=Xa(o);if(p<=0){let g=o.ownerDocument,y=g.body,b=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,O=Math.abs(o.clientWidth-y.clientWidth-S);O<=B1&&(i-=O)}else p<=B1&&(i+=p);return{width:i,height:s,x:l,y:f}}function Ih(t,e){let r=Xn(t,!0,e==="fixed"),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=gr(t)?cn(t):tr(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,f=a*i.x,p=o*i.y;return{width:s,height:l,x:f,y:p}}function F1(t,e,r){let o;if(e==="viewport")o=Ph(t,r);else if(e==="document")o=zh(mr(t));else if(Ut(e))o=Ih(e,r);else{let a=W1(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Lo(o)}function j1(t,e){let r=Nr(t);return r===e||!Ut(r)||wo(r)?!1:Ht(r).position==="fixed"||j1(r,e)}function $h(t,e){let r=e.get(t);if(r)return r;let o=ja(t,[],!1).filter(l=>Ut(l)&&Ao(l)!=="body"),a=null,i=Ht(t).position==="fixed",s=i?Nr(t):t;for(;Ut(s)&&!wo(s);){let l=Ht(s),f=qa(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(s)&&!f&&j1(t,s))?o=o.filter(g=>g!==s):a=l,s=Nr(s)}return e.set(t,o),o}function Dh(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t,s=[...r==="clippingAncestors"?Zn(e)?[]:$h(e,this._c):[].concat(r),o],l=F1(e,s[0],a),f=l.top,p=l.right,g=l.bottom,y=l.left;for(let b=1;b<s.length;b++){let S=F1(e,s[b],a);f=Vr(S.top,f),p=Kn(S.right,p),g=Kn(S.bottom,g),y=Vr(S.left,y)}return{width:p-y,height:g-f,x:y,y:f}}function Bh(t){let{width:e,height:r}=H1(t);return{width:e,height:r}}function Fh(t,e,r){let o=gr(e),a=mr(e),i=r==="fixed",s=Xn(t,!0,i,e),l={scrollLeft:0,scrollTop:0},f=tr(0);function p(){f.x=Xa(a)}if(o||!o&&!i)if((Ao(e)!=="body"||ln(a))&&(l=Yn(e)),o){let S=Xn(e,!0,i,e);f.x=S.x+e.clientLeft,f.y=S.y+e.clientTop}else a&&p();i&&!o&&a&&p();let g=a&&!o&&!i?V1(a,l):tr(0),y=s.left+l.scrollLeft-f.x-g.x,b=s.top+l.scrollTop-f.y-g.y;return{x:y,y:b,width:s.width,height:s.height}}function Ws(t){return Ht(t).position==="static"}function U1(t,e){if(!gr(t)||Ht(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mr(t)===r&&(r=r.ownerDocument.body),r}function K1(t,e){let r=Ot(t);if(Zn(t))return r;if(!gr(t)){let a=Nr(t);for(;a&&!wo(a);){if(Ut(a)&&!Ws(a))return a;a=Nr(a)}return r}let o=U1(t,e);for(;o&&I1(o)&&Ws(o);)o=U1(o,e);return o&&wo(o)&&Ws(o)&&!qa(o)?r:o||$1(t)||r}var Uh=async function(t){let e=this.getOffsetParent||K1,r=this.getDimensions,o=await r(t.floating);return{reference:Fh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hh(t){return Ht(t).direction==="rtl"}var Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Nh,getDocumentElement:mr,getClippingRect:Dh,getOffsetParent:K1,getElementRects:Uh,getClientRects:Mh,getDimensions:Bh,getScale:cn,isElement:Ut,isRTL:Hh};var q1=N1,Z1=M1;var Y1=(t,e,r)=>{let o=new Map,a={platform:Qa,...r},i={...a.platform,_c:o};return T1(t,e,{...a,platform:i})};function X1(t){return Gh(t)}function Vs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gh(t){for(let e=t;e;e=Vs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Vs(t);e;e=Vs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Q1(t,e,r){let o;return typeof r=="object"?o=r:o={placement:r},Y1(t,e,{strategy:o.strategy,platform:{...Qa,getOffsetParent:a=>Qa.getOffsetParent(a,X1)},middleware:[Z1({crossAxis:!0}),q1({allowedPlacements:[o.placement]})]})}var xn=h(E());var gl=h(q());function Wh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,o,a;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Ja(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!Ja(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(t),r=a.length,r!==i(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=r;o--!==0;){let s=a[o];if(!Ja(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ja(t,e){try{return Wh(t,e)}catch{return!1}}function Qn(t,e){return!Ja(t,e)}function J1(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ei(t,e){let r=o=>o[t]===!0;return o=>{if(r(o))return o;let a=e(o);return a[t]=!0,a}}var e2=h(q(),1);var js=t=>{let e=t??{};return(r,o)=>{var a;let i={hasChanged:Qn,attribute:!1,...e};(0,e2.property)(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[o],store:e.store})}};var ti=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ro=h(q(),1);var t2=h(q(),1);function r2(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,t2.property)({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Qn,...e??{}})}var ri=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var n2=h(k(),1);var oi=globalThis,Vh=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IC=Symbol();var o2=(t,e)=>{if(Vh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),a=oi.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=r.cssText,t.appendChild(o)}};var ni=class extends n2.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return o2(o,e.elementStyles),o}};function a2(t,e,...r){var o;let a=t.querySelector(e);for(let i of r)a=(o=a?.shadowRoot)===null||o===void 0?void 0:o.querySelector(i);return a}var fn=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},c2,i2=Symbol("constructorPrototype"),s2=Symbol("constructorName"),d2=Symbol("exportpartsDebouncer"),l2=Symbol("dynamicDependenciesLoaded"),dn=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dn.eventName="exportparts-updated";var yr=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[c2]=new ri(5),this.scheduleExportpartsUpdate=()=>{var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[d2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[s2]=this.constructor.name,this[i2]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[s2]&&Object.setPrototypeOf(this,this[i2])}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(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[l2]||(r[l2]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dn.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dn.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 dn)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:o,shadowPath:a}=this.elementToFocus;if(o!=null){let i=[...a??[],o];r=a2(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,o,a;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(e){var r,o,a,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=e.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let g=new Set;for(let b of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(i=(a=b.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],O=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(T=>T.split(":")[1]))!==null&&l!==void 0?l:[],A=[...S,...O].filter(f).map(T=>T.trim());for(let T of A)g.add(T)}if(g.size===0){this.exportparts=void 0;return}let y=[...g.values()].flatMap(b=>p.map(S=>`${b}:${S}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};c2=d2;fn([(0,Ro.property)()],yr.prototype,"exportpartsPrefix",void 0);fn([r2([])],yr.prototype,"exportpartsPrefixes",void 0);fn([(0,Ro.property)({reflect:!0})],yr.prototype,"exportparts",void 0);fn([(0,Ro.property)()],yr.prototype,"customStylesheet",void 0);fn([(0,Ro.property)()],yr.prototype,"elementToFocus",void 0);fn([(0,Ro.state)()],yr.prototype,"useAdoptedStyleSheets",void 0);function ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jn=Symbol("internalReduxEventsUnsubscribers"),Kr=Symbol("internalStoresUnsubscribers"),_o=Symbol("internalStores"),jh=ei(Symbol("withRedux"),function(t){var e,r,o;class a extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[_o].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_o].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[_o].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[_o].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[_o].delete(l)}setupStores(){this.unsubscribeFromStores(),this[_o].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[Kr].has(s.store):this[Kr].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[Kr].set(s,l.subscribe(()=>this.updateFromStores())),this[Jn].set(s,[]),ai(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,g)=>{if(typeof this[g]=="function"&&(!p.store||l.name===p.store)){let y=b=>this[g](b);l.addEventListener(p.eventName,y),this[Jn].get(s).push(()=>l.removeEventListener(p.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Kr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Kr].has(s)&&this[Kr].get(s)(),this[Kr].delete(s),(l=this[Jn].get(s))===null||l===void 0||l.forEach(f=>f()),this[Jn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Kr,r=_o,o=Jn,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),f2=class extends jh(yr){};function Gt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Mr(t){return!!t&&!!t[Ee]}function rr(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===e3}(t)||Array.isArray(t)||!!t[b2]||!!(!((e=t.constructor)===null||e===void 0)&&e[b2])||tl(t)||rl(t))}function ko(t,e,r){r===void 0&&(r=!1),hn(t)===0?(r?Object.keys:un)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,a){return e(a,o,t)})}function hn(t){var e=t[Ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:tl(t)?2:rl(t)?3:0}function pn(t,e){return hn(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Kh(t,e){return hn(t)===2?t.get(e):t[e]}function v2(t,e,r){var o=hn(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function x2(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function tl(t){return Qh&&t instanceof Map}function rl(t){return Jh&&t instanceof Set}function qr(t){return t.o||t.t}function ol(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=O2(t);delete e[Ee];for(var r=un(e),o=0;o<r.length;o++){var a=r[o],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function nl(t,e){return e===void 0&&(e=!1),al(t)||Mr(t)||!rr(t)||(hn(t)>1&&(t.set=t.add=t.clear=t.delete=qh),Object.freeze(t),e&&ko(t,function(r,o){return nl(o,!0)},!0)),t}function qh(){Gt(2)}function al(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function br(t){var e=el[t];return e||Gt(18,t),e}function Zh(t,e){el[t]||(el[t]=e)}function Xs(){return ta}function Ks(t,e){e&&(br("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Qs(t),t.p.forEach(Yh),t.p=null}function Qs(t){t===ta&&(ta=t.l)}function p2(t){return ta={p:[],l:ta,h:t,m:!0,_:0}}function Yh(t){var e=t[Ee];e.i===0||e.i===1?e.j():e.g=!0}function qs(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||br("ES5").S(e,t,o),o?(r[Ee].P&&(ii(e),Gt(4)),rr(t)&&(t=si(e,t),e.l||li(e,t)),e.u&&br("Patches").M(r[Ee].t,t,e.u,e.s)):t=si(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==C2?t:void 0}function si(t,e,r){if(al(e))return e;var o=e[Ee];if(!o)return ko(e,function(l,f){return u2(t,o,e,l,f,r)},!0),e;if(o.A!==t)return e;if(!o.P)return li(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ol(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),ko(i,function(l,f){return u2(t,o,a,l,f,r,s)}),li(t,a,!1),r&&t.u&&br("Patches").N(o,r,t.u,t.s)}return o.o}function u2(t,e,r,o,a,i,s){if(Mr(a)){var l=si(t,a,i&&e&&e.i!==3&&!pn(e.R,o)?i.concat(o):void 0);if(v2(r,o,l),!Mr(l))return;t.m=!1}else s&&r.add(a);if(rr(a)&&!al(a)){if(!t.h.D&&t._<1)return;si(t,a),e&&e.A.l||li(t,a)}}function li(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&nl(e,r)}function Zs(t,e){var r=t[Ee];return(r?qr(r):t)[e]}function h2(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function Zr(t){t.P||(t.P=!0,t.l&&Zr(t.l))}function Ys(t){t.o||(t.o=ol(t.t))}function Js(t,e,r){var o=tl(e)?br("MapSet").F(e,r):rl(e)?br("MapSet").T(e,r):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Xs(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=ra;s&&(f=[l],p=ea);var g=Proxy.revocable(f,p),y=g.revoke,b=g.proxy;return l.k=b,l.j=y,b}(e,r):br("ES5").J(e,r);return(r?r.A:Xs()).p.push(o),o}function Xh(t){return Mr(t)||Gt(22,t),function e(r){if(!rr(r))return r;var o,a=r[Ee],i=hn(r);if(a){if(!a.P&&(a.i<4||!br("ES5").K(a)))return a.t;a.I=!0,o=m2(r,i),a.I=!1}else o=m2(r,i);return ko(o,function(s,l){a&&Kh(a.t,s)===l||v2(o,s,e(l))}),i===3?new Set(o):o}(t)}function m2(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ol(t)}function S2(){function t(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Ee];return ra.get(p,s)},set:function(p){var g=this[Ee];ra.set(g,s,p)}},f}function e(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Ee];if(!f.P)switch(f.i){case 5:o(f)&&Zr(f);break;case 4:r(f)&&Zr(f)}}}function r(s){for(var l=s.t,f=s.k,p=un(f),g=p.length-1;g>=0;g--){var y=p[g];if(y!==Ee){var b=l[y];if(b===void 0&&!pn(l,y))return!0;var S=f[y],O=S&&S[Ee];if(O?O.t!==b:!x2(S,b))return!0}}var A=!!l[Ee];return p.length!==un(l).length+(A?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&Gt(3,JSON.stringify(qr(s)))}var i={};Zh("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(y,b){if(y){for(var S=Array(b.length),O=0;O<b.length;O++)Object.defineProperty(S,""+O,t(O,!0));return S}var A=O2(b);delete A[Ee];for(var T=un(A),z=0;z<T.length;z++){var N=T[z];A[N]=t(N,y||!!A[N].enumerable)}return Object.create(Object.getPrototypeOf(b),A)}(f,s),g={i:f?5:4,A:l?l.A:Xs(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Ee,{value:g,writable:!0}),p},S:function(s,l,f){f?Mr(l)&&l[Ee].A===s&&e(s.p):(s.u&&function p(g){if(g&&typeof g=="object"){var y=g[Ee];if(y){var b=y.t,S=y.k,O=y.R,A=y.i;if(A===4)ko(S,function(F){F!==Ee&&(b[F]!==void 0||pn(b,F)?O[F]||p(S[F]):(O[F]=!0,Zr(y)))}),ko(b,function(F){S[F]!==void 0||pn(S,F)||(O[F]=!1,Zr(y))});else if(A===5){if(o(y)&&(Zr(y),O.length=!0),S.length<b.length)for(var T=S.length;T<b.length;T++)O[T]=!1;else for(var z=b.length;z<S.length;z++)O[z]=!0;for(var N=Math.min(S.length,b.length),D=0;D<N;D++)S.hasOwnProperty(D)||(O[D]=!0),O[D]===void 0&&p(S[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var g2,ta,il=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qh=typeof Map<"u",Jh=typeof Set<"u",y2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",C2=il?Symbol.for("immer-nothing"):((g2={})["immer-nothing"]=!0,g2),b2=il?Symbol.for("immer-draftable"):"__$immer_draftable",Ee=il?Symbol.for("immer-state"):"__$immer_state";var e3=""+Object.prototype.constructor,un=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,O2=Object.getOwnPropertyDescriptors||function(t){var e={};return un(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},el={},ra={get:function(t,e){if(e===Ee)return t;var r=qr(t);if(!pn(r,e))return function(a,i,s){var l,f=h2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,r,e);var o=r[e];return t.I||!rr(o)?o:o===Zs(t.t,e)?(Ys(t),t.o[e]=Js(t.A.h,o,t)):o},has:function(t,e){return e in qr(t)},ownKeys:function(t){return Reflect.ownKeys(qr(t))},set:function(t,e,r){var o=h2(qr(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var a=Zs(qr(t),e),i=a?.[Ee];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(x2(r,a)&&(r!==void 0||pn(t.t,e)))return!0;Ys(t),Zr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Zs(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ys(t),Zr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=qr(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gt(12)}},ea={};ko(ra,function(t,e){ea[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ea.deleteProperty=function(t,e){return ea.set.call(this,t,e,void 0)},ea.set=function(t,e,r){return ra.set.call(this,t[0],e,r,t[0])};var t3=function(){function t(r){var o=this;this.O=y2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=o;return function(A){var T=this;A===void 0&&(A=l);for(var z=arguments.length,N=Array(z>1?z-1:0),D=1;D<z;D++)N[D-1]=arguments[D];return f.produce(A,function(F){var oe;return(oe=i).call.apply(oe,[T,F].concat(N))})}}var p;if(typeof i!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),rr(a)){var g=p2(o),y=Js(o,a,void 0),b=!0;try{p=i(y),b=!1}finally{b?ii(g):Qs(g)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(A){return Ks(g,s),qs(A,g)},function(A){throw ii(g),A}):(Ks(g,s),qs(p,g))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===C2&&(p=void 0),o.D&&nl(p,!0),s){var S=[],O=[];br("Patches").M(a,p,S,O),s(S,O)}return p}Gt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var g=arguments.length,y=Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];return o.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(y))})};var s,l,f=o.produce(a,i,function(p,g){s=p,l=g});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){rr(r)||Gt(8),Mr(r)&&(r=Xh(r));var o=p2(this),a=Js(this,r,void 0);return a[Ee].C=!0,Qs(o),a},e.finishDraft=function(r,o){var a=r&&r[Ee],i=a.A;return Ks(i,o),qs(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!y2&&Gt(20),this.O=r},e.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=br("Patches").$;return Mr(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),_t=new t3,r3=_t.produce,XC=_t.produceWithPatches.bind(_t),QC=_t.setAutoFreeze.bind(_t),JC=_t.setUseProxies.bind(_t),eO=_t.applyPatches.bind(_t),tO=_t.createDraft.bind(_t),rO=_t.finishDraft.bind(_t),ci=r3;function To(t){"@babel/helpers - typeof";return To=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},To(t)}function L2(t,e){if(To(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(To(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function E2(t){var e=L2(t,"string");return To(e)=="symbol"?e:e+""}function A2(t,e,r){return(e=E2(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function sl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w2(Object(r),!0).forEach(function(o){A2(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w2(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function ft(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 R2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ll=function(){return Math.random().toString(36).substring(7).split("").join(".")},di={INIT:"@@redux/INIT"+ll(),REPLACE:"@@redux/REPLACE"+ll(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ll()}};function o3(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 cl(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ft(1));return r(cl)(t,e)}if(typeof t!="function")throw new Error(ft(2));var a=t,i=e,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function g(){if(f)throw new Error(ft(3));return i}function y(A){if(typeof A!="function")throw new Error(ft(4));if(f)throw new Error(ft(5));var T=!0;return p(),l.push(A),function(){if(T){if(f)throw new Error(ft(6));T=!1,p();var N=l.indexOf(A);l.splice(N,1),s=null}}}function b(A){if(!o3(A))throw new Error(ft(7));if(typeof A.type>"u")throw new Error(ft(8));if(f)throw new Error(ft(9));try{f=!0,i=a(i,A)}finally{f=!1}for(var T=s=l,z=0;z<T.length;z++){var N=T[z];N()}return A}function S(A){if(typeof A!="function")throw new Error(ft(10));a=A,b({type:di.REPLACE})}function O(){var A,T=y;return A={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ft(11));function D(){N.next&&N.next(g())}D();var F=T(D);return{unsubscribe:F}}},A[R2]=function(){return this},A}return b({type:di.INIT}),o={dispatch:b,subscribe:y,getState:g,replaceReducer:S},o[R2]=O,o}function n3(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:di.INIT});if(typeof o>"u")throw new Error(ft(12));if(typeof r(void 0,{type:di.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function _2(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}var i=Object.keys(r),s,l;try{n3(r)}catch(f){l=f}return function(p,g){if(p===void 0&&(p={}),l)throw l;if(0)var y;for(var b=!1,S={},O=0;O<i.length;O++){var A=i[O],T=r[A],z=p[A],N=T(z,g);if(typeof N>"u"){var D=g&&g.type;throw new Error(ft(14))}S[A]=N,b=b||N!==z}return b=b||i.length!==Object.keys(p).length,b?S:p}}function mn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function k2(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ft(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(s)});return i=mn.apply(void 0,l)(a.dispatch),sl(sl({},a),{},{dispatch:i})}}}function T2(t){var e=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var N2=T2();N2.withExtraArgument=T2;var dl=N2;var $2=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),a3=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(g){return f([p,g])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],a=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gn=function(t,e){for(var r=0,o=e.length,a=t.length;r<o;r++,a++)t[a]=e[r];return t},i3=Object.defineProperty,s3=Object.defineProperties,l3=Object.getOwnPropertyDescriptors,M2=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,z2=function(t,e,r){return e in t?i3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Yr=function(t,e){for(var r in e||(e={}))c3.call(e,r)&&z2(t,r,e[r]);if(M2)for(var o=0,a=M2(e);o<a.length;o++){var r=a[o];d3.call(e,r)&&z2(t,r,e[r])}return t},fl=function(t,e){return s3(t,l3(e))},f3=function(t,e,r){return new Promise(function(o,a){var i=function(f){try{l(r.next(f))}catch(p){a(p)}},s=function(f){try{l(r.throw(f))}catch(p){a(p)}},l=function(f){return f.done?o(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(t,e)).next())})};var p3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?mn:mn.apply(null,arguments)},xO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function u3(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var h3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array),m3=function(t){$2(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,gn([void 0],r[0].concat(this)))):new(e.bind.apply(e,gn([void 0],r.concat(this))))},e}(Array);function hl(t){return rr(t)?ci(t,function(){}):t}function g3(t){return typeof t=="boolean"}function y3(){return function(e){return b3(e)}}function b3(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,a=o===void 0?!0:o,i=t.serializableCheck,s=i===void 0?!0:i,l=new h3;if(r&&(g3(r)?l.push(dl):l.push(dl.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var p}return l}var pl=!0;function D2(t){var e=y3(),r=t||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?e():i,l=r.devTools,f=l===void 0?!0:l,p=r.preloadedState,g=p===void 0?void 0:p,y=r.enhancers,b=y===void 0?void 0:y,S;if(typeof a=="function")S=a;else if(u3(a))S=_2(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var O=s;if(typeof O=="function"&&(O=O(e),!pl&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!pl&&O.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=k2.apply(void 0,O),T=mn;f&&(T=p3(Yr({trace:!pl},typeof f=="object"&&f)));var z=new m3(A),N=z;Array.isArray(b)?N=gn([A],b):typeof b=="function"&&(N=b(z));var D=T.apply(void 0,N);return cl(S,g,D)}function Xr(t,e){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Yr(Yr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function B2(t){var e={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return t(a),[e,r,o]}function v3(t){return typeof t=="function"}function x3(t,e,r,o){r===void 0&&(r=[]);var a=typeof e=="function"?B2(e):[e,r,o],i=a[0],s=a[1],l=a[2],f;if(v3(t))f=function(){return hl(t())};else{var p=hl(t);f=function(){return p}}function g(y,b){y===void 0&&(y=f());var S=gn([i[b.type]],s.filter(function(O){var A=O.matcher;return A(b)}).map(function(O){var A=O.reducer;return A}));return S.filter(function(O){return!!O}).length===0&&(S=[l]),S.reduce(function(O,A){if(A)if(Mr(O)){var T=O,z=A(T,b);return z===void 0?O:z}else{if(rr(O))return ci(O,function(N){return A(N,b)});var z=A(O,b);if(z===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return z}return O},y)}return g.getInitialState=f,g}function S3(t,e){return t+"/"+e}function F2(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:hl(t.initialState),o=t.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(g){var y=o[g],b=S3(e,g),S,O;"reducer"in y?(S=y.reducer,O=y.prepare):S=y,i[g]=S,s[b]=S,l[g]=O?Xr(b,O):Xr(b)});function f(){var g=typeof t.extraReducers=="function"?B2(t.extraReducers):[t.extraReducers],y=g[0],b=y===void 0?{}:y,S=g[1],O=S===void 0?[]:S,A=g[2],T=A===void 0?void 0:A,z=Yr(Yr({},b),s);return x3(r,function(N){for(var D in z)N.addCase(D,z[D]);for(var F=0,oe=O;F<oe.length;F++){var Ce=oe[F];N.addMatcher(Ce.matcher,Ce.reducer)}T&&N.addDefaultCase(T)})}var p;return{name:e,reducer:function(g,y){return p||(p=f()),p(g,y)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var C3="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O3=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=C3[Math.random()*64|0];return e},L3=["name","message","stack","code"],ul=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),P2=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),E3=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=L3;r<o.length;r++){var a=o[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},LO=function(){function t(e,r,o){var a=Xr(e+"/fulfilled",function(g,y,b,S){return{payload:g,meta:fl(Yr({},S||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),i=Xr(e+"/pending",function(g,y,b){return{payload:void 0,meta:fl(Yr({},b||{}),{arg:y,requestId:g,requestStatus:"pending"})}}),s=Xr(e+"/rejected",function(g,y,b,S,O){return{payload:S,error:(o&&o.serializeError||E3)(g||"Rejected"),meta:fl(Yr({},O||{}),{arg:b,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function p(g){return function(y,b,S){var O=o?.idGenerator?o.idGenerator(g):O3(),A=new f,T,z=!1;function N(F){T=F,A.abort()}var D=function(){return f3(this,null,function(){var F,oe,Ce,St,Ze,fr,Ye;return a3(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),St=(F=o?.condition)==null?void 0:F.call(o,g,{getState:b,extra:S}),w3(St)?[4,St]:[3,2];case 1:St=x.sent(),x.label=2;case 2:if(St===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return z=!0,Ze=new Promise(function(L,U){return A.signal.addEventListener("abort",function(){return U({name:"AbortError",message:T||"Aborted"})})}),y(i(O,g,(oe=o?.getPendingMeta)==null?void 0:oe.call(o,{requestId:O,arg:g},{getState:b,extra:S}))),[4,Promise.race([Ze,Promise.resolve(r(g,{dispatch:y,getState:b,extra:S,requestId:O,signal:A.signal,abort:N,rejectWithValue:function(L,U){return new ul(L,U)},fulfillWithValue:function(L,U){return new P2(L,U)}})).then(function(L){if(L instanceof ul)throw L;return L instanceof P2?a(L.payload,O,g,L.meta):a(L,O,g)})])];case 3:return Ce=x.sent(),[3,5];case 4:return fr=x.sent(),Ce=fr instanceof ul?s(null,O,g,fr.payload,fr.meta):s(fr,O,g),[3,5];case 5:return Ye=o&&!o.dispatchConditionRejection&&s.match(Ce)&&Ce.meta.condition,Ye||y(Ce),[2,Ce]}})})}();return Object.assign(D,{abort:N,requestId:O,arg:g,unwrap:function(){return D.then(A3)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function A3(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function w3(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var U2="listener",H2="completed",G2="cancelled",EO="task-"+G2,AO="task-"+H2,wO=U2+"-"+G2,RO=U2+"-"+H2;var ml="listenerMiddleware";var _O=Xr(ml+"/add"),kO=Xr(ml+"/removeAll"),TO=Xr(ml+"/remove");var I2,NO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(I2||(I2=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},R3=function(t){return function(e){setTimeout(e,t)}},MO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R3(10);S2();var _3=ei(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,o,a){this.eventBus.addEventListener(r,o,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,o,a){this.eventBus.removeEventListener(r,o,a)}}}),fi=class extends _3(Object){};window.ftReduxStores||(window.ftReduxStores={});var W2=class t extends fi{static get(e){var r;let o=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[o];if(ai(i))return i;if(a==null)return;let s=F2({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=D2({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let g=J1(s.getInitialState());for(let y of p.keeping)g[y]=(f??g)[y];return g}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[a.name]=new t(s,l,a.eventBus)}constructor(e,r,o){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ti;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...g)=>{let y=p(...g.map(a));return this.reduxStore.dispatch(y),y}:g=>{this.setState({[f]:a(g)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var pi=class{static format(e,r,o,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(o,a)):this.getIntlDateTime(e,r,o,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,o,a){let i=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:o?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ui=h(E()),k3="ft-app-info",No=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};No.eventName="authentication-change";var T3={session:(t,e)=>{(0,ui.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new No(e.payload)),0))}},I=ui.FtReduxStore.get({name:k3,reducers:T3,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 V2=h(E()),hi=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},sL=(0,V2.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>pi.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return hi([(0,gl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),hi([(0,gl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),hi([js({store:I.name,selector:r=>{var o,a;return(a=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),hi([js({store:I.name})],e.prototype,"uiLocale",void 0),e});var M3=h(K2(),1);var q2;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(q2||(q2={}));var Z2;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Z2||(Z2={}));var Y2;(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"})(Y2||(Y2={}));var X2;(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"})(X2||(X2={}));var Q2;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Q2||(Q2={}));var J2;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(J2||(J2={}));var ef;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(ef||(ef={}));var tf;(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"})(tf||(tf={}));var rf;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(rf||(rf={}));var of;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(of||(of={}));var nf;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(nf||(nf={}));var af;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(af||(af={}));var sf;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(sf||(sf={}));var lf;(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"})(lf||(lf={}));var cf;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(cf||(cf={}));var df;(function(t){t.ASC="ASC",t.DESC="DESC"})(df||(df={}));var ff;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ff||(ff={}));var pf;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(pf||(pf={}));var uf;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(uf||(uf={}));var hf;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hf||(hf={}));var mf;(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"})(mf||(mf={}));var gf;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(gf||(gf={}));var yf;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yf||(yf={}));var bf;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bf||(bf={}));var vf;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vf||(vf={}));var Pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Pe||(Pe={}));var Wt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Wt||(Wt={}));var xf;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(xf||(xf={}));var Sf;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Sf||(Sf={}));var Cf;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Cf||(Cf={}));var Of;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Of||(Of={}));var Lf;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Lf||(Lf={}));var Ef;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Ef||(Ef={}));var Af;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Af||(Af={}));var wf;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(wf||(wf={}));var Rf;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Rf||(Rf={}));var N3={[Pe.PERSONAL_BOOK_SHARE_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.HTML_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.PDF_EXPORT_USER]:[Pe.PERSONAL_BOOK_USER],[Pe.KHUB_ADMIN]:[Pe.CONTENT_PUBLISHER],[Pe.ADMIN]:[Pe.KHUB_ADMIN,Pe.USERS_ADMIN,Pe.PORTAL_ADMIN,Pe.BEHAVIOR_DATA_USER],[Pe.GENERATIVE_AI_EXPORT_USER]:[Pe.GENERATIVE_AI_USER]};function _f(t,e){return t===e||(N3[t]??[]).some(r=>_f(r,e))}function kf(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(o=>_f(o,e))}var Ci=h(E());var yl=h(E());var Mo=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=I.getState(),a=e??o;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let a=I.subscribe(()=>{o=t.get(e),o&&(a(),r(o))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Mo.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mo.await()}};var kt=class extends yi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(o=a.commonCache)!==null&&o!==void 0?o:new yl.CacheRegistry,this.cache=e?a.commonCache:new yl.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}};var bi=class extends kt{async listMySearches(){let{session:e}=I.getState();return kf(e,Pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vi=class extends kt{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var xi=class extends kt{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=I.getState().session;return!!e?.sessionAuthenticated}};var Si=class extends kt{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=I.getState().session;return!!e?.sessionAuthenticated}};var z3="ft-user-assets",P3={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(Wt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:o,asset:a}=e.payload;vl(t,r,[...bl(t,r),a]),Tf(t,r,1,o),Nf(t,a)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;vl(t,r,bl(t,r).map(a=>a.id===o.id?o:a)),Nf(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:a}=e.payload;vl(t,r,bl(t,r).filter(i=>i.id!==a)),Tf(t,r,-1,o)}},Mf={[Wt.SEARCHES]:"savedSearches",[Wt.BOOKMARKS]:"bookmarks",[Wt.BOOKS]:void 0,[Wt.COLLECTIONS]:void 0},bl=(t,e)=>{var r;let o=Mf[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},vl=(t,e,r)=>{let o=Mf[e];o&&(t[o]=r)},Tf=(t,e,r,o)=>{let a=t.assetCounts.allAsset[e];if(a!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,a+r),e===Wt.BOOKMARKS&&o)){let i=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,i+r)}},Nf=(t,e)=>{let r=t.assetLabels.map(a=>a.title),o=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));t.assetLabels.push(...o)},Tt=Ci.FtReduxStore.get({name:z3,reducers:P3,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Wt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xl=class{constructor(e=new xi,r=new Si){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vi,this.savedSearchesService=new bi,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,Ci.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Tt.actions.clearAssetCount(),Tt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Tt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Tt.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Tt.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Tt.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Tt.getState().assetCounts.bookmarkByMap).length!==0;e===Wt.BOOKMARKS&&r&&Tt.actions.clearBookmarkCountByMap(),Tt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Tt.actions.bookmarks(r)}}},I3=new xl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=I3);var Sl=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sl;var Vt=h(E());var zf,bn=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$3=Symbol("clearAfterUnitTest"),Oi=class extends(0,Vt.withEventBus)(kt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[zf]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Vt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof Vt.CanceledPromiseError)&&r&&console.error(a)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new bn({loadedContexts:e})),this.dispatchEvent(new bn({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new bn({loadedContexts:[e]})),this.dispatchEvent(new bn({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Vt.delay)(0).then(()=>o()).catch(()=>null)))}};zf=$3;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oa=window.FluidTopicsI18nService,Cl=window.FluidTopicsCustomI18nService;var Pf=h(E()),Ol=class{highlightHtml(e,r,o){(0,Pf.highlightHtml)(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Ol;var If=h(E());var Ll=class{isDate(e){var r,o,a,i;return(i=(a=((o=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var o,a,i;if(e==null)return"";try{return If.DateFormatter.format(e,(o=r?.locale)!==null&&o!==void 0?o:I.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(e)} is not valid`,s),s}}};window.FluidTopicsDateService=new Ll;var $f=h(E());var na=class{static get(e,r){var o,a;let i=I.getState(),{lang:s,region:l}=(a=(o=i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(i.baseUrl,e??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var El=class{urlToSearchRequest(e){return na.get().parse(e)}searchRequestToUrl(e){return na.get().serialize(e)}};window.FluidTopicsUrlService=new El;var Jr=h(E());var zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zo.eventName="change";var Al=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Df=new Al;var Li=class t extends Jr.WithEventBus{static build(){return new t(window.history,Df,()=>window.location,!1)}constructor(e,r,o,a){var i,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Jr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zo(this.currentItem())),0)}installProxies(){let e=r=>(o,a,[i,s,l])=>{let f=r(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(zo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zo.eventName,e)}currentItem(){return(0,Jr.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,Jr.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,Jr.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 r;let o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let a=e,i=e+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,o);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Li.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 Bf=h(k());var Ff=Bf.css`
628
628
  `;var Hf=h(k()),et=h(q()),or=h(E());function Uf(t,e){let{authenticationRequired:r,session:o}=I.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var We=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ye=class extends or.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=()=>Mo.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new or.CacheRegistry,this.cleanSessionDebouncer=new or.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Hf.html`
629
629
  <slot></slot>
630
630
  `}connectedCallback(){super.connectedCallback(),I.addEventListener(No.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(No.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,o,a,i,s,l,f;super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>oa.addContext(p)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),I.actions.availableUiLocales((a=(o=this.localesConfiguration)===null||o===void 0?void 0:o.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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",()=>Uf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ye.elementDefinitions={};ye.styles=Ff;We([(0,et.property)()],ye.prototype,"baseUrl",void 0);We([(0,et.property)()],ye.prototype,"apiIntegrationIdentifier",void 0);We([(0,et.property)()],ye.prototype,"apiIntegrationAppVersion",void 0);We([(0,et.property)()],ye.prototype,"uiLocale",void 0);We([(0,or.jsonProperty)(null)],ye.prototype,"availableUiLocales",void 0);We([(0,or.jsonProperty)(null)],ye.prototype,"metadataConfiguration",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"editorMode",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"noCustom",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"openExternalDocumentInNewTab",void 0);We([(0,et.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ye.prototype,"noCustomComponent",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"withManualResources",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"navigatorOnline",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"forcedOffline",void 0);We([(0,et.property)({type:Object})],ye.prototype,"apiProvider",void 0);We([(0,et.property)({type:Boolean})],ye.prototype,"authenticationRequired",void 0);We([(0,or.jsonProperty)([])],ye.prototype,"messageContexts",void 0);We([(0,or.jsonProperty)(void 0)],ye.prototype,"session",void 0);We([(0,et.state)()],ye.prototype,"localesConfiguration",void 0);We([(0,et.state)()],ye.prototype,"availableContentLocales",void 0);var Gf=h(E());(0,Gf.customElement)("ft-app-context")(ye);var Wf=h(q());var wl=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},vn=new wl;var D3=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ia=Symbol("i18nAttributes"),Vf=Symbol("i18nListAttributes"),jf=Symbol("i18nProperties"),Ei=Symbol("i18nContexts"),aa=Symbol("i18nUnsubs"),Ri=(0,xn.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Cl:oa}i18n(i){let{context:s,key:l,message:f}=i,{custom:p,args:g,argsProvider:y}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=g??(y?y(this):[]);return this.getI18nService(p).resolveMessage(s,l,...b)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(vn.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var p;return((p=f?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,p=(g,y,b)=>b?.context&&b.key&&i(g,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...g})}:b;(s=this[ia])===null||s===void 0||s.forEach((g,y)=>f[y]=p(g,y,f[y])),(l=this[Vf])===null||l===void 0||l.forEach((g,y)=>{var b;return f[y]=(b=f[y])===null||b===void 0?void 0:b.map(S=>p(g,y,S))})}updateI18nProperties(i){var s;(s=this[jf])===null||s===void 0||s.forEach((l,f)=>{i(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let f=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[Ei].set(f,{isCustomContext:l}),this[aa].has(f)||this[aa].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[Ei].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ei].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[aa].forEach(i=>i()),this[aa].clear()}}return e=Ei,r=aa,D3([(0,Wf.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ai=class extends Ri(xn.FtLitElement){},wi=class extends Ri(xn.FtLitElementRedux){};var Kf=h(E());var Rl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?vn.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},B3=new Rl;var qf=(t,e)=>(r,o)=>{var a;r.constructor.createProperty(o,{type:Object,hasChanged:Kf.hasChanged,converter:vn,...e}),r[ia]=(a=r[ia])!==null&&a!==void 0?a:new Map,r[ia].set(o,t??{})};var Zf=h(k());var Yf=Zf.css`
@@ -647,7 +647,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
647
647
  </div>
648
648
  </div>
649
649
  </div>
650
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",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("mouseover",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){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Q1(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${jt.designSystemVariables.transitionDuration}, left ${jt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,jt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Te.elementDefinitions={"ft-typography":ie};Te.styles=O1;ar([qf()],Te.prototype,"text",void 0);ar([(0,Kt.property)({type:Boolean})],Te.prototype,"manual",void 0);ar([(0,Kt.property)({type:Boolean})],Te.prototype,"inline",void 0);ar([(0,jt.numberProperty)()],Te.prototype,"delay",void 0);ar([(0,Kt.property)()],Te.prototype,"position",void 0);ar([(0,jt.jsonProperty)([])],Te.prototype,"ignoreMatchingElements",void 0);ar([(0,Kt.queryAssignedNodes)()],Te.prototype,"slotNodes",void 0);ar([(0,Kt.query)(".ft-tooltip--container")],Te.prototype,"container",void 0);ar([(0,Kt.query)(".ft-tooltip")],Te.prototype,"tooltip",void 0);ar([(0,Kt.query)(".ft-tooltip--content")],Te.prototype,"tooltipContent",void 0);ar([(0,Kt.state)()],Te.prototype,"visible",void 0);var Jf=h(E());(0,Jf.customElement)("ft-tooltip")(Te);var tt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(tt||(tt={}));var la=h(k()),eo=h(q()),rp=h(E()),op=h(_l());var Ae;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.CLOUD_SLASH="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.CLOUD="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM_REGULAR="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS_REGULAR="&#xe9bd;",t.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(Ae||(Ae={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var kl=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]),F3=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function tp(t,e){var r,o,a,i;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=F3.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(i=(a=(o=kl.get(l))!==null&&o!==void 0?o:kl.get(e))!==null&&a!==void 0?a:kl.get(s))!==null&&i!==void 0?i:_.UNKNOWN}var VA={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ca=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ce=class extends rp.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=la.nothing}render(){let e=this.variant&&Object.values(tt).includes(this.variant)?this.variant:tt.fluid_topics,r=e!==tt.material||!!this.value;return la.html`
650
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",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("mouseover",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){var r,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let o=this.manual;this.manual=!0;let a=this.text;this.text={message:e},await this.show(r),this.text=a,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Q1(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${jt.designSystemVariables.transitionDuration}, left ${jt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,jt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Te.elementDefinitions={"ft-typography":ie};Te.styles=O1;ar([qf()],Te.prototype,"text",void 0);ar([(0,Kt.property)({type:Boolean})],Te.prototype,"manual",void 0);ar([(0,Kt.property)({type:Boolean})],Te.prototype,"inline",void 0);ar([(0,jt.numberProperty)()],Te.prototype,"delay",void 0);ar([(0,Kt.property)()],Te.prototype,"position",void 0);ar([(0,jt.jsonProperty)([])],Te.prototype,"ignoreMatchingElements",void 0);ar([(0,Kt.queryAssignedNodes)()],Te.prototype,"slotNodes",void 0);ar([(0,Kt.query)(".ft-tooltip--container")],Te.prototype,"container",void 0);ar([(0,Kt.query)(".ft-tooltip")],Te.prototype,"tooltip",void 0);ar([(0,Kt.query)(".ft-tooltip--content")],Te.prototype,"tooltipContent",void 0);ar([(0,Kt.state)()],Te.prototype,"visible",void 0);var Jf=h(E());(0,Jf.customElement)("ft-tooltip")(Te);var tt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(tt||(tt={}));var la=h(k()),eo=h(q()),rp=h(E()),op=h(_l());var Ae;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM_REGULAR="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS_REGULAR="&#xe9bd;",t.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(Ae||(Ae={}));var _;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(_||(_={}));var kl=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]),F3=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function tp(t,e){var r,o,a,i;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=F3.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(i=(a=(o=kl.get(l))!==null&&o!==void 0?o:kl.get(e))!==null&&a!==void 0?a:kl.get(s))!==null&&i!==void 0?i:_.UNKNOWN}var VA={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ca=function(t,e,r,o){var a=arguments.length,i=a<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},ce=class extends rp.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=la.nothing}render(){let e=this.variant&&Object.values(tt).includes(this.variant)?this.variant:tt.fluid_topics,r=e!==tt.material||!!this.value;return la.html`
651
651
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
652
652
  ${(0,op.unsafeHTML)(this.resolvedIcon)}
653
653
  <slot ?hidden=${r}></slot>