@fluid-topics/ft-search-breadcrumbs 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.
|
@@ -154,7 +154,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
154
154
|
position: relative;
|
|
155
155
|
word-break: break-word;
|
|
156
156
|
}
|
|
157
|
-
`;var hc=["top","right","bottom","left"],pc=["start","end"],fa=hc.reduce((e,t)=>e.concat(t,t+"-"+pc[0],t+"-"+pc[1]),[]),jr=Math.min,St=Math.max,Vr=Math.round;var Ge=e=>({x:e,y:e}),sd={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e,t,r){return St(e,jr(t,r))}function No(e,t){return typeof e=="function"?e(t):e}function xr(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function pa(e){return e==="x"?"y":"x"}function ha(e){return e==="y"?"height":"width"}function To(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ma(e){return pa(To(e))}function mc(e,t,r){r===void 0&&(r=!1);let n=Ct(e),a=ma(e),i=ha(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=da(s)),[s,da(s)]}function gc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function da(e){let t=xr(e);return sd[t]+e.slice(t.length)}function cd(e){return{top:0,right:0,bottom:0,left:0,...e}}function yc(e){return typeof e!="number"?cd(e):{top:e,right:e,bottom:e,left:e}}function jt(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function bc(e,t,r){let{reference:n,floating:a}=e,i=To(t),s=ma(t),l=ha(s),f=xr(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,x;switch(f){case"top":x={x:m,y:n.y-a.height};break;case"bottom":x={x:m,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:g};break;case"left":x={x:n.x-a.width,y:g};break;default:x={x:n.x,y:n.y}}switch(Ct(t)){case"start":x[s]-=y*(r&&u?-1:1);break;case"end":x[s]+=y*(r&&u?-1:1);break}return x}async function xc(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=No(t,e),v=yc(x),O=l[y?g==="floating"?"reference":"floating":g],_=jt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(O)))==null||r?O:O.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),R=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),P=await(i.isElement==null?void 0:i.isElement(M))?await(i.getScale==null?void 0:i.getScale(M))||{x:1,y:1}:{x:1,y:1},H=jt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:M,strategy:f}):R);return{top:(_.top-H.top+v.top)/P.y,bottom:(H.bottom-_.bottom+v.bottom)/P.y,left:(_.left-H.left+v.left)/P.x,right:(H.right-_.right+v.right)/P.x}}var ld=50,vc=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:xc},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=bc(u,n,f),y=n,x=0,v={};for(let E=0;E<i.length;E++){let O=i[E];if(!O)continue;let{name:_,fn:R}=O,{x:M,y:P,data:H,reset:Z}=await R({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:v,rects:u,platform:l,elements:{reference:e,floating:t}});m=M??m,g=P??g,v[_]={...v[_],...H},Z&&x<ld&&(x++,typeof Z=="object"&&(Z.placement&&(y=Z.placement),Z.rects&&(u=Z.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):Z.rects),{x:m,y:g}=bc(u,y,f)),E=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:v}};function dd(e,t,r){return(e?[...r.filter(a=>Ct(a)===e),...r.filter(a=>Ct(a)!==e)]:r.filter(a=>xr(a)===a)).filter(a=>e?Ct(a)===e||(t?gc(a)!==a:!1):!0)}var Sc=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=fa,autoAlignment:x=!0,...v}=No(e,t),E=g!==void 0||y===fa?dd(g||null,x,y):y,O=await f.detectOverflow(t,v),_=((r=s.autoPlacement)==null?void 0:r.index)||0,R=E[_];if(R==null)return{};let M=mc(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==R)return{reset:{placement:E[0]}};let P=[O[xr(R)],O[M[0]],O[M[1]]],H=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:P}],Z=E[_+1];if(Z)return{data:{index:_+1,overflows:H},reset:{placement:Z}};let ve=H.map(ce=>{let b=Ct(ce.placement);return[ce.placement,b&&m?ce.overflows.slice(0,2).reduce((C,I)=>C+I,0):ce.overflows[0],ce.overflows]}).sort((ce,b)=>ce[1]-b[1]),Ze=((a=ve.filter(ce=>ce[2].slice(0,Ct(ce[0])?2:3).every(b=>b<=0))[0])==null?void 0:a[0])||ve[0][0];return Ze!==l?{data:{index:_+1,overflows:H},reset:{placement:Ze}}:{}}}};var Cc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:_=>{let{x:R,y:M}=_;return{x:R,y:M}}},...u}=No(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=To(xr(a)),x=pa(y),v=m[x],E=m[y];if(s){let _=x==="y"?"top":"left",R=x==="y"?"bottom":"right",M=v+g[_],P=v-g[R];v=ua(M,v,P)}if(l){let _=y==="y"?"top":"left",R=y==="y"?"bottom":"right",M=E+g[_],P=E-g[R];E=ua(M,E,P)}let O=f.fn({...t,[x]:v,[y]:E});return{...O,data:{x:O.x-r,y:O.y-n,enabled:{[x]:s,[y]:l}}}}}};function Po(){return typeof window<"u"}function Kt(e){return Ac(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(Ac(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ac(e){return Po()?e instanceof Node||e instanceof Se(e).Node:!1}function Pe(e){return Po()?e instanceof Element||e instanceof Se(e).Element:!1}function Qe(e){return Po()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ec(e){return!Po()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}function vr(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function Lc(e){return/^(table|td|th)$/.test(Kt(e))}function Kr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var fd=/transform|translate|scale|rotate|perspective|filter/,ud=/paint|layout|strict|content/,Vt=e=>!!e&&e!=="none",ga;function zo(e){let t=Pe(e)?ze(e):e;return Vt(t.transform)||Vt(t.translate)||Vt(t.scale)||Vt(t.rotate)||Vt(t.perspective)||!ko()&&(Vt(t.backdropFilter)||Vt(t.filter))||fd.test(t.willChange||"")||ud.test(t.contain||"")}function Oc(e){let t=ct(e);for(;Qe(t)&&!qt(t);){if(zo(t))return t;if(Kr(t))return null;t=ct(t)}return null}function ko(){return ga==null&&(ga=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ga}function qt(e){return/^(html|body|#document)$/.test(Kt(e))}function ze(e){return Se(e).getComputedStyle(e)}function qr(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(Kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ec(e)&&e.host||Xe(e);return Ec(t)?t.host:t}function Rc(e){let t=ct(e);return qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qe(t)&&vr(t)?t:Rc(t)}function Mo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=Rc(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Se(a);if(i){let l=Io(s);return t.concat(s,s.visualViewport||[],vr(a)?a:[],l&&r?Mo(l):[])}else return t.concat(a,Mo(a,[],r))}function Io(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tc(e){let t=ze(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Qe(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,l=Vr(r)!==i||Vr(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function Mc(e){return Pe(e)?e:e.contextElement}function Sr(e){let t=Mc(e);if(!Qe(t))return Ge(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=Tc(t),s=(i?Vr(r.width):r.width)/n,l=(i?Vr(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var pd=Ge(0);function Pc(e){let t=Se(e);return!ko()||!t.visualViewport?pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Se(e)?!1:t}function Zr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=Mc(e),s=Ge(1);t&&(n?Pe(n)&&(s=Sr(n)):s=Sr(e));let l=hd(i,r,n)?Pc(i):Ge(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=Se(i),x=n&&Pe(n)?Se(n):n,v=y,E=Io(v);for(;E&&n&&x!==v;){let O=Sr(E),_=E.getBoundingClientRect(),R=ze(E),M=_.left+(E.clientLeft+parseFloat(R.paddingLeft))*O.x,P=_.top+(E.clientTop+parseFloat(R.paddingTop))*O.y;f*=O.x,u*=O.y,m*=O.x,g*=O.y,f+=M,u+=P,v=Se(E),E=Io(v)}}return jt({width:m,height:g,x:f,y:u})}function Do(e,t){let r=qr(e).scrollLeft;return t?t.left+r:Zr(Xe(e)).left+r}function zc(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Do(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function md(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Xe(n),l=t?Kr(t.floating):!1;if(n===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},u=Ge(1),m=Ge(0),g=Qe(n);if((g||!g&&!i)&&((Kt(n)!=="body"||vr(s))&&(f=qr(n)),g)){let x=Zr(n);u=Sr(n),m.x=x.x+n.clientLeft,m.y=x.y+n.clientTop}let y=s&&!g&&!i?zc(s,f):Ge(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function gd(e){return Array.from(e.getClientRects())}function yd(e){let t=Xe(e),r=qr(e),n=e.ownerDocument.body,a=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Do(e),l=-r.scrollTop;return ze(n).direction==="rtl"&&(s+=St(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var wc=25;function bd(e,t){let r=Se(e),n=Xe(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let m=ko();(!m||m&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=Do(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(n.clientWidth-g.clientWidth-x);v<=wc&&(i-=v)}else u<=wc&&(i+=u);return{width:i,height:s,x:l,y:f}}function xd(e,t){let r=Zr(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Qe(e)?Sr(e):Ge(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function _c(e,t,r){let n;if(t==="viewport")n=bd(e,r);else if(t==="document")n=yd(Xe(e));else if(Pe(t))n=xd(t,r);else{let a=Pc(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return jt(n)}function kc(e,t){let r=ct(e);return r===t||!Pe(r)||qt(r)?!1:ze(r).position==="fixed"||kc(r,t)}function vd(e,t){let r=t.get(e);if(r)return r;let n=Mo(e,[],!1).filter(l=>Pe(l)&&Kt(l)!=="body"),a=null,i=ze(e).position==="fixed",s=i?ct(e):e;for(;Pe(s)&&!qt(s);){let l=ze(s),f=zo(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||vr(s)&&!f&&kc(e,s))?n=n.filter(m=>m!==s):a=l,s=ct(s)}return t.set(e,n),n}function Sd(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?Kr(t)?[]:vd(t,this._c):[].concat(r),n],l=_c(t,s[0],a),f=l.top,u=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=_c(t,s[y],a);f=St(x.top,f),u=jr(x.right,u),m=jr(x.bottom,m),g=St(x.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function Cd(e){let{width:t,height:r}=Tc(e);return{width:t,height:r}}function Ed(e,t,r){let n=Qe(t),a=Xe(t),i=r==="fixed",s=Zr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=Ge(0);function u(){f.x=Do(a)}if(n||!n&&!i)if((Kt(t)!=="body"||vr(a))&&(l=qr(t)),n){let x=Zr(t,!0,i,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?zc(a,l):Ge(0),g=s.left+l.scrollLeft-f.x-m.x,y=s.top+l.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function ya(e){return ze(e).position==="static"}function Nc(e,t){if(!Qe(e)||ze(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xe(e)===r&&(r=r.ownerDocument.body),r}function Ic(e,t){let r=Se(e);if(Kr(e))return r;if(!Qe(e)){let a=ct(e);for(;a&&!qt(a);){if(Pe(a)&&!ya(a))return a;a=ct(a)}return r}let n=Nc(e,t);for(;n&&Lc(n)&&ya(n);)n=Nc(n,t);return n&&qt(n)&&ya(n)&&!zo(n)?r:n||Oc(e)||r}var Ad=async function(e){let t=this.getOffsetParent||Ic,r=this.getDimensions,n=await r(e.floating);return{reference:Ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ld(e){return ze(e).direction==="rtl"}var Uo={convertOffsetParentRelativeRectToViewportRelativeRect:md,getDocumentElement:Xe,getClippingRect:Sd,getOffsetParent:Ic,getElementRects:Ad,getClientRects:gd,getDimensions:Cd,getScale:Sr,isElement:Pe,isRTL:Ld};var Dc=Sc,Uc=Cc;var Bc=(e,t,r)=>{let n=new Map,a={platform:Uo,...r},i={...a.platform,_c:n};return vc(e,t,{...a,platform:i})};function Hc(e){return Od(e)}function ba(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Od(e){for(let t=e;t;t=ba(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ba(e);t;t=ba(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Gc(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Bc(e,t,{strategy:n.strategy,platform:{...Uo,getOffsetParent:a=>Uo.getOffsetParent(a,Hc)},middleware:[Uc({crossAxis:!0}),Dc({allowedPlacements:[n.placement]})]})}var Mr=S(k());var $a=S(Q());function Rd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Bo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Bo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!Bo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Bo(e,t){try{return Rd(e,t)}catch{return!1}}function Yr(e,t){return!Bo(e,t)}function Fc(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Ho(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var $c=S(Q(),1);var xa=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:Yr,attribute:!1,...t};(0,$c.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Go=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Zt=S(Q(),1);var Wc=S(Q(),1);function jc(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Wc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Yr,...t??{}})}var Fo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Kc=S($(),1);var $o=globalThis,wd=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qy=Symbol();var Vc=(e,t)=>{if(wd)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=$o.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Wo=class extends Kc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Vc(n,t.elementStyles),n}};function qc(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Er=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Qc,Zc=Symbol("constructorPrototype"),Yc=Symbol("constructorName"),Jc=Symbol("exportpartsDebouncer"),Xc=Symbol("dynamicDependenciesLoaded"),Cr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Cr.eventName="exportparts-updated";var Je=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Qc]=new Fo(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Jc].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[Yc]=this.constructor.name,this[Zc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Yc]&&Object.setPrototypeOf(this,this[Zc])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Xc]||(r[Xc]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Cr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=qc(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[],E=[...x,...v].filter(f).map(O=>O.trim());for(let O of E)m.add(O)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Qc=Jc;Er([(0,Zt.property)()],Je.prototype,"exportpartsPrefix",void 0);Er([jc([])],Je.prototype,"exportpartsPrefixes",void 0);Er([(0,Zt.property)({reflect:!0})],Je.prototype,"exportparts",void 0);Er([(0,Zt.property)()],Je.prototype,"customStylesheet",void 0);Er([(0,Zt.property)()],Je.prototype,"elementToFocus",void 0);Er([(0,Zt.state)()],Je.prototype,"useAdoptedStyleSheets",void 0);function jo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Xr=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores"),_d=Ho(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Yt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Yt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Yt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Yt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Et].has(s.store):this[Et].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[Et].set(s,l.subscribe(()=>this.updateFromStores())),this[Xr].set(s,[]),jo(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[m](y);l.addEventListener(u.eventName,g),this[Xr].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Et].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Et].has(s)&&this[Et].get(s)(),this[Et].delete(s),(l=this[Xr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Et,r=Yt,n=Xr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),el=class extends _d(Je){};function ke(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lt(e){return!!e&&!!e[Y]}function Fe(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Dd}(e)||Array.isArray(e)||!!e[sl]||!!(!((t=e.constructor)===null||t===void 0)&&t[sl])||wa(e)||_a(e))}function Xt(e,t,r){r===void 0&&(r=!1),Or(e)===0?(r?Object.keys:Lr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Or(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wa(e)?2:_a(e)?3:0}function Ar(e,t){return Or(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nd(e,t){return Or(e)===2?e.get(t):e[t]}function cl(e,t,r){var n=Or(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ll(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wa(e){return kd&&e instanceof Map}function _a(e){return Id&&e instanceof Set}function At(e){return e.o||e.t}function Na(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ul(e);delete t[Y];for(var r=Lr(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Ta(e,t){return t===void 0&&(t=!1),Ma(e)||lt(e)||!Fe(e)||(Or(e)>1&&(e.set=e.add=e.clear=e.delete=Td),Object.freeze(e),t&&Xt(e,function(r,n){return Ta(n,!0)},!0)),e}function Td(){ke(2)}function Ma(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function et(e){var t=Ra[e];return t||ke(18,e),t}function Md(e,t){Ra[e]||(Ra[e]=t)}function Aa(){return Jr}function va(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function Vo(e){La(e),e.p.forEach(Pd),e.p=null}function La(e){e===Jr&&(Jr=e.l)}function tl(e){return Jr={p:[],l:Jr,h:e,m:!0,_:0}}function Pd(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Sa(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||et("ES5").S(t,e,n),n?(r[Y].P&&(Vo(t),ke(4)),Fe(e)&&(e=Ko(t,e),t.l||qo(t,e)),t.u&&et("Patches").M(r[Y].t,e,t.u,t.s)):e=Ko(t,r,[]),Vo(t),t.u&&t.v(t.u,t.s),e!==fl?e:void 0}function Ko(e,t,r){if(Ma(t))return t;var n=t[Y];if(!n)return Xt(t,function(l,f){return rl(e,n,t,l,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Na(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Xt(i,function(l,f){return rl(e,n,a,l,f,r,s)}),qo(e,a,!1),r&&e.u&&et("Patches").N(n,r,e.u,e.s)}return n.o}function rl(e,t,r,n,a,i,s){if(lt(a)){var l=Ko(e,a,i&&t&&t.i!==3&&!Ar(t.R,n)?i.concat(n):void 0);if(cl(r,n,l),!lt(l))return;e.m=!1}else s&&r.add(a);if(Fe(a)&&!Ma(a)){if(!e.h.D&&e._<1)return;Ko(e,a),t&&t.A.l||qo(e,a)}}function qo(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ta(t,r)}function Ca(e,t){var r=e[Y];return(r?At(r):e)[t]}function ol(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function Ea(e){e.o||(e.o=Na(e.t))}function Oa(e,t,r){var n=wa(t)?et("MapSet").F(t,r):_a(t)?et("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Aa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=eo;s&&(f=[l],u=Qr);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y}(t,r):et("ES5").J(t,r);return(r?r.A:Aa()).p.push(n),n}function zd(e){return lt(e)||ke(22,e),function t(r){if(!Fe(r))return r;var n,a=r[Y],i=Or(r);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=nl(r,i),a.I=!1}else n=nl(r,i);return Xt(n,function(s,l){a&&Nd(a.t,s)===l||cl(n,s,t(l))}),i===3?new Set(n):n}(e)}function nl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Na(e)}function dl(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[Y];return eo.get(u,s)},set:function(u){var m=this[Y];eo.set(m,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Y];if(!f.P)switch(f.i){case 5:n(f)&&Lt(f);break;case 4:r(f)&&Lt(f)}}}function r(s){for(var l=s.t,f=s.k,u=Lr(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==Y){var y=l[g];if(y===void 0&&!Ar(l,g))return!0;var x=f[g],v=x&&x[Y];if(v?v.t!==y:!ll(x,y))return!0}}var E=!!l[Y];return u.length!==Lr(l).length+(E?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ke(3,JSON.stringify(At(s)))}var i={};Md("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,e(v,!0));return x}var E=ul(y);delete E[Y];for(var O=Lr(E),_=0;_<O.length;_++){var R=O[_];E[R]=e(R,g||!!E[R].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(f,s),m={i:f?5:4,A:l?l.A:Aa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Y,{value:m,writable:!0}),u},S:function(s,l,f){f?lt(l)&&l[Y].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[Y];if(g){var y=g.t,x=g.k,v=g.R,E=g.i;if(E===4)Xt(x,function(P){P!==Y&&(y[P]!==void 0||Ar(y,P)?v[P]||u(x[P]):(v[P]=!0,Lt(g)))}),Xt(y,function(P){x[P]!==void 0||Ar(x,P)||(v[P]=!1,Lt(g))});else if(E===5){if(n(g)&&(Lt(g),v.length=!0),x.length<y.length)for(var O=x.length;O<y.length;O++)v[O]=!1;else for(var _=y.length;_<x.length;_++)v[_]=!0;for(var R=Math.min(x.length,y.length),M=0;M<R;M++)x.hasOwnProperty(M)||(v[M]=!0),v[M]===void 0&&u(x[M])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var al,Jr,Pa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kd=typeof Map<"u",Id=typeof Set<"u",il=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",fl=Pa?Symbol.for("immer-nothing"):((al={})["immer-nothing"]=!0,al),sl=Pa?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Pa?Symbol.for("immer-state"):"__$immer_state";var Dd=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ul=Object.getOwnPropertyDescriptors||function(e){var t={};return Lr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ra={},eo={get:function(e,t){if(t===Y)return e;var r=At(e);if(!Ar(r,t))return function(a,i,s){var l,f=ol(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!Fe(n)?n:n===Ca(e.t,t)?(Ea(e),e.o[t]=Oa(e.A.h,n,e)):n},has:function(e,t){return t in At(e)},ownKeys:function(e){return Reflect.ownKeys(At(e))},set:function(e,t,r){var n=ol(At(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Ca(At(e),t),i=a?.[Y];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ll(r,a)&&(r!==void 0||Ar(e.t,t)))return!0;Ea(e),Lt(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ca(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ea(e),Lt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=At(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ke(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ke(12)}},Qr={};Xt(eo,function(e,t){Qr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Qr.deleteProperty=function(e,t){return Qr.set.call(this,e,t,void 0)},Qr.set=function(e,t,r){return eo.set.call(this,e[0],t,r,e[0])};var Ud=function(){function e(r){var n=this;this.O=il,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(E){var O=this;E===void 0&&(E=l);for(var _=arguments.length,R=Array(_>1?_-1:0),M=1;M<_;M++)R[M-1]=arguments[M];return f.produce(E,function(P){var H;return(H=i).call.apply(H,[O,P].concat(R))})}}var u;if(typeof i!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),Fe(a)){var m=tl(n),g=Oa(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Vo(m):La(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return va(m,s),Sa(E,m)},function(E){throw Vo(m),E}):(va(m,s),Sa(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===fl&&(u=void 0),n.D&&Ta(u,!0),s){var x=[],v=[];et("Patches").M(a,u,x,v),s(x,v)}return u}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(g))})};var s,l,f=n.produce(a,i,function(u,m){s=u,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Fe(r)||ke(8),lt(r)&&(r=zd(r));var n=tl(this),a=Oa(this,r,void 0);return a[Y].C=!0,La(n),a},t.finishDraft=function(r,n){var a=r&&r[Y],i=a.A;return va(i,n),Sa(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!il&&ke(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=et("Patches").$;return lt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Oe=new Ud,Bd=Oe.produce,pb=Oe.produceWithPatches.bind(Oe),hb=Oe.setAutoFreeze.bind(Oe),mb=Oe.setUseProxies.bind(Oe),gb=Oe.applyPatches.bind(Oe),yb=Oe.createDraft.bind(Oe),bb=Oe.finishDraft.bind(Oe),Zo=Bd;function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function pl(e,t){if(Qt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hl(e){var t=pl(e,"string");return Qt(t)=="symbol"?t:t+""}function ml(e,t,r){return(t=hl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gl(Object(r),!0).forEach(function(n){ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function he(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yo={INIT:"@@redux/INIT"+ka(),REPLACE:"@@redux/REPLACE"+ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ka()}};function Hd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ia(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(he(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(he(1));return r(Ia)(e,t)}if(typeof e!="function")throw new Error(he(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(he(3));return i}function g(E){if(typeof E!="function")throw new Error(he(4));if(f)throw new Error(he(5));var O=!0;return u(),l.push(E),function(){if(O){if(f)throw new Error(he(6));O=!1,u();var R=l.indexOf(E);l.splice(R,1),s=null}}}function y(E){if(!Hd(E))throw new Error(he(7));if(typeof E.type>"u")throw new Error(he(8));if(f)throw new Error(he(9));try{f=!0,i=a(i,E)}finally{f=!1}for(var O=s=l,_=0;_<O.length;_++){var R=O[_];R()}return E}function x(E){if(typeof E!="function")throw new Error(he(10));a=E,y({type:Yo.REPLACE})}function v(){var E,O=g;return E={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(he(11));function M(){R.next&&R.next(m())}M();var P=O(M);return{unsubscribe:P}}},E[yl]=function(){return this},E}return y({type:Yo.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:x},n[yl]=v,n}function Gd(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Yo.INIT});if(typeof n>"u")throw new Error(he(12));if(typeof r(void 0,{type:Yo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(he(13))})}function bl(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Gd(r)}catch(f){l=f}return function(u,m){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<i.length;v++){var E=i[v],O=r[E],_=u[E],R=O(_,m);if(typeof R>"u"){var M=m&&m.type;throw new Error(he(14))}x[E]=R,y=y||R!==_}return y=y||i.length!==Object.keys(u).length,y?x:u}}function Rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function xl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(he(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=Rr.apply(void 0,l)(a.dispatch),za(za({},a),{},{dispatch:i})}}}function vl(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var Sl=vl();Sl.withExtraArgument=vl;var Da=Sl;var Ol=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fd=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(m){return f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},wr=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},$d=Object.defineProperty,Wd=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,El=function(e,t,r){return t in e?$d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ot=function(e,t){for(var r in t||(t={}))Vd.call(t,r)&&El(e,r,t[r]);if(Cl)for(var n=0,a=Cl(t);n<a.length;n++){var r=a[n];Kd.call(t,r)&&El(e,r,t[r])}return e},Ua=function(e,t){return Wd(e,jd(t))},qd=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{l(r.next(f))}catch(u){a(u)}},s=function(f){try{l(r.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(e,t)).next())})};var Zd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Ib=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Yd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Xd=function(e){Ol(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,wr([void 0],r[0].concat(this)))):new(t.bind.apply(t,wr([void 0],r.concat(this))))},t}(Array),Qd=function(e){Ol(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,wr([void 0],r[0].concat(this)))):new(t.bind.apply(t,wr([void 0],r.concat(this))))},t}(Array);function Ga(e){return Fe(e)?Zo(e,function(){}):e}function Jd(e){return typeof e=="boolean"}function ef(){return function(t){return tf(t)}}function tf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new Xd;if(r&&(Jd(r)?l.push(Da):l.push(Da.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return l}var Ba=!0;function Rl(e){var t=ef(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,l=r.devTools,f=l===void 0?!0:l,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,x;if(typeof a=="function")x=a;else if(Yd(a))x=bl(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 v=s;if(typeof v=="function"&&(v=v(t),!Ba&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ba&&v.some(function(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=xl.apply(void 0,v),O=Rr;f&&(O=Zd(Ot({trace:!Ba},typeof f=="object"&&f)));var _=new Qd(E),R=_;Array.isArray(y)?R=wr([E],y):typeof y=="function"&&(R=y(_));var M=O.apply(void 0,R);return Ia(x,m,M)}function Rt(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ot(Ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function wl(e){var t={},r=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function rf(e){return typeof e=="function"}function of(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?wl(t):[t,r,n],i=a[0],s=a[1],l=a[2],f;if(rf(e))f=function(){return Ga(e())};else{var u=Ga(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var x=wr([i[y.type]],s.filter(function(v){var E=v.matcher;return E(y)}).map(function(v){var E=v.reducer;return E}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,E){if(E)if(lt(v)){var O=v,_=E(O,y);return _===void 0?v:_}else{if(Fe(v))return Zo(v,function(R){return E(R,y)});var _=E(v,y);if(_===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return v},g)}return m.getInitialState=f,m}function nf(e,t){return e+"/"+t}function _l(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ga(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(m){var g=n[m],y=nf(t,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,i[m]=x,s[y]=x,l[m]=v?Rt(y,v):Rt(y)});function f(){var m=typeof e.extraReducers=="function"?wl(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,E=m[2],O=E===void 0?void 0:E,_=Ot(Ot({},y),s);return of(r,function(R){for(var M in _)R.addCase(M,_[M]);for(var P=0,H=v;P<H.length;P++){var Z=H[P];R.addMatcher(Z.matcher,Z.reducer)}O&&R.addDefaultCase(O)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var af="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=af[Math.random()*64|0];return t},cf=["name","message","stack","code"],Ha=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Al=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),lf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=cf;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Hb=function(){function e(t,r,n){var a=Rt(t+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Ua(Ot({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=Rt(t+"/pending",function(m,g,y){return{payload:void 0,meta:Ua(Ot({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Rt(t+"/rejected",function(m,g,y,x,v){return{payload:x,error:(n&&n.serializeError||lf)(m||"Rejected"),meta:Ua(Ot({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(g,y,x){var v=n?.idGenerator?n.idGenerator(m):sf(),E=new f,O,_=!1;function R(P){O=P,E.abort()}var M=function(){return qd(this,null,function(){var P,H,Z,ve,se,Ze,ce;return Fd(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),ve=(P=n?.condition)==null?void 0:P.call(n,m,{getState:y,extra:x}),ff(ve)?[4,ve]:[3,2];case 1:ve=b.sent(),b.label=2;case 2:if(ve===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,se=new Promise(function(C,I){return E.signal.addEventListener("abort",function(){return I({name:"AbortError",message:O||"Aborted"})})}),g(i(v,m,(H=n?.getPendingMeta)==null?void 0:H.call(n,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([se,Promise.resolve(r(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:E.signal,abort:R,rejectWithValue:function(C,I){return new Ha(C,I)},fulfillWithValue:function(C,I){return new Al(C,I)}})).then(function(C){if(C instanceof Ha)throw C;return C instanceof Al?a(C.payload,v,m,C.meta):a(C,v,m)})])];case 3:return Z=b.sent(),[3,5];case 4:return Ze=b.sent(),Z=Ze instanceof Ha?s(null,v,m,Ze.payload,Ze.meta):s(Ze,v,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&s.match(Z)&&Z.meta.condition,ce||g(Z),[2,Z]}})})}();return Object.assign(M,{abort:R,requestId:v,arg:m,unwrap:function(){return M.then(df)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function df(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ff(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Nl="listener",Tl="completed",Ml="cancelled",Gb="task-"+Ml,Fb="task-"+Tl,$b=Nl+"-"+Ml,Wb=Nl+"-"+Tl;var Fa="listenerMiddleware";var jb=Rt(Fa+"/add"),Vb=Rt(Fa+"/removeAll"),Kb=Rt(Fa+"/remove");var Ll,qb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ll||(Ll=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},uf=function(e){return function(t){setTimeout(t,e)}},Zb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);dl();var pf=Ho(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Xo=class extends pf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Pl=class e extends Xo{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(jo(i))return i;if(a==null)return;let s=_l({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=Rl({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Fc(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Go;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Qo=class{static format(t,r,n,a){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,r,n,a)}static getMomentDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Jo=S(k()),hf="ft-app-info",Jt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Jt.eventName="authentication-change";var mf={session:(e,t)=>{(0,Jo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Jt(t.payload)),0))}},T=Jo.FtReduxStore.get({name:hf,reducers:mf,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 zl=S(k()),en=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ex=(0,zl.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Qo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([(0,$a.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),en([(0,$a.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),en([xa({store:T.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),en([xa({store:T.name})],t.prototype,"uiLocale",void 0),t});var yf=S(Il(),1);var Dl;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Dl||(Dl={}));var Ul;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ul||(Ul={}));var Bl;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Bl||(Bl={}));var Hl;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Hl||(Hl={}));var Gl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Gl||(Gl={}));var Fl;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fl||(Fl={}));var $l;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})($l||($l={}));var Wl;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wl||(Wl={}));var jl;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(jl||(jl={}));var Vl;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Vl||(Vl={}));var Kl;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Kl||(Kl={}));var ql;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ql||(ql={}));var Zl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Zl||(Zl={}));var Yl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Yl||(Yl={}));var Wa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Wa||(Wa={}));var Xl;(function(e){e.ASC="ASC",e.DESC="DESC"})(Xl||(Xl={}));var Ql;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ql||(Ql={}));var ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ja||(ja={}));var Jl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Jl||(Jl={}));var on;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(on||(on={}));var e1;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(e1||(e1={}));var t1;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(t1||(t1={}));var r1;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(r1||(r1={}));var Va;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var o1;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(o1||(o1={}));var ee;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ee||(ee={}));var Ie;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ie||(Ie={}));var n1;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(n1||(n1={}));var a1;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(a1||(a1={}));var i1;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(i1||(i1={}));var s1;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(s1||(s1={}));var c1;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(c1||(c1={}));var l1;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(l1||(l1={}));var d1;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(d1||(d1={}));var f1;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(f1||(f1={}));var u1;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(u1||(u1={}));var gf={[ee.PERSONAL_BOOK_SHARE_USER]:[ee.PERSONAL_BOOK_USER],[ee.HTML_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.PDF_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.KHUB_ADMIN]:[ee.CONTENT_PUBLISHER],[ee.ADMIN]:[ee.KHUB_ADMIN,ee.USERS_ADMIN,ee.PORTAL_ADMIN,ee.BEHAVIOR_DATA_USER],[ee.GENERATIVE_AI_EXPORT_USER]:[ee.GENERATIVE_AI_USER]};function p1(e,t){return e===t||(gf[e]??[]).some(r=>p1(r,t))}function h1(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>p1(n,t))}var dn=S(k());var Ka=S(k());var er=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=T.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var nn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:er.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):er.await()}};var Ce=class extends nn{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ka.CacheRegistry,this.cache=t?a.commonCache:new Ka.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var an=class extends Ce{async listMySearches(){let{session:t}=T.getState();return h1(t,ee.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var sn=class extends Ce{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var cn=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var ln=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var bf="ft-user-assets",xf={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ie).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:a}=t.payload;Za(e,r,[...qa(e,r),a]),m1(e,r,1,n),g1(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Za(e,r,qa(e,r).map(a=>a.id===n.id?n:a)),g1(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Za(e,r,qa(e,r).filter(i=>i.id!==a)),m1(e,r,-1,n)}},y1={[Ie.SEARCHES]:"savedSearches",[Ie.BOOKMARKS]:"bookmarks",[Ie.BOOKS]:void 0,[Ie.COLLECTIONS]:void 0},qa=(e,t)=>{var r;let n=y1[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Za=(e,t,r)=>{let n=y1[t];n&&(e[n]=r)},m1=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===Ie.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},g1=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Re=dn.FtReduxStore.get({name:bf,reducers:xf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ie).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ya=class{constructor(t=new cn,r=new ln){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new sn,this.savedSearchesService=new an,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=T.getState();(0,dn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Re.actions.clearAssetCount(),Re.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Re.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Re.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Re.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Re.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Re.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Re.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Re.getState().assetCounts.bookmarkByMap).length!==0;t===Ie.BOOKMARKS&&r&&Re.actions.clearBookmarkCountByMap(),Re.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Re.actions.bookmarks(r)}}},vf=new Ya;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=vf);var Xa=class{addCommand(t,r=!1){T.commands.add(t,r)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Xa;var De=S(k());var b1,Nr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Sf=Symbol("clearAfterUnitTest"),fn=class extends(0,De.withEventBus)(Ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[b1]=()=>{this.defaultMessages={},this.cache=new De.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,De.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new De.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(a){!(a instanceof De.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:t})),this.dispatchEvent(new Nr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Nr({loadedContexts:[t]})),this.dispatchEvent(new Nr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,De.delay)(0).then(()=>n()).catch(()=>null)))}};b1=Sf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends fn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends fn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var to=window.FluidTopicsI18nService,Qa=window.FluidTopicsCustomI18nService;var x1=S(k()),Ja=class{highlightHtml(t,r,n){(0,x1.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ja;var v1=S(k());var ei=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i;if(t==null)return"";try{return v1.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new ei;var S1=S(k());var ro=class{static get(t,r){var n,a;let i=T.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new S1.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var ti=class{urlToSearchRequest(t){return ro.get().parse(t)}searchRequestToUrl(t){return ro.get().serialize(t)}};window.FluidTopicsUrlService=new ti;var _t=S(k());var tr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};tr.eventName="change";var ri=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},C1=new ri;var un=class e extends _t.WithEventBus{static build(){return new e(window.history,C1,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_t.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new tr(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,l])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(tr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(tr.eventName,t)}currentItem(){return(0,_t.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,_t.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,_t.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=un.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var E1=S($());var A1=E1.css`
|
|
157
|
+
`;var hc=["top","right","bottom","left"],pc=["start","end"],fa=hc.reduce((e,t)=>e.concat(t,t+"-"+pc[0],t+"-"+pc[1]),[]),jr=Math.min,St=Math.max,Vr=Math.round;var Ge=e=>({x:e,y:e}),sd={left:"right",right:"left",bottom:"top",top:"bottom"};function ua(e,t,r){return St(e,jr(t,r))}function No(e,t){return typeof e=="function"?e(t):e}function xr(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function pa(e){return e==="x"?"y":"x"}function ha(e){return e==="y"?"height":"width"}function To(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ma(e){return pa(To(e))}function mc(e,t,r){r===void 0&&(r=!1);let n=Ct(e),a=ma(e),i=ha(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=da(s)),[s,da(s)]}function gc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function da(e){let t=xr(e);return sd[t]+e.slice(t.length)}function cd(e){return{top:0,right:0,bottom:0,left:0,...e}}function yc(e){return typeof e!="number"?cd(e):{top:e,right:e,bottom:e,left:e}}function jt(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function bc(e,t,r){let{reference:n,floating:a}=e,i=To(t),s=ma(t),l=ha(s),f=xr(t),u=i==="y",m=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,x;switch(f){case"top":x={x:m,y:n.y-a.height};break;case"bottom":x={x:m,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:g};break;case"left":x={x:n.x-a.width,y:g};break;default:x={x:n.x,y:n.y}}switch(Ct(t)){case"start":x[s]-=y*(r&&u?-1:1);break;case"end":x[s]+=y*(r&&u?-1:1);break}return x}async function xc(e,t){var r;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=No(t,e),v=yc(x),O=l[y?g==="floating"?"reference":"floating":g],_=jt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(O)))==null||r?O:O.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),R=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),P=await(i.isElement==null?void 0:i.isElement(M))?await(i.getScale==null?void 0:i.getScale(M))||{x:1,y:1}:{x:1,y:1},H=jt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:M,strategy:f}):R);return{top:(_.top-H.top+v.top)/P.y,bottom:(H.bottom-_.bottom+v.bottom)/P.y,left:(_.left-H.left+v.left)/P.x,right:(H.right-_.right+v.right)/P.x}}var ld=50,vc=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:xc},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=bc(u,n,f),y=n,x=0,v={};for(let E=0;E<i.length;E++){let O=i[E];if(!O)continue;let{name:_,fn:R}=O,{x:M,y:P,data:H,reset:Z}=await R({x:m,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:v,rects:u,platform:l,elements:{reference:e,floating:t}});m=M??m,g=P??g,v[_]={...v[_],...H},Z&&x<ld&&(x++,typeof Z=="object"&&(Z.placement&&(y=Z.placement),Z.rects&&(u=Z.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):Z.rects),{x:m,y:g}=bc(u,y,f)),E=-1)}return{x:m,y:g,placement:y,strategy:a,middlewareData:v}};function dd(e,t,r){return(e?[...r.filter(a=>Ct(a)===e),...r.filter(a=>Ct(a)!==e)]:r.filter(a=>xr(a)===a)).filter(a=>e?Ct(a)===e||(t?gc(a)!==a:!1):!0)}var Sc=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=fa,autoAlignment:x=!0,...v}=No(e,t),E=g!==void 0||y===fa?dd(g||null,x,y):y,O=await f.detectOverflow(t,v),_=((r=s.autoPlacement)==null?void 0:r.index)||0,R=E[_];if(R==null)return{};let M=mc(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==R)return{reset:{placement:E[0]}};let P=[O[xr(R)],O[M[0]],O[M[1]]],H=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:P}],Z=E[_+1];if(Z)return{data:{index:_+1,overflows:H},reset:{placement:Z}};let ve=H.map(ce=>{let b=Ct(ce.placement);return[ce.placement,b&&m?ce.overflows.slice(0,2).reduce((C,I)=>C+I,0):ce.overflows[0],ce.overflows]}).sort((ce,b)=>ce[1]-b[1]),Ze=((a=ve.filter(ce=>ce[2].slice(0,Ct(ce[0])?2:3).every(b=>b<=0))[0])==null?void 0:a[0])||ve[0][0];return Ze!==l?{data:{index:_+1,overflows:H},reset:{placement:Ze}}:{}}}};var Cc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:_=>{let{x:R,y:M}=_;return{x:R,y:M}}},...u}=No(e,t),m={x:r,y:n},g=await i.detectOverflow(t,u),y=To(xr(a)),x=pa(y),v=m[x],E=m[y];if(s){let _=x==="y"?"top":"left",R=x==="y"?"bottom":"right",M=v+g[_],P=v-g[R];v=ua(M,v,P)}if(l){let _=y==="y"?"top":"left",R=y==="y"?"bottom":"right",M=E+g[_],P=E-g[R];E=ua(M,E,P)}let O=f.fn({...t,[x]:v,[y]:E});return{...O,data:{x:O.x-r,y:O.y-n,enabled:{[x]:s,[y]:l}}}}}};function Po(){return typeof window<"u"}function Kt(e){return Ac(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(Ac(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ac(e){return Po()?e instanceof Node||e instanceof Se(e).Node:!1}function Pe(e){return Po()?e instanceof Element||e instanceof Se(e).Element:!1}function Qe(e){return Po()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ec(e){return!Po()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}function vr(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&a!=="inline"&&a!=="contents"}function Lc(e){return/^(table|td|th)$/.test(Kt(e))}function Kr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var fd=/transform|translate|scale|rotate|perspective|filter/,ud=/paint|layout|strict|content/,Vt=e=>!!e&&e!=="none",ga;function zo(e){let t=Pe(e)?ze(e):e;return Vt(t.transform)||Vt(t.translate)||Vt(t.scale)||Vt(t.rotate)||Vt(t.perspective)||!ko()&&(Vt(t.backdropFilter)||Vt(t.filter))||fd.test(t.willChange||"")||ud.test(t.contain||"")}function Oc(e){let t=ct(e);for(;Qe(t)&&!qt(t);){if(zo(t))return t;if(Kr(t))return null;t=ct(t)}return null}function ko(){return ga==null&&(ga=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ga}function qt(e){return/^(html|body|#document)$/.test(Kt(e))}function ze(e){return Se(e).getComputedStyle(e)}function qr(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(Kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ec(e)&&e.host||Xe(e);return Ec(t)?t.host:t}function Rc(e){let t=ct(e);return qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qe(t)&&vr(t)?t:Rc(t)}function Mo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=Rc(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=Se(a);if(i){let l=Io(s);return t.concat(s,s.visualViewport||[],vr(a)?a:[],l&&r?Mo(l):[])}else return t.concat(a,Mo(a,[],r))}function Io(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tc(e){let t=ze(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Qe(e),i=a?e.offsetWidth:r,s=a?e.offsetHeight:n,l=Vr(r)!==i||Vr(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function Mc(e){return Pe(e)?e:e.contextElement}function Sr(e){let t=Mc(e);if(!Qe(t))return Ge(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:i}=Tc(t),s=(i?Vr(r.width):r.width)/n,l=(i?Vr(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var pd=Ge(0);function Pc(e){let t=Se(e);return!ko()||!t.visualViewport?pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Se(e)?!1:t}function Zr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=Mc(e),s=Ge(1);t&&(n?Pe(n)&&(s=Sr(n)):s=Sr(e));let l=hd(i,r,n)?Pc(i):Ge(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,m=a.width/s.x,g=a.height/s.y;if(i){let y=Se(i),x=n&&Pe(n)?Se(n):n,v=y,E=Io(v);for(;E&&n&&x!==v;){let O=Sr(E),_=E.getBoundingClientRect(),R=ze(E),M=_.left+(E.clientLeft+parseFloat(R.paddingLeft))*O.x,P=_.top+(E.clientTop+parseFloat(R.paddingTop))*O.y;f*=O.x,u*=O.y,m*=O.x,g*=O.y,f+=M,u+=P,v=Se(E),E=Io(v)}}return jt({width:m,height:g,x:f,y:u})}function Do(e,t){let r=qr(e).scrollLeft;return t?t.left+r:Zr(Xe(e)).left+r}function zc(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Do(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function md(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Xe(n),l=t?Kr(t.floating):!1;if(n===s||l&&i)return r;let f={scrollLeft:0,scrollTop:0},u=Ge(1),m=Ge(0),g=Qe(n);if((g||!g&&!i)&&((Kt(n)!=="body"||vr(s))&&(f=qr(n)),g)){let x=Zr(n);u=Sr(n),m.x=x.x+n.clientLeft,m.y=x.y+n.clientTop}let y=s&&!g&&!i?zc(s,f):Ge(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-f.scrollLeft*u.x+m.x+y.x,y:r.y*u.y-f.scrollTop*u.y+m.y+y.y}}function gd(e){return Array.from(e.getClientRects())}function yd(e){let t=Xe(e),r=qr(e),n=e.ownerDocument.body,a=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Do(e),l=-r.scrollTop;return ze(n).direction==="rtl"&&(s+=St(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var wc=25;function bd(e,t){let r=Se(e),n=Xe(e),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let m=ko();(!m||m&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=Do(n);if(u<=0){let m=n.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(n.clientWidth-g.clientWidth-x);v<=wc&&(i-=v)}else u<=wc&&(i+=u);return{width:i,height:s,x:l,y:f}}function xd(e,t){let r=Zr(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Qe(e)?Sr(e):Ge(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function _c(e,t,r){let n;if(t==="viewport")n=bd(e,r);else if(t==="document")n=yd(Xe(e));else if(Pe(t))n=xd(t,r);else{let a=Pc(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return jt(n)}function kc(e,t){let r=ct(e);return r===t||!Pe(r)||qt(r)?!1:ze(r).position==="fixed"||kc(r,t)}function vd(e,t){let r=t.get(e);if(r)return r;let n=Mo(e,[],!1).filter(l=>Pe(l)&&Kt(l)!=="body"),a=null,i=ze(e).position==="fixed",s=i?ct(e):e;for(;Pe(s)&&!qt(s);){let l=ze(s),f=zo(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||vr(s)&&!f&&kc(e,s))?n=n.filter(m=>m!==s):a=l,s=ct(s)}return t.set(e,n),n}function Sd(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[...r==="clippingAncestors"?Kr(t)?[]:vd(t,this._c):[].concat(r),n],l=_c(t,s[0],a),f=l.top,u=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=_c(t,s[y],a);f=St(x.top,f),u=jr(x.right,u),m=jr(x.bottom,m),g=St(x.left,g)}return{width:u-g,height:m-f,x:g,y:f}}function Cd(e){let{width:t,height:r}=Tc(e);return{width:t,height:r}}function Ed(e,t,r){let n=Qe(t),a=Xe(t),i=r==="fixed",s=Zr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=Ge(0);function u(){f.x=Do(a)}if(n||!n&&!i)if((Kt(t)!=="body"||vr(a))&&(l=qr(t)),n){let x=Zr(t,!0,i,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&u();i&&!n&&a&&u();let m=a&&!n&&!i?zc(a,l):Ge(0),g=s.left+l.scrollLeft-f.x-m.x,y=s.top+l.scrollTop-f.y-m.y;return{x:g,y,width:s.width,height:s.height}}function ya(e){return ze(e).position==="static"}function Nc(e,t){if(!Qe(e)||ze(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xe(e)===r&&(r=r.ownerDocument.body),r}function Ic(e,t){let r=Se(e);if(Kr(e))return r;if(!Qe(e)){let a=ct(e);for(;a&&!qt(a);){if(Pe(a)&&!ya(a))return a;a=ct(a)}return r}let n=Nc(e,t);for(;n&&Lc(n)&&ya(n);)n=Nc(n,t);return n&&qt(n)&&ya(n)&&!zo(n)?r:n||Oc(e)||r}var Ad=async function(e){let t=this.getOffsetParent||Ic,r=this.getDimensions,n=await r(e.floating);return{reference:Ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ld(e){return ze(e).direction==="rtl"}var Uo={convertOffsetParentRelativeRectToViewportRelativeRect:md,getDocumentElement:Xe,getClippingRect:Sd,getOffsetParent:Ic,getElementRects:Ad,getClientRects:gd,getDimensions:Cd,getScale:Sr,isElement:Pe,isRTL:Ld};var Dc=Sc,Uc=Cc;var Bc=(e,t,r)=>{let n=new Map,a={platform:Uo,...r},i={...a.platform,_c:n};return vc(e,t,{...a,platform:i})};function Hc(e){return Od(e)}function ba(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Od(e){for(let t=e;t;t=ba(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ba(e);t;t=ba(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Gc(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},Bc(e,t,{strategy:n.strategy,platform:{...Uo,getOffsetParent:a=>Uo.getOffsetParent(a,Hc)},middleware:[Uc({crossAxis:!0}),Dc({allowedPlacements:[n.placement]})]})}var Mr=S(k());var $a=S(Q());function Rd(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Bo(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Bo(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),r=a.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!Bo(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Bo(e,t){try{return Rd(e,t)}catch{return!1}}function Yr(e,t){return!Bo(e,t)}function Fc(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Ho(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let a=t(n);return a[e]=!0,a}}var $c=S(Q(),1);var xa=e=>{let t=e??{};return(r,n)=>{var a;let i={hasChanged:Yr,attribute:!1,...t};(0,$c.property)(i)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Go=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Zt=S(Q(),1);var Wc=S(Q(),1);function jc(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Wc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Yr,...t??{}})}var Fo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Kc=S($(),1);var $o=globalThis,wd=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qy=Symbol();var Vc=(e,t)=>{if(wd)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),a=$o.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Wo=class extends Kc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Vc(n,t.elementStyles),n}};function qc(e,t,...r){var n;let a=e.querySelector(t);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var Er=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Qc,Zc=Symbol("constructorPrototype"),Yc=Symbol("constructorName"),Jc=Symbol("exportpartsDebouncer"),Xc=Symbol("dynamicDependenciesLoaded"),Cr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Cr.eventName="exportparts-updated";var Je=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Qc]=new Fo(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Jc].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[Yc]=this.constructor.name,this[Zc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Yc]&&Object.setPrototypeOf(this,this[Zc])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Xc]||(r[Xc]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Cr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Cr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];r=qc(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var r,n,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[],E=[...x,...v].filter(f).map(O=>O.trim());for(let O of E)m.add(O)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>u.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Qc=Jc;Er([(0,Zt.property)()],Je.prototype,"exportpartsPrefix",void 0);Er([jc([])],Je.prototype,"exportpartsPrefixes",void 0);Er([(0,Zt.property)({reflect:!0})],Je.prototype,"exportparts",void 0);Er([(0,Zt.property)()],Je.prototype,"customStylesheet",void 0);Er([(0,Zt.property)()],Je.prototype,"elementToFocus",void 0);Er([(0,Zt.state)()],Je.prototype,"useAdoptedStyleSheets",void 0);function jo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Xr=Symbol("internalReduxEventsUnsubscribers"),Et=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores"),_d=Ho(Symbol("withRedux"),function(e){var t,r,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Yt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Yt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Yt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Yt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Et].has(s.store):this[Et].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[Et].set(s,l.subscribe(()=>this.updateFromStores())),this[Xr].set(s,[]),jo(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[m](y);l.addEventListener(u.eventName,g),this[Xr].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Et].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Et].has(s)&&this[Et].get(s)(),this[Et].delete(s),(l=this[Xr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Et,r=Yt,n=Xr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),el=class extends _d(Je){};function ke(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lt(e){return!!e&&!!e[Y]}function Fe(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Dd}(e)||Array.isArray(e)||!!e[sl]||!!(!((t=e.constructor)===null||t===void 0)&&t[sl])||wa(e)||_a(e))}function Xt(e,t,r){r===void 0&&(r=!1),Or(e)===0?(r?Object.keys:Lr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Or(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wa(e)?2:_a(e)?3:0}function Ar(e,t){return Or(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nd(e,t){return Or(e)===2?e.get(t):e[t]}function cl(e,t,r){var n=Or(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ll(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wa(e){return kd&&e instanceof Map}function _a(e){return Id&&e instanceof Set}function At(e){return e.o||e.t}function Na(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ul(e);delete t[Y];for(var r=Lr(t),n=0;n<r.length;n++){var a=r[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Ta(e,t){return t===void 0&&(t=!1),Ma(e)||lt(e)||!Fe(e)||(Or(e)>1&&(e.set=e.add=e.clear=e.delete=Td),Object.freeze(e),t&&Xt(e,function(r,n){return Ta(n,!0)},!0)),e}function Td(){ke(2)}function Ma(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function et(e){var t=Ra[e];return t||ke(18,e),t}function Md(e,t){Ra[e]||(Ra[e]=t)}function Aa(){return Jr}function va(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function Vo(e){La(e),e.p.forEach(Pd),e.p=null}function La(e){e===Jr&&(Jr=e.l)}function tl(e){return Jr={p:[],l:Jr,h:e,m:!0,_:0}}function Pd(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Sa(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||et("ES5").S(t,e,n),n?(r[Y].P&&(Vo(t),ke(4)),Fe(e)&&(e=Ko(t,e),t.l||qo(t,e)),t.u&&et("Patches").M(r[Y].t,e,t.u,t.s)):e=Ko(t,r,[]),Vo(t),t.u&&t.v(t.u,t.s),e!==fl?e:void 0}function Ko(e,t,r){if(Ma(t))return t;var n=t[Y];if(!n)return Xt(t,function(l,f){return rl(e,n,t,l,f,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Na(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Xt(i,function(l,f){return rl(e,n,a,l,f,r,s)}),qo(e,a,!1),r&&e.u&&et("Patches").N(n,r,e.u,e.s)}return n.o}function rl(e,t,r,n,a,i,s){if(lt(a)){var l=Ko(e,a,i&&t&&t.i!==3&&!Ar(t.R,n)?i.concat(n):void 0);if(cl(r,n,l),!lt(l))return;e.m=!1}else s&&r.add(a);if(Fe(a)&&!Ma(a)){if(!e.h.D&&e._<1)return;Ko(e,a),t&&t.A.l||qo(e,a)}}function qo(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ta(t,r)}function Ca(e,t){var r=e[Y];return(r?At(r):e)[t]}function ol(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Lt(e){e.P||(e.P=!0,e.l&&Lt(e.l))}function Ea(e){e.o||(e.o=Na(e.t))}function Oa(e,t,r){var n=wa(t)?et("MapSet").F(t,r):_a(t)?et("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Aa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=eo;s&&(f=[l],u=Qr);var m=Proxy.revocable(f,u),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y}(t,r):et("ES5").J(t,r);return(r?r.A:Aa()).p.push(n),n}function zd(e){return lt(e)||ke(22,e),function t(r){if(!Fe(r))return r;var n,a=r[Y],i=Or(r);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=nl(r,i),a.I=!1}else n=nl(r,i);return Xt(n,function(s,l){a&&Nd(a.t,s)===l||cl(n,s,t(l))}),i===3?new Set(n):n}(e)}function nl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Na(e)}function dl(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[Y];return eo.get(u,s)},set:function(u){var m=this[Y];eo.set(m,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Y];if(!f.P)switch(f.i){case 5:n(f)&&Lt(f);break;case 4:r(f)&&Lt(f)}}}function r(s){for(var l=s.t,f=s.k,u=Lr(f),m=u.length-1;m>=0;m--){var g=u[m];if(g!==Y){var y=l[g];if(y===void 0&&!Ar(l,g))return!0;var x=f[g],v=x&&x[Y];if(v?v.t!==y:!ll(x,y))return!0}}var E=!!l[Y];return u.length!==Lr(l).length+(E?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ke(3,JSON.stringify(At(s)))}var i={};Md("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,e(v,!0));return x}var E=ul(y);delete E[Y];for(var O=Lr(E),_=0;_<O.length;_++){var R=O[_];E[R]=e(R,g||!!E[R].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(f,s),m={i:f?5:4,A:l?l.A:Aa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,Y,{value:m,writable:!0}),u},S:function(s,l,f){f?lt(l)&&l[Y].A===s&&t(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var g=m[Y];if(g){var y=g.t,x=g.k,v=g.R,E=g.i;if(E===4)Xt(x,function(P){P!==Y&&(y[P]!==void 0||Ar(y,P)?v[P]||u(x[P]):(v[P]=!0,Lt(g)))}),Xt(y,function(P){x[P]!==void 0||Ar(x,P)||(v[P]=!1,Lt(g))});else if(E===5){if(n(g)&&(Lt(g),v.length=!0),x.length<y.length)for(var O=x.length;O<y.length;O++)v[O]=!1;else for(var _=y.length;_<x.length;_++)v[_]=!0;for(var R=Math.min(x.length,y.length),M=0;M<R;M++)x.hasOwnProperty(M)||(v[M]=!0),v[M]===void 0&&u(x[M])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var al,Jr,Pa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kd=typeof Map<"u",Id=typeof Set<"u",il=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",fl=Pa?Symbol.for("immer-nothing"):((al={})["immer-nothing"]=!0,al),sl=Pa?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Pa?Symbol.for("immer-state"):"__$immer_state";var Dd=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ul=Object.getOwnPropertyDescriptors||function(e){var t={};return Lr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ra={},eo={get:function(e,t){if(t===Y)return e;var r=At(e);if(!Ar(r,t))return function(a,i,s){var l,f=ol(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var n=r[t];return e.I||!Fe(n)?n:n===Ca(e.t,t)?(Ea(e),e.o[t]=Oa(e.A.h,n,e)):n},has:function(e,t){return t in At(e)},ownKeys:function(e){return Reflect.ownKeys(At(e))},set:function(e,t,r){var n=ol(At(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Ca(At(e),t),i=a?.[Y];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ll(r,a)&&(r!==void 0||Ar(e.t,t)))return!0;Ea(e),Lt(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ca(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ea(e),Lt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=At(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){ke(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ke(12)}},Qr={};Xt(eo,function(e,t){Qr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Qr.deleteProperty=function(e,t){return Qr.set.call(this,e,t,void 0)},Qr.set=function(e,t,r){return eo.set.call(this,e[0],t,r,e[0])};var Ud=function(){function e(r){var n=this;this.O=il,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(E){var O=this;E===void 0&&(E=l);for(var _=arguments.length,R=Array(_>1?_-1:0),M=1;M<_;M++)R[M-1]=arguments[M];return f.produce(E,function(P){var H;return(H=i).call.apply(H,[O,P].concat(R))})}}var u;if(typeof i!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),Fe(a)){var m=tl(n),g=Oa(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Vo(m):La(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return va(m,s),Sa(E,m)},function(E){throw Vo(m),E}):(va(m,s),Sa(u,m))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===fl&&(u=void 0),n.D&&Ta(u,!0),s){var x=[],v=[];et("Patches").M(a,u,x,v),s(x,v)}return u}ke(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return a.apply(void 0,[x].concat(g))})};var s,l,f=n.produce(a,i,function(u,m){s=u,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Fe(r)||ke(8),lt(r)&&(r=zd(r));var n=tl(this),a=Oa(this,r,void 0);return a[Y].C=!0,La(n),a},t.finishDraft=function(r,n){var a=r&&r[Y],i=a.A;return va(i,n),Sa(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!il&&ke(20),this.O=r},t.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=et("Patches").$;return lt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),Oe=new Ud,Bd=Oe.produce,pb=Oe.produceWithPatches.bind(Oe),hb=Oe.setAutoFreeze.bind(Oe),mb=Oe.setUseProxies.bind(Oe),gb=Oe.applyPatches.bind(Oe),yb=Oe.createDraft.bind(Oe),bb=Oe.finishDraft.bind(Oe),Zo=Bd;function Qt(e){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt(e)}function pl(e,t){if(Qt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hl(e){var t=pl(e,"string");return Qt(t)=="symbol"?t:t+""}function ml(e,t,r){return(t=hl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gl(Object(r),!0).forEach(function(n){ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function he(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yo={INIT:"@@redux/INIT"+ka(),REPLACE:"@@redux/REPLACE"+ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ka()}};function Hd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ia(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(he(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(he(1));return r(Ia)(e,t)}if(typeof e!="function")throw new Error(he(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(he(3));return i}function g(E){if(typeof E!="function")throw new Error(he(4));if(f)throw new Error(he(5));var O=!0;return u(),l.push(E),function(){if(O){if(f)throw new Error(he(6));O=!1,u();var R=l.indexOf(E);l.splice(R,1),s=null}}}function y(E){if(!Hd(E))throw new Error(he(7));if(typeof E.type>"u")throw new Error(he(8));if(f)throw new Error(he(9));try{f=!0,i=a(i,E)}finally{f=!1}for(var O=s=l,_=0;_<O.length;_++){var R=O[_];R()}return E}function x(E){if(typeof E!="function")throw new Error(he(10));a=E,y({type:Yo.REPLACE})}function v(){var E,O=g;return E={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(he(11));function M(){R.next&&R.next(m())}M();var P=O(M);return{unsubscribe:P}}},E[yl]=function(){return this},E}return y({type:Yo.INIT}),n={dispatch:y,subscribe:g,getState:m,replaceReducer:x},n[yl]=v,n}function Gd(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Yo.INIT});if(typeof n>"u")throw new Error(he(12));if(typeof r(void 0,{type:Yo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(he(13))})}function bl(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Gd(r)}catch(f){l=f}return function(u,m){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<i.length;v++){var E=i[v],O=r[E],_=u[E],R=O(_,m);if(typeof R>"u"){var M=m&&m.type;throw new Error(he(14))}x[E]=R,y=y||R!==_}return y=y||i.length!==Object.keys(u).length,y?x:u}}function Rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function xl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(he(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=Rr.apply(void 0,l)(a.dispatch),za(za({},a),{},{dispatch:i})}}}function vl(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var Sl=vl();Sl.withExtraArgument=vl;var Da=Sl;var Ol=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fd=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(m){return f([u,m])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},wr=function(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e},$d=Object.defineProperty,Wd=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,El=function(e,t,r){return t in e?$d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ot=function(e,t){for(var r in t||(t={}))Vd.call(t,r)&&El(e,r,t[r]);if(Cl)for(var n=0,a=Cl(t);n<a.length;n++){var r=a[n];Kd.call(t,r)&&El(e,r,t[r])}return e},Ua=function(e,t){return Wd(e,jd(t))},qd=function(e,t,r){return new Promise(function(n,a){var i=function(f){try{l(r.next(f))}catch(u){a(u)}},s=function(f){try{l(r.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((r=r.apply(e,t)).next())})};var Zd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Ib=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Yd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Xd=function(e){Ol(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,wr([void 0],r[0].concat(this)))):new(t.bind.apply(t,wr([void 0],r.concat(this))))},t}(Array),Qd=function(e){Ol(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,wr([void 0],r[0].concat(this)))):new(t.bind.apply(t,wr([void 0],r.concat(this))))},t}(Array);function Ga(e){return Fe(e)?Zo(e,function(){}):e}function Jd(e){return typeof e=="boolean"}function ef(){return function(t){return tf(t)}}function tf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new Xd;if(r&&(Jd(r)?l.push(Da):l.push(Da.withExtraArgument(r.extraArgument))),0){if(a)var f;if(s)var u}return l}var Ba=!0;function Rl(e){var t=ef(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?t():i,l=r.devTools,f=l===void 0?!0:l,u=r.preloadedState,m=u===void 0?void 0:u,g=r.enhancers,y=g===void 0?void 0:g,x;if(typeof a=="function")x=a;else if(Yd(a))x=bl(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 v=s;if(typeof v=="function"&&(v=v(t),!Ba&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ba&&v.some(function(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=xl.apply(void 0,v),O=Rr;f&&(O=Zd(Ot({trace:!Ba},typeof f=="object"&&f)));var _=new Qd(E),R=_;Array.isArray(y)?R=wr([E],y):typeof y=="function"&&(R=y(_));var M=O.apply(void 0,R);return Ia(x,m,M)}function Rt(e,t){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ot(Ot({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function wl(e){var t={},r=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,r,n]}function rf(e){return typeof e=="function"}function of(e,t,r,n){r===void 0&&(r=[]);var a=typeof t=="function"?wl(t):[t,r,n],i=a[0],s=a[1],l=a[2],f;if(rf(e))f=function(){return Ga(e())};else{var u=Ga(e);f=function(){return u}}function m(g,y){g===void 0&&(g=f());var x=wr([i[y.type]],s.filter(function(v){var E=v.matcher;return E(y)}).map(function(v){var E=v.reducer;return E}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,E){if(E)if(lt(v)){var O=v,_=E(O,y);return _===void 0?v:_}else{if(Fe(v))return Zo(v,function(R){return E(R,y)});var _=E(v,y);if(_===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return v},g)}return m.getInitialState=f,m}function nf(e,t){return e+"/"+t}function _l(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ga(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(m){var g=n[m],y=nf(t,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,i[m]=x,s[y]=x,l[m]=v?Rt(y,v):Rt(y)});function f(){var m=typeof e.extraReducers=="function"?wl(e.extraReducers):[e.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,E=m[2],O=E===void 0?void 0:E,_=Ot(Ot({},y),s);return of(r,function(R){for(var M in _)R.addCase(M,_[M]);for(var P=0,H=v;P<H.length;P++){var Z=H[P];R.addMatcher(Z.matcher,Z.reducer)}O&&R.addDefaultCase(O)})}var u;return{name:t,reducer:function(m,g){return u||(u=f()),u(m,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var af="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=af[Math.random()*64|0];return t},cf=["name","message","stack","code"],Ha=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Al=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),lf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=cf;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Hb=function(){function e(t,r,n){var a=Rt(t+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Ua(Ot({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=Rt(t+"/pending",function(m,g,y){return{payload:void 0,meta:Ua(Ot({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Rt(t+"/rejected",function(m,g,y,x,v){return{payload:x,error:(n&&n.serializeError||lf)(m||"Rejected"),meta:Ua(Ot({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function u(m){return function(g,y,x){var v=n?.idGenerator?n.idGenerator(m):sf(),E=new f,O,_=!1;function R(P){O=P,E.abort()}var M=function(){return qd(this,null,function(){var P,H,Z,ve,se,Ze,ce;return Fd(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),ve=(P=n?.condition)==null?void 0:P.call(n,m,{getState:y,extra:x}),ff(ve)?[4,ve]:[3,2];case 1:ve=b.sent(),b.label=2;case 2:if(ve===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,se=new Promise(function(C,I){return E.signal.addEventListener("abort",function(){return I({name:"AbortError",message:O||"Aborted"})})}),g(i(v,m,(H=n?.getPendingMeta)==null?void 0:H.call(n,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([se,Promise.resolve(r(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:E.signal,abort:R,rejectWithValue:function(C,I){return new Ha(C,I)},fulfillWithValue:function(C,I){return new Al(C,I)}})).then(function(C){if(C instanceof Ha)throw C;return C instanceof Al?a(C.payload,v,m,C.meta):a(C,v,m)})])];case 3:return Z=b.sent(),[3,5];case 4:return Ze=b.sent(),Z=Ze instanceof Ha?s(null,v,m,Ze.payload,Ze.meta):s(Ze,v,m),[3,5];case 5:return ce=n&&!n.dispatchConditionRejection&&s.match(Z)&&Z.meta.condition,ce||g(Z),[2,Z]}})})}();return Object.assign(M,{abort:R,requestId:v,arg:m,unwrap:function(){return M.then(df)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function df(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ff(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Nl="listener",Tl="completed",Ml="cancelled",Gb="task-"+Ml,Fb="task-"+Tl,$b=Nl+"-"+Ml,Wb=Nl+"-"+Tl;var Fa="listenerMiddleware";var jb=Rt(Fa+"/add"),Vb=Rt(Fa+"/removeAll"),Kb=Rt(Fa+"/remove");var Ll,qb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ll||(Ll=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},uf=function(e){return function(t){setTimeout(t,e)}},Zb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uf(10);dl();var pf=Ho(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Xo=class extends pf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Pl=class e extends Xo{static get(t){var r;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(jo(i))return i;if(a==null)return;let s=_l({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=Rl({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=Fc(s.getInitialState());for(let g of u.keeping)m[g]=(f??m)[g];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Go;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...m)=>{let g=u(...m.map(a));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:a(m)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Qo=class{static format(t,r,n,a){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,r,n,a)}static getMomentDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Jo=S(k()),hf="ft-app-info",Jt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Jt.eventName="authentication-change";var mf={session:(e,t)=>{(0,Jo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Jt(t.payload)),0))}},T=Jo.FtReduxStore.get({name:hf,reducers:mf,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 zl=S(k()),en=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},Ex=(0,zl.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Qo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([(0,$a.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),en([(0,$a.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),en([xa({store:T.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),en([xa({store:T.name})],t.prototype,"uiLocale",void 0),t});var yf=S(Il(),1);var Dl;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Dl||(Dl={}));var Ul;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ul||(Ul={}));var Bl;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Bl||(Bl={}));var Hl;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Hl||(Hl={}));var Gl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Gl||(Gl={}));var Fl;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fl||(Fl={}));var $l;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})($l||($l={}));var Wl;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wl||(Wl={}));var jl;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(jl||(jl={}));var Vl;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Vl||(Vl={}));var Kl;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Kl||(Kl={}));var ql;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ql||(ql={}));var Zl;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Zl||(Zl={}));var Yl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Yl||(Yl={}));var Wa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Wa||(Wa={}));var Xl;(function(e){e.ASC="ASC",e.DESC="DESC"})(Xl||(Xl={}));var Ql;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ql||(Ql={}));var ja;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ja||(ja={}));var Jl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Jl||(Jl={}));var on;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(on||(on={}));var e1;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(e1||(e1={}));var t1;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(t1||(t1={}));var r1;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(r1||(r1={}));var Va;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var o1;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(o1||(o1={}));var ee;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ee||(ee={}));var Ie;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ie||(Ie={}));var n1;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(n1||(n1={}));var a1;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(a1||(a1={}));var i1;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(i1||(i1={}));var s1;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(s1||(s1={}));var c1;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(c1||(c1={}));var l1;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(l1||(l1={}));var d1;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(d1||(d1={}));var f1;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(f1||(f1={}));var u1;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(u1||(u1={}));var gf={[ee.PERSONAL_BOOK_SHARE_USER]:[ee.PERSONAL_BOOK_USER],[ee.HTML_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.PDF_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.KHUB_ADMIN]:[ee.CONTENT_PUBLISHER],[ee.ADMIN]:[ee.KHUB_ADMIN,ee.USERS_ADMIN,ee.PORTAL_ADMIN,ee.BEHAVIOR_DATA_USER],[ee.GENERATIVE_AI_EXPORT_USER]:[ee.GENERATIVE_AI_USER]};function p1(e,t){return e===t||(gf[e]??[]).some(r=>p1(r,t))}function h1(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>p1(n,t))}var dn=S(k());var Ka=S(k());var er=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),a=t??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let a=T.subscribe(()=>{n=e.get(t),n&&(a(),r(n))})}})}};var nn=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:er.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):er.await()}};var Ce=class extends nn{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ka.CacheRegistry,this.cache=t?a.commonCache:new Ka.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var an=class extends Ce{async listMySearches(){let{session:t}=T.getState();return h1(t,ee.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var sn=class extends Ce{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var cn=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var ln=class extends Ce{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var bf="ft-user-assets",xf={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(Ie).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:a}=t.payload;Za(e,r,[...qa(e,r),a]),m1(e,r,1,n),g1(e,a)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Za(e,r,qa(e,r).map(a=>a.id===n.id?n:a)),g1(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:a}=t.payload;Za(e,r,qa(e,r).filter(i=>i.id!==a)),m1(e,r,-1,n)}},y1={[Ie.SEARCHES]:"savedSearches",[Ie.BOOKMARKS]:"bookmarks",[Ie.BOOKS]:void 0,[Ie.COLLECTIONS]:void 0},qa=(e,t)=>{var r;let n=y1[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Za=(e,t,r)=>{let n=y1[t];n&&(e[n]=r)},m1=(e,t,r,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+r),t===Ie.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},g1=(e,t)=>{let r=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Re=dn.FtReduxStore.get({name:bf,reducers:xf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ie).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ya=class{constructor(t=new cn,r=new ln){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new sn,this.savedSearchesService=new an,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=T.getState();(0,dn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Re.actions.clearAssetCount(),Re.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Re.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Re.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Re.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Re.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Re.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Re.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Re.getState().assetCounts.bookmarkByMap).length!==0;t===Ie.BOOKMARKS&&r&&Re.actions.clearBookmarkCountByMap(),Re.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Re.actions.bookmarks(r)}}},vf=new Ya;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=vf);var Xa=class{addCommand(t,r=!1){T.commands.add(t,r)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Xa;var De=S(k());var b1,Nr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Sf=Symbol("clearAfterUnitTest"),fn=class extends(0,De.withEventBus)(Ce){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[b1]=()=>{this.defaultMessages={},this.cache=new De.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,De.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new De.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(a){!(a instanceof De.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:t})),this.dispatchEvent(new Nr({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Nr({loadedContexts:[t]})),this.dispatchEvent(new Nr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,De.delay)(0).then(()=>n()).catch(()=>null)))}};b1=Sf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends fn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends fn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var to=window.FluidTopicsI18nService,Qa=window.FluidTopicsCustomI18nService;var x1=S(k()),Ja=class{highlightHtml(t,r,n){(0,x1.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ja;var v1=S(k());var ei=class{isDate(t){var r,n,a,i;return(i=(a=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,r){var n,a,i;if(t==null)return"";try{return v1.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new ei;var S1=S(k());var ro=class{static get(t,r){var n,a;let i=T.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new S1.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var ti=class{urlToSearchRequest(t){return ro.get().parse(t)}searchRequestToUrl(t){return ro.get().serialize(t)}};window.FluidTopicsUrlService=new ti;var _t=S(k());var tr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};tr.eventName="change";var ri=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},C1=new ri;var un=class e extends _t.WithEventBus{static build(){return new e(window.history,C1,()=>window.location,!1)}constructor(t,r,n,a){var i,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_t.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new tr(this.currentItem())),0)}installProxies(){let t=r=>(n,a,[i,s,l])=>{let f=r(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(tr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(tr.eventName,t)}currentItem(){return(0,_t.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,_t.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,_t.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let a=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=un.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var E1=S($());var A1=E1.css`
|
|
158
158
|
`;var O1=S($()),de=S(Q()),$e=S(k());function L1(e,t){let{authenticationRequired:r,session:n}=T.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var ae=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},V=class extends $e.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=()=>er.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new $e.CacheRegistry,this.cleanSessionDebouncer=new $e.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return O1.html`
|
|
159
159
|
<slot></slot>
|
|
160
160
|
`}connectedCallback(){super.connectedCallback(),T.addEventListener(Jt.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(Jt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var r,n,a,i,s,l,f;super.update(t),t.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&T.actions.noCustom(this.noCustom),t.has("editorMode")&&T.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&T.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>to.addContext(u)),t.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(T.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&T.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>L1(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};V.elementDefinitions={};V.styles=A1;ae([(0,de.property)()],V.prototype,"baseUrl",void 0);ae([(0,de.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ae([(0,de.property)()],V.prototype,"apiIntegrationAppVersion",void 0);ae([(0,de.property)()],V.prototype,"uiLocale",void 0);ae([(0,$e.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ae([(0,$e.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"editorMode",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"noCustom",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,de.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],V.prototype,"noCustomComponent",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ae([(0,de.property)({type:Object})],V.prototype,"apiProvider",void 0);ae([(0,de.property)({type:Boolean})],V.prototype,"authenticationRequired",void 0);ae([(0,$e.jsonProperty)([])],V.prototype,"messageContexts",void 0);ae([(0,$e.jsonProperty)(void 0)],V.prototype,"session",void 0);ae([(0,de.state)()],V.prototype,"localesConfiguration",void 0);ae([(0,de.state)()],V.prototype,"availableContentLocales",void 0);var R1=S(k());(0,R1.customElement)("ft-app-context")(V);var w1=S(Q());var oi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Tr=new oi;var Cf=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},no=Symbol("i18nAttributes"),_1=Symbol("i18nListAttributes"),N1=Symbol("i18nProperties"),pn=Symbol("i18nContexts"),oo=Symbol("i18nUnsubs"),gn=(0,Mr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Qa:to}i18n(i){let{context:s,key:l,message:f}=i,{custom:u,args:m,argsProvider:g}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=m??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Tr.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var u;return((u=f?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,u=(m,g,y)=>y?.context&&y.key&&i(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[no])===null||s===void 0||s.forEach((m,g)=>f[g]=u(m,g,f[g])),(l=this[_1])===null||l===void 0||l.forEach((m,g)=>{var y;return f[g]=(y=f[g])===null||y===void 0?void 0:y.map(x=>u(m,g,x))})}updateI18nProperties(i){var s;(s=this[N1])===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[pn].set(f,{isCustomContext:l}),this[oo].has(f)||this[oo].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[pn].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[pn].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[oo].forEach(i=>i()),this[oo].clear()}}return t=pn,r=oo,Cf([(0,w1.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),hn=class extends gn(Mr.FtLitElement){},mn=class extends gn(Mr.FtLitElementRedux){};var T1=S(k());var ni=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Tr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Ef=new ni;var M1=(e,t)=>(r,n)=>{var a;r.constructor.createProperty(n,{type:Object,hasChanged:T1.hasChanged,converter:Tr,...t}),r[no]=(a=r[no])!==null&&a!==void 0?a:new Map,r[no].set(n,e??{})};var P1=S($());var z1=P1.css`
|
|
@@ -650,7 +650,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
650
650
|
.ft-icon--material {
|
|
651
651
|
font-family: ${Ke.materialFontFamily}, "Material Icons", sans-serif;
|
|
652
652
|
}
|
|
653
|
-
`,qe.noTextSelect];var Nt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Nt||(Nt={}));var lo=S($()),Tt=S(Q()),u2=S(k()),p2=S(mi());var rr;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.
|
|
653
|
+
`,qe.noTextSelect];var Nt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Nt||(Nt={}));var lo=S($()),Tt=S(Q()),u2=S(k()),p2=S(mi());var rr;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM_REGULAR="",e.HYPHEN_SOLID="",e.CROSSHAIRS_REGULAR="",e.PERSON_CHALKBOARD_REGULAR=""})(rr||(rr={}));var L;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(L||(L={}));var gE=new Map([...["abw"].map(e=>[e,L.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(e=>[e,L.AUDIO]),...["avi"].map(e=>[e,L.AVI]),...["chm","xhs"].map(e=>[e,L.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(e=>[e,L.CODE]),...["csv"].map(e=>[e,L.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,L.DITA]),...["epub"].map(e=>[e,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,L.EXCEL]),...["flac"].map(e=>[e,L.FLAC]),...["gif"].map(e=>[e,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,L.GZIP]),...["html","htm","xhtml"].map(e=>[e,L.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(e=>[e,L.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,L.JPEG]),...["json"].map(e=>[e,L.JSON]),...["m4a","m4p"].map(e=>[e,L.M4A]),...["mov","qt"].map(e=>[e,L.MOV]),...["mp3"].map(e=>[e,L.MP3]),...["mp4","m4v"].map(e=>[e,L.MP4]),...["ogg","oga"].map(e=>[e,L.OGG]),...["pdf","ps"].map(e=>[e,L.PDF]),...["png"].map(e=>[e,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,L.POWERPOINT]),...["rar"].map(e=>[e,L.RAR]),...["stp"].map(e=>[e,L.STP]),...["txt","rtf","md","mdown"].map(e=>[e,L.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(e=>[e,L.VIDEO]),...["wav"].map(e=>[e,L.WAV]),...["wma"].map(e=>[e,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,L.WORD]),...["xml","xsl","rdf"].map(e=>[e,L.XML]),...["yaml","yml","x-yaml"].map(e=>[e,L.YAML]),...["zip"].map(e=>[e,L.ZIP])]);var yE={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var fo=function(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,r,i):s(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},we=class extends u2.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=lo.nothing}render(){let t=this.variant&&Object.values(Nt).includes(this.variant)?this.variant:Nt.fluid_topics,r=t!==Nt.material||!!this.value;return lo.html`
|
|
654
654
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
655
655
|
${(0,p2.unsafeHTML)(this.resolvedIcon)}
|
|
656
656
|
<slot ?hidden=${r}></slot>
|