@fluid-topics/ft-reader-search-in-document 2.2.11 → 2.2.13

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Ix=Object.create;var $a=Object.defineProperty;var Dx=Object.getOwnPropertyDescriptor;var Px=Object.getOwnPropertyNames;var Mx=Object.getPrototypeOf,Nx=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ri=(t,e)=>{for(var r in e)$a(t,r,{get:e[r],enumerable:!0})},Fx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Px(e))!Nx.call(t,s)&&s!==r&&$a(t,s,{get:()=>e[s],enumerable:!(i=Dx(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Ix(Mx(t)):{},Fx(e||!t||!t.__esModule?$a(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((FE,Uu)=>{Uu.exports=ftGlobals.wcUtils});var y=ji((BE,Vu)=>{Vu.exports=ftGlobals.lit});var Wu,Ce,zu,q,Hu,ju,qu,Ku,Gu,vr=l(()=>{"use strict";Wu=c(y()),Ce=c(f()),zu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorContent),q={color:zu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",zu),opacityContentOnSurfacePressed:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorPrimary),ju={color:Hu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu)},qu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorSecondary),Ku={color:qu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",qu)},Gu=Wu.css`
1
+ "use strict";(()=>{var Ix=Object.create;var $a=Object.defineProperty;var Dx=Object.getOwnPropertyDescriptor;var Px=Object.getOwnPropertyNames;var Mx=Object.getPrototypeOf,Nx=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ri=(t,e)=>{for(var r in e)$a(t,r,{get:e[r],enumerable:!0})},Fx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Px(e))!Nx.call(t,s)&&s!==r&&$a(t,s,{get:()=>e[s],enumerable:!(i=Dx(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Ix(Mx(t)):{},Fx(e||!t||!t.__esModule?$a(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((FE,Uu)=>{Uu.exports=ftGlobals.wcUtils});var y=ji((BE,Vu)=>{Vu.exports=ftGlobals.lit});var Wu,Ce,zu,j,Hu,ju,qu,Ku,Gu,vr=l(()=>{"use strict";Wu=c(y()),Ce=c(f()),zu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorContent),j={color:zu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",zu),opacityContentOnSurfacePressed:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.FtCssVariableFactory.external(Ce.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorPrimary),ju={color:Hu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu)},qu=Ce.FtCssVariableFactory.extend("--ft-ripple-color","",Ce.designSystemVariables.colorSecondary),Ku={color:qu,backgroundColor:Ce.FtCssVariableFactory.extend("--ft-ripple-background-color","",qu)},Gu=Wu.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${q.borderRadius};
14
+ border-radius: ${j.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,11 +45,11 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${q.backgroundColor};
48
+ background-color: ${j.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${q.color};
52
+ background-color: ${j.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -95,19 +95,19 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${q.opacityContentOnSurfaceHover};
98
+ opacity: ${j.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${q.opacityContentOnSurfaceSelected};
102
+ opacity: ${j.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${q.opacityContentOnSurfaceFocused};
106
+ opacity: ${j.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${q.opacityContentOnSurfacePressed};
110
+ opacity: ${j.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
113
  `});var F=ji((HE,Xu)=>{Xu.exports=ftGlobals.litDecorators});var nt=ji((jE,Zu)=>{Zu.exports=ftGlobals.litClassMap});var Ju,Ie,ed,ko,at,k,Ia=l(()=>{"use strict";Ju=c(y()),Ie=c(F()),ed=c(nt()),ko=c(f());vr();at=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},k=class extends ko.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ko.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ko.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:o}=this.getCoordinates(e),n=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-n.x:n.width/2),this.originY=Math.round(o!=null?o-n.y:n.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ju.html`
@@ -228,7 +228,7 @@
228
228
  .ft-typography {
229
229
  vertical-align: inherit;
230
230
  }
231
- `});var Wa,Pd,Dd,z,Ga=l(()=>{"use strict";Cd();Wa=c(F()),Pd=c(f());ks();Bt();Dd=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},z=class extends Pd.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?Ka`
231
+ `});var Wa,Pd,Dd,V,Ga=l(()=>{"use strict";Cd();Wa=c(F()),Pd=c(f());ks();Bt();Dd=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},V=class extends Pd.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?Ka`
232
232
  <${ja(this.element)}
233
233
  part="text"
234
234
  class="ft-typography ft-typography--${this.variant}">
@@ -236,7 +236,7 @@
236
236
  </${ja(this.element)}>
237
237
  `:Ka`
238
238
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
239
- `}};z.styles=[wd,Od,_d,Rd,Td,Pr,Mr,kd,Ld,$d,Id];Dd([(0,Wa.property)()],z.prototype,"element",void 0);Dd([(0,Wa.property)()],z.prototype,"variant",void 0)});var Md,Nd=l(()=>{"use strict";Ga();Md={"ft-typography":z}});var Fd,Bd=l(()=>{"use strict";Fd=c(f());Nd();(0,Fd.customElements)(Md)});var xe=l(()=>{"use strict";Ga();Bt();ks();Bd()});var Ud,Nr,Po,Vd,Qa=l(()=>{"use strict";Ud=c(y()),Nr=c(f()),Po={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Vd=Ud.css`
239
+ `}};V.styles=[wd,Od,_d,Rd,Td,Pr,Mr,kd,Ld,$d,Id];Dd([(0,Wa.property)()],V.prototype,"element",void 0);Dd([(0,Wa.property)()],V.prototype,"variant",void 0)});var Md,Nd=l(()=>{"use strict";Ga();Md={"ft-typography":V}});var Fd,Bd=l(()=>{"use strict";Fd=c(f());Nd();(0,Fd.customElements)(Md)});var xe=l(()=>{"use strict";Ga();Bt();ks();Bd()});var Ud,Nr,Po,Vd,Qa=l(()=>{"use strict";Ud=c(y()),Nr=c(f()),Po={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Vd=Ud.css`
240
240
  .ft-tooltip--container {
241
241
  display: block;
242
242
  }
@@ -267,7 +267,7 @@
267
267
  position: relative;
268
268
  word-break: break-word;
269
269
  }
270
- `});function jd(t,e,r){return Fr(t,Mo(e,r))}function Ls(t,e){return typeof t=="function"?t(e):t}function Fo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Za(t){return t==="x"?"y":"x"}function Ja(t){return t==="y"?"height":"width"}function $s(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function el(t){return Za($s(t))}function qd(t,e,r){r===void 0&&(r=!1);let i=Br(t),s=el(t),o=Ja(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=Ya(n)),[n,Ya(n)]}function Kd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ya(t){let e=Fo(t);return jx[e]+t.slice(e.length)}function qx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Wd(t){return typeof t!="number"?qx(t):{top:t,right:t,bottom:t,left:t}}function pi(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var Hd,zd,Xa,Mo,Fr,No,rr,jx,Is=l(()=>{Hd=["top","right","bottom","left"],zd=["start","end"],Xa=Hd.reduce((t,e)=>t.concat(e,e+"-"+zd[0],e+"-"+zd[1]),[]),Mo=Math.min,Fr=Math.max,No=Math.round,rr=t=>({x:t,y:t}),jx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Gd(t,e,r){let{reference:i,floating:s}=t,o=$s(e),n=el(e),a=Ja(n),u=Fo(e),d=o==="y",p=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,x;switch(u){case"top":x={x:p,y:i.y-s.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-s.width,y:h};break;default:x={x:i.x,y:i.y}}let C=Br(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function Qd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=Ls(e,t),C=Wd(x),E=a[m?h==="floating"?"reference":"floating":h],$=pi(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(E)))==null||r?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),Q=h==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},j=pi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:($.top-j.top+C.top)/N.y,bottom:(j.bottom-$.bottom+C.bottom)/N.y,left:($.left-j.left+C.left)/N.x,right:(j.right-$.right+C.right)/N.x}}function Wx(t,e,r){return(t?[...r.filter(s=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Fo(s)===s)).filter(s=>t?Br(s)===t||(e?Kd(s)!==s:!1):!0)}var Kx,Yd,Xd,Zd,Jd=l(()=>{Is();Is();Kx=50,Yd=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Qd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:h}=Gd(d,i,u),m=i,x=0,C={};for(let T=0;T<o.length;T++){let E=o[T];if(!E)continue;let{name:$,fn:Q}=E,{x:A,y:N,data:j,reset:be}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=N??h,C[$]={...C[$],...j},be&&x<Kx&&(x++,typeof be=="object"&&(be.placement&&(m=be.placement),be.rects&&(d=be.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):be.rects),{x:p,y:h}=Gd(d,m,u)),T=-1)}return{x:p,y:h,placement:m,strategy:s,middlewareData:C}};Xd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:o,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=Xa,autoAlignment:x=!0,...C}=Ls(t,e),T=h!==void 0||m===Xa?Wx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,$=T[E];if($==null)return{};if(a!==$)return{reset:{placement:T[0]}};let Q=await u.detectOverflow(e,C),A=qd($,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Q[Fo($)],Q[A[0]],Q[A[1]]],j=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:N}],be=T[E+1];if(be)return{data:{index:E+1,overflows:j},reset:{placement:be}};let ne=j.map(Ot=>{let ti=Br(Ot.placement);return[Ot.placement,ti&&p?Ot.overflows.slice(0,2).reduce((Lx,$x)=>Lx+$x,0):Ot.overflows[0],Ot.overflows]}).sort((Ot,ti)=>Ot[1]-ti[1]),To=((s=ne.filter(Ot=>Ot[2].slice(0,Br(Ot[0])?2:3).every(ti=>ti<=0))[0])==null?void 0:s[0])||ne[0][0];return To!==a?{data:{index:E+1,overflows:j},reset:{placement:To}}:{}}}},Zd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:o}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Q=>{let{x:A,y:N}=Q;return{x:A,y:N}}},...d}=Ls(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=$s(s),x=Za(m),C=p[x],T=p[m],E=(Q,A)=>jd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(T=E(m,T));let $=u.fn({...e,[x]:C,[m]:T});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[x]:n,[m]:a}}}}}}});function Ps(){return typeof window<"u"}function fi(t){return tp(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(tp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tp(t){return Ps()?t instanceof Node||t instanceof ct(t).Node:!1}function Ut(t){return Ps()?t instanceof Element||t instanceof ct(t).Element:!1}function Er(t){return Ps()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function ep(t){return!Ps()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function rp(t){return/^(table|td|th)$/.test(fi(t))}function Uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Ut(t)?Vt(t):t;return hi(e.transform)||hi(e.translate)||hi(e.scale)||hi(e.rotate)||hi(e.perspective)||!Ms()&&(hi(e.backdropFilter)||hi(e.filter))||Gx.test(e.willChange||"")||Qx.test(e.contain||"")}function ip(t){let e=Ur(t);for(;Er(e)&&!Gi(e);){if(Wi(e))return e;if(Uo(e))return null;e=Ur(e)}return null}function Ms(){return tl==null&&(tl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tl}function Gi(t){return/^(html|body|#document)$/.test(fi(t))}function Vt(t){return ct(t).getComputedStyle(t)}function Vo(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(fi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ep(t)&&t.host||Sr(t);return ep(e)?e.host:e}function op(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Er(e)&&Bo(e)?e:op(e)}function Ds(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=op(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=ct(s);if(o){let a=Ns(n);return e.concat(n,n.visualViewport||[],Bo(s)?s:[],a&&r?Ds(a):[])}else return e.concat(s,Ds(s,[],r))}function Ns(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Gx,Qx,hi,tl,rl=l(()=>{Gx=/transform|translate|scale|rotate|perspective|filter/,Qx=/paint|layout|strict|content/,hi=t=>!!t&&t!=="none"});function ap(t){let e=Vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Er(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=No(r)!==o||No(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function lp(t){return Ut(t)?t:t.contextElement}function Qi(t){let e=lp(t);if(!Er(e))return rr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=ap(e),n=(o?No(r.width):r.width)/i,a=(o?No(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function cp(t){let e=ct(t);return!Ms()||!e.visualViewport?Yx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ct(t)}function zo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=lp(t),n=rr(1);e&&(i?Ut(i)&&(n=Qi(i)):n=Qi(t));let a=Xx(o,r,i)?cp(o):rr(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,p=s.width/n.x,h=s.height/n.y;if(o&&i){let m=ct(o),x=Ut(i)?ct(i):i,C=m,T=Ns(C);for(;T&&x!==C;){let E=Qi(T),$=T.getBoundingClientRect(),Q=Vt(T),A=$.left+(T.clientLeft+parseFloat(Q.paddingLeft))*E.x,N=$.top+(T.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=N,C=ct(T),T=Ns(C)}}return pi({width:p,height:h,x:u,y:d})}function Fs(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:zo(Sr(t)).left+r}function up(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Fs(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Zx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=Sr(i),a=e?Uo(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=rr(1),p=rr(0),h=Er(i);if((h||!o)&&((fi(i)!=="body"||Bo(n))&&(u=Vo(i)),h)){let x=zo(i);d=Qi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!o?up(n,u):rr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function Jx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function eS(t){let e=Vo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Fs(t),n=-e.scrollTop;return Vt(r).direction==="rtl"&&(o+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function rS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=ct(t),o=Sr(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Ms()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Fs(o)<=0){let m=o.ownerDocument,x=m.body,C=getComputedStyle(x),T=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(o.clientWidth-x.clientWidth-T),$=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;$<=tS&&(a-=$)}return{width:a,height:u,x:d,y:p}}function iS(t,e){let r=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Qi(t),n=t.clientWidth*o.x,a=t.clientHeight*o.y,u=s*o.x,d=i*o.y;return{width:n,height:a,x:u,y:d}}function sp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=rS(t,r,e);else if(e==="document")i=eS(Sr(t));else if(Ut(e))i=iS(e,r);else{let s=cp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return pi(i)}function oS(t,e){let r=e.get(t);if(r)return r;let i=Ds(t,[],!1).filter(a=>Ut(a)&&fi(a)!=="body"),s=null,o=Vt(t).position==="fixed",n=o?Ur(t):t;for(;Ut(n)&&!Gi(n);){let a=Vt(n),u=Wi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function sS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Uo(e)?[]:oS(e,this._c):[].concat(r),i],a=sp(e,n[0],s),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=sp(e,n[m],s);u=Fr(x.top,u),d=Mo(x.right,d),p=Mo(x.bottom,p),h=Fr(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function nS(t){let{width:e,height:r}=ap(t);return{width:e,height:r}}function aS(t,e,r){let i=Er(e),s=Sr(e),o=r==="fixed",n=zo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=rr(0);if((i||!o)&&((fi(e)!=="body"||Bo(s))&&(a=Vo(e)),i)){let m=zo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Fs(s));let d=s&&!i&&!o?up(s,a):rr(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function il(t){return Vt(t).position==="static"}function np(t,e){if(!Er(t)||Vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Sr(t)===r&&(r=r.ownerDocument.body),r}function dp(t,e){let r=ct(t);if(Uo(t))return r;if(!Er(t)){let s=Ur(t);for(;s&&!Gi(s);){if(Ut(s)&&!il(s))return s;s=Ur(s)}return r}let i=np(t,e);for(;i&&rp(i)&&il(i);)i=np(i,e);return i&&Gi(i)&&il(i)&&!Wi(i)?r:i||ip(t)||r}function cS(t){return Vt(t).direction==="rtl"}var Yx,tS,lS,Bs,pp,hp,fp,mp=l(()=>{Jd();Is();rl();Yx=rr(0);tS=25;lS=async function(t){let e=this.getOffsetParent||dp,r=this.getDimensions,i=await r(t.floating);return{reference:aS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Bs={convertOffsetParentRelativeRectToViewportRelativeRect:Zx,getDocumentElement:Sr,getClippingRect:sS,getOffsetParent:dp,getElementRects:lS,getClientRects:Jx,getDimensions:nS,getScale:Qi,isElement:Ut,isRTL:cS},pp=Xd,hp=Zd,fp=(t,e,r)=>{let i=new Map,s=r??{},o={...Bs,...s.platform,_c:i};return Yd(t,e,{...s,platform:o})}});function gp(t){return uS(t)}function ol(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function uS(t){for(let e=t;e;e=ol(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ol(t);e;e=ol(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wi(r)||e.tagName==="BODY"))return e}return null}var yp=l(()=>{rl()});async function bp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},fp(t,e,{strategy:i.strategy,platform:{...Bs,getOffsetParent:s=>Bs.getOffsetParent(s,gp)},middleware:[hp({crossAxis:!0}),pp({allowedPlacements:[i.placement]})]})}var vp=l(()=>{"use strict";mp();yp()});function Sp(t,e){return(0,xp.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ho(t);try{return JSON.parse(r)}catch{return Ho(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:jo,...e??{}})}var xp,sl,Us=l(()=>{"use strict";xp=c(F(),1);mi();sl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function dS(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Yi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Yi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=n=>Object.keys(n).filter(a=>n[a]!=null),o=s(t);if(r=o.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let n=o[i];if(!Yi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yi(t,e){try{return dS(t,e)}catch{return!1}}function jo(t,e){return!Yi(t,e)}function Ho(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Vs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var mi=l(()=>{"use strict";Us()});var Ep,nl,Cp=l(()=>{"use strict";mi();Ep=c(F(),1),nl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:jo,attribute:!1,...e};(0,Ep.property)(o)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var zs,al=l(()=>{"use strict";zs=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});var Hs,Ap=l(()=>{"use strict";Hs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){s(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var js,pS,wp,Op=l(()=>{js=globalThis,pS=js.ShadowRoot&&(js.ShadyCSS===void 0||js.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wp=(t,e)=>{if(pS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=js.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}}});var _p,qs,Rp=l(()=>{"use strict";_p=c(y(),1);Op();Us();qs=class extends _p.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return wp(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){sl(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}}});function Tp(t,e,...r){var i;let s=t.querySelector(e);for(let o of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return s}var kp=l(()=>{"use strict"});var gi,Zi,Dp,Lp,$p,Pp,Ip,Xi,ir,Mp=l(()=>{"use strict";gi=c(F(),1);Us();Ap();Rp();kp();Zi=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Lp=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Pp=Symbol("exportpartsDebouncer"),Ip=Symbol("dynamicDependenciesLoaded"),Xi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xi.eventName="exportparts-updated";ir=class extends qs{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new Hs(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Pp].run(()=>{var s,o;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$p]=this.constructor.name,this[Lp]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Lp])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Ip]||(r[Ip]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xi.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Xi)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let o=[...s??[],i];r=Tp(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,s,o,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let p=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(o=(s=m.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&o!==void 0?o:[],C=(a=(n=m.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],T=[...x,...C].filter(u).map(E=>E.trim());for(let E of T)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Dp=Pp;Zi([(0,gi.property)()],ir.prototype,"exportpartsPrefix",void 0);Zi([Sp([])],ir.prototype,"exportpartsPrefixes",void 0);Zi([(0,gi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);Zi([(0,gi.property)()],ir.prototype,"customStylesheet",void 0);Zi([(0,gi.property)()],ir.prototype,"elementToFocus",void 0);Zi([(0,gi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Ks(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ws=l(()=>{"use strict"});var qo,Vr,yi,hS,Np,Fp=l(()=>{"use strict";Mp();Ws();mi();qo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),yi=Symbol("internalStores"),hS=Vs(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[yi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[yi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[yi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[yi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[yi].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[qo].set(n,[]),Ks(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=m=>this[p](m);a.addEventListener(d.eventName,h),this[qo].get(n).push(()=>a.removeEventListener(d.eventName,h))}})),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[qo].get(n))===null||a===void 0||a.forEach(u=>u()),this[qo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=yi,i=qo,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Np=class extends hS(ir){}});function De(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}function Qs(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function cl(t,e,r){if(typeof t!="function")throw new Error(De(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(cl)(t,e)}let i=t,s=e,o=new Map,n=o,a=0,u=!1;function d(){n===o&&(n=new Map,o.forEach((E,$)=>{n.set($,E)}))}function p(){if(u)throw new Error(De(3));return s}function h(E){if(typeof E!="function")throw new Error(De(4));if(u)throw new Error(De(5));let $=!0;d();let Q=a++;return n.set(Q,E),function(){if($){if(u)throw new Error(De(6));$=!1,d(),n.delete(Q),o=null}}}function m(E){if(!Qs(E))throw new Error(De(7));if(typeof E.type>"u")throw new Error(De(8));if(typeof E.type!="string")throw new Error(De(17));if(u)throw new Error(De(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Q=>{Q()}),E}function x(E){if(typeof E!="function")throw new Error(De(10));i=E,m({type:Gs.REPLACE})}function C(){let E=h;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(De(11));function Q(){let N=$;N.next&&N.next(p())}return Q(),{unsubscribe:E(Q)}},[Bp](){return this}}}return m({type:Gs.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[Bp]:C}}function gS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Gs.INIT})>"u")throw new Error(De(12));if(typeof r(void 0,{type:Gs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Up(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,o;try{gS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],T=x(C,u);if(typeof T>"u"){let E=u&&u.type;throw new Error(De(14))}p[m]=T,d=d||T!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Ko(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vp(...t){return e=>(r,i)=>{let s=e(r,i),o=()=>{throw new Error(De(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Ko(...a)(s.dispatch),{...s,dispatch:o}}}function zp(t){return Qs(t)&&"type"in t&&typeof t.type=="string"}var fS,Bp,ll,mS,Gs,ul=l(()=>{fS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bp=fS,ll=()=>Math.random().toString(36).substring(7).split("").join("."),mS={INIT:`@@redux/INIT${ll()}`,REPLACE:`@@redux/REPLACE${ll()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ll()}`},Gs=mS});function zt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Zp(t)||ln(t)||!!t[Hp]||!!t[Js]?.[Hp]||cn(t)||un(t):!1}function Zp(t){if(!t||!El(t))return!1;let e=eo(t);if(e===null||e===mt[nn])return!0;let r=mt.hasOwnProperty.call(e,Js)&&e[Js];if(r===Object)return!0;if(!Ji(r))return!1;let i=jp.get(r);return i===void 0&&(i=Function.toString.call(r),jp.set(r,i)),i===yS}function an(t,e,r=!0){Yo(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Yo(t){let e=t[He];return e?e.type_:ln(t)?1:cn(t)?2:un(t)?3:0}function bS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function vS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function gl(t,e){if(cn(t))return new Map(t);if(un(t))return new Set(t);if(ln(t))return Array[nn].slice.call(t);let r=Zp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[He];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){let n=s[o],a=i[n];a[Xs]===!1&&(a[Xs]=!0,a[fl]=!0),(a.get||a.set)&&(i[n]={[fl]:!0,[Xs]:!0,[en]:a[en],[Wo]:t[n]})}return mt.create(eo(t),i)}else{let i=eo(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function Al(t,e=!1){return dn(t)||or(t)||!gt(t)||(Yo(t)>1&&mt.defineProperties(t,{set:Ys,add:Ys,clear:Ys,delete:Ys}),mt.freeze(t),e&&an(t,(r,i)=>{Al(i,!0)},!1)),t}function xS(){zt(2)}function dn(t){return t===null||!El(t)?!0:mt.isFrozen(t)}function bi(t){let e=Jp[t];return e||zt(0,t),e}function Wp(t,e){e&&(t.patchPlugin_=bi(yl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function bl(t){vl(t),t.drafts_.forEach(ES),t.drafts_=null}function vl(t){t===Go&&(Go=t.parent_)}function ES(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(bl(e),zt(4)),gt(t)&&(t=Yp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Yp(e,r);return CS(e,t,!0),bl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xp?t:void 0}function Yp(t,e){if(dn(e))return e;let r=e[He];if(!r)return on(e,t.handledSet_,t);if(!pn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ih(r,t)}return r.copy_}function CS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Al(e,r)}function th(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function rh(t,e,r,i){let s=Cr(t),o=t.type_;if(i!==void 0&&ml(s,i,o)===e){tn(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;an(s,(u,d)=>{if(or(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??AS;for(let a of n)tn(s,a,r,o)}function wS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!pn(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=Cl(o);rh(t,o.draft_??o,n,r),ih(o,s)})}function ih(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}th(t)}}function OS(t,e,r){let{scope_:i}=t;if(or(r)){let s=r[He];pn(s,i)&&s.callbacks_.push(function(){Zs(t);let n=Cl(s);rh(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Cr(t);t.type_===3?o.has(r)&&on(r,i.handledSet_,i):ml(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&on(ml(t.copy_,e,t.type_),i.handledSet_,i)})}function on(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||or(t)||e.has(t)||!gt(t)||dn(t)||(e.add(t),an(t,(i,s)=>{if(or(s)){let o=s[He];if(pn(o,r)){let n=Cl(o);tn(t,i,n,t.type_),th(o)}}else gt(s)&&on(s,e,r)})),t}function _S(t,e){let r=ln(t),i={type_:r?1:0,scope_:e?e.scope_:eh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,o=sn;r&&(s=[i],o=Qo);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function hl(t,e){let r=t[He];return(r?Cr(r):t)[e]}function RS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[He]?!1:t.baseRefs_.has(r)}function TS(t,e,r){let i=oh(e,r);return i?Wo in i?i[Wo]:i.get?.call(t.draft_):void 0}function oh(t,e){if(!(e in t))return;let r=eo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=eo(r)}}function xl(t){t.modified_||(t.modified_=!0,t.parent_&&xl(t.parent_))}function Zs(t){t.copy_||(t.assigned_=new Map,t.copy_=gl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Sl(t,e,r,i){let[s,o]=cn(e)?bi(rn).proxyMap_(e,r):un(e)?bi(rn).proxySet_(e,r):_S(e,r);return(r?.scope_??eh()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?wS(r,o,i):o.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=u;o.modified_&&d&&d.generatePatches_(o,[],u)}),s}function sh(t){return or(t)||zt(10,t),nh(t)}function nh(t){if(!gt(t)||dn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=gl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=gl(t,!0);return an(r,(s,o)=>{tn(r,s,nh(o))},i),e&&(e.finalized_=!1),r}var Xp,Hp,He,mt,eo,Js,nn,fl,en,Xs,Wo,or,yS,jp,dl,ml,tn,ln,cn,un,El,Ji,pl,Cr,Cl,Ys,rn,yl,qp,Jp,Kp,Go,eh,SS,Gp,pn,AS,sn,Qo,kS,LS,x0,$S,wl,ah=l(()=>{Xp=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");mt=Object,eo=mt.getPrototypeOf,Js="constructor",nn="prototype",fl="configurable",en="enumerable",Xs="writable",Wo="value",or=t=>!!t&&!!t[He];yS=mt[nn][Js].toString(),jp=new WeakMap;dl=(t,e,r=Yo(t))=>r===2?t.has(e):mt[nn].hasOwnProperty.call(t,e),ml=(t,e,r=Yo(t))=>r===2?t.get(e):t[e],tn=(t,e,r,i=Yo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};ln=Array.isArray,cn=t=>t instanceof Map,un=t=>t instanceof Set,El=t=>typeof t=="object",Ji=t=>typeof t=="function",pl=t=>typeof t=="boolean";Cr=t=>t.copy_||t.base_,Cl=t=>t.modified_?t.copy_:t.base_;Ys={[Wo]:xS};rn="MapSet",yl="Patches",qp="ArrayMethods",Jp={};Kp=t=>!!Jp[t],eh=()=>Go,SS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kp(rn)?bi(rn):void 0,arrayMethodsPlugin_:Kp(qp)?bi(qp):void 0});Gp=t=>Go=SS(Go,t);pn=(t,e)=>t.scope_===e,AS=[];sn={get(t,e){if(e===He)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=Cr(t);if(!dl(s,e,t.type_))return TS(t,s,e);let o=s[e];if(t.finalized_||!gt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&vS(e))return o;if(o===hl(t.base_,e)||RS(t,e,o)){Zs(t);let n=t.type_===1?+e:e,a=Sl(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Cr(t)},ownKeys(t){return Reflect.ownKeys(Cr(t))},set(t,e,r){let i=oh(Cr(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=hl(Cr(t),e),o=s?.[He];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(bS(r,s)&&(r!==void 0||dl(t.base_,e,t.type_)))return!0;Zs(t),xl(t)}return t.copy_[e]===r&&(r!==void 0||dl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),OS(t,e,r)),!0},deleteProperty(t,e){return Zs(t),hl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),xl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Xs]:!0,[fl]:t.type_!==1||e!=="length",[en]:i[en],[Wo]:r[e]}},defineProperty(){zt(11)},getPrototypeOf(t){return eo(t.base_)},setPrototypeOf(){zt(12)}},Qo={};for(let t in sn){let e=sn[t];Qo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)};Qo.set=function(t,e,r){return sn.set.call(this,t[0],e,r,t[0])};kS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Ji(e)&&!Ji(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||zt(6),i!==void 0&&!Ji(i)&&zt(7);let s;if(gt(e)){let o=Gp(this),n=Sl(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?bl(o):vl(o)}return Wp(o,i),Qp(s,o)}else if(!e||!El(e)){if(s=r(e),s===void 0&&(s=e),s===Xp&&(s=void 0),this.autoFreeze_&&Al(s,!0),i){let o=[],n=[];bi(yl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else zt(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,s;return[this.produce(e,r,(n,a)=>{i=n,s=a}),i,s]},pl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),pl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),pl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||zt(8),or(t)&&(t=sh(t));let e=Gp(this),r=Sl(e,t,void 0);return r[He].isManual_=!0,vl(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&zt(9);let{scope_:i}=r;return Wp(i,e),Qp(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=bi(yl).applyPatches_;return or(t)?i(t,e):this.produce(t,s=>i(s,e))}};LS=globalThis.Iterator,x0=typeof LS?.from=="function",$S=new kS,wl=$S.produce});function lh(t){return({dispatch:r,getState:i})=>s=>o=>typeof o=="function"?o(r,i,t):s(o)}var ch,uh,dh=l(()=>{ch=lh(),uh=lh});function zr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Ar(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zp(i)&&i.type===t,r}function ph(t){return gt(t)?wl(t,()=>{}):t}function hn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function PS(t){return typeof t=="boolean"}function yh(t){let e=MS(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:o=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(Qs(r))u=Up(r);else throw new Error(Ar(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ko;s&&(p=IS({trace:!1,...typeof s=="object"&&s}));let h=Vp(...d),m=US(h),x=typeof a=="function"?a(m):m(),C=p(...x);return cl(u,n,C)}function bh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ar(28));if(a in e)throw new Error(Ar(29));return e[a]=n,s},addAsyncThunk(o,n){return n.pending&&(e[o.pending.type]=n.pending),n.rejected&&(e[o.rejected.type]=n.rejected),n.fulfilled&&(e[o.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:o.settled,reducer:n.settled}),s},addMatcher(o,n){return r.push({matcher:o,reducer:n}),s},addDefaultCase(o){return i=o,s}};return t(s),[e,r,i]}function VS(t){return typeof t=="function"}function zS(t,e){let[r,i,s]=bh(e),o;if(VS(t))o=()=>ph(t());else{let a=ph(t);o=()=>a}function n(a=o(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[s]),d.reduce((p,h)=>{if(h)if(or(p)){let x=h(p,u);return x===void 0?p:x}else{if(gt(p))return wl(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return p},a)}return n.getInitialState=o,n}function jS(...t){return e=>t.some(r=>HS(r,e))}function YS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function XS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function ZS(t,e){return`${t}/${e}`}function JS({creators:t}={}){let e=t?.asyncThunk?.[vh];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(Ar(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(tE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,N){let j=typeof A=="string"?A:A.type;if(!j)throw new Error(Ar(12));if(j in u.sliceCaseReducersByType)throw new Error(Ar(13));return u.sliceCaseReducersByType[j]=N,d},addMatcher(A,N){return u.sliceMatchers.push({matcher:A,reducer:N}),d},exposeAction(A,N){return u.actionCreators[A]=N,d},exposeCaseReducer(A,N){return u.sliceCaseReducersByName[A]=N,d}};a.forEach(A=>{let N=n[A],j={reducerName:A,type:ZS(s,A),createNotation:typeof i.reducers=="function"};iE(N)?sE(j,N,d,e):rE(j,N,d)});function p(){let[A={},N=[],j=void 0]=typeof i.extraReducers=="function"?bh(i.extraReducers):[i.extraReducers],be={...A,...u.sliceCaseReducersByType};return zS(i.initialState,ne=>{for(let ve in be)ne.addCase(ve,be[ve]);for(let ve of u.sliceMatchers)ne.addMatcher(ve.matcher,ve.reducer);for(let ve of N)ne.addMatcher(ve.matcher,ve.reducer);j&&ne.addDefaultCase(j)})}let h=A=>A,m=new Map,x=new WeakMap,C;function T(A,N){return C||(C=p()),C(A,N)}function E(){return C||(C=p()),C.getInitialState()}function $(A,N=!1){function j(ne){let ve=ne[A];return typeof ve>"u"&&N&&(ve=hn(x,j,E)),ve}function be(ne=h){let ve=hn(m,N,()=>new WeakMap);return hn(ve,ne,()=>{let To={};for(let[Ot,ti]of Object.entries(i.selectors??{}))To[Ot]=eE(ti,ne,()=>hn(x,ne,E),N);return To})}return{reducerPath:A,getSelectors:be,get selectors(){return be(j)},selectSlice:j}}let Q={name:s,reducer:T,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...$(o),injectInto(A,{reducerPath:N,...j}={}){let be=N??o;return A.inject({reducerPath:be,reducer:T},j),{...Q,...$(be,!0)}}};return Q}}function eE(t,e,r,i){function s(o,...n){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return s.unwrapped=t,s}function tE(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function rE({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!oE(i))throw new Error(Ar(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?zr(t,n):zr(t))}function iE(t){return t._reducerDefinitionType==="asyncThunk"}function oE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function sE({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Ar(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=s(t,o,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||fn,pending:a||fn,rejected:u||fn,settled:d||fn})}function fn(){}function Ar(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var IS,_0,DS,gh,MS,NS,hh,FS,BS,US,HS,qS,KS,WS,Ol,fh,GS,mh,QS,vh,T0,xh,Sh,Eh,Ch,k0,L0,$0,I0,Ah,_l,nE,D0,aE,wh=l(()=>{ul();ah();ul();dh();IS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ko:Ko.apply(null,arguments)},_0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},DS=t=>t&&typeof t.match=="function";gh=class Xo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Xo.prototype)}static get[Symbol.species](){return Xo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Xo(...e[0].concat(this)):new Xo(...e.concat(this))}};MS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new gh;return r&&(PS(r)?n.push(ch):n.push(uh(r.extraArgument))),n},NS="RTK_autoBatch",hh=t=>e=>{setTimeout(e,t)},FS=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())},o=t(s),n=setTimeout(s,e)},BS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,o=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?FS(window.requestAnimationFrame,100):hh(10):t.type==="callback"?t.queueNotification:hh(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>s&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[NS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(p)}finally{s=!0}}})},US=t=>function(r){let{autoBatch:i=!0}=r??{},s=new gh(t);return i&&s.push(BS(typeof i=="object"?i:void 0)),s};HS=(t,e)=>DS(t)?t.match(e):t(e);qS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",KS=(t=21)=>{let e="",r=t;for(;r--;)e+=qS[Math.random()*64|0];return e},WS=["name","message","stack","code"],Ol=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},fh=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},GS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of WS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},mh="External signal was aborted",QS=(()=>{function t(e,r,i){let s=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||GS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):KS(),C=new AbortController,T,E;function $(A){E=A,C.abort()}d&&(d.aborted?$(mh):d.addEventListener("abort",()=>$(mh),{once:!0}));let Q=(async function(){let A;try{let j=i?.condition?.(u,{getState:h,extra:m});if(XS(j)&&(j=await j),j===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let be=new Promise((ne,ve)=>{T=()=>{ve({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});p(o(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([be,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:$,rejectWithValue:((ne,ve)=>new Ol(ne,ve)),fulfillWithValue:((ne,ve)=>new fh(ne,ve))})).then(ne=>{if(ne instanceof Ol)throw ne;return ne instanceof fh?s(ne.payload,x,u,ne.meta):s(ne,x,u)})])}catch(j){A=j instanceof Ol?n(null,x,u,j.payload,j.meta):n(j,x,u)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:$,requestId:x,arg:u,unwrap(){return Q.then(YS)}})}}return Object.assign(a,{pending:o,rejected:n,fulfilled:s,settled:jS(n,s),typePrefix:e})}return t.withTypes=()=>t,t})();vh=Symbol.for("rtk-slice-createasyncthunk"),T0={[vh]:QS};xh=JS();Sh="listener",Eh="completed",Ch="cancelled",k0=`task-${Ch}`,L0=`task-${Eh}`,$0=`${Sh}-${Ch}`,I0=`${Sh}-${Eh}`,{assign:Ah}=Object,_l="listenerMiddleware",nE=Ah(zr(`${_l}/add`),{withTypes:()=>nE}),D0=zr(`${_l}/removeAll`),aE=Ah(zr(`${_l}/remove`),{withTypes:()=>aE})});var lE,mn,Oh=l(()=>{"use strict";mi();lE=Vs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),mn=class extends lE(Object){}});var _h,Rh=l(()=>{"use strict";wh();Ws();al();Oh();mi();window.ftReduxStores||(window.ftReduxStores={});_h=class t extends mn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Ks(o))return o;if(s==null)return;let n=xh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=yh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Ho(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(n,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new zs,this.injectInto=(o,n)=>this.reduxSlice.injectInto(o,n),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let u=n,d=o[u];return d?(...p)=>{let h=d(...p.map(s));return this.reduxStore.dispatch(h),h}:p=>{let h=u,m=this.getState()[h];Yi(m,p)||this.setState({[h]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}}});var Th=l(()=>{"use strict";mi()});var kh=l(()=>{"use strict"});var Lh=l(()=>{"use strict";Cp();al();Fp();Rh();Ws();Th();kh()});var gn,$h=l(()=>{"use strict";gn=class{static format(e,r,i,s,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!o)):this.getIntlDateTime(e,r,i,s,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,o){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return o?u:s?`${a} ${u}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var yn,cE,sr,Zo,uE,S,je=l(()=>{"use strict";yn=c(f()),cE="ft-app-info",sr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};sr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";uE={session:(t,e)=>{(0,yn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new sr(e.payload)),0))}},S=yn.FtReduxStore.get({name:cE,reducers:uE,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Rl,Ih,bn,uA,Dh=l(()=>{"use strict";Rl=c(F());Lh();$h();je();Ih=c(f()),bn=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},uA=(0,Ih.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,o;return((o=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1)?a=>gn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return bn([(0,Rl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),bn([(0,Rl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),bn([nl({store:S.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),bn([nl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var Tl=l(()=>{});var Ph,Mh,Nh,Hr,Fh,Bh,Uh,vi,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,vn,Qh,Yh,to,Xh,xn,Zh,Jh,nr,ro,ef,ge,Rt,tf,kl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ph||(Ph={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Mh||(Mh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Nh||(Nh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Hr||(Hr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fh||(Fh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Bh||(Bh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Uh||(Uh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(vi||(vi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Vh||(Vh={}));(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(zh||(zh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Hh||(Hh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(jh||(jh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(qh||(qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Kh||(Kh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wh||(Wh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Gh||(Gh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(vn||(vn={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Qh||(Qh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Yh||(Yh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(to||(to={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Xh||(Xh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xn||(xn={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zh||(Zh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jh||(Jh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ro||(ro={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ef||(ef={}));(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Rt||(Rt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(tf||(tf={}))});var rf,of,sf,nf,af,lf,cf,uf,df,pf,hf,ff=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(rf||(rf={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(of||(of={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(sf||(sf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(nf||(nf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(lf||(lf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cf||(cf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(uf||(uf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(df||(df={}));(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(pf||(pf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hf||(hf={}))});var mf=l(()=>{kl();ff()});function gf(t,e){return t===e||(dE[t]??[]).some(r=>gf(r,e))}function Sn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>gf(i,e))}var dE,yf=l(()=>{kl();dE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var bf=l(()=>{});var xi=l(()=>{Tl();mf();yf();bf();Tl()});var Si,Ll=l(()=>{"use strict";je();Si=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=S.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var io,$l=l(()=>{"use strict";Ll();io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Si.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Si.await()}}});var Il,qe,jr=l(()=>{"use strict";Il=c(f());$l();qe=class extends io{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Il.CacheRegistry,this.cache=e?s.commonCache:new Il.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var En,Dl=l(()=>{"use strict";je();xi();jr();En=class extends qe{async listMySearches(){let{session:e}=S.getState();return Sn(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Cn,Pl=l(()=>{"use strict";je();jr();Cn=class extends qe{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var An,vf=l(()=>{"use strict";je();jr();An=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var wn,xf=l(()=>{"use strict";jr();je();wn=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var On,pE,hE,Cf,Ml,Nl,Sf,Ef,Xe,Fl,fE,Bl=l(()=>{"use strict";xi();On=c(f());Dl();Pl();je();vf();xf();pE="ft-user-assets",hE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Nl(t,r,[...Ml(t,r),s]),Sf(t,r,1,i),Ef(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Nl(t,r,Ml(t,r).map(s=>s.id===i.id?i:s)),Ef(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Nl(t,r,Ml(t,r).filter(o=>o.id!==s)),Sf(t,r,-1,i)}},Cf={[Rt.SEARCHES]:"savedSearches",[Rt.BOOKMARKS]:"bookmarks",[Rt.BOOKS]:void 0,[Rt.COLLECTIONS]:void 0},Ml=(t,e)=>{var r;let i=Cf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Nl=(t,e,r)=>{let i=Cf[e];i&&(t[i]=r)},Sf=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Rt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Ef=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Xe=On.FtReduxStore.get({name:pE,reducers:hE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Fl=class{constructor(e=new An,r=new wn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Cn,this.savedSearchesService=new En,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,On.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Rt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Xe.actions.bookmarks(r)}}},fE=new Fl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=fE)});var Af=l(()=>{"use strict";xi();Bl()});var Ul,wf=l(()=>{"use strict";je();Ul=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ul});var Tt,Of,oo,mE,_n,so,Rn,_f=l(()=>{"use strict";je();Tt=c(f());jr();oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},mE=Symbol("clearAfterUnitTest"),_n=class extends(0,Tt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Of]=()=>{this.defaultMessages={},this.cache=new Tt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Tt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let o=e.toLowerCase(),n=this.resolveContext(o);return new Tt.ParametrizedLabelResolver((s=this.defaultMessages[o])!==null&&s!==void 0?s:{},n).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof Tt.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Tt.delay)(0).then(()=>i()).catch(()=>null)))}};Of=mE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});so=window.FluidTopicsI18nService,Rn=window.FluidTopicsCustomI18nService});var Rf,Vl,Tf=l(()=>{"use strict";Rf=c(f()),Vl=class{highlightHtml(e,r,i){(0,Rf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vl});var kf,zl,Lf=l(()=>{"use strict";kf=c(f());je();zl=class{isDate(e){var r,i,s,o;return(o=(s=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return kf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new zl});var $f,wr,Hl=l(()=>{"use strict";$f=c(f());je();wr=class{static get(e,r){var i,s,o,n;let a=S.getState(),{lang:u,region:d}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${u}-${d}`)}}});var Tn,If=l(()=>{"use strict";jr();Tn=class extends qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,s])=>Array.isArray(s)?[i,s.map(o=>typeof o=="object"&&o!=null&&!Array.isArray(o)?this.sortEventArrays(o):o).sort((o,n)=>typeof o=="object"&&o!==null&&"key"in o?o.key.localeCompare(n.key):typeof o=="string"&&typeof n=="string"?o.localeCompare(n):String(o).localeCompare(String(n)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(s=>(console.info(r),console.debug(s),i)),1e3)}}});var jl,Df=l(()=>{"use strict";Hl();jl=class{urlToSearchRequest(e){return wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new jl});var Ei,Ci,Pf=l(()=>{"use strict";Ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ei.eventName="before-location-change";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ci.eventName="change"});var ql,Mf,Nf=l(()=>{"use strict";ql=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Mf=new ql});var Or,kn,Ff=l(()=>{"use strict";Or=c(f());Pf();Nf();kn=class t extends Or.WithEventBus{static build(){return new t(window.history,Mf,()=>window.location,!1)}constructor(e,r,i,s){var o,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ci(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ei(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:u.detail.nextLocation.href};i.apply(s,[p,n,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ei.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ei.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ci.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ci.eventName,e)}currentItem(){return(0,Or.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Or.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(s=o),o++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=s}}});var Bf=l(()=>{"use strict";Ff();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=kn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var Uf=l(()=>{"use strict";je()});var Ln=l(()=>{"use strict";Pl();Ll();wf();_f();jr();Tf();Dl();Lf();Hl();If();Df();Bf();Uf()});var Vf,zf,Kl=l(()=>{"use strict";Vf=c(y()),zf=Vf.css`
270
+ `});function jd(t,e,r){return Fr(t,Mo(e,r))}function Ls(t,e){return typeof t=="function"?t(e):t}function Fo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function Za(t){return t==="x"?"y":"x"}function Ja(t){return t==="y"?"height":"width"}function $s(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function el(t){return Za($s(t))}function qd(t,e,r){r===void 0&&(r=!1);let i=Br(t),s=el(t),o=Ja(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=Ya(n)),[n,Ya(n)]}function Kd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ya(t){let e=Fo(t);return jx[e]+t.slice(e.length)}function qx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Wd(t){return typeof t!="number"?qx(t):{top:t,right:t,bottom:t,left:t}}function pi(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var Hd,zd,Xa,Mo,Fr,No,rr,jx,Is=l(()=>{Hd=["top","right","bottom","left"],zd=["start","end"],Xa=Hd.reduce((t,e)=>t.concat(e,e+"-"+zd[0],e+"-"+zd[1]),[]),Mo=Math.min,Fr=Math.max,No=Math.round,rr=t=>({x:t,y:t}),jx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Gd(t,e,r){let{reference:i,floating:s}=t,o=$s(e),n=el(e),a=Ja(n),u=Fo(e),d=o==="y",p=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,x;switch(u){case"top":x={x:p,y:i.y-s.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-s.width,y:h};break;default:x={x:i.x,y:i.y}}let C=Br(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function Qd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=Ls(e,t),C=Wd(x),E=a[m?h==="floating"?"reference":"floating":h],$=pi(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(E)))==null||r?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),Q=h==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),N=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},H=pi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:($.top-H.top+C.top)/N.y,bottom:(H.bottom-$.bottom+C.bottom)/N.y,left:($.left-H.left+C.left)/N.x,right:(H.right-$.right+C.right)/N.x}}function Wx(t,e,r){return(t?[...r.filter(s=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Fo(s)===s)).filter(s=>t?Br(s)===t||(e?Kd(s)!==s:!1):!0)}var Kx,Yd,Xd,Zd,Jd=l(()=>{Is();Is();Kx=50,Yd=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Qd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:h}=Gd(d,i,u),m=i,x=0,C={};for(let T=0;T<o.length;T++){let E=o[T];if(!E)continue;let{name:$,fn:Q}=E,{x:A,y:N,data:H,reset:be}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=N??h,C[$]={...C[$],...H},be&&x<Kx&&(x++,typeof be=="object"&&(be.placement&&(m=be.placement),be.rects&&(d=be.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):be.rects),{x:p,y:h}=Gd(d,m,u)),T=-1)}return{x:p,y:h,placement:m,strategy:s,middlewareData:C}};Xd=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:o,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=Xa,autoAlignment:x=!0,...C}=Ls(t,e),T=h!==void 0||m===Xa?Wx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,$=T[E];if($==null)return{};if(a!==$)return{reset:{placement:T[0]}};let Q=await u.detectOverflow(e,C),A=qd($,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),N=[Q[Fo($)],Q[A[0]],Q[A[1]]],H=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:N}],be=T[E+1];if(be)return{data:{index:E+1,overflows:H},reset:{placement:be}};let ne=H.map(Ot=>{let ti=Br(Ot.placement);return[Ot.placement,ti&&p?Ot.overflows.slice(0,2).reduce((Lx,$x)=>Lx+$x,0):Ot.overflows[0],Ot.overflows]}).sort((Ot,ti)=>Ot[1]-ti[1]),To=((s=ne.filter(Ot=>Ot[2].slice(0,Br(Ot[0])?2:3).every(ti=>ti<=0))[0])==null?void 0:s[0])||ne[0][0];return To!==a?{data:{index:E+1,overflows:H},reset:{placement:To}}:{}}}},Zd=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:o}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Q=>{let{x:A,y:N}=Q;return{x:A,y:N}}},...d}=Ls(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=$s(s),x=Za(m),C=p[x],T=p[m],E=(Q,A)=>jd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(T=E(m,T));let $=u.fn({...e,[x]:C,[m]:T});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[x]:n,[m]:a}}}}}}});function Ps(){return typeof window<"u"}function fi(t){return tp(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(tp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tp(t){return Ps()?t instanceof Node||t instanceof ct(t).Node:!1}function Ut(t){return Ps()?t instanceof Element||t instanceof ct(t).Element:!1}function Er(t){return Ps()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function ep(t){return!Ps()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function rp(t){return/^(table|td|th)$/.test(fi(t))}function Uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Ut(t)?Vt(t):t;return hi(e.transform)||hi(e.translate)||hi(e.scale)||hi(e.rotate)||hi(e.perspective)||!Ms()&&(hi(e.backdropFilter)||hi(e.filter))||Gx.test(e.willChange||"")||Qx.test(e.contain||"")}function ip(t){let e=Ur(t);for(;Er(e)&&!Gi(e);){if(Wi(e))return e;if(Uo(e))return null;e=Ur(e)}return null}function Ms(){return tl==null&&(tl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tl}function Gi(t){return/^(html|body|#document)$/.test(fi(t))}function Vt(t){return ct(t).getComputedStyle(t)}function Vo(t){return Ut(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(fi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ep(t)&&t.host||Sr(t);return ep(e)?e.host:e}function op(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Er(e)&&Bo(e)?e:op(e)}function Ds(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=op(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=ct(s);if(o){let a=Ns(n);return e.concat(n,n.visualViewport||[],Bo(s)?s:[],a&&r?Ds(a):[])}else return e.concat(s,Ds(s,[],r))}function Ns(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Gx,Qx,hi,tl,rl=l(()=>{Gx=/transform|translate|scale|rotate|perspective|filter/,Qx=/paint|layout|strict|content/,hi=t=>!!t&&t!=="none"});function ap(t){let e=Vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Er(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=No(r)!==o||No(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function lp(t){return Ut(t)?t:t.contextElement}function Qi(t){let e=lp(t);if(!Er(e))return rr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=ap(e),n=(o?No(r.width):r.width)/i,a=(o?No(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function cp(t){let e=ct(t);return!Ms()||!e.visualViewport?Yx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ct(t)}function zo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=lp(t),n=rr(1);e&&(i?Ut(i)&&(n=Qi(i)):n=Qi(t));let a=Xx(o,r,i)?cp(o):rr(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,p=s.width/n.x,h=s.height/n.y;if(o&&i){let m=ct(o),x=Ut(i)?ct(i):i,C=m,T=Ns(C);for(;T&&x!==C;){let E=Qi(T),$=T.getBoundingClientRect(),Q=Vt(T),A=$.left+(T.clientLeft+parseFloat(Q.paddingLeft))*E.x,N=$.top+(T.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=N,C=ct(T),T=Ns(C)}}return pi({width:p,height:h,x:u,y:d})}function Fs(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:zo(Sr(t)).left+r}function up(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Fs(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Zx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=Sr(i),a=e?Uo(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=rr(1),p=rr(0),h=Er(i);if((h||!o)&&((fi(i)!=="body"||Bo(n))&&(u=Vo(i)),h)){let x=zo(i);d=Qi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!o?up(n,u):rr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function Jx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function eS(t){let e=Vo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Fs(t),n=-e.scrollTop;return Vt(r).direction==="rtl"&&(o+=Fr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function rS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=ct(t),o=Sr(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Ms()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Fs(o)<=0){let m=o.ownerDocument,x=m.body,C=getComputedStyle(x),T=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(o.clientWidth-x.clientWidth-T),$=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;$<=tS&&(a-=$)}return{width:a,height:u,x:d,y:p}}function iS(t,e){let r=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Qi(t),n=t.clientWidth*o.x,a=t.clientHeight*o.y,u=s*o.x,d=i*o.y;return{width:n,height:a,x:u,y:d}}function sp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=rS(t,r,e);else if(e==="document")i=eS(Sr(t));else if(Ut(e))i=iS(e,r);else{let s=cp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return pi(i)}function oS(t,e){let r=e.get(t);if(r)return r;let i=Ds(t,[],!1).filter(a=>Ut(a)&&fi(a)!=="body"),s=null,o=Vt(t).position==="fixed",n=o?Ur(t):t;for(;Ut(n)&&!Gi(n);){let a=Vt(n),u=Wi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function sS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Uo(e)?[]:oS(e,this._c):[].concat(r),i],a=sp(e,n[0],s),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=sp(e,n[m],s);u=Fr(x.top,u),d=Mo(x.right,d),p=Mo(x.bottom,p),h=Fr(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function nS(t){let{width:e,height:r}=ap(t);return{width:e,height:r}}function aS(t,e,r){let i=Er(e),s=Sr(e),o=r==="fixed",n=zo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=rr(0);if((i||!o)&&((fi(e)!=="body"||Bo(s))&&(a=Vo(e)),i)){let m=zo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Fs(s));let d=s&&!i&&!o?up(s,a):rr(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function il(t){return Vt(t).position==="static"}function np(t,e){if(!Er(t)||Vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Sr(t)===r&&(r=r.ownerDocument.body),r}function dp(t,e){let r=ct(t);if(Uo(t))return r;if(!Er(t)){let s=Ur(t);for(;s&&!Gi(s);){if(Ut(s)&&!il(s))return s;s=Ur(s)}return r}let i=np(t,e);for(;i&&rp(i)&&il(i);)i=np(i,e);return i&&Gi(i)&&il(i)&&!Wi(i)?r:i||ip(t)||r}function cS(t){return Vt(t).direction==="rtl"}var Yx,tS,lS,Bs,pp,hp,fp,mp=l(()=>{Jd();Is();rl();Yx=rr(0);tS=25;lS=async function(t){let e=this.getOffsetParent||dp,r=this.getDimensions,i=await r(t.floating);return{reference:aS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Bs={convertOffsetParentRelativeRectToViewportRelativeRect:Zx,getDocumentElement:Sr,getClippingRect:sS,getOffsetParent:dp,getElementRects:lS,getClientRects:Jx,getDimensions:nS,getScale:Qi,isElement:Ut,isRTL:cS},pp=Xd,hp=Zd,fp=(t,e,r)=>{let i=new Map,s=r??{},o={...Bs,...s.platform,_c:i};return Yd(t,e,{...s,platform:o})}});function gp(t){return uS(t)}function ol(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function uS(t){for(let e=t;e;e=ol(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ol(t);e;e=ol(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wi(r)||e.tagName==="BODY"))return e}return null}var yp=l(()=>{rl()});async function bp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},fp(t,e,{strategy:i.strategy,platform:{...Bs,getOffsetParent:s=>Bs.getOffsetParent(s,gp)},middleware:[hp({crossAxis:!0}),pp({allowedPlacements:[i.placement]})]})}var vp=l(()=>{"use strict";mp();yp()});function Sp(t,e){return(0,xp.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ho(t);try{return JSON.parse(r)}catch{return Ho(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:jo,...e??{}})}var xp,sl,Us=l(()=>{"use strict";xp=c(F(),1);mi();sl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function dS(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Yi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Yi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=n=>Object.keys(n).filter(a=>n[a]!=null),o=s(t);if(r=o.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let n=o[i];if(!Yi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yi(t,e){try{return dS(t,e)}catch{return!1}}function jo(t,e){return!Yi(t,e)}function Ho(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Vs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var mi=l(()=>{"use strict";Us()});var Ep,nl,Cp=l(()=>{"use strict";mi();Ep=c(F(),1),nl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:jo,attribute:!1,...e};(0,Ep.property)(o)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var zs,al=l(()=>{"use strict";zs=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}}});var Hs,Ap=l(()=>{"use strict";Hs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){s(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var js,pS,wp,Op=l(()=>{js=globalThis,pS=js.ShadowRoot&&(js.ShadyCSS===void 0||js.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wp=(t,e)=>{if(pS)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=js.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}}});var _p,qs,Rp=l(()=>{"use strict";_p=c(y(),1);Op();Us();qs=class extends _p.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return wp(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){sl(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}}});function Tp(t,e,...r){var i;let s=t.querySelector(e);for(let o of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return s}var kp=l(()=>{"use strict"});var gi,Zi,Dp,Lp,$p,Pp,Ip,Xi,ir,Mp=l(()=>{"use strict";gi=c(F(),1);Us();Ap();Rp();kp();Zi=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Lp=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Pp=Symbol("exportpartsDebouncer"),Ip=Symbol("dynamicDependenciesLoaded"),Xi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xi.eventName="exportparts-updated";ir=class extends qs{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new Hs(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Pp].run(()=>{var s,o;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$p]=this.constructor.name,this[Lp]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Lp])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Ip]||(r[Ip]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xi.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Xi)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let o=[...s??[],i];r=Tp(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,s,o,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let p=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(o=(s=m.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&o!==void 0?o:[],C=(a=(n=m.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],T=[...x,...C].filter(u).map(E=>E.trim());for(let E of T)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Dp=Pp;Zi([(0,gi.property)()],ir.prototype,"exportpartsPrefix",void 0);Zi([Sp([])],ir.prototype,"exportpartsPrefixes",void 0);Zi([(0,gi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);Zi([(0,gi.property)()],ir.prototype,"customStylesheet",void 0);Zi([(0,gi.property)()],ir.prototype,"elementToFocus",void 0);Zi([(0,gi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Ks(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ws=l(()=>{"use strict"});var qo,Vr,yi,hS,Np,Fp=l(()=>{"use strict";Mp();Ws();mi();qo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),yi=Symbol("internalStores"),hS=Vs(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[yi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[yi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[yi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[yi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[yi].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[qo].set(n,[]),Ks(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=m=>this[p](m);a.addEventListener(d.eventName,h),this[qo].get(n).push(()=>a.removeEventListener(d.eventName,h))}})),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[qo].get(n))===null||a===void 0||a.forEach(u=>u()),this[qo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=yi,i=qo,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Np=class extends hS(ir){}});function De(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}function Qs(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function cl(t,e,r){if(typeof t!="function")throw new Error(De(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(cl)(t,e)}let i=t,s=e,o=new Map,n=o,a=0,u=!1;function d(){n===o&&(n=new Map,o.forEach((E,$)=>{n.set($,E)}))}function p(){if(u)throw new Error(De(3));return s}function h(E){if(typeof E!="function")throw new Error(De(4));if(u)throw new Error(De(5));let $=!0;d();let Q=a++;return n.set(Q,E),function(){if($){if(u)throw new Error(De(6));$=!1,d(),n.delete(Q),o=null}}}function m(E){if(!Qs(E))throw new Error(De(7));if(typeof E.type>"u")throw new Error(De(8));if(typeof E.type!="string")throw new Error(De(17));if(u)throw new Error(De(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Q=>{Q()}),E}function x(E){if(typeof E!="function")throw new Error(De(10));i=E,m({type:Gs.REPLACE})}function C(){let E=h;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(De(11));function Q(){let N=$;N.next&&N.next(p())}return Q(),{unsubscribe:E(Q)}},[Bp](){return this}}}return m({type:Gs.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[Bp]:C}}function gS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Gs.INIT})>"u")throw new Error(De(12));if(typeof r(void 0,{type:Gs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Up(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,o;try{gS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],T=x(C,u);if(typeof T>"u"){let E=u&&u.type;throw new Error(De(14))}p[m]=T,d=d||T!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Ko(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vp(...t){return e=>(r,i)=>{let s=e(r,i),o=()=>{throw new Error(De(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Ko(...a)(s.dispatch),{...s,dispatch:o}}}function zp(t){return Qs(t)&&"type"in t&&typeof t.type=="string"}var fS,Bp,ll,mS,Gs,ul=l(()=>{fS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bp=fS,ll=()=>Math.random().toString(36).substring(7).split("").join("."),mS={INIT:`@@redux/INIT${ll()}`,REPLACE:`@@redux/REPLACE${ll()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ll()}`},Gs=mS});function zt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Zp(t)||ln(t)||!!t[Hp]||!!t[Js]?.[Hp]||cn(t)||un(t):!1}function Zp(t){if(!t||!El(t))return!1;let e=eo(t);if(e===null||e===mt[nn])return!0;let r=mt.hasOwnProperty.call(e,Js)&&e[Js];if(r===Object)return!0;if(!Ji(r))return!1;let i=jp.get(r);return i===void 0&&(i=Function.toString.call(r),jp.set(r,i)),i===yS}function an(t,e,r=!0){Yo(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Yo(t){let e=t[He];return e?e.type_:ln(t)?1:cn(t)?2:un(t)?3:0}function bS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function vS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function gl(t,e){if(cn(t))return new Map(t);if(un(t))return new Set(t);if(ln(t))return Array[nn].slice.call(t);let r=Zp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[He];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){let n=s[o],a=i[n];a[Xs]===!1&&(a[Xs]=!0,a[fl]=!0),(a.get||a.set)&&(i[n]={[fl]:!0,[Xs]:!0,[en]:a[en],[Wo]:t[n]})}return mt.create(eo(t),i)}else{let i=eo(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function Al(t,e=!1){return dn(t)||or(t)||!gt(t)||(Yo(t)>1&&mt.defineProperties(t,{set:Ys,add:Ys,clear:Ys,delete:Ys}),mt.freeze(t),e&&an(t,(r,i)=>{Al(i,!0)},!1)),t}function xS(){zt(2)}function dn(t){return t===null||!El(t)?!0:mt.isFrozen(t)}function bi(t){let e=Jp[t];return e||zt(0,t),e}function Wp(t,e){e&&(t.patchPlugin_=bi(yl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function bl(t){vl(t),t.drafts_.forEach(ES),t.drafts_=null}function vl(t){t===Go&&(Go=t.parent_)}function ES(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(bl(e),zt(4)),gt(t)&&(t=Yp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[He].base_,t,e)}else t=Yp(e,r);return CS(e,t,!0),bl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xp?t:void 0}function Yp(t,e){if(dn(e))return e;let r=e[He];if(!r)return on(e,t.handledSet_,t);if(!pn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ih(r,t)}return r.copy_}function CS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Al(e,r)}function th(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function rh(t,e,r,i){let s=Cr(t),o=t.type_;if(i!==void 0&&ml(s,i,o)===e){tn(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;an(s,(u,d)=>{if(or(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??AS;for(let a of n)tn(s,a,r,o)}function wS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!pn(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=Cl(o);rh(t,o.draft_??o,n,r),ih(o,s)})}function ih(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}th(t)}}function OS(t,e,r){let{scope_:i}=t;if(or(r)){let s=r[He];pn(s,i)&&s.callbacks_.push(function(){Zs(t);let n=Cl(s);rh(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Cr(t);t.type_===3?o.has(r)&&on(r,i.handledSet_,i):ml(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&on(ml(t.copy_,e,t.type_),i.handledSet_,i)})}function on(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||or(t)||e.has(t)||!gt(t)||dn(t)||(e.add(t),an(t,(i,s)=>{if(or(s)){let o=s[He];if(pn(o,r)){let n=Cl(o);tn(t,i,n,t.type_),th(o)}}else gt(s)&&on(s,e,r)})),t}function _S(t,e){let r=ln(t),i={type_:r?1:0,scope_:e?e.scope_:eh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,o=sn;r&&(s=[i],o=Qo);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function hl(t,e){let r=t[He];return(r?Cr(r):t)[e]}function RS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[He]?!1:t.baseRefs_.has(r)}function TS(t,e,r){let i=oh(e,r);return i?Wo in i?i[Wo]:i.get?.call(t.draft_):void 0}function oh(t,e){if(!(e in t))return;let r=eo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=eo(r)}}function xl(t){t.modified_||(t.modified_=!0,t.parent_&&xl(t.parent_))}function Zs(t){t.copy_||(t.assigned_=new Map,t.copy_=gl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Sl(t,e,r,i){let[s,o]=cn(e)?bi(rn).proxyMap_(e,r):un(e)?bi(rn).proxySet_(e,r):_S(e,r);return(r?.scope_??eh()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?wS(r,o,i):o.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=u;o.modified_&&d&&d.generatePatches_(o,[],u)}),s}function sh(t){return or(t)||zt(10,t),nh(t)}function nh(t){if(!gt(t)||dn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=gl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=gl(t,!0);return an(r,(s,o)=>{tn(r,s,nh(o))},i),e&&(e.finalized_=!1),r}var Xp,Hp,He,mt,eo,Js,nn,fl,en,Xs,Wo,or,yS,jp,dl,ml,tn,ln,cn,un,El,Ji,pl,Cr,Cl,Ys,rn,yl,qp,Jp,Kp,Go,eh,SS,Gp,pn,AS,sn,Qo,kS,LS,x0,$S,wl,ah=l(()=>{Xp=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");mt=Object,eo=mt.getPrototypeOf,Js="constructor",nn="prototype",fl="configurable",en="enumerable",Xs="writable",Wo="value",or=t=>!!t&&!!t[He];yS=mt[nn][Js].toString(),jp=new WeakMap;dl=(t,e,r=Yo(t))=>r===2?t.has(e):mt[nn].hasOwnProperty.call(t,e),ml=(t,e,r=Yo(t))=>r===2?t.get(e):t[e],tn=(t,e,r,i=Yo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};ln=Array.isArray,cn=t=>t instanceof Map,un=t=>t instanceof Set,El=t=>typeof t=="object",Ji=t=>typeof t=="function",pl=t=>typeof t=="boolean";Cr=t=>t.copy_||t.base_,Cl=t=>t.modified_?t.copy_:t.base_;Ys={[Wo]:xS};rn="MapSet",yl="Patches",qp="ArrayMethods",Jp={};Kp=t=>!!Jp[t],eh=()=>Go,SS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kp(rn)?bi(rn):void 0,arrayMethodsPlugin_:Kp(qp)?bi(qp):void 0});Gp=t=>Go=SS(Go,t);pn=(t,e)=>t.scope_===e,AS=[];sn={get(t,e){if(e===He)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=Cr(t);if(!dl(s,e,t.type_))return TS(t,s,e);let o=s[e];if(t.finalized_||!gt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&vS(e))return o;if(o===hl(t.base_,e)||RS(t,e,o)){Zs(t);let n=t.type_===1?+e:e,a=Sl(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Cr(t)},ownKeys(t){return Reflect.ownKeys(Cr(t))},set(t,e,r){let i=oh(Cr(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=hl(Cr(t),e),o=s?.[He];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(bS(r,s)&&(r!==void 0||dl(t.base_,e,t.type_)))return!0;Zs(t),xl(t)}return t.copy_[e]===r&&(r!==void 0||dl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),OS(t,e,r)),!0},deleteProperty(t,e){return Zs(t),hl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),xl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Xs]:!0,[fl]:t.type_!==1||e!=="length",[en]:i[en],[Wo]:r[e]}},defineProperty(){zt(11)},getPrototypeOf(t){return eo(t.base_)},setPrototypeOf(){zt(12)}},Qo={};for(let t in sn){let e=sn[t];Qo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)};Qo.set=function(t,e,r){return sn.set.call(this,t[0],e,r,t[0])};kS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Ji(e)&&!Ji(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||zt(6),i!==void 0&&!Ji(i)&&zt(7);let s;if(gt(e)){let o=Gp(this),n=Sl(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?bl(o):vl(o)}return Wp(o,i),Qp(s,o)}else if(!e||!El(e)){if(s=r(e),s===void 0&&(s=e),s===Xp&&(s=void 0),this.autoFreeze_&&Al(s,!0),i){let o=[],n=[];bi(yl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else zt(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,s;return[this.produce(e,r,(n,a)=>{i=n,s=a}),i,s]},pl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),pl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),pl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||zt(8),or(t)&&(t=sh(t));let e=Gp(this),r=Sl(e,t,void 0);return r[He].isManual_=!0,vl(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&zt(9);let{scope_:i}=r;return Wp(i,e),Qp(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=bi(yl).applyPatches_;return or(t)?i(t,e):this.produce(t,s=>i(s,e))}};LS=globalThis.Iterator,x0=typeof LS?.from=="function",$S=new kS,wl=$S.produce});function lh(t){return({dispatch:r,getState:i})=>s=>o=>typeof o=="function"?o(r,i,t):s(o)}var ch,uh,dh=l(()=>{ch=lh(),uh=lh});function zr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Ar(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zp(i)&&i.type===t,r}function ph(t){return gt(t)?wl(t,()=>{}):t}function hn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function PS(t){return typeof t=="boolean"}function yh(t){let e=MS(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:o=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(Qs(r))u=Up(r);else throw new Error(Ar(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ko;s&&(p=IS({trace:!1,...typeof s=="object"&&s}));let h=Vp(...d),m=US(h),x=typeof a=="function"?a(m):m(),C=p(...x);return cl(u,n,C)}function bh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ar(28));if(a in e)throw new Error(Ar(29));return e[a]=n,s},addAsyncThunk(o,n){return n.pending&&(e[o.pending.type]=n.pending),n.rejected&&(e[o.rejected.type]=n.rejected),n.fulfilled&&(e[o.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:o.settled,reducer:n.settled}),s},addMatcher(o,n){return r.push({matcher:o,reducer:n}),s},addDefaultCase(o){return i=o,s}};return t(s),[e,r,i]}function VS(t){return typeof t=="function"}function zS(t,e){let[r,i,s]=bh(e),o;if(VS(t))o=()=>ph(t());else{let a=ph(t);o=()=>a}function n(a=o(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[s]),d.reduce((p,h)=>{if(h)if(or(p)){let x=h(p,u);return x===void 0?p:x}else{if(gt(p))return wl(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return p},a)}return n.getInitialState=o,n}function jS(...t){return e=>t.some(r=>HS(r,e))}function YS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function XS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function ZS(t,e){return`${t}/${e}`}function JS({creators:t}={}){let e=t?.asyncThunk?.[vh];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(Ar(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(tE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,N){let H=typeof A=="string"?A:A.type;if(!H)throw new Error(Ar(12));if(H in u.sliceCaseReducersByType)throw new Error(Ar(13));return u.sliceCaseReducersByType[H]=N,d},addMatcher(A,N){return u.sliceMatchers.push({matcher:A,reducer:N}),d},exposeAction(A,N){return u.actionCreators[A]=N,d},exposeCaseReducer(A,N){return u.sliceCaseReducersByName[A]=N,d}};a.forEach(A=>{let N=n[A],H={reducerName:A,type:ZS(s,A),createNotation:typeof i.reducers=="function"};iE(N)?sE(H,N,d,e):rE(H,N,d)});function p(){let[A={},N=[],H=void 0]=typeof i.extraReducers=="function"?bh(i.extraReducers):[i.extraReducers],be={...A,...u.sliceCaseReducersByType};return zS(i.initialState,ne=>{for(let ve in be)ne.addCase(ve,be[ve]);for(let ve of u.sliceMatchers)ne.addMatcher(ve.matcher,ve.reducer);for(let ve of N)ne.addMatcher(ve.matcher,ve.reducer);H&&ne.addDefaultCase(H)})}let h=A=>A,m=new Map,x=new WeakMap,C;function T(A,N){return C||(C=p()),C(A,N)}function E(){return C||(C=p()),C.getInitialState()}function $(A,N=!1){function H(ne){let ve=ne[A];return typeof ve>"u"&&N&&(ve=hn(x,H,E)),ve}function be(ne=h){let ve=hn(m,N,()=>new WeakMap);return hn(ve,ne,()=>{let To={};for(let[Ot,ti]of Object.entries(i.selectors??{}))To[Ot]=eE(ti,ne,()=>hn(x,ne,E),N);return To})}return{reducerPath:A,getSelectors:be,get selectors(){return be(H)},selectSlice:H}}let Q={name:s,reducer:T,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...$(o),injectInto(A,{reducerPath:N,...H}={}){let be=N??o;return A.inject({reducerPath:be,reducer:T},H),{...Q,...$(be,!0)}}};return Q}}function eE(t,e,r,i){function s(o,...n){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return s.unwrapped=t,s}function tE(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function rE({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!oE(i))throw new Error(Ar(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?zr(t,n):zr(t))}function iE(t){return t._reducerDefinitionType==="asyncThunk"}function oE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function sE({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Ar(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=s(t,o,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||fn,pending:a||fn,rejected:u||fn,settled:d||fn})}function fn(){}function Ar(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var IS,_0,DS,gh,MS,NS,hh,FS,BS,US,HS,qS,KS,WS,Ol,fh,GS,mh,QS,vh,T0,xh,Sh,Eh,Ch,k0,L0,$0,I0,Ah,_l,nE,D0,aE,wh=l(()=>{ul();ah();ul();dh();IS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ko:Ko.apply(null,arguments)},_0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},DS=t=>t&&typeof t.match=="function";gh=class Xo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Xo.prototype)}static get[Symbol.species](){return Xo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Xo(...e[0].concat(this)):new Xo(...e.concat(this))}};MS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new gh;return r&&(PS(r)?n.push(ch):n.push(uh(r.extraArgument))),n},NS="RTK_autoBatch",hh=t=>e=>{setTimeout(e,t)},FS=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())},o=t(s),n=setTimeout(s,e)},BS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,o=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?FS(window.requestAnimationFrame,100):hh(10):t.type==="callback"?t.queueNotification:hh(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>s&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[NS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(p)}finally{s=!0}}})},US=t=>function(r){let{autoBatch:i=!0}=r??{},s=new gh(t);return i&&s.push(BS(typeof i=="object"?i:void 0)),s};HS=(t,e)=>DS(t)?t.match(e):t(e);qS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",KS=(t=21)=>{let e="",r=t;for(;r--;)e+=qS[Math.random()*64|0];return e},WS=["name","message","stack","code"],Ol=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},fh=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},GS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of WS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},mh="External signal was aborted",QS=(()=>{function t(e,r,i){let s=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||GS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):KS(),C=new AbortController,T,E;function $(A){E=A,C.abort()}d&&(d.aborted?$(mh):d.addEventListener("abort",()=>$(mh),{once:!0}));let Q=(async function(){let A;try{let H=i?.condition?.(u,{getState:h,extra:m});if(XS(H)&&(H=await H),H===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let be=new Promise((ne,ve)=>{T=()=>{ve({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",T,{once:!0})});p(o(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([be,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:$,rejectWithValue:((ne,ve)=>new Ol(ne,ve)),fulfillWithValue:((ne,ve)=>new fh(ne,ve))})).then(ne=>{if(ne instanceof Ol)throw ne;return ne instanceof fh?s(ne.payload,x,u,ne.meta):s(ne,x,u)})])}catch(H){A=H instanceof Ol?n(null,x,u,H.payload,H.meta):n(H,x,u)}finally{T&&C.signal.removeEventListener("abort",T)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:$,requestId:x,arg:u,unwrap(){return Q.then(YS)}})}}return Object.assign(a,{pending:o,rejected:n,fulfilled:s,settled:jS(n,s),typePrefix:e})}return t.withTypes=()=>t,t})();vh=Symbol.for("rtk-slice-createasyncthunk"),T0={[vh]:QS};xh=JS();Sh="listener",Eh="completed",Ch="cancelled",k0=`task-${Ch}`,L0=`task-${Eh}`,$0=`${Sh}-${Ch}`,I0=`${Sh}-${Eh}`,{assign:Ah}=Object,_l="listenerMiddleware",nE=Ah(zr(`${_l}/add`),{withTypes:()=>nE}),D0=zr(`${_l}/removeAll`),aE=Ah(zr(`${_l}/remove`),{withTypes:()=>aE})});var lE,mn,Oh=l(()=>{"use strict";mi();lE=Vs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),mn=class extends lE(Object){}});var _h,Rh=l(()=>{"use strict";wh();Ws();al();Oh();mi();window.ftReduxStores||(window.ftReduxStores={});_h=class t extends mn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Ks(o))return o;if(s==null)return;let n=xh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=yh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Ho(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(n,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new zs,this.injectInto=(o,n)=>this.reduxSlice.injectInto(o,n),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let u=n,d=o[u];return d?(...p)=>{let h=d(...p.map(s));return this.reduxStore.dispatch(h),h}:p=>{let h=u,m=this.getState()[h];Yi(m,p)||this.setState({[h]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}}});var Th=l(()=>{"use strict";mi()});var kh=l(()=>{"use strict"});var Lh=l(()=>{"use strict";Cp();al();Fp();Rh();Ws();Th();kh()});var gn,$h=l(()=>{"use strict";gn=class{static format(e,r,i,s,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!o)):this.getIntlDateTime(e,r,i,s,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,o){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return o?u:s?`${a} ${u}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}}});var yn,cE,sr,Zo,uE,S,je=l(()=>{"use strict";yn=c(f()),cE="ft-app-info",sr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};sr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";uE={session:(t,e)=>{(0,yn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new sr(e.payload)),0))}},S=yn.FtReduxStore.get({name:cE,reducers:uE,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Rl,Ih,bn,uA,Dh=l(()=>{"use strict";Rl=c(F());Lh();$h();je();Ih=c(f()),bn=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},uA=(0,Ih.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,o;return((o=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1)?a=>gn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return bn([(0,Rl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),bn([(0,Rl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),bn([nl({store:S.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),bn([nl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var Tl=l(()=>{});var Ph,Mh,Nh,Hr,Fh,Bh,Uh,vi,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,vn,Qh,Yh,to,Xh,xn,Zh,Jh,nr,ro,ef,ge,Rt,tf,kl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ph||(Ph={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Mh||(Mh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Nh||(Nh={}));(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Hr||(Hr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fh||(Fh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Bh||(Bh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Uh||(Uh={}));(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(vi||(vi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Vh||(Vh={}));(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(zh||(zh={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Hh||(Hh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(jh||(jh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(qh||(qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Kh||(Kh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wh||(Wh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Gh||(Gh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(vn||(vn={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Qh||(Qh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Yh||(Yh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(to||(to={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Xh||(Xh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xn||(xn={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zh||(Zh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jh||(Jh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ro||(ro={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ef||(ef={}));(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Rt||(Rt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(tf||(tf={}))});var rf,of,sf,nf,af,lf,cf,uf,df,pf,hf,ff=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(rf||(rf={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(of||(of={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(sf||(sf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(nf||(nf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(lf||(lf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cf||(cf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(uf||(uf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(df||(df={}));(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(pf||(pf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hf||(hf={}))});var mf=l(()=>{kl();ff()});function gf(t,e){return t===e||(dE[t]??[]).some(r=>gf(r,e))}function Sn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>gf(i,e))}var dE,yf=l(()=>{kl();dE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var bf=l(()=>{});var xi=l(()=>{Tl();mf();yf();bf();Tl()});var Si,Ll=l(()=>{"use strict";je();Si=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=S.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var io,$l=l(()=>{"use strict";Ll();io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Si.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Si.await()}}});var Il,qe,jr=l(()=>{"use strict";Il=c(f());$l();qe=class extends io{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Il.CacheRegistry,this.cache=e?s.commonCache:new Il.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}}});var En,Dl=l(()=>{"use strict";je();xi();jr();En=class extends qe{async listMySearches(){let{session:e}=S.getState();return Sn(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Cn,Pl=l(()=>{"use strict";je();jr();Cn=class extends qe{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var An,vf=l(()=>{"use strict";je();jr();An=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var wn,xf=l(()=>{"use strict";jr();je();wn=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var On,pE,hE,Cf,Ml,Nl,Sf,Ef,Xe,Fl,fE,Bl=l(()=>{"use strict";xi();On=c(f());Dl();Pl();je();vf();xf();pE="ft-user-assets",hE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Nl(t,r,[...Ml(t,r),s]),Sf(t,r,1,i),Ef(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Nl(t,r,Ml(t,r).map(s=>s.id===i.id?i:s)),Ef(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Nl(t,r,Ml(t,r).filter(o=>o.id!==s)),Sf(t,r,-1,i)}},Cf={[Rt.SEARCHES]:"savedSearches",[Rt.BOOKMARKS]:"bookmarks",[Rt.BOOKS]:void 0,[Rt.COLLECTIONS]:void 0},Ml=(t,e)=>{var r;let i=Cf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Nl=(t,e,r)=>{let i=Cf[e];i&&(t[i]=r)},Sf=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Rt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Ef=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Xe=On.FtReduxStore.get({name:pE,reducers:hE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Fl=class{constructor(e=new An,r=new wn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Cn,this.savedSearchesService=new En,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,On.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Rt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Xe.actions.bookmarks(r)}}},fE=new Fl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=fE)});var Af=l(()=>{"use strict";xi();Bl()});var Ul,wf=l(()=>{"use strict";je();Ul=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ul});var Tt,Of,oo,mE,_n,so,Rn,_f=l(()=>{"use strict";je();Tt=c(f());jr();oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},mE=Symbol("clearAfterUnitTest"),_n=class extends(0,Tt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Of]=()=>{this.defaultMessages={},this.cache=new Tt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Tt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let o=e.toLowerCase(),n=this.resolveContext(o);return new Tt.ParametrizedLabelResolver((s=this.defaultMessages[o])!==null&&s!==void 0?s:{},n).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof Tt.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Tt.delay)(0).then(()=>i()).catch(()=>null)))}};Of=mE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends _n{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});so=window.FluidTopicsI18nService,Rn=window.FluidTopicsCustomI18nService});var Rf,Vl,Tf=l(()=>{"use strict";Rf=c(f()),Vl=class{highlightHtml(e,r,i){(0,Rf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vl});var kf,zl,Lf=l(()=>{"use strict";kf=c(f());je();zl=class{isDate(e){var r,i,s,o;return(o=(s=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return kf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new zl});var $f,wr,Hl=l(()=>{"use strict";$f=c(f());je();wr=class{static get(e,r){var i,s,o,n;let a=S.getState(),{lang:u,region:d}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new $f.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${u}-${d}`)}}});var Tn,If=l(()=>{"use strict";jr();Tn=class extends qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,s])=>Array.isArray(s)?[i,s.map(o=>typeof o=="object"&&o!=null&&!Array.isArray(o)?this.sortEventArrays(o):o).sort((o,n)=>typeof o=="object"&&o!==null&&"key"in o?o.key.localeCompare(n.key):typeof o=="string"&&typeof n=="string"?o.localeCompare(n):String(o).localeCompare(String(n)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(s=>(console.info(r),console.debug(s),i)),1e3)}}});var jl,Df=l(()=>{"use strict";Hl();jl=class{urlToSearchRequest(e){return wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new jl});var Ei,Ci,Pf=l(()=>{"use strict";Ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ei.eventName="before-location-change";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ci.eventName="change"});var ql,Mf,Nf=l(()=>{"use strict";ql=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Mf=new ql});var Or,kn,Ff=l(()=>{"use strict";Or=c(f());Pf();Nf();kn=class t extends Or.WithEventBus{static build(){return new t(window.history,Mf,()=>window.location,!1)}constructor(e,r,i,s){var o,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ci(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ei(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:u.detail.nextLocation.href};i.apply(s,[p,n,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ei.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ei.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ci.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ci.eventName,e)}currentItem(){return(0,Or.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Or.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(s=o),o++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=s}}});var Bf=l(()=>{"use strict";Ff();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=kn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var Uf=l(()=>{"use strict";je()});var Ln=l(()=>{"use strict";Pl();Ll();wf();_f();jr();Tf();Dl();Lf();Hl();If();Df();Bf();Uf()});var Vf,zf,Kl=l(()=>{"use strict";Vf=c(y()),zf=Vf.css`
271
271
  `});var Hf=l(()=>{"use strict"});function jf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var qf=l(()=>{"use strict";je()});var $n,Kf=l(()=>{"use strict";$l();$n=class extends io{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ai,Wl,Jo,Gl=l(()=>{"use strict";Ai=c(f());je();qf();Ln();Kf();Wl=class t extends Ai.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new Ai.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new $n,this.cleanSessionDebouncer=new Ai.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ai.Debouncer(500),this.apiProvider=r??(()=>Si.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(sr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(sr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>jf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zo(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Jo=Wl.build()});var wi,es=l(()=>{wi=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}}});var Wf=l(()=>{});var Ql=l(()=>{es();});var Gf=l(()=>{});var Yl=l(()=>{es();Gf();});var ts,Qf=l(()=>{es();ts=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:o}of i){let n=s.deref(),a=o.deref();n===void 0||a===void 0||n.dispatchEvent(new wi(e.context,n,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let o=s.callbacks.get(r);o===void 0&&s.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var Yf=l(()=>{Yl();});var Xf=l(()=>{Ql();});var Zf=l(()=>{es();Wf();Ql();Yl();Qf();Yf();Xf()});var Jf,Ze,Oi,Le,pe,Xl=l(()=>{"use strict";Jf=c(y()),Ze=c(F()),Oi=c(f());Kl();Ln();Gl();Zf();Le=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},pe=class extends Oi.FtLitElementRedux{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Jo,this.contextRoot=new ts}render(){return Jf.html`
272
272
  <slot></slot>
273
273
  `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>so.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};pe.elementDefinitions={};pe.styles=zf;Le([(0,Ze.property)()],pe.prototype,"baseUrl",void 0);Le([(0,Ze.property)()],pe.prototype,"tenantId",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Le([(0,Ze.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Le([(0,Ze.property)()],pe.prototype,"uiLocale",void 0);Le([(0,Oi.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Le([(0,Oi.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Le([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomCode",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Le([(0,Ze.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Le([(0,Oi.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Le([(0,Oi.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var em,tm=l(()=>{"use strict";Xl();em={"ft-app-context":pe}});var rm,im=l(()=>{"use strict";rm=c(f());tm();(0,rm.customElements)(em)});var Ht=l(()=>{"use strict";Dh();je();Bl();Af();Ln();Kl();Hf();Xl();Gl();im()});var Zl,no,In=l(()=>{"use strict";Zl=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},no=new Zl});var ao,om,bE,is,sm,nm,Dn,rs,ut,Pn,Mn,os=l(()=>{"use strict";ao=c(f());Ht();om=c(F());In();bE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},is=Symbol("i18nAttributes"),sm=Symbol("i18nListAttributes"),nm=Symbol("i18nProperties"),Dn=Symbol("i18nContexts"),rs=Symbol("i18nUnsubs"),ut=(0,ao.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Rn:so}i18n(o){let{context:n,key:a,message:u}=o,{custom:d,args:p,argsProvider:h}=o;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=p??(h?h(this):[]);return this.getI18nService(d).resolveMessage(n,a,...m)}return u}async awaitI18n(o){let{context:n,custom:a}=o;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(o)}customI18n(o,n){if(no.isI18nKey(o)){let[a,u]=o.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((n,a,u)=>o.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(n=>n.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var n,a;let u=this,d=(p,h,m)=>m?.context&&m.key&&o(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[is])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[sm])===null||a===void 0||a.forEach((p,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(x=>d(p,h,x))})}updateI18nProperties(o){var n;(n=this[nm])===null||n===void 0||n.forEach((a,u)=>{o(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(o,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,n,a)}addI18nContext(o,n,a){let u=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Dn].set(u,{isCustomContext:a}),this[rs].has(u)||this[rs].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(o){return this[Dn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Dn].forEach((o,n)=>this.addI18nContext(n,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[rs].forEach(o=>o()),this[rs].clear()}}return e=Dn,r=rs,bE([(0,om.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Pn=class extends ut(ao.FtLitElement){},Mn=class extends ut(ao.FtLitElementRedux){}});var Jl,vE,am=l(()=>{"use strict";In();Jl=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?no.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},vE=new Jl});var lm,lo,Nn=l(()=>{"use strict";os();lm=c(f());In();am();lo=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:lm.hasChanged,converter:no,...e}),r[is]=(s=r[is])!==null&&s!==void 0?s:new Map,r[is].set(i,t??{})}});var ar,cm=l(()=>{"use strict";Ht();ar=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Rn:so}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let o=s;return n=>({context:this.name,key:o,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...o)=>this.service.resolveMessage(this.name,s,...o)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}}});var um=l(()=>{"use strict";os()});var dm,pm,ec=l(()=>{"use strict";dm=c(y()),pm=dm.css`
@@ -290,7 +290,7 @@
290
290
  </div>
291
291
  </div>
292
292
  </div>
293
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&bp(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${$t.designSystemVariables.transitionDuration}, left ${$t.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$t.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Se.elementDefinitions={"ft-typography":z};Se.styles=Vd;jt([lo()],Se.prototype,"text",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"manual",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"inline",void 0);jt([(0,$t.numberProperty)()],Se.prototype,"delay",void 0);jt([(0,It.property)()],Se.prototype,"position",void 0);jt([(0,$t.jsonProperty)([])],Se.prototype,"ignoreMatchingElements",void 0);jt([(0,It.queryAssignedNodes)()],Se.prototype,"slotNodes",void 0);jt([(0,It.query)(".ft-tooltip--container")],Se.prototype,"container",void 0);jt([(0,It.query)(".ft-tooltip")],Se.prototype,"tooltip",void 0);jt([(0,It.query)(".ft-tooltip--content")],Se.prototype,"tooltipContent",void 0);jt([(0,It.state)()],Se.prototype,"visible",void 0)});var vm=l(()=>{"use strict"});var xm,Sm=l(()=>{"use strict";rc();xm={"ft-tooltip":Se}});var Em,Cm=l(()=>{"use strict";Em=c(f());Sm();(0,Em.customElements)(xm)});var ic=l(()=>{"use strict";rc();Qa();vm();Cm()});var Am,qt,Je,wm,po=l(()=>{"use strict";Am=c(y()),qt=c(f()),Je={size:qt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wm=[Am.css`
293
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&bp(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${$t.designSystemVariables.transitionDuration}, left ${$t.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$t.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Se.elementDefinitions={"ft-typography":V};Se.styles=Vd;jt([lo()],Se.prototype,"text",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"manual",void 0);jt([(0,It.property)({type:Boolean})],Se.prototype,"inline",void 0);jt([(0,$t.numberProperty)()],Se.prototype,"delay",void 0);jt([(0,It.property)()],Se.prototype,"position",void 0);jt([(0,$t.jsonProperty)([])],Se.prototype,"ignoreMatchingElements",void 0);jt([(0,It.queryAssignedNodes)()],Se.prototype,"slotNodes",void 0);jt([(0,It.query)(".ft-tooltip--container")],Se.prototype,"container",void 0);jt([(0,It.query)(".ft-tooltip")],Se.prototype,"tooltip",void 0);jt([(0,It.query)(".ft-tooltip--content")],Se.prototype,"tooltipContent",void 0);jt([(0,It.state)()],Se.prototype,"visible",void 0)});var vm=l(()=>{"use strict"});var xm,Sm=l(()=>{"use strict";rc();xm={"ft-tooltip":Se}});var Em,Cm=l(()=>{"use strict";Em=c(f());Sm();(0,Em.customElements)(xm)});var ic=l(()=>{"use strict";rc();Qa();vm();Cm()});var Am,qt,Je,wm,po=l(()=>{"use strict";Am=c(y()),qt=c(f()),Je={size:qt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wm=[Am.css`
294
294
  :host, i.ft-icon {
295
295
  display: inline-flex;
296
296
  align-items: center;
@@ -467,8 +467,8 @@
467
467
  --button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
468
468
  --button-internal-color: ${I.color};
469
469
  ${(0,D.setVariable)(Je.size,I.iconSize)};
470
- ${(0,D.setVariable)(q.color,I.rippleColor)};
471
- ${(0,D.setVariable)(q.borderRadius,I.borderRadius)};
470
+ ${(0,D.setVariable)(j.color,I.rippleColor)};
471
+ ${(0,D.setVariable)(j.borderRadius,I.borderRadius)};
472
472
 
473
473
  border-radius: ${I.borderRadius};
474
474
  padding: ${I.verticalPadding} ${I.horizontalPadding};
@@ -484,7 +484,7 @@
484
484
  .ft-button.ft-button--dense {
485
485
  padding: ${cr.verticalPadding} ${cr.horizontalPadding};
486
486
  border-radius: ${cr.borderRadius};
487
- ${(0,D.setVariable)(q.borderRadius,cr.borderRadius)};
487
+ ${(0,D.setVariable)(j.borderRadius,cr.borderRadius)};
488
488
  }
489
489
 
490
490
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -511,7 +511,7 @@
511
511
  .ft-button.ft-button--primary {
512
512
  background-color: ${cc.backgroundColor};
513
513
  --button-internal-color: ${cc.color};
514
- ${(0,D.setVariable)(q.color,cc.rippleColor)};
514
+ ${(0,D.setVariable)(j.color,cc.rippleColor)};
515
515
  }
516
516
 
517
517
  .ft-button--label {
@@ -597,7 +597,7 @@
597
597
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
598
598
  `:Kr.html`
599
599
  <slot part="icon" name="icon"></slot>
600
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":k,"ft-tooltip":Se,"ft-icon":ae,"ft-loader":Ri,"ft-typography":z};w.styles=[ur.safariEllipsisFix,Wm,ur.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});le([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);le([(0,Z.property)()],w.prototype,"icon",void 0);le([(0,Z.property)()],w.prototype,"iconVariant",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);le([(0,Z.property)()],w.prototype,"label",void 0);le([(0,Z.property)()],w.prototype,"type",void 0);le([(0,Z.property)()],w.prototype,"href",void 0);le([(0,Z.property)()],w.prototype,"target",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);le([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);le([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);le([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);le([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);le([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);le([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);le([(0,Z.state)()],w.prototype,"hasTextContent",void 0);le([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);le([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Gm=l(()=>{"use strict"});var Qm,Ym=l(()=>{"use strict";uc();Qm={"ft-button":w}});var Xm,Zm=l(()=>{"use strict";Xm=c(f());Ym();(0,Xm.customElements)(Qm)});var Kt=l(()=>{"use strict";uc();Ti();Gm();Zm()});var Jm,J,ie,dc,ls=l(()=>{"use strict";Jm=c(y()),J=c(f());Kt();ie={height:J.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:J.FtCssVariableFactory.extend("--ft-search-input-border-radius","",J.designSystemVariables.borderRadiusS),desktopFiltersHeight:J.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:J.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:J.FtCssVariableFactory.extend("--ft-search-input-background-color","",J.designSystemVariables.colorSurface),colorOnSurface:J.FtCssVariableFactory.extend("--ft-search-input-color","",J.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:J.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",J.designSystemVariables.colorOnSurfaceMedium),colorOutline:J.FtCssVariableFactory.extend("--ft-search-input-outline-color","",J.designSystemVariables.colorOutline),elevation02:J.FtCssVariableFactory.extend("--ft-search-input-elevation","",J.designSystemVariables.elevation02),focusOutlineColor:J.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",J.designSystemVariables.colorPrimary),buttonColor:J.FtCssVariableFactory.extend("--ft-search-input-button-color","",J.designSystemVariables.colorPrimary),buttonRippleColor:J.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",J.designSystemVariables.colorPrimary)},dc=Jm.css`
600
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":k,"ft-tooltip":Se,"ft-icon":ae,"ft-loader":Ri,"ft-typography":V};w.styles=[ur.safariEllipsisFix,Wm,ur.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});le([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);le([(0,Z.property)()],w.prototype,"icon",void 0);le([(0,Z.property)()],w.prototype,"iconVariant",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);le([(0,Z.property)()],w.prototype,"label",void 0);le([(0,Z.property)()],w.prototype,"type",void 0);le([(0,Z.property)()],w.prototype,"href",void 0);le([(0,Z.property)()],w.prototype,"target",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);le([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);le([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);le([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);le([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);le([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);le([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);le([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);le([(0,Z.state)()],w.prototype,"hasTextContent",void 0);le([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);le([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Gm=l(()=>{"use strict"});var Qm,Ym=l(()=>{"use strict";uc();Qm={"ft-button":w}});var Xm,Zm=l(()=>{"use strict";Xm=c(f());Ym();(0,Xm.customElements)(Qm)});var Kt=l(()=>{"use strict";uc();Ti();Gm();Zm()});var Jm,J,ie,dc,ls=l(()=>{"use strict";Jm=c(y()),J=c(f());Kt();ie={height:J.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:J.FtCssVariableFactory.extend("--ft-search-input-border-radius","",J.designSystemVariables.borderRadiusS),desktopFiltersHeight:J.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:J.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:J.FtCssVariableFactory.extend("--ft-search-input-background-color","",J.designSystemVariables.colorSurface),colorOnSurface:J.FtCssVariableFactory.extend("--ft-search-input-color","",J.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:J.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",J.designSystemVariables.colorOnSurfaceMedium),colorOutline:J.FtCssVariableFactory.extend("--ft-search-input-outline-color","",J.designSystemVariables.colorOutline),elevation02:J.FtCssVariableFactory.extend("--ft-search-input-elevation","",J.designSystemVariables.elevation02),focusOutlineColor:J.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",J.designSystemVariables.colorPrimary),buttonColor:J.FtCssVariableFactory.extend("--ft-search-input-button-color","",J.designSystemVariables.colorPrimary),buttonRippleColor:J.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",J.designSystemVariables.colorPrimary)},dc=Jm.css`
601
601
  * {
602
602
  box-sizing: border-box;
603
603
  ${(0,J.setVariable)(I.color,ie.buttonColor)};
@@ -869,7 +869,7 @@
869
869
 
870
870
  .ft-checkbox.ft-checkbox--error {
871
871
  color: ${bt.errorColor};
872
- ${(0,Pe.setVariable)(q.color,bt.errorColor)};
872
+ ${(0,Pe.setVariable)(j.color,bt.errorColor)};
873
873
 
874
874
  .ft-checkbox--box {
875
875
  border-color: ${bt.errorColor};
@@ -915,7 +915,7 @@
915
915
  <path class="ft-checkbox--checkmark-path" fill="none"
916
916
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
917
917
  </svg>
918
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Nc(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Me.elementDefinitions={"ft-ripple":k,"ft-typography":z};Me.styles=Xg;kr([(0,Qt.property)()],Me.prototype,"name",void 0);kr([(0,Qt.property)()],Me.prototype,"value",void 0);kr([(0,Qt.property)({type:Boolean,reflect:!0})],Me.prototype,"checked",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"indeterminate",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"disabled",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"error",void 0);kr([(0,Qt.query)(".ft-checkbox")],Me.prototype,"container",void 0);kr([(0,Qt.query)("ft-ripple")],Me.prototype,"ripple",void 0);kr([(0,Qt.query)("input")],Me.prototype,"input",void 0)});var ey=l(()=>{"use strict"});var ty,ry=l(()=>{"use strict";Fc();ty={"ft-checkbox":Me}});var iy,oy=l(()=>{"use strict";iy=c(f());ry();(0,iy.customElements)(ty)});var sy=l(()=>{"use strict";Fc();Mc();ey();oy()});var ny,pt,Wr,ay,Bc=l(()=>{"use strict";ny=c(y()),pt=c(f());xe();Wr={textColor:pt.FtCssVariableFactory.extend("--ft-radio-text-color","",pt.designSystemVariables.colorOnSurfaceHigh),fontSize:pt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:pt.FtCssVariableFactory.extend("--ft-radio-border-color","",pt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ay=ny.css`
918
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Nc(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Me.elementDefinitions={"ft-ripple":k,"ft-typography":V};Me.styles=Xg;kr([(0,Qt.property)()],Me.prototype,"name",void 0);kr([(0,Qt.property)()],Me.prototype,"value",void 0);kr([(0,Qt.property)({type:Boolean,reflect:!0})],Me.prototype,"checked",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"indeterminate",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"disabled",void 0);kr([(0,Qt.property)({type:Boolean})],Me.prototype,"error",void 0);kr([(0,Qt.query)(".ft-checkbox")],Me.prototype,"container",void 0);kr([(0,Qt.query)("ft-ripple")],Me.prototype,"ripple",void 0);kr([(0,Qt.query)("input")],Me.prototype,"input",void 0)});var ey=l(()=>{"use strict"});var ty,ry=l(()=>{"use strict";Fc();ty={"ft-checkbox":Me}});var iy,oy=l(()=>{"use strict";iy=c(f());ry();(0,iy.customElements)(ty)});var sy=l(()=>{"use strict";Fc();Mc();ey();oy()});var ny,pt,Wr,ay,Bc=l(()=>{"use strict";ny=c(y()),pt=c(f());xe();Wr={textColor:pt.FtCssVariableFactory.extend("--ft-radio-text-color","",pt.designSystemVariables.colorOnSurfaceHigh),fontSize:pt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:pt.FtCssVariableFactory.extend("--ft-radio-border-color","",pt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:pt.FtCssVariableFactory.external(pt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ay=ny.css`
919
919
  * {
920
920
  box-sizing: border-box;
921
921
  }
@@ -1030,7 +1030,7 @@
1030
1030
  </ft-typography>
1031
1031
  </label>
1032
1032
  </div>
1033
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new aa(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new aa(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};$e.elementDefinitions={"ft-ripple":k,"ft-typography":z};$e.styles=ay;Gr([(0,dr.property)()],$e.prototype,"name",void 0);Gr([(0,dr.property)()],$e.prototype,"value",void 0);Gr([(0,dr.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);Gr([(0,dr.property)({attribute:"aria-checked",reflect:!0})],$e.prototype,"ariaChecked",void 0);Gr([(0,dr.property)({type:Boolean})],$e.prototype,"disabled",void 0);Gr([(0,dr.query)(".ft-radio")],$e.prototype,"container",void 0);Gr([(0,dr.query)("ft-ripple")],$e.prototype,"ripple",void 0);Gr([(0,dr.query)("input")],$e.prototype,"input",void 0)});var dy=l(()=>{"use strict"});var py,hy,Vc=l(()=>{"use strict";py=c(y()),hy=py.css`
1033
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new aa(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new aa(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};$e.elementDefinitions={"ft-ripple":k,"ft-typography":V};$e.styles=ay;Gr([(0,dr.property)()],$e.prototype,"name",void 0);Gr([(0,dr.property)()],$e.prototype,"value",void 0);Gr([(0,dr.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);Gr([(0,dr.property)({attribute:"aria-checked",reflect:!0})],$e.prototype,"ariaChecked",void 0);Gr([(0,dr.property)({type:Boolean})],$e.prototype,"disabled",void 0);Gr([(0,dr.query)(".ft-radio")],$e.prototype,"container",void 0);Gr([(0,dr.query)("ft-ripple")],$e.prototype,"ripple",void 0);Gr([(0,dr.query)("input")],$e.prototype,"input",void 0)});var dy=l(()=>{"use strict"});var py,hy,Vc=l(()=>{"use strict";py=c(y()),hy=py.css`
1034
1034
  :host {
1035
1035
  display: block;
1036
1036
  }
@@ -1111,7 +1111,7 @@
1111
1111
  @change=${r=>this.optionsChanged(r,e)}>
1112
1112
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1113
1113
  </ft-radio>
1114
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};fe.elementDefinitions={"ft-button":w,"ft-ripple":k,"ft-typography":z,"ft-checkbox":Me,"ft-icon":ae,"ft-radio":$e};fe.styles=Qg;Ne([(0,ke.property)({type:String})],fe.prototype,"filterId",void 0);Ne([(0,ke.property)({type:Object})],fe.prototype,"parent",void 0);Ne([(0,ke.property)({type:Array,hasChanged:ht.hasChanged})],fe.prototype,"options",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"multivalued",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"displayCount",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"preventNavigation",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"filter",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"noValuesLabel",void 0);Ne([(0,ke.property)()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,ht.numberProperty)()],fe.prototype,"displayedValuesLimit",void 0);Ne([(0,ke.query)(".ft-filter-level--container")],fe.prototype,"container",void 0);Ne([(0,ke.state)()],fe.prototype,"radios",void 0);Ne([(0,ke.state)()],fe.prototype,"displayedPages",void 0);Ne([(0,ke.state)()],fe.prototype,"filteredOptions",void 0)});var Cy,Yt,rt,Ay,la=l(()=>{"use strict";Cy=c(y()),Yt=c(f());Ti();rt={buttonsColor:Yt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Yt.designSystemVariables.colorPrimary),buttonsZIndex:Yt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Yt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Yt.FtCssVariableFactory.external(Yt.designSystemVariables.colorSurface,"Design system")},Ay=Cy.css`
1114
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};fe.elementDefinitions={"ft-button":w,"ft-ripple":k,"ft-typography":V,"ft-checkbox":Me,"ft-icon":ae,"ft-radio":$e};fe.styles=Qg;Ne([(0,ke.property)({type:String})],fe.prototype,"filterId",void 0);Ne([(0,ke.property)({type:Object})],fe.prototype,"parent",void 0);Ne([(0,ke.property)({type:Array,hasChanged:ht.hasChanged})],fe.prototype,"options",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"multivalued",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"disabled",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"displayCount",void 0);Ne([(0,ke.property)({type:Boolean})],fe.prototype,"preventNavigation",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"filter",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Ne([(0,ke.property)({type:String})],fe.prototype,"noValuesLabel",void 0);Ne([(0,ke.property)()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,ht.numberProperty)()],fe.prototype,"displayedValuesLimit",void 0);Ne([(0,ke.query)(".ft-filter-level--container")],fe.prototype,"container",void 0);Ne([(0,ke.state)()],fe.prototype,"radios",void 0);Ne([(0,ke.state)()],fe.prototype,"displayedPages",void 0);Ne([(0,ke.state)()],fe.prototype,"filteredOptions",void 0)});var Cy,Yt,rt,Ay,la=l(()=>{"use strict";Cy=c(y()),Yt=c(f());Ti();rt={buttonsColor:Yt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Yt.designSystemVariables.colorPrimary),buttonsZIndex:Yt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Yt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Yt.FtCssVariableFactory.external(Yt.designSystemVariables.colorSurface,"Design system")},Ay=Cy.css`
1115
1115
  .ft-snap-scroll {
1116
1116
  box-sizing: border-box;
1117
1117
  position: relative;
@@ -1461,7 +1461,7 @@
1461
1461
  noValuesLabel="${this.noValuesLabel}"
1462
1462
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1463
1463
  ></ft-filter-level>
1464
- `}goBack(e){this.slideOut=e.detail.value,(0,Ee.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Ee.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Ee.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Ee.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Wc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};W.elementDefinitions={"ft-button":w,"ft-filter-level":fe,"ft-snap-scroll":Re,"ft-typography":z};W.styles=Iy;ue([(0,oe.property)({type:String})],W.prototype,"id",void 0);ue([(0,oe.property)({type:String})],W.prototype,"label",void 0);ue([(0,oe.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ue([(0,oe.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"noValuesLabel",void 0);ue([(0,Ee.jsonProperty)([])],W.prototype,"options",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"multivalued",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"disabled",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"displayCount",void 0);ue([(0,Ee.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ue([(0,Ee.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ue([(0,oe.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ue([(0,oe.query)(".ft-filter--container")],W.prototype,"container",void 0);ue([(0,oe.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ue([(0,oe.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ue([(0,oe.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,oe.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ue([(0,oe.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ue([(0,oe.state)()],W.prototype,"withScroll",void 0);ue([(0,oe.state)()],W.prototype,"filter",void 0);ue([(0,oe.state)()],W.prototype,"slideIn",void 0);ue([(0,oe.state)()],W.prototype,"slideOut",void 0)});var Dy=l(()=>{"use strict"});var da,Mi,Py,bo,Et,Qc=l(()=>{"use strict";da=c(f()),Mi=c(F()),Py=c(y()),bo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Et=class extends da.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Py.html`
1464
+ `}goBack(e){this.slideOut=e.detail.value,(0,Ee.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,Ee.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,Ee.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Ee.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Wc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};W.elementDefinitions={"ft-button":w,"ft-filter-level":fe,"ft-snap-scroll":Re,"ft-typography":V};W.styles=Iy;ue([(0,oe.property)({type:String})],W.prototype,"id",void 0);ue([(0,oe.property)({type:String})],W.prototype,"label",void 0);ue([(0,oe.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ue([(0,oe.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ue([(0,oe.property)({type:String})],W.prototype,"noValuesLabel",void 0);ue([(0,Ee.jsonProperty)([])],W.prototype,"options",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"multivalued",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"disabled",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"displayCount",void 0);ue([(0,Ee.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ue([(0,Ee.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,oe.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ue([(0,oe.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ue([(0,oe.query)(".ft-filter--container")],W.prototype,"container",void 0);ue([(0,oe.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ue([(0,oe.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ue([(0,oe.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,oe.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ue([(0,oe.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ue([(0,oe.state)()],W.prototype,"withScroll",void 0);ue([(0,oe.state)()],W.prototype,"filter",void 0);ue([(0,oe.state)()],W.prototype,"slideIn",void 0);ue([(0,oe.state)()],W.prototype,"slideOut",void 0)});var Dy=l(()=>{"use strict"});var da,Mi,Py,bo,Et,Qc=l(()=>{"use strict";da=c(f()),Mi=c(F()),Py=c(y()),bo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Et=class extends da.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Py.html`
1465
1465
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1466
1466
  `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Et.elementDefinitions={};bo([(0,Mi.property)({type:String})],Et.prototype,"label",void 0);bo([(0,Mi.property)({type:Object,converter:t=>t})],Et.prototype,"value",void 0);bo([(0,Mi.property)({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);bo([(0,Mi.property)({type:Object})],Et.prototype,"subOptions",void 0);bo([(0,da.jsonProperty)({})],Et.prototype,"renderOption",void 0);bo([(0,Mi.query)(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var My=l(()=>{"use strict"});var Ny,Fy=l(()=>{"use strict";Gc();Qc();Ny={"ft-filter":W,"ft-filter-option":Et}});var By,Uy=l(()=>{"use strict";By=c(f());Fy();(0,By.customElements)(Ny)});var Vy=l(()=>{"use strict";Pc();Gc();ua();Dy();Qc();My();Uy()});var zy,Hy,Yc=l(()=>{"use strict";zy=c(y()),Hy=zy.css`
1467
1467
  .ft-accordion {
@@ -1547,7 +1547,7 @@
1547
1547
  </div>
1548
1548
  <div class="ft-accordion-item--separator" part="separator"></div>
1549
1549
  </div>
1550
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Mt.elementDefinitions={"ft-ripple":k,"ft-typography":z,"ft-icon":ae};Mt.styles=Qy;ha([(0,vs.property)()],Mt.prototype,"icon",void 0);ha([(0,vs.property)()],Mt.prototype,"iconVariant",void 0);ha([(0,vs.property)()],Mt.prototype,"label",void 0);ha([(0,vs.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Xy=l(()=>{"use strict"});var Zy,Jy=l(()=>{"use strict";Xc();Jc();Zy={"ft-accordion":hr,"ft-accordion-item":Mt}});var eb,tb=l(()=>{"use strict";eb=c(f());Jy();(0,eb.customElements)(Zy)});var rb=l(()=>{"use strict";Xc();Yc();Wy();Jc();Zc();Xy();tb()});var xs,B,ib,Fe,ob,eu,sb,nb,tu=l(()=>{"use strict";xs=c(y()),B=c(f());vr();Bt();po();Kt();ib=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ib,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ib),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},ob=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),eu={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:ob,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ob)},sb={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},nb=[B.noTextSelect,xs.css`
1550
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Mt.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae};Mt.styles=Qy;ha([(0,vs.property)()],Mt.prototype,"icon",void 0);ha([(0,vs.property)()],Mt.prototype,"iconVariant",void 0);ha([(0,vs.property)()],Mt.prototype,"label",void 0);ha([(0,vs.property)({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Xy=l(()=>{"use strict"});var Zy,Jy=l(()=>{"use strict";Xc();Jc();Zy={"ft-accordion":hr,"ft-accordion-item":Mt}});var eb,tb=l(()=>{"use strict";eb=c(f());Jy();(0,eb.customElements)(Zy)});var rb=l(()=>{"use strict";Xc();Yc();Wy();Jc();Zc();Xy();tb()});var xs,B,ib,Fe,ob,eu,sb,nb,tu=l(()=>{"use strict";xs=c(y()),B=c(f());vr();Bt();po();Kt();ib=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ib,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ib),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},ob=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),eu={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:ob,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ob)},sb={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},nb=[B.noTextSelect,xs.css`
1551
1551
  :host {
1552
1552
  display: inline-block;
1553
1553
  max-width: 100%;
@@ -1574,7 +1574,7 @@
1574
1574
 
1575
1575
  border: 1px solid ${Fe.borderColor};
1576
1576
  color: ${Fe.color};
1577
- ${(0,B.setVariable)(q.color,Fe.rippleColor)};
1577
+ ${(0,B.setVariable)(j.color,Fe.rippleColor)};
1578
1578
  border-radius: var(${(0,xs.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1579
1579
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1580
1580
  background-color: ${Fe.backgroundColor};
@@ -1607,7 +1607,7 @@
1607
1607
  border: none;
1608
1608
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1609
1609
  background-color: ${eu.backgroundColor};
1610
- ${(0,B.setVariable)(q.color,eu.rippleColor)};
1610
+ ${(0,B.setVariable)(j.color,eu.rippleColor)};
1611
1611
  color: ${eu.color};
1612
1612
  }
1613
1613
 
@@ -1714,38 +1714,36 @@
1714
1714
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1715
1715
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1716
1716
  </div>
1717
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ma))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ma))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};me.elementDefinitions={"ft-ripple":k,"ft-typography":z,"ft-icon":ae,"ft-button":w};me.styles=nb;it([(0,Be.property)({type:Boolean})],me.prototype,"highlighted",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"removable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"disabled",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"clickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"iconClickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"dense",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"multiLine",void 0);it([(0,Be.property)()],me.prototype,"label",void 0);it([(0,Be.property)()],me.prototype,"iconLabel",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"hideIconTooltip",void 0);it([(0,Be.property)()],me.prototype,"icon",void 0);it([(0,Be.property)()],me.prototype,"iconVariant",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"trailingIcon",void 0);it([(0,Be.property)()],me.prototype,"typographyVariant",void 0);it([(0,Be.query)("ft-typography slot")],me.prototype,"slottedContent",void 0)});var lb=l(()=>{"use strict"});var cb,ub=l(()=>{"use strict";ru();cb={"ft-chip":me}});var db,pb=l(()=>{"use strict";db=c(f());ub();(0,db.customElements)(cb)});var iu=l(()=>{"use strict";ru();tu();lb();pb()});function Ss(t,e,r){return t?e(t):r?.(t)}var hb=l(()=>{});var ou=l(()=>{hb()});var fb,de,U,mb,Es=l(()=>{"use strict";fb=c(y()),de=c(f());Bt();U={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},mb=fb.css`
1717
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ma))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ma))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};me.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};me.styles=nb;it([(0,Be.property)({type:Boolean})],me.prototype,"highlighted",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"removable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"disabled",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"clickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"iconClickable",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"dense",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"multiLine",void 0);it([(0,Be.property)()],me.prototype,"label",void 0);it([(0,Be.property)()],me.prototype,"iconLabel",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"hideIconTooltip",void 0);it([(0,Be.property)()],me.prototype,"icon",void 0);it([(0,Be.property)()],me.prototype,"iconVariant",void 0);it([(0,Be.property)({type:Boolean})],me.prototype,"trailingIcon",void 0);it([(0,Be.property)()],me.prototype,"typographyVariant",void 0);it([(0,Be.query)("ft-typography slot")],me.prototype,"slottedContent",void 0)});var lb=l(()=>{"use strict"});var cb,ub=l(()=>{"use strict";ru();cb={"ft-chip":me}});var db,pb=l(()=>{"use strict";db=c(f());ub();(0,db.customElements)(cb)});var iu=l(()=>{"use strict";ru();tu();lb();pb()});function Ss(t,e,r){return t?e(t):r?.(t)}var hb=l(()=>{});var ou=l(()=>{hb()});var fb,de,q,mb,Es=l(()=>{"use strict";fb=c(y()),de=c(f());Bt();q={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},mb=fb.css`
1718
1718
  .ft-input-label {
1719
1719
  position: absolute;
1720
1720
  inset: 0;
1721
1721
  display: flex;
1722
- background-color: ${U.backgroundColor};
1723
- border-radius: ${U.borderRadius} ${U.borderRadius} 0 0;
1722
+ background-color: ${q.backgroundColor};
1723
+ border-radius: ${q.borderRadius} ${q.borderRadius} 0 0;
1724
+ border-color: ${q.borderColor};
1725
+ border-bottom-width: 1px;
1726
+ border-bottom-style: solid;
1724
1727
  }
1725
1728
 
1726
1729
  .ft-input-label--outlined {
1727
- border-radius: ${U.borderRadius};
1728
- }
1729
-
1730
- .ft-input-label {
1731
- border-color: ${U.borderColor};
1730
+ border-radius: ${q.borderRadius};
1731
+ border-width: 1px;
1732
+ border-style: solid;
1732
1733
  }
1733
1734
 
1734
1735
  .ft-input-label.ft-input-label--in-error {
1735
- border-color: ${U.colorError}
1736
+ border-color: ${q.colorError}
1736
1737
  }
1737
1738
 
1738
1739
  .ft-input-label:before,
1739
1740
  .ft-input-label:after {
1740
1741
  content: "";
1741
1742
  display: flex;
1742
- border-bottom-width: 1px;
1743
- border-bottom-style: solid;
1744
- border-color: inherit;
1745
1743
  }
1746
1744
 
1747
1745
  .ft-input-label:before {
1748
- width: calc(${U.horizontalSpacing} - 4px);
1746
+ width: calc(${q.horizontalSpacing} - 4px);
1749
1747
  flex-shrink: 0;
1750
1748
  }
1751
1749
 
@@ -1758,23 +1756,20 @@
1758
1756
  display: flex;
1759
1757
  flex-shrink: 1;
1760
1758
  position: relative;
1761
- border-bottom-width: 1px;
1762
- border-bottom-style: solid;
1763
- border-color: inherit;
1764
- color: ${U.textColor};
1759
+ color: ${q.textColor};
1765
1760
  transition: font-size 250ms, line-height 250ms, color 250ms;
1766
- max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1761
+ max-width: calc(${q.labelMaxWidth} - 2 * (${q.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1767
1762
  text-overflow: ellipsis;
1768
- ${(0,de.setVariable)(lt.fontSize,U.fontSize)};
1769
- ${(0,de.setVariable)(lt.lineHeight,U.fontSize)};
1763
+ ${(0,de.setVariable)(lt.fontSize,q.fontSize)};
1764
+ ${(0,de.setVariable)(lt.lineHeight,q.fontSize)};
1770
1765
  }
1771
1766
 
1772
1767
  .ft-input-label--in-error .ft-input-label--text {
1773
- color: ${U.colorError}
1768
+ color: ${q.colorError}
1774
1769
  }
1775
1770
 
1776
1771
  .ft-input-label--disabled .ft-input-label--text {
1777
- color: ${U.disabledTextColor};
1772
+ color: ${q.disabledTextColor};
1778
1773
  }
1779
1774
 
1780
1775
  .ft-input-label--hidden-text {
@@ -1791,51 +1786,28 @@
1791
1786
  overflow: hidden;
1792
1787
  white-space: nowrap;
1793
1788
  text-overflow: ellipsis;
1794
- padding: ${U.verticalSpacing} 4px;
1795
- margin: calc(${U.verticalSpacing} * -1) 0;
1789
+ padding: ${q.verticalSpacing} 4px;
1790
+ margin: calc(${q.verticalSpacing} * -1) 0;
1796
1791
  max-width: 100%;
1797
1792
  box-sizing: border-box;
1798
1793
  }
1799
1794
 
1800
1795
  .ft-input-label--raised .ft-input-label--text {
1801
- ${(0,de.setVariable)(lt.fontSize,U.raisedFontSize)};
1802
- ${(0,de.setVariable)(lt.lineHeight,U.raisedFontSize)};
1796
+ ${(0,de.setVariable)(lt.fontSize,q.raisedFontSize)};
1797
+ ${(0,de.setVariable)(lt.lineHeight,q.raisedFontSize)};
1803
1798
  }
1804
1799
 
1805
1800
  .ft-input-label--raised .ft-input-label--floating-text {
1806
- top: ${U.verticalSpacing};
1807
- }
1808
-
1809
- .ft-input-label--outlined .ft-input-label--text,
1810
- .ft-input-label--outlined:before,
1811
- .ft-input-label--outlined:after {
1812
- border-top-width: 1px;
1813
- border-top-style: solid;
1814
- }
1815
-
1816
- .ft-input-label--outlined:before {
1817
- border-left-width: 1px;
1818
- border-left-style: solid;
1819
- border-radius: ${U.borderRadius} 0 0 ${U.borderRadius};
1820
- }
1821
-
1822
- .ft-input-label--outlined:after {
1823
- border-right-width: 1px;
1824
- border-right-style: solid;
1825
- border-radius: 0 ${U.borderRadius} ${U.borderRadius} 0;
1801
+ top: ${q.verticalSpacing};
1826
1802
  }
1827
1803
 
1828
1804
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1829
1805
  padding: 2px 4px;
1830
- z-index: ${U.raisedZIndex};
1831
- background-color: ${U.backgroundColor};
1832
- border-radius: ${U.borderRadius};
1806
+ z-index: ${q.raisedZIndex};
1807
+ background-color: ${q.backgroundColor};
1808
+ border-radius: ${q.borderRadius};
1833
1809
  top: calc((${lt.lineHeight} / -2) + 2px);
1834
1810
  }
1835
-
1836
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1837
- border-top: none;
1838
- }
1839
1811
  `});var su,nu,yb,bb,gb,Bi,vb=l(()=>{"use strict";su=c(y()),nu=c(F());ou();yb=c(nt()),bb=c(f()),gb=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Bi=class extends bb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return su.html`
1840
1812
  <div class="${(0,yb.classMap)(this.inputLabelClasses)}">
1841
1813
  ${Ss(this.text,()=>su.html`
@@ -1873,13 +1845,13 @@
1873
1845
  padding-right: ${P.horizontalSpacing};
1874
1846
  gap: 8px;
1875
1847
  color: ${P.selectedOptionColor};
1876
- ${(0,M.setVariable)(q.color,P.selectedOptionColor)};
1848
+ ${(0,M.setVariable)(j.color,P.selectedOptionColor)};
1877
1849
  }
1878
1850
 
1879
1851
  .ft-select--input-panel,
1880
1852
  .ft-select--options {
1881
- ${(0,M.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1882
- ${(0,M.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1853
+ ${(0,M.setVariable)(j.opacityContentOnSurfaceHover,"0.08")};
1854
+ ${(0,M.setVariable)(j.opacityContentOnSurfacePressed,"0.04")};
1883
1855
  }
1884
1856
 
1885
1857
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1897,12 +1869,12 @@
1897
1869
  }
1898
1870
 
1899
1871
  ft-input-label {
1900
- ${(0,M.setVariable)(U.fontSize,P.selectedOptionSize)};
1901
- ${(0,M.setVariable)(U.raisedFontSize,P.labelSize)};
1902
- ${(0,M.setVariable)(U.verticalSpacing,P.verticalSpacing)};
1903
- ${(0,M.setVariable)(U.horizontalSpacing,P.horizontalSpacing)};
1904
- ${(0,M.setVariable)(U.backgroundColor,P.backgroundColor)};
1905
- ${(0,M.setVariable)(U.labelMaxWidth,`calc(100% - ${Je.size} - 8px)`)};
1872
+ ${(0,M.setVariable)(q.fontSize,P.selectedOptionSize)};
1873
+ ${(0,M.setVariable)(q.raisedFontSize,P.labelSize)};
1874
+ ${(0,M.setVariable)(q.verticalSpacing,P.verticalSpacing)};
1875
+ ${(0,M.setVariable)(q.horizontalSpacing,P.horizontalSpacing)};
1876
+ ${(0,M.setVariable)(q.backgroundColor,P.backgroundColor)};
1877
+ ${(0,M.setVariable)(q.labelMaxWidth,`calc(100% - ${Je.size} - 8px)`)};
1906
1878
  }
1907
1879
 
1908
1880
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
@@ -1910,8 +1882,8 @@
1910
1882
  }
1911
1883
 
1912
1884
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1913
- ${(0,M.setVariable)(U.borderColor,P.colorPrimary)};
1914
- ${(0,M.setVariable)(U.textColor,P.colorPrimary)};
1885
+ ${(0,M.setVariable)(q.borderColor,P.colorPrimary)};
1886
+ ${(0,M.setVariable)(q.textColor,P.colorPrimary)};
1915
1887
  }
1916
1888
 
1917
1889
  .ft-select--selected-option {
@@ -1983,8 +1955,8 @@
1983
1955
  }
1984
1956
  `});var cu,Rb,Tb,kb=l(()=>{"use strict";vr();cu=c(f());Cs();Rb=c(y()),Tb=Rb.css`
1985
1957
  .ft-select--option {
1986
- ${(0,cu.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1987
- ${(0,cu.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1958
+ ${(0,cu.setVariable)(j.opacityContentOnSurfaceHover,"0.08")};
1959
+ ${(0,cu.setVariable)(j.opacityContentOnSurfacePressed,"0.04")};
1988
1960
  }
1989
1961
 
1990
1962
  .ft-select--option > *:not(ft-ripple) {
@@ -2076,7 +2048,7 @@
2076
2048
  label="${e.label}"
2077
2049
  .value=${e.value}
2078
2050
  ></ft-select-option>
2079
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,Nt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",P.optionsHeight,0).then(({x:o,y:n})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${n}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Nt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,o=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var o;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Nt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,Nt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Nt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};se.elementDefinitions={"ft-input-label":Xt,"ft-typography":z,"ft-ripple":k,"ft-icon":ae,"ft-select-option":We};se.searchTimeoutMilliseconds=2e3;se.styles=[Mr,_b];Ue([(0,Te.property)({type:String})],se.prototype,"label",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"ariaLabel",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"helper",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"outlined",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"disabled",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"error",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"fixedMenuPosition",void 0);Ue([(0,Te.property)({type:Array})],se.prototype,"options",void 0);Ue([(0,Te.state)()],se.prototype,"selectedOption",void 0);Ue([(0,Te.state)()],se.prototype,"optionsDisplayed",void 0);Ue([(0,Te.state)()],se.prototype,"focusOptions",void 0);Ue([(0,Te.state)()],se.prototype,"currentSearch",void 0);Ue([(0,Te.state)()],se.prototype,"lastSearchInputDate",void 0);Ue([(0,Te.query)(".ft-select")],se.prototype,"container",void 0);Ue([(0,Te.query)(".ft-select--options")],se.prototype,"optionsMenu",void 0);Ue([(0,Te.query)(".ft-select--input-panel")],se.prototype,"mainPanel",void 0);Ue([(0,Te.query)("slot:not([name])")],se.prototype,"optionsSlot",void 0)});var Pb=l(()=>{"use strict"});var Mb,Nb=l(()=>{"use strict";uu();Mb={"ft-select":se,"ft-select-option":We}});var Fb,Bb=l(()=>{"use strict";Fb=c(f());Nb();(0,Fb.customElements)(Mb)});var Ub=l(()=>{"use strict";uu();Cs();Pb();Bb()});var Vb,Zt,Ve,zb,ba=l(()=>{"use strict";Vb=c(y()),Zt=c(f()),Ve={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},zb=Vb.css`
2051
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,Nt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",P.optionsHeight,0).then(({x:o,y:n})=>{this.optionsMenu.style.left=`${o}px`,this.optionsMenu.style.top=`${n}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Nt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,o=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var o;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Nt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,Nt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Nt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};se.elementDefinitions={"ft-input-label":Xt,"ft-typography":V,"ft-ripple":k,"ft-icon":ae,"ft-select-option":We};se.searchTimeoutMilliseconds=2e3;se.styles=[Mr,_b];Ue([(0,Te.property)({type:String})],se.prototype,"label",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"ariaLabel",void 0);Ue([(0,Te.property)({type:String})],se.prototype,"helper",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"outlined",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"disabled",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"error",void 0);Ue([(0,Te.property)({type:Boolean})],se.prototype,"fixedMenuPosition",void 0);Ue([(0,Te.property)({type:Array})],se.prototype,"options",void 0);Ue([(0,Te.state)()],se.prototype,"selectedOption",void 0);Ue([(0,Te.state)()],se.prototype,"optionsDisplayed",void 0);Ue([(0,Te.state)()],se.prototype,"focusOptions",void 0);Ue([(0,Te.state)()],se.prototype,"currentSearch",void 0);Ue([(0,Te.state)()],se.prototype,"lastSearchInputDate",void 0);Ue([(0,Te.query)(".ft-select")],se.prototype,"container",void 0);Ue([(0,Te.query)(".ft-select--options")],se.prototype,"optionsMenu",void 0);Ue([(0,Te.query)(".ft-select--input-panel")],se.prototype,"mainPanel",void 0);Ue([(0,Te.query)("slot:not([name])")],se.prototype,"optionsSlot",void 0)});var Pb=l(()=>{"use strict"});var Mb,Nb=l(()=>{"use strict";uu();Mb={"ft-select":se,"ft-select-option":We}});var Fb,Bb=l(()=>{"use strict";Fb=c(f());Nb();(0,Fb.customElements)(Mb)});var Ub=l(()=>{"use strict";uu();Cs();Pb();Bb()});var Vb,Zt,Ve,zb,ba=l(()=>{"use strict";Vb=c(y()),Zt=c(f()),Ve={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},zb=Vb.css`
2080
2052
  :host {
2081
2053
  width: ${Ve.width};
2082
2054
  height: ${Ve.height};
@@ -2238,8 +2210,8 @@
2238
2210
  }
2239
2211
 
2240
2212
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2241
- ${(0,L.setVariable)(U.borderColor,"transparent")};
2242
- ${(0,L.setVariable)(U.borderRadius,`calc(${_.borderRadius} - 1px)`)};
2213
+ ${(0,L.setVariable)(q.borderColor,"transparent")};
2214
+ ${(0,L.setVariable)(q.borderRadius,`calc(${_.borderRadius} - 1px)`)};
2243
2215
  ${(0,L.setVariable)(P.selectedOptionColor,_.buttonColor)};
2244
2216
  }
2245
2217
 
@@ -2601,7 +2573,7 @@
2601
2573
  }
2602
2574
 
2603
2575
  ft-ripple {
2604
- ${(0,Eo.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2576
+ ${(0,Eo.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
2605
2577
  }
2606
2578
  `]});var ot,fu,Sa,gr,Ea=l(()=>{"use strict";ot=c(y()),fu=c(Tr());Dc();Sa=c(f());ca();iu();gr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return ot.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=ot.html`
2607
2579
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?ot.html`
@@ -2821,7 +2793,7 @@
2821
2793
  </div>
2822
2794
  `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ao.styles=st.css`
2823
2795
 
2824
- `;RE([(0,ov.ignoreComposingEvents)()],Ao.prototype,"onSearchBarKeyDown",null)});var G,H,ws,re,V,nv,mu,TE,R,gu=l(()=>{"use strict";G=c(y()),H=c(F()),ws=c(Tr()),re=c(f());zg();xe();Dc();Vy();_r();rb();Kt();iu();Ub();ca();ic();Ye();va();Zb();xa();Ea();tv();sv();Hc();Ht();V=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");nv={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},mu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},TE=()=>{},R=class extends re.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new re.ParametrizedLabelResolver(nv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new re.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Pt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new mr(this),this.selectedFacetsManager=new gr(this),this.desktopSearchBarManager=new Ao(this),this.mobileSearchBarManager=new Co(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new re.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(s=>this.compareFilters(i,s)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Pt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2796
+ `;RE([(0,ov.ignoreComposingEvents)()],Ao.prototype,"onSearchBarKeyDown",null)});var G,z,ws,re,U,nv,mu,TE,R,gu=l(()=>{"use strict";G=c(y()),z=c(F()),ws=c(Tr()),re=c(f());zg();xe();Dc();Vy();_r();rb();Kt();iu();Ub();ca();ic();Ye();va();Zb();xa();Ea();tv();sv();Hc();Ht();U=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");nv={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},mu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},TE=()=>{},R=class extends re.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new re.ParametrizedLabelResolver(nv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new re.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Pt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new mr(this),this.selectedFacetsManager=new gr(this),this.desktopSearchBarManager=new Ao(this),this.mobileSearchBarManager=new Co(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new re.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(s=>this.compareFilters(i,s)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Pt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
2825
2797
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2826
2798
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2827
2799
  ${this.renderLiveText()}
@@ -2968,7 +2940,7 @@
2968
2940
  part="floating-panel"
2969
2941
  tabindex="-1">
2970
2942
  ${this.renderDesktopMenu()}
2971
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":hr,"ft-accordion-item":Mt,"ft-button":w,"ft-chip":me,"ft-filter":W,"ft-filter-option":Et,"ft-icon":ae,"ft-ripple":k,"ft-select":se,"ft-select-option":We,"ft-size-watcher":yt,"ft-skeleton":Xr,"ft-snap-scroll":Re,"ft-tooltip":Se,"ft-typography":z,"ft-radio-group":vt,"ft-radio":$e};R.styles=[Pr,re.noTextInputDefaultClearButton,Hb,jb,gr.styles,mr.styles,re.screenReaderStyles];V([(0,H.property)({type:Boolean})],R.prototype,"dense",void 0);V([(0,H.property)()],R.prototype,"mode",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);V([(0,H.property)()],R.prototype,"baseUrl",void 0);V([(0,H.property)()],R.prototype,"apiIntegrationIdentifier",void 0);V([(0,H.property)()],R.prototype,"contentLocale",void 0);V([(0,H.state)()],R.prototype,"availableContentLocales",void 0);V([(0,H.state)()],R.prototype,"availableContentLocalesInitialized",void 0);V([(0,H.property)()],R.prototype,"uiLocale",void 0);V([(0,re.jsonProperty)({})],R.prototype,"labels",void 0);V([(0,re.jsonProperty)([])],R.prototype,"displayedFilters",void 0);V([(0,re.jsonProperty)([])],R.prototype,"presets",void 0);V([(0,H.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);V([(0,re.jsonProperty)([])],R.prototype,"priors",void 0);V([(0,H.property)()],R.prototype,"searchRequestSerializer",void 0);V([(0,H.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);V([(0,H.state)()],R.prototype,"metadataFilters",void 0);V([(0,H.state)()],R.prototype,"sizeCategory",void 0);V([(0,H.state)()],R.prototype,"displayFacets",void 0);V([(0,H.state)()],R.prototype,"mobileMenuOpen",void 0);V([(0,H.state)()],R.prototype,"facets",void 0);V([(0,H.state)()],R.prototype,"facetsInitialized",void 0);V([(0,H.query)(".ft-search-bar--container")],R.prototype,"container",void 0);V([(0,H.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);V([(0,H.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);V([(0,H.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);V([(0,H.query)(".ft-search-bar--input")],R.prototype,"input",void 0);V([(0,H.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);V([(0,H.state)()],R.prototype,"query",void 0);V([(0,H.state)()],R.prototype,"suggestions",void 0);V([(0,H.state)()],R.prototype,"recentSearches",void 0);V([(0,H.state)()],R.prototype,"scrollToFacet",void 0);V([(0,H.state)()],R.prototype,"api",void 0);V([(0,H.state)()],R.prototype,"displaySuggestListbox",void 0);V([(0,H.state)()],R.prototype,"selectedSuggestOptionId",void 0);V([(0,H.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);V([(0,H.state)()],R.prototype,"facetsLoaded",void 0)});var av=l(()=>{"use strict"});var lv,cv=l(()=>{"use strict";gu();lv={"ft-search-bar":R}});var uv,dv=l(()=>{"use strict";uv=c(f());cv();(0,uv.customElements)(lv)});var pv=l(()=>{"use strict";gu();va();av();dv()});var hv,fv,mv,gv=l(()=>{"use strict";hv=c(y());ls();fv=c(f());Ye();pv();mv=hv.css`
2943
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};R.elementDefinitions={"ft-accordion":hr,"ft-accordion-item":Mt,"ft-button":w,"ft-chip":me,"ft-filter":W,"ft-filter-option":Et,"ft-icon":ae,"ft-ripple":k,"ft-select":se,"ft-select-option":We,"ft-size-watcher":yt,"ft-skeleton":Xr,"ft-snap-scroll":Re,"ft-tooltip":Se,"ft-typography":V,"ft-radio-group":vt,"ft-radio":$e};R.styles=[Pr,re.noTextInputDefaultClearButton,Hb,jb,gr.styles,mr.styles,re.screenReaderStyles];U([(0,z.property)({type:Boolean})],R.prototype,"dense",void 0);U([(0,z.property)()],R.prototype,"mode",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMobileMenuOpen",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"forceMenuOpen",void 0);U([(0,z.property)()],R.prototype,"baseUrl",void 0);U([(0,z.property)()],R.prototype,"apiIntegrationIdentifier",void 0);U([(0,z.property)()],R.prototype,"contentLocale",void 0);U([(0,z.state)()],R.prototype,"availableContentLocales",void 0);U([(0,z.state)()],R.prototype,"availableContentLocalesInitialized",void 0);U([(0,z.property)()],R.prototype,"uiLocale",void 0);U([(0,re.jsonProperty)({})],R.prototype,"labels",void 0);U([(0,re.jsonProperty)([])],R.prototype,"displayedFilters",void 0);U([(0,re.jsonProperty)([])],R.prototype,"presets",void 0);U([(0,z.property)({type:String,reflect:!0})],R.prototype,"selectedPreset",void 0);U([(0,re.jsonProperty)([])],R.prototype,"priors",void 0);U([(0,z.property)()],R.prototype,"searchRequestSerializer",void 0);U([(0,z.property)({type:Boolean})],R.prototype,"focusOnDisplay",void 0);U([(0,z.state)()],R.prototype,"metadataFilters",void 0);U([(0,z.state)()],R.prototype,"sizeCategory",void 0);U([(0,z.state)()],R.prototype,"displayFacets",void 0);U([(0,z.state)()],R.prototype,"mobileMenuOpen",void 0);U([(0,z.state)()],R.prototype,"facets",void 0);U([(0,z.state)()],R.prototype,"facetsInitialized",void 0);U([(0,z.query)(".ft-search-bar--container")],R.prototype,"container",void 0);U([(0,z.query)(".ft-search-bar--filters-opener")],R.prototype,"filtersOpener",void 0);U([(0,z.query)(".ft-search-bar--floating-panel")],R.prototype,"floatingContainer",void 0);U([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],R.prototype,"scrollingFiltersContainer",void 0);U([(0,z.query)(".ft-search-bar--input")],R.prototype,"input",void 0);U([(0,z.query)(".ft-search-bar--launch-search")],R.prototype,"launchSearchButton",void 0);U([(0,z.state)()],R.prototype,"query",void 0);U([(0,z.state)()],R.prototype,"suggestions",void 0);U([(0,z.state)()],R.prototype,"recentSearches",void 0);U([(0,z.state)()],R.prototype,"scrollToFacet",void 0);U([(0,z.state)()],R.prototype,"api",void 0);U([(0,z.state)()],R.prototype,"displaySuggestListbox",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestOptionId",void 0);U([(0,z.state)()],R.prototype,"selectedSuggestRemoveRecent",void 0);U([(0,z.state)()],R.prototype,"facetsLoaded",void 0)});var av=l(()=>{"use strict"});var lv,cv=l(()=>{"use strict";gu();lv={"ft-search-bar":R}});var uv,dv=l(()=>{"use strict";uv=c(f());cv();(0,uv.customElements)(lv)});var pv=l(()=>{"use strict";gu();va();av();dv()});var hv,fv,mv,gv=l(()=>{"use strict";hv=c(y());ls();fv=c(f());Ye();pv();mv=hv.css`
2972
2944
  * {
2973
2945
  box-sizing: border-box;
2974
2946
  }
@@ -3020,7 +2992,7 @@
3020
2992
  }
3021
2993
 
3022
2994
  ft-ripple {
3023
- ${(0,fv.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2995
+ ${(0,fv.setVariable)(j.opacityContentOnSurfaceHover,j.opacityContentOnSurfaceSelected)}
3024
2996
  }
3025
2997
  `});var yv,Ui,yu,Zr,bv=l(()=>{"use strict";yv=c(f()),Ui=c(y());gv();yu=c(Tr());_r();Ye();xe();Ht();_c();Kt();Zr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=wr.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ui.html`
3026
2998
  <div class="ft-search-input-suggestion ft-word-wrap"
@@ -3061,7 +3033,7 @@
3061
3033
  </ft-button>
3062
3034
  `:Ui.nothing}
3063
3035
  </div>
3064
- `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};Zr.elementDefinitions={"ft-ripple":k,"ft-typography":z,"ft-icon":ae,"ft-button":w};Zr.styles=[yv.wordWrap,mv]});function LE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,kE)}var wo,Ge,Ct,vv,ze,kE,he,bu=l(()=>{"use strict";wo=c(y()),Ge=c(f());ls();$i();Lt();_c();Ct=c(F()),vv=c(nt());bv();Kt();xe();Ht();Nn();ze=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},kE=5;he=class extends ut(Dt){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Zr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},s={...this.request,query:this.liveQuery},o=this.useCustomSearchPath?this.launchSearchPath:void 0,n=wr.get().serializeToCurrentPageIfPossible(s,o),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return wo.html`
3036
+ `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};Zr.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":ae,"ft-button":w};Zr.styles=[yv.wordWrap,mv]});function LE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,kE)}var wo,Ge,Ct,vv,ze,kE,he,bu=l(()=>{"use strict";wo=c(y()),Ge=c(f());ls();$i();Lt();_c();Ct=c(F()),vv=c(nt());bv();Kt();xe();Ht();Nn();ze=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},kE=5;he=class extends ut(Dt){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Zr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},s={...this.request,query:this.liveQuery},o=this.useCustomSearchPath?this.launchSearchPath:void 0,n=wr.get().serializeToCurrentPageIfPossible(s,o),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return wo.html`
3065
3037
  <div class="${(0,vv.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3066
3038
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3067
3039
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3121,7 +3093,7 @@
3121
3093
  display: none !important;
3122
3094
  }
3123
3095
  </style>
3124
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Vi.elementDefinitions={"ft-typography":z};Vi.styles=pc});var Bv,Uv=l(()=>{"use strict";Ru();Bv={"ft-search-result-abstract":Vi}});var Vv,Tu=l(()=>{"use strict";Vv=c(f());Uv();(0,Vv.customElements)(Bv)});var zv={};ri(zv,{FtSearchResultAbstract:()=>Vi,FtSearchResultAbstractCssVariables:()=>qn,styles:()=>pc});var Hv=l(()=>{"use strict";Kn();Mv();Ru();Tu()});var jv=l(()=>{"use strict"});var Os,qv,Kv,Wv,DE,Jr,ku=l(()=>{"use strict";Os=c(y()),qv=c(F()),Kv=c(f());Ou();Gn();xe();Wv=c(Un());yc();ps();DE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Jr=class extends Oo{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Os.html`
3096
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Vi.elementDefinitions={"ft-typography":V};Vi.styles=pc});var Bv,Uv=l(()=>{"use strict";Ru();Bv={"ft-search-result-abstract":Vi}});var Vv,Tu=l(()=>{"use strict";Vv=c(f());Uv();(0,Vv.customElements)(Bv)});var zv={};ri(zv,{FtSearchResultAbstract:()=>Vi,FtSearchResultAbstractCssVariables:()=>qn,styles:()=>pc});var Hv=l(()=>{"use strict";Kn();Mv();Ru();Tu()});var jv=l(()=>{"use strict"});var Os,qv,Kv,Wv,DE,Jr,ku=l(()=>{"use strict";Os=c(y()),qv=c(F()),Kv=c(f());Ou();Gn();xe();Wv=c(Un());yc();ps();DE=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Jr=class extends Oo{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Os.html`
3125
3097
  <a href="${Xn(this.result)}"
3126
3098
  @click=${this.onResultClick}
3127
3099
  @auxclick=${r=>this.onAuxClick(r)}
@@ -3132,7 +3104,7 @@
3132
3104
  </a>
3133
3105
  `:Os.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return Os.html`
3134
3106
  <ft-typography variant="${Y.title}" part="text">${(0,Wv.unsafeHTML)((e=(0,Kv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3135
- `}onResultClick(){this.dispatchEvent(new Li(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new fo(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":z};Jr.styles=hc;DE([(0,qv.property)({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Gv,Qv=l(()=>{"use strict";ku();Gv={"ft-search-result-title":Jr}});var Yv,Lu=l(()=>{"use strict";Yv=c(f());Qv();(0,Yv.customElements)(Gv)});var Xv={};ri(Xv,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>Wn,styles:()=>hc});var Zv=l(()=>{"use strict";Gn();jv();ku();Lu()});var Jv,PE,$u,Iu=l(()=>{"use strict";Jv=c(y()),PE={},$u=Jv.css`
3107
+ `}onResultClick(){this.dispatchEvent(new Li(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new fo(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":V};Jr.styles=hc;DE([(0,qv.property)({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Gv,Qv=l(()=>{"use strict";ku();Gv={"ft-search-result-title":Jr}});var Yv,Lu=l(()=>{"use strict";Yv=c(f());Qv();(0,Yv.customElements)(Gv)});var Xv={};ri(Xv,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>Wn,styles:()=>hc});var Zv=l(()=>{"use strict";Gn();jv();ku();Lu()});var Jv,PE,$u,Iu=l(()=>{"use strict";Jv=c(y()),PE={},$u=Jv.css`
3136
3108
  [part="no-results-message"] {
3137
3109
  text-align: center;
3138
3110
  padding: 12px;
@@ -3160,7 +3132,7 @@
3160
3132
  <ft-typography variant="${Y.body1}">
3161
3133
  ${Ro.messages.results(this.paging.totalClustersCount)}
3162
3134
  </ft-typography>
3163
- `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};$r.elementDefinitions={"ft-typography":z};$r.styles=Nu;Ex([(0,ei.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Ex([(0,ei.redux)()],$r.prototype,"paging",void 0)});var Cx,Ax=l(()=>{"use strict";Bu();Cx={"ft-search-results-number":$r}});var wx,Ox=l(()=>{"use strict";wx=c(f());Ax();(0,wx.customElements)(Cx)});var _x={};ri(_x,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>ME,styles:()=>Nu});var Rx=l(()=>{"use strict";Fu();Sx();Bu();Ox()});var kx=c(f());var wt=c(y()),Hi=c(f());var fc=c(y()),O=c(f());var Qu=c(y()),K=c(f());vr();var X={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Yu=Qu.css`
3135
+ `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};$r.elementDefinitions={"ft-typography":V};$r.styles=Nu;Ex([(0,ei.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Ex([(0,ei.redux)()],$r.prototype,"paging",void 0)});var Cx,Ax=l(()=>{"use strict";Bu();Cx={"ft-search-results-number":$r}});var wx,Ox=l(()=>{"use strict";wx=c(f());Ax();(0,wx.customElements)(Cx)});var _x={};ri(_x,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>ME,styles:()=>Nu});var Rx=l(()=>{"use strict";Fu();Sx();Bu();Ox()});var kx=c(f());var wt=c(y()),Hi=c(f());var fc=c(y()),O=c(f());var Qu=c(y()),K=c(f());vr();var X={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Yu=Qu.css`
3164
3136
  :host {
3165
3137
  display: block;
3166
3138
  }
@@ -3174,7 +3146,7 @@
3174
3146
  border-style: ${X.borderStyle};
3175
3147
  border-width: 1px;
3176
3148
  border-radius: ${X.borderRadius};
3177
- ${(0,K.setVariable)(q.borderRadius,X.borderRadius)};
3149
+ ${(0,K.setVariable)(j.borderRadius,X.borderRadius)};
3178
3150
  box-shadow: ${X.elevation02};
3179
3151
  position: relative;
3180
3152
  width: 100%;
@@ -3213,7 +3185,7 @@
3213
3185
  outline-width: ${X.selectedOutlineWidth};
3214
3186
  outline-color: ${X.selectedOutlineColor};
3215
3187
  border-radius: ${X.selectedBorderRadius};
3216
- ${(0,K.setVariable)(q.borderRadius,X.selectedBorderRadius)};
3188
+ ${(0,K.setVariable)(j.borderRadius,X.selectedBorderRadius)};
3217
3189
  box-shadow: ${X.elevation04};
3218
3190
  }
3219
3191
 
@@ -3303,7 +3275,7 @@
3303
3275
 
3304
3276
  ft-card:hover {
3305
3277
  ${(0,O.setVariable)(X.hoverBorderColor,Ke.resultHoverBorderColor)};
3306
- ${(0,O.setVariable)(q.color,Ke.resultHoverBackgroundColor)};
3278
+ ${(0,O.setVariable)(j.color,Ke.resultHoverBackgroundColor)};
3307
3279
  }
3308
3280
 
3309
3281
  .result-container {
@@ -3334,7 +3306,7 @@
3334
3306
  </ft-typography>
3335
3307
  </div>
3336
3308
  </div>
3337
- `}};dt.elementDefinitions={"ft-ripple":k,"ft-typography":z};dt.styles=Yu;ho([(0,ki.property)()],dt.prototype,"title",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"clickable",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"selected",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noHeader",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noContent",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"oneLineHeader",void 0);var fg=c(f());var hg={"ft-card":dt};(0,fg.customElements)(hg);ps();xe();Nn();var br=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Qe=class t extends ut(Qn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Hi.randomId)(6,"search-in-document-"),this.addI18nContext(bc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return wt.html`
3309
+ `}};dt.elementDefinitions={"ft-ripple":k,"ft-typography":V};dt.styles=Yu;ho([(0,ki.property)()],dt.prototype,"title",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"clickable",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"selected",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noHeader",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"noContent",void 0);ho([(0,ki.property)({type:Boolean})],dt.prototype,"oneLineHeader",void 0);var fg=c(f());var hg={"ft-card":dt};(0,fg.customElements)(hg);ps();xe();Nn();var br=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Qe=class t extends ut(Qn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Hi.randomId)(6,"search-in-document-"),this.addI18nContext(bc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return wt.html`
3338
3310
  <style> ${sg}</style>
3339
3311
  <a href="${Xn(e)}" @click=${s=>this.onLinkClick(s,e,r)}
3340
3312
  @auxclick=${s=>this.onAuxClick(s,e,r)}