@fluid-topics/ft-search-input 1.1.8 → 1.1.10

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.
@@ -509,7 +509,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
509
509
  }
510
510
 
511
511
  .ft-tooltip {
512
- position: absolute;
512
+ position: fixed;
513
513
  box-sizing: border-box;
514
514
  overflow: hidden;
515
515
  width: max-content;
@@ -527,7 +527,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
527
527
  position: relative;
528
528
  word-break: break-word;
529
529
  }
530
- `,jo=["start","end"],_o=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+jo[0],o+"-"+jo[1])),[]),Yo=Math.min,qo=Math.max,Vo=Math.round,Xo=t=>({x:t,y:t}),Jo={left:"right",right:"left",bottom:"top",top:"bottom"},Qo={start:"end",end:"start"};function te(t,o,e){return qo(t,Yo(o,e))}function oe(t,o){return"function"==typeof t?t(o):t}function ee(t){return t.split("-")[0]}function re(t){return t.split("-")[1]}function ie(t){return"x"===t?"y":"x"}function ne(t){return"y"===t?"height":"width"}function ae(t){return["top","bottom"].includes(ee(t))?"y":"x"}function le(t){return ie(ae(t))}function se(t){return t.replace(/left|right|bottom|top/g,(t=>Jo[t]))}function ce(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function pe(t,o,e){let{reference:r,floating:i}=t;const n=ae(o),a=le(o),l=ne(a),s=ee(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(re(o)){case"start":h[a]-=d*(e&&c?-1:1);break;case"end":h[a]+=d*(e&&c?-1:1)}return h}async function fe(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=oe(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],y=ce(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:s})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=ce(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(y.top-v.top+u.top)/x.y,bottom:(v.bottom-y.bottom+u.bottom)/x.y,left:(y.left-v.left+u.left)/x.x,right:(v.right-y.right+u.right)/x.x}}function de(t,o,e){return(t?[...e.filter((o=>re(o)===t)),...e.filter((o=>re(o)!==t))]:e.filter((t=>ee(t)===t))).filter((e=>!t||(re(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Qo[t]))}(e)!==e)))}const he=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=_o,autoAlignment:h=!0,...u}=oe(t,o),g=void 0!==f||d===_o?de(f||null,h,d):d,y=await fe(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=re(t),i=le(t),n=ne(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=se(a)),[a,se(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:g[0]}};const v=[y[ee(m)],y[x[0]],y[x[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:v}],N=g[b+1];if(N)return{data:{index:b+1,overflows:O},reset:{placement:N}};const w=O.map((t=>{const o=re(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),S=w.filter((t=>t[2].slice(0,re(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=S[0])?void 0:i[0])||w[0][0];return C!==l?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function ue(t){return be(t)?(t.nodeName||"").toLowerCase():"#document"}function ge(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function ye(t){var o;return null==(o=(be(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function be(t){return t instanceof Node||t instanceof ge(t).Node}function me(t){return t instanceof Element||t instanceof ge(t).Element}function xe(t){return t instanceof HTMLElement||t instanceof ge(t).HTMLElement}function ve(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ge(t).ShadowRoot)}function Oe(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=$e(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ne(t){return["table","td","th"].includes(ue(t))}function we(t){const o=Se(),e=$e(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Se(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ce(t){return["html","body","#document"].includes(ue(t))}function $e(t){return ge(t).getComputedStyle(t)}function Ee(t){return me(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ie(t){if("html"===ue(t))return t;const o=t.assignedSlot||t.parentNode||ve(t)&&t.host||ye(t);return ve(o)?o.host:o}function Re(t){const o=Ie(t);return Ce(o)?t.ownerDocument?t.ownerDocument.body:t.body:xe(o)&&Oe(o)?o:Re(o)}function Ue(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Re(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=ge(i);return n?o.concat(a,a.visualViewport||[],Oe(i)?i:[],a.frameElement&&e?Ue(a.frameElement):[]):o.concat(i,Ue(i,[],e))}function ke(t){const o=$e(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=xe(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Vo(e)!==n||Vo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function Le(t){return me(t)?t:t.contextElement}function We(t){const o=Le(t);if(!xe(o))return Xo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=ke(o);let a=(n?Vo(e.width):e.width)/r,l=(n?Vo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ke=Xo(0);function Ae(t){const o=ge(t);return Se()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ke}function Ze(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Le(t);let a=Xo(1);o&&(r?me(r)&&(a=We(r)):a=We(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ge(t))&&o}(n,e,r)?Ae(n):Xo(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=ge(n),o=r&&me(r)?ge(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=We(e),o=e.getBoundingClientRect(),r=$e(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,p*=t.x,f*=t.y,s+=i,c+=n,e=ge(e).frameElement}}return ce({width:p,height:f,x:s,y:c})}function ze(t){return Ze(ye(t)).left+Ee(t).scrollLeft}function Be(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ge(t),r=ye(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){n=i.width,a=i.height;const t=Se();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)r=function(t){const o=ye(t),e=Ee(t),r=t.ownerDocument.body,i=qo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=qo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+ze(t);const l=-e.scrollTop;return"rtl"===$e(r).direction&&(a+=qo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(ye(t));else if(me(o))r=function(t,o){const e=Ze(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=xe(t)?We(t):Xo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ae(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ce(r)}function De(t,o){const e=Ie(t);return!(e===o||!me(e)||Ce(e))&&("fixed"===$e(e).position||De(e,o))}function Fe(t,o,e){const r=xe(o),i=ye(o),n="fixed"===e,a=Ze(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=Xo(0);if(r||!r&&!n)if(("body"!==ue(o)||Oe(i))&&(l=Ee(o)),r){const t=Ze(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else i&&(s.x=ze(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Te(t,o){return xe(t)&&"fixed"!==$e(t).position?o?o(t):t.offsetParent:null}function Pe(t,o){const e=ge(t);if(!xe(t))return e;let r=Te(t,o);for(;r&&Ne(r)&&"static"===$e(r).position;)r=Te(r,o);return r&&("html"===ue(r)||"body"===ue(r)&&"static"===$e(r).position&&!we(r))?e:r||function(t){let o=Ie(t);for(;xe(o)&&!Ce(o);){if(we(o))return o;o=Ie(o)}return null}(t)||e}const He={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=xe(e),n=ye(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Xo(1);const s=Xo(0);if((i||!i&&"fixed"!==r)&&(("body"!==ue(e)||Oe(n))&&(a=Ee(e)),xe(e))){const t=Ze(e);l=We(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:ye,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Ue(t,[],!1).filter((t=>me(t)&&"body"!==ue(t))),i=null;const n="fixed"===$e(t).position;let a=n?Ie(t):t;for(;me(a)&&!Ce(a);){const o=$e(a),e=we(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Oe(a)&&!e&&De(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ie(a)}return o.set(t,r),r}(o,this._c):[].concat(e),a=[...n,r],l=a[0],s=a.reduce(((t,e)=>{const r=Be(o,e,i);return t.top=qo(r.top,t.top),t.right=Yo(r.right,t.right),t.bottom=Yo(r.bottom,t.bottom),t.left=qo(r.left,t.left),t}),Be(o,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Pe,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Pe,n=this.getDimensions;return{reference:Fe(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ke(t)},getScale:We,isElement:me,isRTL:function(t){return"rtl"===$e(t).direction}},Me=(t,o,e)=>{const r=new Map,i={platform:He,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=pe(c,r,s),d=r,h={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:y,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=y?y:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=pe(c,d,s))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var Ge,je,_e=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ye extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
530
+ `,jo=["start","end"],_o=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+jo[0],o+"-"+jo[1])),[]),Yo=Math.min,qo=Math.max,Vo=Math.round,Xo=t=>({x:t,y:t}),Jo={left:"right",right:"left",bottom:"top",top:"bottom"},Qo={start:"end",end:"start"};function te(t,o,e){return qo(t,Yo(o,e))}function oe(t,o){return"function"==typeof t?t(o):t}function ee(t){return t.split("-")[0]}function re(t){return t.split("-")[1]}function ie(t){return"x"===t?"y":"x"}function ne(t){return"y"===t?"height":"width"}function ae(t){return["top","bottom"].includes(ee(t))?"y":"x"}function le(t){return ie(ae(t))}function se(t){return t.replace(/left|right|bottom|top/g,(t=>Jo[t]))}function ce(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function pe(t,o,e){let{reference:r,floating:i}=t;const n=ae(o),a=le(o),l=ne(a),s=ee(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(re(o)){case"start":h[a]-=d*(e&&c?-1:1);break;case"end":h[a]+=d*(e&&c?-1:1)}return h}async function fe(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=oe(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],y=ce(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:s})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=ce(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(y.top-v.top+u.top)/x.y,bottom:(v.bottom-y.bottom+u.bottom)/x.y,left:(y.left-v.left+u.left)/x.x,right:(v.right-y.right+u.right)/x.x}}function de(t,o,e){return(t?[...e.filter((o=>re(o)===t)),...e.filter((o=>re(o)!==t))]:e.filter((t=>ee(t)===t))).filter((e=>!t||(re(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Qo[t]))}(e)!==e)))}const he=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=_o,autoAlignment:h=!0,...u}=oe(t,o),g=void 0!==f||d===_o?de(f||null,h,d):d,y=await fe(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=re(t),i=le(t),n=ne(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=se(a)),[a,se(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:g[0]}};const v=[y[ee(m)],y[x[0]],y[x[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:v}],N=g[b+1];if(N)return{data:{index:b+1,overflows:O},reset:{placement:N}};const w=O.map((t=>{const o=re(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),S=w.filter((t=>t[2].slice(0,re(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=S[0])?void 0:i[0])||w[0][0];return C!==l?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function ue(t){return be(t)?(t.nodeName||"").toLowerCase():"#document"}function ge(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function ye(t){var o;return null==(o=(be(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function be(t){return t instanceof Node||t instanceof ge(t).Node}function me(t){return t instanceof Element||t instanceof ge(t).Element}function xe(t){return t instanceof HTMLElement||t instanceof ge(t).HTMLElement}function ve(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ge(t).ShadowRoot)}function Oe(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=$e(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ne(t){return["table","td","th"].includes(ue(t))}function we(t){const o=Se(),e=$e(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Se(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ce(t){return["html","body","#document"].includes(ue(t))}function $e(t){return ge(t).getComputedStyle(t)}function Ee(t){return me(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ie(t){if("html"===ue(t))return t;const o=t.assignedSlot||t.parentNode||ve(t)&&t.host||ye(t);return ve(o)?o.host:o}function Re(t){const o=Ie(t);return Ce(o)?t.ownerDocument?t.ownerDocument.body:t.body:xe(o)&&Oe(o)?o:Re(o)}function Ue(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Re(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=ge(i);return n?o.concat(a,a.visualViewport||[],Oe(i)?i:[],a.frameElement&&e?Ue(a.frameElement):[]):o.concat(i,Ue(i,[],e))}function ke(t){const o=$e(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=xe(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Vo(e)!==n||Vo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function Le(t){return me(t)?t:t.contextElement}function We(t){const o=Le(t);if(!xe(o))return Xo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=ke(o);let a=(n?Vo(e.width):e.width)/r,l=(n?Vo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Ke=Xo(0);function Ae(t){const o=ge(t);return Se()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Ke}function Ze(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Le(t);let a=Xo(1);o&&(r?me(r)&&(a=We(r)):a=We(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ge(t))&&o}(n,e,r)?Ae(n):Xo(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=ge(n),o=r&&me(r)?ge(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=We(e),o=e.getBoundingClientRect(),r=$e(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,p*=t.x,f*=t.y,s+=i,c+=n,e=ge(e).frameElement}}return ce({width:p,height:f,x:s,y:c})}function ze(t){return Ze(ye(t)).left+Ee(t).scrollLeft}function Be(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ge(t),r=ye(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){n=i.width,a=i.height;const t=Se();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)r=function(t){const o=ye(t),e=Ee(t),r=t.ownerDocument.body,i=qo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=qo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+ze(t);const l=-e.scrollTop;return"rtl"===$e(r).direction&&(a+=qo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(ye(t));else if(me(o))r=function(t,o){const e=Ze(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=xe(t)?We(t):Xo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ae(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ce(r)}function De(t,o){const e=Ie(t);return!(e===o||!me(e)||Ce(e))&&("fixed"===$e(e).position||De(e,o))}function Fe(t,o,e){const r=xe(o),i=ye(o),n="fixed"===e,a=Ze(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=Xo(0);if(r||!r&&!n)if(("body"!==ue(o)||Oe(i))&&(l=Ee(o)),r){const t=Ze(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else i&&(s.x=ze(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Te(t,o){return xe(t)&&"fixed"!==$e(t).position?o?o(t):t.offsetParent:null}function Pe(t,o){const e=ge(t);if(!xe(t))return e;let r=Te(t,o);for(;r&&Ne(r)&&"static"===$e(r).position;)r=Te(r,o);return r&&("html"===ue(r)||"body"===ue(r)&&"static"===$e(r).position&&!we(r))?e:r||function(t){let o=Ie(t);for(;xe(o)&&!Ce(o);){if(we(o))return o;o=Ie(o)}return null}(t)||e}const He={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=xe(e),n=ye(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Xo(1);const s=Xo(0);if((i||!i&&"fixed"!==r)&&(("body"!==ue(e)||Oe(n))&&(a=Ee(e)),xe(e))){const t=Ze(e);l=We(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:ye,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Ue(t,[],!1).filter((t=>me(t)&&"body"!==ue(t))),i=null;const n="fixed"===$e(t).position;let a=n?Ie(t):t;for(;me(a)&&!Ce(a);){const o=$e(a),e=we(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Oe(a)&&!e&&De(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ie(a)}return o.set(t,r),r}(o,this._c):[].concat(e),a=[...n,r],l=a[0],s=a.reduce(((t,e)=>{const r=Be(o,e,i);return t.top=qo(r.top,t.top),t.right=Yo(r.right,t.right),t.bottom=Yo(r.bottom,t.bottom),t.left=qo(r.left,t.left),t}),Be(o,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Pe,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Pe,n=this.getDimensions;return{reference:Fe(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ke(t)},getScale:We,isElement:me,isRTL:function(t){return"rtl"===$e(t).direction}},Me=(t,o,e)=>{const r=new Map,i={platform:He,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=pe(c,r,s),d=r,h={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:y,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=y?y:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=pe(c,d,s))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function Ge(t){return function(t){for(let o=t;o;o=je(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=je(t);o;o=je(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function je(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var _e,Ye,qe=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ve extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
531
531
  <div part="container"
532
532
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
533
533
  @mouseenter=${this.onHover}
@@ -535,7 +535,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
535
535
  @focusin=${this.onHover}
536
536
  @focusout=${this.onOut}
537
537
  @touchstart=${this.onTouch}>
538
- <slot></slot>
538
+ <slot part="slot"></slot>
539
539
  <div part="tooltip" role="tooltip" inert
540
540
  class="ft-tooltip ft-tooltip--${this.validPosition}"
541
541
  ?hidden=${!this.visible}>
@@ -545,19 +545,19 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
545
545
  </div>
546
546
  </div>
547
547
  </div>
548
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Me(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=oe(t,o),c={x:e,y:r},p=await fe(o,s),f=ae(ee(i)),d=ie(f);let h=c[d],u=c[f];if(n){const t="y"===d?"bottom":"right";h=te(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";u=te(u+p["y"===f?"top":"left"],u,u-p[t])}const g=l.fn({...o,[d]:h,[f]:u});return{...g,data:{x:g.x-e,y:g.y-r}}}}),he({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ye.elementDefinitions={"ft-typography":Ho},Ye.styles=Go,_e([r.property()],Ye.prototype,"text",void 0),_e([r.property({type:Boolean})],Ye.prototype,"manual",void 0),_e([r.property({type:Boolean})],Ye.prototype,"inline",void 0),_e([r.property({type:Number})],Ye.prototype,"delay",void 0),_e([r.property()],Ye.prototype,"position",void 0),_e([r.queryAssignedNodes()],Ye.prototype,"slotNodes",void 0),_e([r.query(".ft-tooltip--container")],Ye.prototype,"container",void 0),_e([r.query(".ft-tooltip")],Ye.prototype,"tooltip",void 0),_e([r.query(".ft-tooltip--content")],Ye.prototype,"tooltipContent",void 0),_e([r.state()],Ye.prototype,"visible",void 0),_e([r.eventOptions({passive:!0})],Ye.prototype,"onTouch",null),_e([r.eventOptions({passive:!0})],Ye.prototype,"onHover",null),_e([r.eventOptions({passive:!0})],Ye.prototype,"onOut",null),o.customElement("ft-tooltip")(Ye),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ge||(Ge={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(je||(je={}));const qe=new Map([...["abw"].map((t=>[t,je.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,je.AUDIO])),...["avi"].map((t=>[t,je.AVI])),...["chm","xhs"].map((t=>[t,je.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,je.CODE])),...["csv"].map((t=>[t,je.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,je.DITA])),...["epub"].map((t=>[t,je.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,je.EXCEL])),...["flac"].map((t=>[t,je.FLAC])),...["gif"].map((t=>[t,je.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,je.GZIP])),...["html","htm","xhtml"].map((t=>[t,je.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,je.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,je.JPEG])),...["json"].map((t=>[t,je.JSON])),...["m4a","m4p"].map((t=>[t,je.M4A])),...["mov","qt"].map((t=>[t,je.MOV])),...["mp3"].map((t=>[t,je.MP3])),...["mp4","m4v"].map((t=>[t,je.MP4])),...["ogg","oga"].map((t=>[t,je.OGG])),...["pdf","ps"].map((t=>[t,je.PDF])),...["png"].map((t=>[t,je.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,je.POWERPOINT])),...["rar"].map((t=>[t,je.RAR])),...["stp"].map((t=>[t,je.STP])),...["txt","rtf","md","mdown"].map((t=>[t,je.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,je.VIDEO])),...["wav"].map((t=>[t,je.WAV])),...["wma"].map((t=>[t,je.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,je.WORD])),...["xml","xsl","rdf"].map((t=>[t,je.XML])),...["yaml","yml","x-yaml"].map((t=>[t,je.YAML])),...["zip"].map((t=>[t,je.ZIP]))]),Ve=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var Xe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xe||(Xe={}));var Je=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qe extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,o=t!==Xe.material||!!this.value;return e.html`
548
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Me(this.slottedElement,this.tooltip,{platform:{...He,getOffsetParent:t=>He.getOffsetParent(t,Ge)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=oe(t,o),c={x:e,y:r},p=await fe(o,s),f=ae(ee(i)),d=ie(f);let h=c[d],u=c[f];if(n){const t="y"===d?"bottom":"right";h=te(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";u=te(u+p["y"===f?"top":"left"],u,u-p[t])}const g=l.fn({...o,[d]:h,[f]:u});return{...g,data:{x:g.x-e,y:g.y-r}}}}),he({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ve.elementDefinitions={"ft-typography":Ho},Ve.styles=Go,qe([r.property()],Ve.prototype,"text",void 0),qe([r.property({type:Boolean})],Ve.prototype,"manual",void 0),qe([r.property({type:Boolean})],Ve.prototype,"inline",void 0),qe([r.property({type:Number})],Ve.prototype,"delay",void 0),qe([r.property()],Ve.prototype,"position",void 0),qe([r.queryAssignedNodes()],Ve.prototype,"slotNodes",void 0),qe([r.query(".ft-tooltip--container")],Ve.prototype,"container",void 0),qe([r.query(".ft-tooltip")],Ve.prototype,"tooltip",void 0),qe([r.query(".ft-tooltip--content")],Ve.prototype,"tooltipContent",void 0),qe([r.state()],Ve.prototype,"visible",void 0),qe([r.eventOptions({passive:!0})],Ve.prototype,"onTouch",null),qe([r.eventOptions({passive:!0})],Ve.prototype,"onHover",null),qe([r.eventOptions({passive:!0})],Ve.prototype,"onOut",null),o.customElement("ft-tooltip")(Ve),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(_e||(_e={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ye||(Ye={}));const Xe=new Map([...["abw"].map((t=>[t,Ye.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ye.AUDIO])),...["avi"].map((t=>[t,Ye.AVI])),...["chm","xhs"].map((t=>[t,Ye.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ye.CODE])),...["csv"].map((t=>[t,Ye.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ye.DITA])),...["epub"].map((t=>[t,Ye.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ye.EXCEL])),...["flac"].map((t=>[t,Ye.FLAC])),...["gif"].map((t=>[t,Ye.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ye.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ye.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ye.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ye.JPEG])),...["json"].map((t=>[t,Ye.JSON])),...["m4a","m4p"].map((t=>[t,Ye.M4A])),...["mov","qt"].map((t=>[t,Ye.MOV])),...["mp3"].map((t=>[t,Ye.MP3])),...["mp4","m4v"].map((t=>[t,Ye.MP4])),...["ogg","oga"].map((t=>[t,Ye.OGG])),...["pdf","ps"].map((t=>[t,Ye.PDF])),...["png"].map((t=>[t,Ye.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ye.POWERPOINT])),...["rar"].map((t=>[t,Ye.RAR])),...["stp"].map((t=>[t,Ye.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ye.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ye.VIDEO])),...["wav"].map((t=>[t,Ye.WAV])),...["wma"].map((t=>[t,Ye.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ye.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ye.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ye.YAML])),...["zip"].map((t=>[t,Ye.ZIP]))]),Je=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var Qe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qe||(Qe={}));var tr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class or extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Qe).includes(this.variant)?this.variant:Qe.fluid_topics,o=t!==Qe.material||!!this.value;return e.html`
549
549
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
550
550
  ${n.unsafeHTML(this.resolvedIcon)}
551
551
  <slot ?hidden=${o}></slot>
552
552
  </i>
553
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case Xe.file_format:this.resolvedIcon=null!==(t=je[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Xe.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Ge[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Qe.elementDefinitions={},Qe.styles=Tt,Je([r.property()],Qe.prototype,"variant",void 0),Je([r.property()],Qe.prototype,"value",void 0),Je([r.state()],Qe.prototype,"resolvedIcon",void 0),Je([r.query("slot")],Qe.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Qe);class tr extends o.FtLitElement{render(){return e.html`
553
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case Qe.file_format:this.resolvedIcon=null!==(t=Ye[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Qe.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=_e[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}or.elementDefinitions={},or.styles=Tt,tr([r.property()],or.prototype,"variant",void 0),tr([r.property()],or.prototype,"value",void 0),tr([r.state()],or.prototype,"resolvedIcon",void 0),tr([r.query("slot")],or.prototype,"slottedContent",void 0),o.customElement("ft-icon")(or);class er extends o.FtLitElement{render(){return e.html`
554
554
  <div class="ft-loader">
555
555
  <div></div>
556
556
  <div></div>
557
557
  <div></div>
558
558
  <div></div>
559
559
  </div>
560
- `}}tr.styles=Dt,o.customElement("ft-loader")(tr);var or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
560
+ `}}er.styles=Dt,o.customElement("ft-loader")(er);var rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
561
561
  <button part="button"
562
562
  class="${i.classMap(this.buttonClasses)}"
563
563
  aria-label="${this.getLabel()}"
@@ -580,7 +580,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
580
580
  </ft-tooltip>
581
581
  `:t}resolveIcon(){return this.loading?e.html`
582
582
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
583
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}er.elementDefinitions={"ft-ripple":Jt,"ft-tooltip":Ye,"ft-typography":Ho,"ft-icon":Qe,"ft-loader":tr},or([r.property({type:String,reflect:!0})],er.prototype,"role",void 0),or([r.property()],er.prototype,"type",void 0),or([r.property({type:Boolean})],er.prototype,"disabled",void 0),or([r.property()],er.prototype,"label",void 0),or([r.property()],er.prototype,"icon",void 0),or([r.property()],er.prototype,"iconVariant",void 0),or([r.property({type:Boolean})],er.prototype,"trailingIcon",void 0),or([r.property({type:Boolean})],er.prototype,"loading",void 0),or([r.property()],er.prototype,"tooltipPosition",void 0),or([r.property({type:Boolean})],er.prototype,"hideTooltip",void 0),or([r.property({type:Boolean})],er.prototype,"forceTooltip",void 0),or([r.query(".ft-button")],er.prototype,"button",void 0),or([r.query(".ft-button--label slot")],er.prototype,"slottedContent",void 0);var rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends er{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ir.styles=[o.safariEllipsisFix,Vt],rr([r.property({type:Boolean})],ir.prototype,"primary",void 0),rr([r.property({type:Boolean})],ir.prototype,"outlined",void 0),rr([r.property({type:Boolean})],ir.prototype,"dense",void 0),rr([r.property({type:Boolean})],ir.prototype,"round",void 0);const nr=[e.css`
583
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ir.elementDefinitions={"ft-ripple":Jt,"ft-tooltip":Ve,"ft-typography":Ho,"ft-icon":or,"ft-loader":er},rr([r.property({type:String,reflect:!0})],ir.prototype,"role",void 0),rr([r.property()],ir.prototype,"type",void 0),rr([r.property({type:Boolean})],ir.prototype,"disabled",void 0),rr([r.property()],ir.prototype,"label",void 0),rr([r.property()],ir.prototype,"icon",void 0),rr([r.property()],ir.prototype,"iconVariant",void 0),rr([r.property({type:Boolean})],ir.prototype,"trailingIcon",void 0),rr([r.property({type:Boolean})],ir.prototype,"loading",void 0),rr([r.property()],ir.prototype,"tooltipPosition",void 0),rr([r.property({type:Boolean})],ir.prototype,"hideTooltip",void 0),rr([r.property({type:Boolean})],ir.prototype,"forceTooltip",void 0),rr([r.query(".ft-button")],ir.prototype,"button",void 0),rr([r.query(".ft-button--label slot")],ir.prototype,"slottedContent",void 0);var nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends ir{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ar.styles=[o.safariEllipsisFix,Vt],nr([r.property({type:Boolean})],ar.prototype,"primary",void 0),nr([r.property({type:Boolean})],ar.prototype,"outlined",void 0),nr([r.property({type:Boolean})],ar.prototype,"dense",void 0),nr([r.property({type:Boolean})],ar.prototype,"round",void 0);const lr=[e.css`
584
584
  :host {
585
585
  display: inline-block;
586
586
  max-width: 100%;
@@ -798,9 +798,11 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
798
798
  width: ${O.smallIconOnlyWidth};
799
799
  padding: unset;
800
800
  }
801
- `,o.noTextSelect];var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends er{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?To.caption1medium:To.body2medium}}lr.styles=[o.safariEllipsisFix,nr],ar([r.property({type:Boolean})],lr.prototype,"primary",void 0),ar([r.property({type:Boolean})],lr.prototype,"secondary",void 0),ar([r.property({type:Boolean})],lr.prototype,"tertiary",void 0),ar([r.property({type:Boolean})],lr.prototype,"neutral",void 0),ar([r.property({type:Boolean})],lr.prototype,"small",void 0),o.customElement("ft-button")(ir),o.customElement("ftds-button")(lr);const sr={height:o.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.FtCssVariableFactory.extend("--ft-search-input-border-radius","",o.designSystemVariables.borderRadiusS),desktopFiltersHeight:o.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),buttonColor:o.FtCssVariableFactory.external(Ht.color,"Button"),buttonRippleColor:o.FtCssVariableFactory.external(Ht.rippleColor,"Button")},cr=e.css`
801
+ `,o.noTextSelect];var sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class cr extends ir{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?To.caption1medium:To.body2medium}}cr.styles=[o.safariEllipsisFix,lr],sr([r.property({type:Boolean})],cr.prototype,"primary",void 0),sr([r.property({type:Boolean})],cr.prototype,"secondary",void 0),sr([r.property({type:Boolean})],cr.prototype,"tertiary",void 0),sr([r.property({type:Boolean})],cr.prototype,"neutral",void 0),sr([r.property({type:Boolean})],cr.prototype,"small",void 0),o.customElement("ft-button")(ar),o.customElement("ftds-button")(cr);const pr={height:o.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:o.FtCssVariableFactory.extend("--ft-search-input-border-radius","",o.designSystemVariables.borderRadiusS),desktopFiltersHeight:o.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.extend("--ft-search-input-background-color","",o.designSystemVariables.colorSurface),colorOnSurface:o.FtCssVariableFactory.extend("--ft-search-input-color","",o.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:o.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",o.designSystemVariables.colorOnSurfaceMedium),colorOutline:o.FtCssVariableFactory.extend("--ft-search-input-outline-color","",o.designSystemVariables.colorOutline),elevation02:o.FtCssVariableFactory.extend("--ft-search-input-elevation","",o.designSystemVariables.elevation02),focusOutlineColor:o.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",o.designSystemVariables.colorPrimary),buttonColor:o.FtCssVariableFactory.extend("--ft-search-input-button-color","",o.designSystemVariables.colorPrimary),buttonRippleColor:o.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",o.designSystemVariables.colorPrimary)},fr=e.css`
802
802
  * {
803
803
  box-sizing: border-box;
804
+ ${o.setVariable(Ht.color,pr.buttonColor)};
805
+ ${o.setVariable(Ht.rippleColor,pr.buttonRippleColor)};
804
806
  }
805
807
 
806
808
  .ft-search-input {
@@ -808,18 +810,18 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
808
810
  display: flex;
809
811
  flex-direction: row;
810
812
  align-items: center;
811
- height: ${sr.height};
813
+ height: ${pr.height};
812
814
 
813
- background: ${sr.colorSurface};
814
- border: 1px solid ${sr.colorOutline};
815
- border-radius: ${sr.borderRadius};
815
+ background: ${pr.colorSurface};
816
+ border: 1px solid ${pr.colorOutline};
817
+ border-radius: ${pr.borderRadius};
816
818
  }
817
819
 
818
820
  .ft-search-input--input-container {
819
- flex-grow: 1;
820
- flex-shrink: 1;
821
821
  position: relative;
822
+ flex: 1;
822
823
  height: calc(100% - 2px);
824
+ min-width: 0;
823
825
  }
824
826
 
825
827
  .ft-search-input--input-outline {
@@ -827,23 +829,24 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
827
829
  width: 100%;
828
830
  display: grid;
829
831
  padding: 0 8px;
830
- border-radius: ${sr.borderRadius};
832
+ border-radius: ${pr.borderRadius};
831
833
  }
832
834
 
833
835
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
834
- outline: 2px solid ${sr.colorPrimary};
836
+ outline: 2px solid ${pr.focusOutlineColor};
835
837
  }
836
838
 
837
839
  .ft-search-input--input {
838
840
  height: 100%;
841
+ width: 100%;
839
842
  border: none;
840
843
  background-color: transparent;
841
- color: ${sr.colorOnSurface};
844
+ color: ${pr.colorOnSurface};
842
845
  outline: none;
843
846
  }
844
847
 
845
848
  .ft-search-input--input::placeholder {
846
- color: ${sr.colorOnSurfaceMedium};
849
+ color: ${pr.colorOnSurfaceMedium};
847
850
  }
848
851
 
849
852
  .ft-search-input--actions {
@@ -853,7 +856,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
853
856
  align-items: center;
854
857
  height: 100%;
855
858
 
856
- ${o.setVariable(Mo.zIndex,`calc(${sr.floatingZIndex} + 1)`)};
859
+ ${o.setVariable(Mo.zIndex,`calc(${pr.floatingZIndex} + 1)`)};
857
860
  }
858
861
 
859
862
  .ft-search-input > ft-button,
@@ -877,31 +880,31 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
877
880
 
878
881
  .ft-search-input--separator {
879
882
  height: 20px;
880
- border-right: 1px solid ${sr.colorOutline};
883
+ border-right: 1px solid ${pr.colorOutline};
881
884
  }
882
- `;var pr,fr,dr,hr,ur,gr,yr,br,mr,xr,vr,Or,Nr,wr;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function s(t){this.map={},t instanceof s?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function f(t){var o=new FileReader,e=p(o);return o.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,o,e,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=p(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}s.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},s.prototype.delete=function(t){delete this.map[n(t)]},s.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},s.prototype.set=function(t,o){this.map[n(t)]=a(o)},s.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},s.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},s.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},s.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,o){var e,r,i=(o=o||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new s(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),u.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new s(o.headers),this.url=o.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function x(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new s,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;i(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),a.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=s,t.Request=g,t.Response=b),o.Headers=s,o.Request=g,o.Response=b,o.fetch=x,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(pr||(pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(fr||(fr={})),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"}(dr||(dr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(hr||(hr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(ur||(ur={})),function(t){t.ASC="ASC",t.DESC="DESC"}(gr||(gr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(yr||(yr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(br||(br={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(mr||(mr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(xr||(xr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vr||(vr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Or||(Or={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Nr||(Nr={})),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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(wr||(wr={})),wr.PERSONAL_BOOK_SHARE_USER,wr.PERSONAL_BOOK_USER,wr.HTML_EXPORT_USER,wr.PERSONAL_BOOK_USER,wr.PDF_EXPORT_USER,wr.PERSONAL_BOOK_USER,wr.KHUB_ADMIN,wr.CONTENT_PUBLISHER,wr.ADMIN,wr.KHUB_ADMIN,wr.USERS_ADMIN,wr.PORTAL_ADMIN,wr.DEVELOPER,wr.BETA_USER,wr.DEBUG_USER;const Sr=e.css`
883
- `,Cr=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class $r{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Cr.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?$r.build(t):null!==(o=$r.API)&&void 0!==o?o:$r.API=$r.build()}static await(t){return new Promise((o=>{let e=$r.get(t);if(e)o(e);else{const r=Cr.subscribe((()=>{e=$r.get(t),e&&(r(),o(e))}))}}))}}var Er;const Ir=Symbol("clearAfterUnitTest");class Rr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Er]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Cr.getState().uiLocale,Cr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Cr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Er=Ir,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Rr((async(t,o)=>(await $r.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Rr((async(t,o)=>(await $r.await()).getCustomMessageContext(t,o))));const Ur=window.FluidTopicsI18nService,kr=window.FluidTopicsCustomI18nService;var Lr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wr extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>$r.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
885
+ `;var dr,hr,ur,gr,yr,br,mr,xr,vr,Or,Nr,wr,Sr,Cr;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function s(t){this.map={},t instanceof s?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function f(t){var o=new FileReader,e=p(o);return o.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,o,e,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=p(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}s.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},s.prototype.delete=function(t){delete this.map[n(t)]},s.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},s.prototype.set=function(t,o){this.map[n(t)]=a(o)},s.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},s.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},s.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},s.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,o){var e,r,i=(o=o||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new s(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),u.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new s(o.headers),this.url=o.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function x(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new s,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;i(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),a.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=s,t.Request=g,t.Response=b),o.Headers=s,o.Request=g,o.Response=b,o.fetch=x,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(dr||(dr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(hr||(hr={})),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"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gr||(gr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mr||(mr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(xr||(xr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vr||(vr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Nr||(Nr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(wr||(wr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Sr||(Sr={})),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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Cr||(Cr={})),Cr.PERSONAL_BOOK_SHARE_USER,Cr.PERSONAL_BOOK_USER,Cr.HTML_EXPORT_USER,Cr.PERSONAL_BOOK_USER,Cr.PDF_EXPORT_USER,Cr.PERSONAL_BOOK_USER,Cr.KHUB_ADMIN,Cr.CONTENT_PUBLISHER,Cr.ADMIN,Cr.KHUB_ADMIN,Cr.USERS_ADMIN,Cr.PORTAL_ADMIN,Cr.DEVELOPER,Cr.BETA_USER,Cr.DEBUG_USER;const $r=e.css`
886
+ `,Er=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Ir{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Er.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?Ir.build(t):null!==(o=Ir.API)&&void 0!==o?o:Ir.API=Ir.build()}static await(t){return new Promise((o=>{let e=Ir.get(t);if(e)o(e);else{const r=Er.subscribe((()=>{e=Ir.get(t),e&&(r(),o(e))}))}}))}}var Rr;const Ur=Symbol("clearAfterUnitTest");class kr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Rr]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Er.getState().uiLocale,Er.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Er.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Rr=Ur,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new kr((async(t,o)=>(await Ir.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new kr((async(t,o)=>(await Ir.await()).getCustomMessageContext(t,o))));const Lr=window.FluidTopicsI18nService,Wr=window.FluidTopicsCustomI18nService;var Kr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ar extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ir.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
884
887
  <slot></slot>
885
- `}update(t){super.update(t),t.has("baseUrl")&&Cr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Cr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Cr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Cr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Cr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Cr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Cr.actions.setSession(this.session),t.has("availableUiLocales")&&Cr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ur.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Wr.elementDefinitions={},Wr.styles=Sr,Lr([r.property()],Wr.prototype,"baseUrl",void 0),Lr([r.property()],Wr.prototype,"apiIntegrationIdentifier",void 0),Lr([r.property()],Wr.prototype,"uiLocale",void 0),Lr([o.jsonProperty([])],Wr.prototype,"availableUiLocales",void 0),Lr([r.property({type:Boolean})],Wr.prototype,"editorMode",void 0),Lr([r.property({type:Boolean})],Wr.prototype,"noCustom",void 0),Lr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Wr.prototype,"noCustomComponent",void 0),Lr([r.property({type:Boolean})],Wr.prototype,"withManualResources",void 0),Lr([o.jsonProperty([])],Wr.prototype,"messageContexts",void 0),Lr([o.jsonProperty(void 0)],Wr.prototype,"session",void 0),Lr([r.property({type:Object})],Wr.prototype,"apiProvider",void 0);class Kr{async listMySearches(){var t;return(null===(t=Cr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await $r.await()).listMySearches(Cr.getState().session.profile.userId):[]}}const Ar=new o.CacheRegistry;class Zr{async listMyBookmarks(){return Ar.get("bookmarks",(async()=>(await $r.await()).listMyBookmarks(Cr.getState().session.profile.userId)))}clearCache(){Ar.clear("bookmarks")}}const zr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Cr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zr,Cr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Cr.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){zr.actions.savedSearches(void 0)}clearMyBookmarks(){zr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Kr,o=await t.listMySearches();zr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;zr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Wr);class Br extends Event{constructor(){super(Br.eventName)}}Br.eventName="search-context-clear-all-filters";var Dr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Fr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Tr=Symbol("registerInterval");class Pr extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Tr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Tr]):this.dispatchEvent(new Fr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Tr,Dr([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const Hr=e.css`
886
- `;var Mr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Gr=Symbol("i18nProperties"),jr=Symbol("i18nUnsubs");function _r(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?kr:Ur}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var o;null===(o=this[Gr])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[Gr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Gr]&&new Set([...this[Gr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[jr].has(t)||this[jr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[jr].forEach((t=>t())),this[jr].clear()}}return o=jr,Mr([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Yr extends(_r(o.FtLitElement)){}class qr extends(_r(o.FtLitElementRedux)){}var Vr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xr extends qr{constructor(){super(),this.editorMode=!1,this.addStore(Cr)}render(){return this.key&&this.context?e.html`
888
+ `}update(t){super.update(t),t.has("baseUrl")&&Er.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Er.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Er.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Er.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Er.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Er.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Er.actions.setSession(this.session),t.has("availableUiLocales")&&Er.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Lr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Ar.elementDefinitions={},Ar.styles=$r,Kr([r.property()],Ar.prototype,"baseUrl",void 0),Kr([r.property()],Ar.prototype,"apiIntegrationIdentifier",void 0),Kr([r.property()],Ar.prototype,"uiLocale",void 0),Kr([o.jsonProperty([])],Ar.prototype,"availableUiLocales",void 0),Kr([r.property({type:Boolean})],Ar.prototype,"editorMode",void 0),Kr([r.property({type:Boolean})],Ar.prototype,"noCustom",void 0),Kr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ar.prototype,"noCustomComponent",void 0),Kr([r.property({type:Boolean})],Ar.prototype,"withManualResources",void 0),Kr([o.jsonProperty([])],Ar.prototype,"messageContexts",void 0),Kr([o.jsonProperty(void 0)],Ar.prototype,"session",void 0),Kr([r.property({type:Object})],Ar.prototype,"apiProvider",void 0);class Zr{async listMySearches(){var t;return(null===(t=Er.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ir.await()).listMySearches(Er.getState().session.profile.userId):[]}}const zr=new o.CacheRegistry;class Br{async listMyBookmarks(){return zr.get("bookmarks",(async()=>(await Ir.await()).listMyBookmarks(Er.getState().session.profile.userId)))}clearCache(){zr.clear("bookmarks")}}const Dr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Er.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Br,Er.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Er.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Dr.actions.savedSearches(void 0)}clearMyBookmarks(){Dr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Zr,o=await t.listMySearches();Dr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Dr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Ar);class Fr extends Event{constructor(){super(Fr.eventName)}}Fr.eventName="search-context-clear-all-filters";var Tr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Pr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Hr=Symbol("registerInterval");class Mr extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Hr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Hr]):this.dispatchEvent(new Pr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Hr,Tr([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const Gr=e.css`
889
+ `;var jr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const _r=Symbol("i18nProperties"),Yr=Symbol("i18nUnsubs");function qr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Wr:Lr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var o;null===(o=this[_r])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[_r])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[_r]&&new Set([...this[_r].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Yr].has(t)||this[Yr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[Yr].forEach((t=>t())),this[Yr].clear()}}return o=Yr,jr([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Vr extends(qr(o.FtLitElement)){}class Xr extends(qr(o.FtLitElementRedux)){}var Jr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qr extends Xr{constructor(){super(),this.editorMode=!1,this.addStore(Er)}render(){return this.key&&this.context?e.html`
887
890
  <span class="ft-i18n">
888
891
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
889
892
  </span>
890
- `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}Xr.elementDefinitions={},Xr.styles=Hr,Vr([o.redux()],Xr.prototype,"editorMode",void 0),Vr([r.property()],Xr.prototype,"context",void 0),Vr([r.property()],Xr.prototype,"key",void 0),Vr([o.jsonProperty([])],Xr.prototype,"args",void 0),Vr([r.property()],Xr.prototype,"defaultMessage",void 0);class Jr{static build(t){return new Jr(t)}static fromGwt(t){return new Jr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Ur.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(Xr);const Qr=Jr.build("designedSearchInput"),ti=e.css`
893
+ `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}Qr.elementDefinitions={},Qr.styles=Gr,Jr([o.redux()],Qr.prototype,"editorMode",void 0),Jr([r.property()],Qr.prototype,"context",void 0),Jr([r.property()],Qr.prototype,"key",void 0),Jr([o.jsonProperty([])],Qr.prototype,"args",void 0),Jr([r.property()],Qr.prototype,"defaultMessage",void 0);class ti{static build(t){return new ti(t)}static fromGwt(t){return new ti(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Lr.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(Qr);const oi=ti.build("designedSearchInput"),ei=e.css`
891
894
  * {
892
895
  box-sizing: border-box;
893
896
  }
894
897
 
895
898
  .ft-search-input-suggestion {
896
899
  position: absolute;
897
- z-index: ${sr.floatingZIndex};
900
+ z-index: ${pr.floatingZIndex};
898
901
  top: calc(100% + 2px);
899
902
  left: -1px;
900
903
  right: -1px;
901
- background: ${sr.colorSurface};
902
- border: 1px solid ${sr.colorOutline};
903
- border-radius: 0 0 ${sr.borderRadius} ${sr.borderRadius};
904
- box-shadow: ${sr.elevation02};
904
+ background: ${pr.colorSurface};
905
+ border: 1px solid ${pr.colorOutline};
906
+ border-radius: 0 0 ${pr.borderRadius} ${pr.borderRadius};
907
+ box-shadow: ${pr.elevation02};
905
908
  }
906
909
 
907
910
  .ft-search-input-suggestion--suggestion {
@@ -912,7 +915,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
912
915
  padding: 8px;
913
916
  gap: 8px;
914
917
  cursor: pointer;
915
- color: ${sr.colorOnSurface};
918
+ color: ${pr.colorOnSurface};
916
919
  min-height: 44px;
917
920
  }
918
921
 
@@ -929,7 +932,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
929
932
  flex-grow: 1;
930
933
  flex-shrink: 1;
931
934
  }
932
- `;var oi=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ei extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let ri=class extends Pr{render(){return e.html`
935
+ `;var ri=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ii extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let ni=class extends Mr{render(){return e.html`
933
936
  <div class="ft-search-input-suggestion ft-word-wrap"
934
937
  part="container"
935
938
  @keydown=${t=>this.onSuggestKeyDown(t)}>
@@ -945,16 +948,16 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
945
948
  </a>
946
949
  `))}
947
950
  </div>
948
- `}onSuggestKeyDown(t){var o,e,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(e=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,o){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,o)}onSuggestSelected(t,o){t.preventDefault(),this.dispatchEvent(new ei(o))}getIcon(t){const o="DOCUMENT"===t.type?Xe.file_format:Xe.fluid_topics;let r;switch(t.type){case"MAP":r="BOOK"===t.editorialType?Ge.BOOK:Ge.ARTICLE;break;case"DOCUMENT":r=function(t,o){var e,r,i,n;t=(null!=t?t:"").toLowerCase(),o=(null!=o?o:"").toLowerCase();const[a,l]=((null!==(e=Ve.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=qe.get(l))&&void 0!==r?r:qe.get(o))&&void 0!==i?i:qe.get(a))&&void 0!==n?n:je.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":r=Ge.TOPICS}return e.html`
951
+ `}onSuggestKeyDown(t){var o,e,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(e=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,o){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,o)}onSuggestSelected(t,o){t.preventDefault(),this.dispatchEvent(new ii(o))}getIcon(t){const o="DOCUMENT"===t.type?Qe.file_format:Qe.fluid_topics;let r;switch(t.type){case"MAP":r="BOOK"===t.editorialType?_e.BOOK:_e.ARTICLE;break;case"DOCUMENT":r=function(t,o){var e,r,i,n;t=(null!=t?t:"").toLowerCase(),o=(null!=o?o:"").toLowerCase();const[a,l]=((null!==(e=Je.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=Xe.get(l))&&void 0!==r?r:Xe.get(o))&&void 0!==i?i:Xe.get(a))&&void 0!==n?n:Ye.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":r=_e.TOPICS}return e.html`
949
952
  <ft-icon .variant="${o}" .value="${r}" part="suggestion-icon"></ft-icon>
950
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};ri.elementDefinitions={"ft-ripple":Jt,"ft-typography":Ho,"ft-icon":Qe},ri.styles=[o.wordWrap,ti],oi([o.redux()],ri.prototype,"suggestResults",void 0),ri=oi([r.customElement("ft-search-input-suggestion")],ri);var ii=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ni extends(_r(Pr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Qr)}render(){var t,o;let r={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(o=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==o&&o,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
953
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};ni.elementDefinitions={"ft-ripple":Jt,"ft-typography":Ho,"ft-icon":or},ni.styles=[o.wordWrap,ei],ri([o.redux()],ni.prototype,"suggestResults",void 0),ni=ri([r.customElement("ft-search-input-suggestion")],ni);var ai=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class li extends(qr(Mr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(oi)}render(){var t,o;let r={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(o=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==o&&o,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
951
954
  <div class="${i.classMap(r)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
952
955
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
953
956
  <div class="ft-search-input--input-outline" part="input-outline">
954
957
  <input class="ft-search-input--input ft-typography--body2"
955
958
  part="input"
956
959
  type="text"
957
- placeholder="${Qr.messages.placeholder()}"
960
+ placeholder="${oi.messages.placeholder()}"
958
961
  .value="${this.liveQuery}"
959
962
  @keydown=${t=>this.onSearchBarKeyDown(t)}
960
963
  @keyup=${t=>this.onSearchBarKeyUp(t)}>
@@ -970,7 +973,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
970
973
  part="clear-query"
971
974
  icon="close"
972
975
  round dense
973
- label="${Qr.messages.clearButton()}"
976
+ label="${oi.messages.clearButton()}"
974
977
  @click=${()=>this.liveQuery=""}
975
978
  ></ft-button>
976
979
  <div class="ft-search-input--separator"></div>
@@ -979,9 +982,9 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
979
982
  part="launch-search-in-input"
980
983
  icon="search"
981
984
  round dense
982
- label="${Qr.messages.searchButton()}"
985
+ label="${oi.messages.searchButton()}"
983
986
  @click=${()=>this.launchSearch()}
984
987
  ></ft-button>
985
988
  </div>
986
989
  </div>
987
- `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var o,e;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(o=this.stateManager)||void 0===o||o.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var o;null===(o=this.stateManager)||void 0===o||o.setQuery(t.detail),this.forceCloseSuggestion=!0}}ni.elementDefinitions={"ft-search-input-suggestion":ri,"ft-button":ir},ni.styles=[kt,cr],ii([o.redux()],ni.prototype,"request",void 0),ii([o.redux()],ni.prototype,"liveQuery",void 0),ii([o.redux()],ni.prototype,"suggestResults",void 0),ii([r.state()],ni.prototype,"forceCloseSuggestion",void 0),ii([r.query(".ft-search-input--input")],ni.prototype,"input",void 0),ii([r.query("ft-search-input-suggestion")],ni.prototype,"suggestion",void 0),o.customElement("ft-search-input")(ni),t.FtSearchInput=ni,t.FtSearchInputCssVariables=sr,t.styles=cr}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
990
+ `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var o,e;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(o=this.stateManager)||void 0===o||o.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var o;null===(o=this.stateManager)||void 0===o||o.setQuery(t.detail),this.forceCloseSuggestion=!0}}li.elementDefinitions={"ft-search-input-suggestion":ni,"ft-button":ar},li.styles=[kt,fr],ai([o.redux()],li.prototype,"request",void 0),ai([o.redux()],li.prototype,"liveQuery",void 0),ai([o.redux()],li.prototype,"suggestResults",void 0),ai([r.state()],li.prototype,"forceCloseSuggestion",void 0),ai([r.query(".ft-search-input--input")],li.prototype,"input",void 0),ai([r.query("ft-search-input-suggestion")],li.prototype,"suggestion",void 0),o.customElement("ft-search-input")(li),t.FtSearchInput=li,t.FtSearchInputCssVariables=pr,t.styles=fr}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);