@fluid-topics/ft-combobox 2.2.9 → 2.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,7 @@
1
- "use strict";(()=>{var Wc=Object.create;var fo=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var qc=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty;var zt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Xc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Gc(e))!Yc.call(t,n)&&n!==r&&fo(t,n,{get:()=>e[n],enumerable:!(i=Kc(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Wc(qc(t)):{},Xc(e||!t||!t.__esModule?fo(r,"default",{value:t,enumerable:!0}):r,t));var S=zt((Nd,ho)=>{ho.exports=ftGlobals.wcUtils});var z=zt((kd,mo)=>{mo.exports=ftGlobals.lit});var re=zt((Id,go)=>{go.exports=ftGlobals.litDecorators});var rn=zt((Md,yo)=>{yo.exports=ftGlobals.litRepeat});var it=zt(($d,bo)=>{bo.exports=ftGlobals.litClassMap});var bs=zt((Gp,ys)=>{ys.exports=ftGlobals.litUnsafeHTML});var Hc=f(S());var xe=f(z()),B=f(re()),po=f(rn()),tn=f(it());var un=globalThis,xo=t=>t,zr=un.trustedTypes,vo=zr?zr.createPolicy("lit-html",{createHTML:t=>t}):void 0,wo="$lit$",nt=`lit$${Math.random().toFixed(9).slice(2)}$`,To="?"+nt,Zc=`<${To}>`,yt=document,jr=()=>yt.createComment(""),dr=t=>t===null||typeof t!="object"&&typeof t!="function",dn=Array.isArray,Jc=t=>dn(t)||typeof t?.[Symbol.iterator]=="function",nn=`[
2
- \f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,So=/-->/g,Eo=/>/g,mt=RegExp(`>|${nn}(?:([^\\s"'>=/]+)(${nn}*=${nn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ao=/'/g,_o=/"/g,Oo=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ro=pn(1),Lo=pn(2),Po=pn(3),pr=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Co=new WeakMap,gt=yt.createTreeWalker(yt,129);function Do(t,e){if(!dn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return vo!==void 0?vo.createHTML(e):e}var Qc=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=ur;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===ur?u[1]==="!--"?s=So:u[1]!==void 0?s=Eo:u[2]!==void 0?(Oo.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=mt):u[3]!==void 0&&(s=mt):s===mt?u[0]===">"?(s=n??ur,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?mt:u[3]==='"'?_o:Ao):s===_o||s===Ao?s=mt:s===So||s===Eo?s=ur:(s=mt,n=void 0);let g=s===mt&&t[a+1].startsWith("/>")?" ":"";o+=s===ur?l+Zc:d>=0?(i.push(c),l.slice(0,d)+wo+l.slice(d)+nt+g):l+nt+(d===-2?a:g)}return[Do(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},fr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=Qc(e,r);if(this.el=t.createElement(c,i),gt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=gt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(wo)){let p=u[s++],g=n.getAttribute(d).split(nt),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?an:x[1]==="@"?ln:Wt}),n.removeAttribute(d)}else d.startsWith(nt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Oo.test(n.tagName)){let d=n.textContent.split(nt),p=d.length-1;if(p>0){n.textContent=zr?zr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],jr()),gt.nextNode(),l.push({type:2,index:++o});n.append(d[p],jr())}}}else if(n.nodeType===8)if(n.data===To)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(nt,d+1))!==-1;)l.push({type:7,index:o}),d+=nt.length-1}o++}}static createElement(e,r){let i=yt.createElement("template");return i.innerHTML=e,i}};function jt(t,e,r=t,i){if(e===pr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=dr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=jt(t,n._$AS(t,e.values),n,i)),e}var on=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??yt).importNode(r,!0);gt.currentNode=n;let o=gt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Wr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new cn(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=gt.nextNode(),s++)}return gt.currentNode=yt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Wr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=jt(this,e,r),dr(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==pr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Jc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&dr(this._$AH)?this._$AA.nextSibling.data=e:this.T(yt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=fr.createElement(Do(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new on(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=Co.get(e.strings);return r===void 0&&Co.set(e.strings,r=new fr(e)),r}k(e){dn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(jr()),this.O(jr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=xo(e).nextSibling;xo(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Wt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=jt(this,e,r,0),s=!dr(e)||e!==this._$AH&&e!==pr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=jt(this,a[i+l],r,l),c===pr&&(c=this._$AH[l]),s||=!dr(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Wt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},an=class extends Wt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},ln=class extends Wt{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=jt(this,e,r,0)??Q)===pr)return;let i=this._$AH,n=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Q&&(i===Q||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jt(this,e)}};var eu=un.litHtmlPolyfillSupport;eu?.(fr,Wr),(un.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??Q;function hr(t,e,r){return t?e(t):r?.(t)}var Le=f(S());var Ps=f(z()),fe=f(S());var zo=f(z()),W=f(S());var De=f(z()),h=f(S()),No=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Ze=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Ze,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},bt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},xt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",No),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},ve={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Ve={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ze),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},ko=De.css`
1
+ "use strict";(()=>{var Kc=Object.create;var ho=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var qc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Wt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Zc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qc(e))!Xc.call(t,n)&&n!==r&&ho(t,n,{get:()=>e[n],enumerable:!(i=Gc(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Kc(Yc(t)):{},Zc(e||!t||!t.__esModule?ho(r,"default",{value:t,enumerable:!0}):r,t));var S=Wt((kd,mo)=>{mo.exports=ftGlobals.wcUtils});var z=Wt((Id,go)=>{go.exports=ftGlobals.lit});var ie=Wt((Md,yo)=>{yo.exports=ftGlobals.litDecorators});var rn=Wt(($d,bo)=>{bo.exports=ftGlobals.litRepeat});var ot=Wt((Ud,xo)=>{xo.exports=ftGlobals.litClassMap});var xs=Wt((qp,bs)=>{bs.exports=ftGlobals.litUnsafeHTML});var zc=f(S());var Se=f(z()),B=f(ie()),fo=f(rn()),tn=f(ot());var un=globalThis,vo=t=>t,jr=un.trustedTypes,So=jr?jr.createPolicy("lit-html",{createHTML:t=>t}):void 0,To="$lit$",st=`lit$${Math.random().toFixed(9).slice(2)}$`,Oo="?"+st,Jc=`<${Oo}>`,xt=document,Wr=()=>xt.createComment(""),fr=t=>t===null||typeof t!="object"&&typeof t!="function",dn=Array.isArray,Qc=t=>dn(t)||typeof t?.[Symbol.iterator]=="function",nn=`[
2
+ \f\r]`,pr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eo=/-->/g,Ao=/>/g,yt=RegExp(`>|${nn}(?:([^\\s"'>=/]+)(${nn}*=${nn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_o=/'/g,Co=/"/g,Ro=/^(?:script|style|textarea|title)$/i,pn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Lo=pn(1),Po=pn(2),Do=pn(3),hr=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),wo=new WeakMap,bt=xt.createTreeWalker(xt,129);function No(t,e){if(!dn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return So!==void 0?So.createHTML(e):e}var eu=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=pr;for(let a=0;a<r;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===pr?u[1]==="!--"?s=Eo:u[1]!==void 0?s=Ao:u[2]!==void 0?(Ro.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=n??pr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?Co:_o):s===Co||s===_o?s=yt:s===Eo||s===Ao?s=pr:(s=yt,n=void 0);let g=s===yt&&t[a+1].startsWith("/>")?" ":"";o+=s===pr?l+Jc:d>=0?(i.push(c),l.slice(0,d)+To+l.slice(d)+st+g):l+st+(d===-2?a:g)}return[No(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},mr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=eu(e,r);if(this.el=t.createElement(c,i),bt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=bt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(To)){let p=u[s++],g=n.getAttribute(d).split(st),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?sn:x[1]==="?"?an:x[1]==="@"?ln:Gt}),n.removeAttribute(d)}else d.startsWith(st)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Ro.test(n.tagName)){let d=n.textContent.split(st),p=d.length-1;if(p>0){n.textContent=jr?jr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Wr()),bt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Wr())}}}else if(n.nodeType===8)if(n.data===Oo)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(st,d+1))!==-1;)l.push({type:7,index:o}),d+=st.length-1}o++}}static createElement(e,r){let i=xt.createElement("template");return i.innerHTML=e,i}};function Kt(t,e,r=t,i){if(e===hr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=fr(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,i)),e}var on=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??xt).importNode(r,!0);bt.currentNode=n;let o=bt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Kr(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new cn(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=bt.nextNode(),s++)}return bt.currentNode=xt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Kr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Kt(this,e,r),fr(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==hr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Q&&fr(this._$AH)?this._$AA.nextSibling.data=e:this.T(xt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=mr.createElement(No(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new on(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=wo.get(e.strings);return r===void 0&&wo.set(e.strings,r=new mr(e)),r}k(e){dn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(Wr()),this.O(Wr()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=vo(e).nextSibling;vo(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,r,0),s=!fr(e)||e!==this._$AH&&e!==hr,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[i+l],r,l),c===hr&&(c=this._$AH[l]),s||=!fr(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},an=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},ln=class extends Gt{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Kt(this,e,r,0)??Q)===hr)return;let i=this._$AH,n=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Q&&(i===Q||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},cn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var tu=un.litHtmlPolyfillSupport;tu?.(mr,Kr),(un.litHtmlVersions??=[]).push("3.3.3");var pe=t=>t??Q;function gr(t,e,r){return t?e(t):r?.(t)}var Pe=f(S());var Dc=f(z()),he=f(S());var jo=f(z()),W=f(S());var Ne=f(z()),h=f(S()),ko=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Je=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Je,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},vt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ko),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ko),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Et={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Ve={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Je),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Io=Ne.css`
4
4
  .ft-typography--title {
5
- font-family: ${bt.fontFamily};
6
- font-size: ${bt.fontSize};
7
- font-weight: ${bt.fontWeight};
8
- letter-spacing: ${bt.letterSpacing};
9
- line-height: ${bt.lineHeight};
10
- text-transform: ${bt.textTransform};
11
- text-decoration: ${bt.textDecoration};
12
- }
13
- `,Io=De.css`
14
- .ft-typography--title-dense {
15
- font-family: ${xt.fontFamily};
16
- font-size: ${xt.fontSize};
17
- font-weight: ${xt.fontWeight};
18
- letter-spacing: ${xt.letterSpacing};
19
- line-height: ${xt.lineHeight};
20
- text-transform: ${xt.textTransform};
21
- text-decoration: ${xt.textDecoration};
22
- }
23
- `,Mo=De.css`
24
- .ft-typography--subtitle1 {
25
5
  font-family: ${vt.fontFamily};
26
6
  font-size: ${vt.fontSize};
27
7
  font-weight: ${vt.fontWeight};
@@ -30,8 +10,8 @@
30
10
  text-transform: ${vt.textTransform};
31
11
  text-decoration: ${vt.textDecoration};
32
12
  }
33
- `,$o=De.css`
34
- .ft-typography--subtitle2 {
13
+ `,Mo=Ne.css`
14
+ .ft-typography--title-dense {
35
15
  font-family: ${St.fontFamily};
36
16
  font-size: ${St.fontSize};
37
17
  font-weight: ${St.fontWeight};
@@ -40,39 +20,8 @@
40
20
  text-transform: ${St.textTransform};
41
21
  text-decoration: ${St.textDecoration};
42
22
  }
43
-
44
- `,Kt=De.css`
45
- .ft-typography--body1 {
46
- font-family: ${We.fontFamily};
47
- font-size: ${We.fontSize};
48
- font-weight: ${We.fontWeight};
49
- letter-spacing: ${We.letterSpacing};
50
- line-height: ${We.lineHeight};
51
- text-transform: ${We.textTransform};
52
- text-decoration: ${We.textDecoration};
53
- }
54
- `,Uo=De.css`
55
- .ft-typography--body2 {
56
- font-family: ${_e.fontFamily};
57
- font-size: ${_e.fontSize};
58
- font-weight: ${_e.fontWeight};
59
- letter-spacing: ${_e.letterSpacing};
60
- line-height: ${_e.lineHeight};
61
- text-transform: ${_e.textTransform};
62
- text-decoration: ${_e.textDecoration};
63
- }
64
- `,Kr=De.css`
65
- .ft-typography--caption {
66
- font-family: ${ve.fontFamily};
67
- font-size: ${ve.fontSize};
68
- font-weight: ${ve.fontWeight};
69
- letter-spacing: ${ve.letterSpacing};
70
- line-height: ${ve.lineHeight};
71
- text-transform: ${ve.textTransform};
72
- text-decoration: ${ve.textDecoration};
73
- }
74
- `,Vo=De.css`
75
- .ft-typography--breadcrumb {
23
+ `,$o=Ne.css`
24
+ .ft-typography--subtitle1 {
76
25
  font-family: ${Et.fontFamily};
77
26
  font-size: ${Et.fontSize};
78
27
  font-weight: ${Et.fontWeight};
@@ -81,8 +30,8 @@
81
30
  text-transform: ${Et.textTransform};
82
31
  text-decoration: ${Et.textDecoration};
83
32
  }
84
- `,Fo=De.css`
85
- .ft-typography--overline {
33
+ `,Uo=Ne.css`
34
+ .ft-typography--subtitle2 {
86
35
  font-family: ${At.fontFamily};
87
36
  font-size: ${At.fontSize};
88
37
  font-weight: ${At.fontWeight};
@@ -91,7 +40,58 @@
91
40
  text-transform: ${At.textTransform};
92
41
  text-decoration: ${At.textDecoration};
93
42
  }
94
- `,Bo=De.css`
43
+
44
+ `,qt=Ne.css`
45
+ .ft-typography--body1 {
46
+ font-family: ${We.fontFamily};
47
+ font-size: ${We.fontSize};
48
+ font-weight: ${We.fontWeight};
49
+ letter-spacing: ${We.letterSpacing};
50
+ line-height: ${We.lineHeight};
51
+ text-transform: ${We.textTransform};
52
+ text-decoration: ${We.textDecoration};
53
+ }
54
+ `,Vo=Ne.css`
55
+ .ft-typography--body2 {
56
+ font-family: ${we.fontFamily};
57
+ font-size: ${we.fontSize};
58
+ font-weight: ${we.fontWeight};
59
+ letter-spacing: ${we.letterSpacing};
60
+ line-height: ${we.lineHeight};
61
+ text-transform: ${we.textTransform};
62
+ text-decoration: ${we.textDecoration};
63
+ }
64
+ `,Gr=Ne.css`
65
+ .ft-typography--caption {
66
+ font-family: ${Ee.fontFamily};
67
+ font-size: ${Ee.fontSize};
68
+ font-weight: ${Ee.fontWeight};
69
+ letter-spacing: ${Ee.letterSpacing};
70
+ line-height: ${Ee.lineHeight};
71
+ text-transform: ${Ee.textTransform};
72
+ text-decoration: ${Ee.textDecoration};
73
+ }
74
+ `,Fo=Ne.css`
75
+ .ft-typography--breadcrumb {
76
+ font-family: ${_t.fontFamily};
77
+ font-size: ${_t.fontSize};
78
+ font-weight: ${_t.fontWeight};
79
+ letter-spacing: ${_t.letterSpacing};
80
+ line-height: ${_t.lineHeight};
81
+ text-transform: ${_t.textTransform};
82
+ text-decoration: ${_t.textDecoration};
83
+ }
84
+ `,Bo=Ne.css`
85
+ .ft-typography--overline {
86
+ font-family: ${Ct.fontFamily};
87
+ font-size: ${Ct.fontSize};
88
+ font-weight: ${Ct.fontWeight};
89
+ letter-spacing: ${Ct.letterSpacing};
90
+ line-height: ${Ct.lineHeight};
91
+ text-transform: ${Ct.textTransform};
92
+ text-decoration: ${Ct.textDecoration};
93
+ }
94
+ `,Ho=Ne.css`
95
95
  .ft-typography--button {
96
96
  font-family: ${Ve.fontFamily};
97
97
  font-size: ${Ve.fontSize};
@@ -101,11 +101,11 @@
101
101
  text-transform: ${Ve.textTransform};
102
102
  text-decoration: ${Ve.textDecoration};
103
103
  }
104
- `,Ho=De.css`
104
+ `,zo=Ne.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
108
- `;var E={fontSize:W.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:W.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:W.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:W.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:W.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:W.FtCssVariableFactory.extend("--ft-input-label-border-color","",W.designSystemVariables.colorOutline),textColor:W.FtCssVariableFactory.extend("--ft-input-label-text-color","",W.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:W.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",W.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:W.FtCssVariableFactory.extend("--ft-input-label-background-color","",W.designSystemVariables.colorSurface),borderRadius:W.FtCssVariableFactory.extend("--ft-input-label-border-radius","",W.designSystemVariables.borderRadiusS),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},jo=zo.css`
108
+ `;var E={fontSize:W.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:W.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:W.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:W.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:W.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:W.FtCssVariableFactory.extend("--ft-input-label-border-color","",W.designSystemVariables.colorOutline),textColor:W.FtCssVariableFactory.extend("--ft-input-label-text-color","",W.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:W.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",W.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:W.FtCssVariableFactory.extend("--ft-input-label-background-color","",W.designSystemVariables.colorSurface),borderRadius:W.FtCssVariableFactory.extend("--ft-input-label-border-radius","",W.designSystemVariables.borderRadiusS),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},Wo=jo.css`
109
109
  .ft-input-label {
110
110
  position: absolute;
111
111
  inset: 0;
@@ -156,8 +156,8 @@
156
156
  transition: font-size 250ms, line-height 250ms, color 250ms;
157
157
  max-width: calc(${E.labelMaxWidth} - 2 * (${E.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
158
158
  text-overflow: ellipsis;
159
- ${(0,W.setVariable)(ve.fontSize,E.fontSize)};
160
- ${(0,W.setVariable)(ve.lineHeight,E.fontSize)};
159
+ ${(0,W.setVariable)(Ee.fontSize,E.fontSize)};
160
+ ${(0,W.setVariable)(Ee.lineHeight,E.fontSize)};
161
161
  }
162
162
 
163
163
  .ft-input-label--in-error .ft-input-label--text {
@@ -177,7 +177,7 @@
177
177
 
178
178
  .ft-input-label--floating-text {
179
179
  position: absolute;
180
- top: calc(50% - ${ve.lineHeight} / 2);
180
+ top: calc(50% - ${Ee.lineHeight} / 2);
181
181
  transition: top 250ms;
182
182
  overflow: hidden;
183
183
  white-space: nowrap;
@@ -189,8 +189,8 @@
189
189
  }
190
190
 
191
191
  .ft-input-label--raised .ft-input-label--text {
192
- ${(0,W.setVariable)(ve.fontSize,E.raisedFontSize)};
193
- ${(0,W.setVariable)(ve.lineHeight,E.raisedFontSize)};
192
+ ${(0,W.setVariable)(Ee.fontSize,E.raisedFontSize)};
193
+ ${(0,W.setVariable)(Ee.lineHeight,E.raisedFontSize)};
194
194
  }
195
195
 
196
196
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -221,13 +221,13 @@
221
221
  z-index: ${E.raisedZIndex};
222
222
  background-color: ${E.backgroundColor};
223
223
  border-radius: ${E.borderRadius};
224
- top: calc((${ve.lineHeight} / -2) + 2px);
224
+ top: calc((${Ee.lineHeight} / -2) + 2px);
225
225
  }
226
226
 
227
227
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
228
228
  border-top: none;
229
229
  }
230
- `;var Gr=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},qr=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Yr=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var es=f(z()),A=f(S());var Xo=f(z()),ee=f(S()),Wo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorContent),se={color:Wo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wo),opacityContentOnSurfacePressed:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ko=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorPrimary),Go={color:Ko,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ko)},qo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorSecondary),Yo={color:qo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",qo)},Zo=Xo.css`
230
+ `;var qr=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Yr=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Xr=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var ts=f(z()),A=f(S());var Zo=f(z()),ee=f(S()),Ko=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorContent),se={color:Ko,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ko),opacityContentOnSurfacePressed:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ee.FtCssVariableFactory.external(ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Go=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorPrimary),qo={color:Go,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Go)},Yo=ee.FtCssVariableFactory.extend("--ft-ripple-color","",ee.designSystemVariables.colorSecondary),Xo={color:Yo,backgroundColor:ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Yo)},Jo=Zo.css`
231
231
  :host {
232
232
  display: contents;
233
233
  }
@@ -282,19 +282,19 @@
282
282
  }
283
283
 
284
284
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
285
- background-color: ${Yo.backgroundColor};
285
+ background-color: ${Xo.backgroundColor};
286
286
  }
287
287
 
288
288
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
289
- background-color: ${Yo.color};
289
+ background-color: ${Xo.color};
290
290
  }
291
291
 
292
292
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
293
- background-color: ${Go.backgroundColor};
293
+ background-color: ${qo.backgroundColor};
294
294
  }
295
295
 
296
296
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
297
- background-color: ${Go.color};
297
+ background-color: ${qo.color};
298
298
  }
299
299
 
300
300
  .ft-ripple .ft-ripple--background {
@@ -339,7 +339,7 @@
339
339
  opacity: ${se.opacityContentOnSurfacePressed};
340
340
  transform: translate(-50%, -50%) scale(1);
341
341
  }
342
- `;var Jo=f(z()),Fe=f(S()),le={size:Fe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Fe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Qo=[Jo.css`
342
+ `;var Qo=f(z()),Fe=f(S()),le={size:Fe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Fe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Fe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Fe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},es=[Qo.css`
343
343
  :host, i.ft-icon {
344
344
  display: inline-flex;
345
345
  align-items: center;
@@ -387,7 +387,7 @@
387
387
  .ft-icon--material {
388
388
  font-family: ${le.materialFontFamily}, "Material Icons", sans-serif;
389
389
  }
390
- `,Fe.noTextSelect];var C={fontSize:A.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:A.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:A.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:A.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:A.FtCssVariableFactory.extend("--ft-text-field-helper-color","",A.designSystemVariables.colorOnSurfaceMedium),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:A.FtCssVariableFactory.external(A.designSystemVariables.borderRadiusS,"Design system"),colorError:A.FtCssVariableFactory.external(A.designSystemVariables.colorError,"Design system"),prefixColor:A.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",A.designSystemVariables.colorOnSurfaceMedium),iconColor:A.FtCssVariableFactory.extend("--ft-text-field-icon-color","",A.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:A.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:A.FtCssVariableFactory.extend("--ft-text-field-background-color","",A.designSystemVariables.colorSurface),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),suggestSize:A.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},ts=es.css`
390
+ `,Fe.noTextSelect];var C={fontSize:A.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:A.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:A.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:A.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:A.FtCssVariableFactory.extend("--ft-text-field-helper-color","",A.designSystemVariables.colorOnSurfaceMedium),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:A.FtCssVariableFactory.external(A.designSystemVariables.borderRadiusS,"Design system"),colorError:A.FtCssVariableFactory.external(A.designSystemVariables.colorError,"Design system"),prefixColor:A.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",A.designSystemVariables.colorOnSurfaceMedium),iconColor:A.FtCssVariableFactory.extend("--ft-text-field-icon-color","",A.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:A.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:A.FtCssVariableFactory.extend("--ft-text-field-background-color","",A.designSystemVariables.colorSurface),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),suggestSize:A.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},rs=ts.css`
391
391
  *:focus {
392
392
  outline: none;
393
393
  }
@@ -546,7 +546,7 @@
546
546
  .ft-text-field--with-password ft-icon:hover {
547
547
  cursor: pointer;
548
548
  }
549
- `;var ne=f(z()),N=f(re()),Ts=f(rn()),Os=f(it());var me=f(S());var is=Symbol.for(""),tu=t=>{if(t?.r===is)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:is});var rs=new Map,hn=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=tu(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let d=s.join("$$lit$$");(e=rs.get(d))===void 0&&(s.raw=s,rs.set(d,e=s)),r=a}return t(e,...r)},mn=hn(Ro),np=hn(Lo),op=hn(Po);var gn=f(re()),os=f(S());var Ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(Ce||(Ce={}));var ns=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends os.FtLitElement{constructor(){super(...arguments),this.variant=Ce.body1}render(){return this.element?mn`
549
+ `;var re=f(z()),N=f(ie()),Oc=f(rn()),Rc=f(ot());var xe=f(S());var ns=Symbol.for(""),ru=t=>{if(t?.r===ns)return t?._$litStatic$},fn=t=>({_$litStatic$:t,r:ns});var is=new Map,hn=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=ru(o))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),u){let d=s.join("$$lit$$");(e=is.get(d))===void 0&&(s.raw=s,is.set(d,e=s)),r=a}return t(e,...r)},mn=hn(Lo),op=hn(Po),sp=hn(Do);var gn=f(ie()),ss=f(S());var me;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(me||(me={}));var os=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ne=class extends ss.FtLitElement{constructor(){super(...arguments),this.variant=me.body1}render(){return this.element?mn`
550
550
  <${fn(this.element)}
551
551
  part="text"
552
552
  class="ft-typography ft-typography--${this.variant}">
@@ -554,54 +554,60 @@
554
554
  </${fn(this.element)}>
555
555
  `:mn`
556
556
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
557
- `}};ie.styles=[ko,Io,Mo,$o,Kt,Uo,Kr,Vo,Fo,Bo,Ho];ns([(0,gn.property)()],ie.prototype,"element",void 0);ns([(0,gn.property)()],ie.prototype,"variant",void 0);var as=f(S());var ss={"ft-typography":ie};(0,as.customElements)(ss);var Xr=f(re());var yn=f(z()),bn=f(re());var cs=f(it()),us=f(S()),ls=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},_t=class extends us.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return yn.html`
558
- <div class="${(0,cs.classMap)(this.inputLabelClasses)}">
559
- ${hr(this.text,()=>yn.html`
557
+ `}};ne.styles=[Io,Mo,$o,Uo,qt,Vo,Gr,Fo,Bo,Ho,zo];os([(0,gn.property)()],ne.prototype,"element",void 0);os([(0,gn.property)()],ne.prototype,"variant",void 0);var ls=f(S());var as={"ft-typography":ne};(0,ls.customElements)(as);var Zr=f(ie());var yn=f(z()),bn=f(ie());var us=f(ot()),ds=f(S()),cs=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},wt=class extends ds.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return yn.html`
558
+ <div class="${(0,us.classMap)(this.inputLabelClasses)}">
559
+ ${gr(this.text,()=>yn.html`
560
560
  <div class="ft-input-label--text ft-typography--caption">
561
561
  <label class="ft-input-label--floating-text">${this.text}</label>
562
562
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
563
563
  </div>
564
564
  `)}
565
565
  </div>
566
- `}};_t.elementDefinitions={};ls([(0,bn.property)({type:String})],_t.prototype,"text",void 0);ls([(0,bn.property)({type:Boolean})],_t.prototype,"raised",void 0);var xn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},we=class extends _t{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};we.elementDefinitions={};we.styles=[Kr,jo];xn([(0,Xr.property)({type:Boolean})],we.prototype,"outlined",void 0);xn([(0,Xr.property)({type:Boolean})],we.prototype,"error",void 0);xn([(0,Xr.property)({type:Boolean})],we.prototype,"disabled",void 0);var ps=f(S());var ds={"ft-input-label":we};(0,ps.customElements)(ds);var fs=f(z()),ce=f(re()),hs=f(it()),mr=f(S());var Se=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},F=class extends mr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new mr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new mr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return fs.html`
566
+ `}};wt.elementDefinitions={};cs([(0,bn.property)({type:String})],wt.prototype,"text",void 0);cs([(0,bn.property)({type:Boolean})],wt.prototype,"raised",void 0);var xn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Te=class extends wt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Te.elementDefinitions={};Te.styles=[Gr,Wo];xn([(0,Zr.property)({type:Boolean})],Te.prototype,"outlined",void 0);xn([(0,Zr.property)({type:Boolean})],Te.prototype,"error",void 0);xn([(0,Zr.property)({type:Boolean})],Te.prototype,"disabled",void 0);var fs=f(S());var ps={"ft-input-label":Te};(0,fs.customElements)(ps);var hs=f(z()),ce=f(ie()),ms=f(ot()),yr=f(S());var Ae=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},F=class extends yr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new yr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new yr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:o}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return hs.html`
567
567
  <style>
568
568
  .ft-ripple .ft-ripple--effect {
569
569
  left: ${this.originX}px;
570
570
  top: ${this.originY}px;
571
571
  }
572
572
  </style>
573
- <div class="${(0,hs.classMap)(e)}">
573
+ <div class="${(0,ms.classMap)(e)}">
574
574
  <div class="ft-ripple--background"></div>
575
575
  <div class="ft-ripple--effect"></div>
576
576
  </div>
577
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};F.elementDefinitions={};F.styles=Zo;Se([(0,ce.property)({type:Boolean})],F.prototype,"primary",void 0);Se([(0,ce.property)({type:Boolean})],F.prototype,"secondary",void 0);Se([(0,ce.property)({type:Boolean})],F.prototype,"unbounded",void 0);Se([(0,ce.property)({type:Boolean})],F.prototype,"activated",void 0);Se([(0,ce.property)({type:Boolean})],F.prototype,"selected",void 0);Se([(0,ce.property)({type:Boolean})],F.prototype,"disabled",void 0);Se([(0,ce.state)()],F.prototype,"hovered",void 0);Se([(0,ce.state)()],F.prototype,"focused",void 0);Se([(0,ce.state)()],F.prototype,"pressed",void 0);Se([(0,ce.state)()],F.prototype,"rippling",void 0);Se([(0,ce.state)()],F.prototype,"originX",void 0);Se([(0,ce.state)()],F.prototype,"originY",void 0);Se([(0,ce.query)(".ft-ripple")],F.prototype,"ripple",void 0);Se([(0,ce.query)(".ft-ripple--effect")],F.prototype,"rippleEffect",void 0);var gs=f(S());var ms={"ft-ripple":F};(0,gs.customElements)(ms);var ot;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ot||(ot={}));var gr=f(z()),st=f(re()),xs=f(S()),vs=f(bs());var Ct;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Ct||(Ct={}));var m;(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;"})(m||(m={}));var qp=new Map([...["abw"].map(t=>[t,m.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,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.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,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.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,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Yp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var yr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},J=class extends xs.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=gr.nothing}render(){let e=this.variant&&Object.values(ot).includes(this.variant)?this.variant:ot.fluid_topics,r=e!==ot.material||!!this.value;return gr.html`
577
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};F.elementDefinitions={};F.styles=Jo;Ae([(0,ce.property)({type:Boolean})],F.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],F.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],F.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],F.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],F.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],F.prototype,"disabled",void 0);Ae([(0,ce.state)()],F.prototype,"hovered",void 0);Ae([(0,ce.state)()],F.prototype,"focused",void 0);Ae([(0,ce.state)()],F.prototype,"pressed",void 0);Ae([(0,ce.state)()],F.prototype,"rippling",void 0);Ae([(0,ce.state)()],F.prototype,"originX",void 0);Ae([(0,ce.state)()],F.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],F.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],F.prototype,"rippleEffect",void 0);var ys=f(S());var gs={"ft-ripple":F};(0,ys.customElements)(gs);var at;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(at||(at={}));var br=f(z()),lt=f(ie()),vs=f(S()),Ss=f(xs());var Qe;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Qe||(Qe={}));var m;(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;"})(m||(m={}));var Yp=new Map([...["abw"].map(t=>[t,m.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,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.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,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.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,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Xp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var xr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},J=class extends vs.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=br.nothing}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,r=e!==at.material||!!this.value;return br.html`
578
578
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
579
- ${(0,vs.unsafeHTML)(this.resolvedIcon)}
579
+ ${(0,Ss.unsafeHTML)(this.resolvedIcon)}
580
580
  <slot ?hidden=${r}></slot>
581
581
  </i>
582
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ot.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ot.material:this.resolvedIcon=this.value||gr.nothing;break;default:this.resolvedIcon=(r=Ct[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=Qo;yr([(0,st.property)()],J.prototype,"variant",void 0);yr([(0,st.property)()],J.prototype,"value",void 0);yr([(0,st.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);yr([(0,st.state)()],J.prototype,"resolvedIcon",void 0);yr([(0,st.query)("slot")],J.prototype,"slottedContent",void 0);var Es=f(S());var Ss={"ft-icon":J};(0,Es.customElements)(Ss);var Cs=f(S()),br=f(z()),wt=f(re());var As=f(z());var _s=As.css`
583
- .ft-text-field-suggestion {
582
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case at.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case at.material:this.resolvedIcon=this.value||br.nothing;break;default:this.resolvedIcon=(r=Qe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=es;xr([(0,lt.property)()],J.prototype,"variant",void 0);xr([(0,lt.property)()],J.prototype,"value",void 0);xr([(0,lt.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);xr([(0,lt.state)()],J.prototype,"resolvedIcon",void 0);xr([(0,lt.query)("slot")],J.prototype,"slottedContent",void 0);var As=f(S());var Es={"ft-icon":J};(0,As.customElements)(Es);var wc=f(S()),Ht=f(z()),Ze=f(ie());var _s=f(z());var Cs=_s.css`
583
+ .ft-text-field-suggestion--suggestion {
584
584
  position: relative;
585
585
  padding: 8px 16px;
586
586
  cursor: pointer;
587
587
  min-height: 44px;
588
588
  box-sizing: border-box;
589
+ }
590
+
591
+ .ft-text-field-suggestion--suggestion,
592
+ .ft-text-field-suggestion--remove {
589
593
  outline: none;
590
594
  }
591
595
 
592
596
  .ft-text-field-suggestion,
597
+ .ft-text-field-suggestion--suggestion,
593
598
  .ft-text-field-suggestion--label {
594
599
  display: flex;
595
600
  align-items: center;
596
- gap: 8px;
597
601
  }
598
602
 
603
+ .ft-text-field-suggestion--suggestion,
599
604
  .ft-text-field-suggestion--label {
600
605
  flex-grow: 1;
601
606
  flex-shrink: 1;
607
+ gap: 8px;
602
608
  }
603
609
 
604
- .ft-text-field-suggestion--with-helper {
610
+ .ft-text-field-suggestion--with-helper > .ft-text-field-suggestion--suggestion {
605
611
  display: flex;
606
612
  flex-direction: column;
607
613
  align-items: flex-start;
@@ -615,432 +621,149 @@
615
621
  slot {
616
622
  pointer-events: none;
617
623
  }
618
- `;var ws=f(it()),Zr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},vn=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Ne=class extends Cs.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return br.html`
619
- <div class="${(0,ws.classMap)(e)}"
620
- tabindex="-1"
621
- @keydown=${this.onKeyDown}
622
- @click=${this.confirmSuggestion}>
623
- <ft-ripple></ft-ripple>
624
- ${this.helper?br.html`
625
- <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
626
- ${this.helper}
627
- </ft-typography>`:br.nothing}
628
- <ft-typography part="label"
629
- variant="body1"
630
- class="ft-text-field-suggestion--label">
631
- <slot></slot>
632
- </ft-typography>
633
- </div>
634
- `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new vn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};Ne.elementDefinitions={"ft-ripple":F,"ft-typography":ie,"ft-icon":J};Ne.styles=_s;Zr([(0,wt.property)()],Ne.prototype,"value",void 0);Zr([(0,wt.property)()],Ne.prototype,"helper",void 0);Zr([(0,wt.query)(".ft-text-field-suggestion")],Ne.prototype,"container",void 0);Zr([(0,wt.queryAssignedNodes)()],Ne.prototype,"assignedNodes",void 0);var M=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},w=class extends(0,me.toFtFormComponent)(me.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ct.EYE_SLASH,this.passwordRevealedIcon=Ct.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return ne.html`
635
- <div class="${(0,Os.classMap)(r)}">
636
- <div class="ft-text-field--main-panel"
637
- @keydown=${this.handleKeyboardNavigation}
638
- @focusout=${this.onMainPanelBlur}>
639
- <ft-input-label text="${this.label}"
640
- ?disabled=${this.disabled}
641
- ?outlined=${this.outlined}
642
- ?raised=${this.focused||this.value!=""}
643
- ?error=${!this.inputValid||this.error}></ft-input-label>
644
- <div class="ft-text-field--input-panel">
645
- ${this.outlined?ne.nothing:ne.html`
646
- <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
647
- `}
648
- ${this.prefix?ne.html`
649
- <ft-typography class="ft-text-field--prefix" variant="body1">
650
- ${this.prefix}
651
- </ft-typography>
652
- `:ne.nothing}
653
- <input type="${this.resolveInputType()}"
654
- name="${pe(this.name)}"
655
- maxlength="${pe(this.maxLength||void 0)}"
656
- aria-label="${this.label}"
657
- aria-describedby="${pe(this.helper?"helper":void 0)}"
658
- aria-invalid="${this.error}"
659
- autocomplete="${pe(this.autocomplete)}"
660
- class="ft-typography--body1 ft-text-field--input"
661
- part="input"
662
- ?disabled=${this.disabled}
663
- .value=${this.value}
664
- @click=${this.handleClick}
665
- @keyup=${this.handleInput}
666
- @keydown=${this.catchComposingEvents}
667
- @focus=${this.onFocus}
668
- />
669
- ${this.renderIcon()}
670
- </div>
671
- <div class="ft-text-field--suggestions"
672
- part="suggestions"
673
- @suggestion-selected=${this.onSuggestionSelected}>
674
- ${this.renderSuggestions()}
675
- ${!this.hideCurrentValueSuggestion&&o?ne.html`
676
- <ft-text-field-suggestion
677
- class="ft-text-field-suggestion--new-value"
678
- part="suggestion current-value-suggestion"
679
- helper="${this.suggestionsHelper}">
680
- ${this.value}
681
- </ft-text-field-suggestion>
682
- `:ne.nothing}
683
- </div>
684
- </div>
685
- ${s?ne.html`
686
- <ft-typography class="ft-text-field--helper-text" variant="${Ce.caption}" id="helper" role="alert">
687
- ${s}
688
- </ft-typography>
689
- `:ne.nothing}
690
- </div>
691
- `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?ne.html`
692
- ${(0,Ts.repeat)(this.providedSuggestions,e=>ne.html`
693
- <ft-text-field-suggestion part="suggestion" value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
694
- ${e.icon?ne.html`
695
- <ft-icon .value=${e.icon}></ft-icon>
696
- `:ne.nothing}
697
- ${e.label}
698
- </ft-text-field-suggestion>
699
- `)}
700
- `:ne.html`
701
- <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
702
- `}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return ne.html`
703
- <ft-icon class="ft-text-field--icon"
704
- .variant=${this.iconVariant}
705
- .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
706
- @click=${()=>this.togglePasswordVisibility()}></ft-icon>
707
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ne.html`
708
- <ft-icon class="ft-text-field--icon"
709
- .variant=${this.iconVariant}
710
- .value=${this.icon}
711
- @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
712
- `:ne.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,me.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Gr(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new qr(e))):this.dispatchEvent(new Yr(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,me.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};w.elementDefinitions={"ft-input-label":we,"ft-ripple":F,"ft-typography":ie,"ft-icon":J,"ft-text-field-suggestion":Ne};w.styles=[Kt,me.noTextInputDefaultClearButton,ts];M([(0,N.property)()],w.prototype,"label",void 0);M([(0,N.property)({noAccessor:!0})],w.prototype,"value",null);M([(0,N.state)()],w.prototype,"dispatchedValue",void 0);M([(0,N.property)()],w.prototype,"helper",void 0);M([(0,N.property)()],w.prototype,"suggestionsHelper",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"outlined",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"disabled",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"error",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"fixedMenuPosition",void 0);M([(0,N.property)()],w.prototype,"prefix",void 0);M([(0,N.property)()],w.prototype,"icon",void 0);M([(0,N.property)()],w.prototype,"name",void 0);M([(0,N.property)()],w.prototype,"type",void 0);M([(0,N.property)()],w.prototype,"passwordHiddenIcon",void 0);M([(0,N.property)()],w.prototype,"passwordRevealedIcon",void 0);M([(0,N.property)()],w.prototype,"iconVariant",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"filterSuggestions",void 0);M([(0,me.numberProperty)()],w.prototype,"maxLength",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"password",void 0);M([(0,N.property)({type:String})],w.prototype,"autocomplete",void 0);M([(0,N.property)({attribute:!1})],w.prototype,"suggestionsProvider",void 0);M([(0,N.property)({type:Boolean})],w.prototype,"hideCurrentValueSuggestion",void 0);M([(0,N.state)()],w.prototype,"focused",void 0);M([(0,N.state)()],w.prototype,"inputValid",void 0);M([(0,N.state)()],w.prototype,"hidePassword",void 0);M([(0,N.state)()],w.prototype,"hideSuggestions",void 0);M([(0,N.state)()],w.prototype,"visibleSuggestions",void 0);M([(0,N.state)()],w.prototype,"providedSuggestions",void 0);M([(0,N.query)(".ft-text-field--main-panel")],w.prototype,"mainPanel",void 0);M([(0,N.query)(".ft-text-field--input")],w.prototype,"input",void 0);M([(0,N.query)(".ft-text-field-suggestion--new-value")],w.prototype,"newValueSuggestion",void 0);M([(0,N.query)(".ft-text-field--suggestions")],w.prototype,"suggestionsContainer",void 0);M([(0,N.queryAll)("ft-text-field-suggestion")],w.prototype,"providedSuggestionsInDom",void 0);M([(0,N.queryAssignedElements)({selector:"ft-text-field-suggestion"})],w.prototype,"slottedSuggestions",void 0);M([(0,me.ignoreComposingEvents)()],w.prototype,"handleInput",null);M([(0,me.ignoreComposingEvents)()],w.prototype,"catchComposingEvents",null);var Ls=f(S());var Rs={"ft-text-field":w,"ft-text-field-suggestion":Ne};(0,Ls.customElements)(Rs);var T={...C,chipGap:fe.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",fe.foundation.spacing1),chipsMarginTop:fe.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",fe.foundation.spacing2),suggestSize:fe.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Ds=Ps.css`
713
- *:focus {
714
- outline: none;
715
- }
716
-
717
- .ft-combobox {
718
- display: flex;
719
- flex-direction: column;
720
- align-items: stretch;
721
- position: relative;
722
- --combobox-internal-suggest-size: ${T.suggestSize};
624
+ `;var Tc=f(ot());var Xe=f(S());var dc=f(z()),Ue=f(ie()),$e=f(S());var ws=f(z()),ct=f(S()),vr={distance:ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ct.designSystemVariables.borderRadiusS),maxWidth:ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ts=ws.css`
625
+ .ft-tooltip--container {
626
+ display: block;
723
627
  }
724
628
 
725
- ft-input-label {
726
- ${(0,fe.setVariable)(E.fontSize,T.fontSize)};
727
- ${(0,fe.setVariable)(E.raisedFontSize,T.labelSize)};
728
- ${(0,fe.setVariable)(E.verticalSpacing,T.verticalSpacing)};
729
- ${(0,fe.setVariable)(E.horizontalSpacing,T.horizontalSpacing)};
730
- ${(0,fe.setVariable)(E.backgroundColor,T.backgroundColor)};
629
+ .ft-tooltip--inline {
630
+ display: inline-block;
631
+ max-width: 100%;
731
632
  }
732
633
 
733
- /* Ensure the floating label renders above input content and doesn't intercept events */
734
- .ft-combobox--main-panel ft-input-label .ft-input-label {
735
- z-index: 1;
736
- pointer-events: none;
634
+ .ft-tooltip {
635
+ inset: 0;
636
+ margin: 0;
637
+ border: none;
638
+ background: transparent;
639
+ box-sizing: border-box;
640
+ overflow: hidden;
641
+ width: max-content;
642
+ max-width: ${vr.maxWidth};
643
+ text-align: center;
644
+ padding: ${vr.distance};
737
645
  }
738
646
 
739
- .ft-combobox--main-panel {
647
+ .ft-tooltip--content {
648
+ padding: 4px 8px;
649
+ border-radius: ${vr.borderRadiusS};
650
+ background-color: ${vr.backgroundColor};
651
+ color: ${vr.color};
740
652
  position: relative;
741
- display: flex;
742
- height: calc(4 * ${T.verticalSpacing} + ${T.labelSize} + ${T.fontSize});
653
+ word-break: break-word;
654
+ }
655
+ `;var Rs=["top","right","bottom","left"],Os=["start","end"],Sn=Rs.reduce((t,e)=>t.concat(e,e+"-"+Os[0],e+"-"+Os[1]),[]),Sr=Math.min,ut=Math.max,Er=Math.round;var Ke=t=>({x:t,y:t}),iu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(t,e,r){return ut(t,Sr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function En(t){return t==="x"?"y":"x"}function An(t){return t==="y"?"height":"width"}function Qr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function _n(t){return En(Qr(t))}function Ps(t,e,r){r===void 0&&(r=!1);let i=dt(t),n=_n(t),o=An(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=vn(s)),[s,vn(s)]}function Ds(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function vn(t){let e=Ar(t);return iu[e]+t.slice(e.length)}function nu(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Ns(t){return typeof t!="number"?nu(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ks(t,e,r){let{reference:i,floating:n}=t,o=Qr(e),s=_n(e),a=An(s),l=Ar(e),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let x=dt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function Is(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Jr(e,t),x=Ns(g),b=a[p?d==="floating"?"reference":"floating":d],O=Tt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},M=Tt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(O.top-M.top+x.top)/L.y,bottom:(M.bottom-O.bottom+x.bottom)/L.y,left:(O.left-M.left+x.left)/L.x,right:(M.right-O.right+x.right)/L.x}}var ou=50,Ms=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Is},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=ks(c,i,l),p=i,g=0,x={};for(let _=0;_<o.length;_++){let b=o[_];if(!b)continue;let{name:O,fn:V}=b,{x:v,y:L,data:M,reset:X}=await V({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=L??d,x[O]={...x[O],...M},X&&g<ou&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=ks(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function su(t,e,r){return(t?[...r.filter(n=>dt(n)===t),...r.filter(n=>dt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?dt(n)===t||(e?Ds(n)!==n:!1):!0)}var $s=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Sn,autoAlignment:g=!0,...x}=Jr(t,e),_=d!==void 0||p===Sn?su(d||null,g,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let V=await l.detectOverflow(e,x),v=Ps(O,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[V[Ar(O)],V[v[0]],V[v[1]]],M=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:L}],X=_[b+1];if(X)return{data:{index:b+1,overflows:M},reset:{placement:X}};let j=M.map(De=>{let gt=dt(De.placement);return[De.placement,gt&&u?De.overflows.slice(0,2).reduce((jc,Wc)=>jc+Wc,0):De.overflows[0],De.overflows]}).sort((De,gt)=>De[1]-gt[1]),dr=((n=j.filter(De=>De[2].slice(0,dt(De[0])?2:3).every(gt=>gt<=0))[0])==null?void 0:n[0])||j[0][0];return dr!==a?{data:{index:b+1,overflows:M},reset:{placement:dr}}:{}}}};var Us=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:L}=V;return{x:v,y:L}}},...c}=Jr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=Qr(n),g=En(p),x=u[g],_=u[p],b=(V,v)=>Ls(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(_=b(p,_));let O=l.fn({...e,[g]:x,[p]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[g]:s,[p]:a}}}}}};function ti(){return typeof window<"u"}function Rt(t){return Fs(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(Fs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fs(t){return ti()?t instanceof Node||t instanceof _e(t).Node:!1}function Be(t){return ti()?t instanceof Element||t instanceof _e(t).Element:!1}function tt(t){return ti()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Vs(t){return!ti()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function _r(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Bs(t){return/^(table|td|th)$/.test(Rt(t))}function Cr(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var au=/transform|translate|scale|rotate|perspective|filter/,lu=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",Cn;function Yt(t){let e=Be(t)?He(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ri()&&(Ot(e.backdropFilter)||Ot(e.filter))||au.test(e.willChange||"")||lu.test(e.contain||"")}function Hs(t){let e=pt(t);for(;tt(e)&&!Xt(e);){if(Yt(e))return e;if(Cr(e))return null;e=pt(e)}return null}function ri(){return Cn==null&&(Cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cn}function Xt(t){return/^(html|body|#document)$/.test(Rt(t))}function He(t){return _e(t).getComputedStyle(t)}function wr(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Vs(t)&&t.host||et(t);return Vs(e)?e.host:e}function zs(t){let e=pt(t);return Xt(e)?(t.ownerDocument||t).body:tt(e)&&_r(e)?e:zs(e)}function ei(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=zs(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=_e(n);if(o){let a=ii(s);return e.concat(s,s.visualViewport||[],_r(n)?n:[],a&&r?ei(a):[])}else return e.concat(n,ei(n,[],r))}function ii(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ks(t){let e=He(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=tt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Er(r)!==o||Er(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function Gs(t){return Be(t)?t:t.contextElement}function Zt(t){let e=Gs(t);if(!tt(e))return Ke(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Ks(e),s=(o?Er(r.width):r.width)/i,a=(o?Er(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var cu=Ke(0);function qs(t){let e=_e(t);return!ri()||!e.visualViewport?cu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uu(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function Tr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=Gs(t),s=Ke(1);e&&(i?Be(i)&&(s=Zt(i)):s=Zt(t));let a=uu(o,r,i)?qs(o):Ke(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=_e(o),g=Be(i)?_e(i):i,x=p,_=ii(x);for(;_&&g!==x;){let b=Zt(_),O=_.getBoundingClientRect(),V=He(_),v=O.left+(_.clientLeft+parseFloat(V.paddingLeft))*b.x,L=O.top+(_.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=L,x=_e(_),_=ii(x)}}return Tt({width:u,height:d,x:l,y:c})}function ni(t,e){let r=wr(t).scrollLeft;return e?e.left+r:Tr(et(t)).left+r}function Ys(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-ni(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function du(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=et(i),a=e?Cr(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ke(1),u=Ke(0),d=tt(i);if((d||!o)&&((Rt(i)!=="body"||_r(s))&&(l=wr(i)),d)){let g=Tr(i);c=Zt(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=s&&!d&&!o?Ys(s,l):Ke(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function pu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fu(t){let e=wr(t),r=t.ownerDocument.body,i=ut(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ut(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+ni(t),s=-e.scrollTop;return He(r).direction==="rtl"&&(o+=ut(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var hu=25;function mu(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),o=et(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ri()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(ni(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-_),O=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;O<=hu&&(a-=O)}return{width:a,height:l,x:c,y:u}}function gu(t,e){let r=Tr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Zt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function js(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=mu(t,r,e);else if(e==="document")i=fu(et(t));else if(Be(e))i=gu(e,r);else{let n=qs(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tt(i)}function yu(t,e){let r=e.get(t);if(r)return r;let i=ei(t,[],!1).filter(a=>Be(a)&&Rt(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?pt(t):t;for(;Be(s)&&!Xt(s);){let a=He(s),l=Yt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=pt(s)}return e.set(t,i),i}function bu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Cr(e)?[]:yu(e,this._c):[].concat(r),i],a=js(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=js(e,s[p],n);l=ut(g.top,l),c=Sr(g.right,c),u=Sr(g.bottom,u),d=ut(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function xu(t){let{width:e,height:r}=Ks(t);return{width:e,height:r}}function vu(t,e,r){let i=tt(e),n=et(e),o=r==="fixed",s=Tr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ke(0);if((i||!o)&&((Rt(e)!=="body"||_r(n))&&(a=wr(e)),i)){let p=Tr(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=ni(n));let c=n&&!i&&!o?Ys(n,a):Ke(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function wn(t){return He(t).position==="static"}function Ws(t,e){if(!tt(t)||He(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return et(t)===r&&(r=r.ownerDocument.body),r}function Xs(t,e){let r=_e(t);if(Cr(t))return r;if(!tt(t)){let n=pt(t);for(;n&&!Xt(n);){if(Be(n)&&!wn(n))return n;n=pt(n)}return r}let i=Ws(t,e);for(;i&&Bs(i)&&wn(i);)i=Ws(i,e);return i&&Xt(i)&&wn(i)&&!Yt(i)?r:i||Hs(t)||r}var Su=async function(t){let e=this.getOffsetParent||Xs,r=this.getDimensions,i=await r(t.floating);return{reference:vu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Eu(t){return He(t).direction==="rtl"}var oi={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:et,getClippingRect:bu,getOffsetParent:Xs,getElementRects:Su,getClientRects:pu,getDimensions:xu,getScale:Zt,isElement:Be,isRTL:Eu};var Zs=$s,Js=Us;var Qs=(t,e,r)=>{let i=new Map,n=r??{},o={...oi,...n.platform,_c:i};return Ms(t,e,{...n,platform:o})};function ea(t){return Au(t)}function Tn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Au(t){for(let e=t;e;e=Tn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tn(t);e;e=Tn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Yt(r)||e.tagName==="BODY"))return e}return null}async function ta(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Qs(t,e,{strategy:i.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,ea)},middleware:[Js({crossAxis:!0}),Zs({allowedPlacements:[i.placement]})]})}var ar=f(S());var Yn=f(ie());var ra=f(ie(),1);var On=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ia(t,e){return(0,ra.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Or(t);try{return JSON.parse(r)}catch{return Or(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Rr,...e??{}})}function _u(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Jt(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Jt(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Jt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Jt(t,e){try{return _u(t,e)}catch{return!1}}function Rr(t,e){return!Jt(t,e)}function Or(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function si(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var na=f(ie(),1);var Rn=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Rr,attribute:!1,...e};(0,na.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var ai=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lt=f(ie(),1);var li=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sa=f(z(),1);var ci=globalThis,Cu=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var oa=(t,e)=>{if(Cu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var ui=class extends sa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return oa(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){On(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function aa(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var er=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},da,la=Symbol("constructorPrototype"),ca=Symbol("constructorName"),pa=Symbol("exportpartsDebouncer"),ua=Symbol("dynamicDependenciesLoaded"),Qt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Qt.eventName="exportparts-updated";var Ge=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[da]=new li(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[pa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ca]=this.constructor.name,this[la]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ca]&&Object.setPrototypeOf(this,this[la])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ua]||(r[ua]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Qt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Qt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=aa(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};da=pa;er([(0,Lt.property)()],Ge.prototype,"exportpartsPrefix",void 0);er([ia([])],Ge.prototype,"exportpartsPrefixes",void 0);er([(0,Lt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);er([(0,Lt.property)()],Ge.prototype,"customStylesheet",void 0);er([(0,Lt.property)()],Ge.prototype,"elementToFocus",void 0);er([(0,Lt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function di(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Lr=Symbol("internalReduxEventsUnsubscribers"),ft=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),wu=si(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Pt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[ft].has(s.store):this[ft].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[ft].set(s,a.subscribe(()=>this.updateFromStores())),this[Lr].set(s,[]),di(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Lr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ft].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[ft].has(s)&&this[ft].get(s)(),this[ft].delete(s),(a=this[Lr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Lr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ft,r=Pt,i=Lr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),fa=class extends wu(Ge){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Tu=typeof Symbol=="function"&&Symbol.observable||"@@observable",ha=Tu,Ln=()=>Math.random().toString(36).substring(7).split("").join("."),Ou={INIT:`@@redux/INIT${Ln()}`,REPLACE:`@@redux/REPLACE${Ln()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ln()}`},pi=Ou;function fi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Pn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Pn)(t,e)}let i=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,O)=>{s.set(O,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let O=!0;c();let V=a++;return s.set(V,b),function(){if(O){if(l)throw new Error(ue(6));O=!1,c(),s.delete(V),o=null}}}function p(b){if(!fi(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));i=b,p({type:pi.REPLACE})}function x(){let b=d;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ue(11));function V(){let L=O;L.next&&L.next(u())}return V(),{unsubscribe:b(V)}},[ha](){return this}}}return p({type:pi.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[ha]:x}}function Ru(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:pi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ma(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,o;try{Ru(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],x=a[p],_=g(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Pr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function ga(...t){return e=>(r,i)=>{let n=e(r,i),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Pr(...a)(n.dispatch),{...n,dispatch:o}}}function ya(t){return fi(t)&&"type"in t&&typeof t.type=="string"}var wa=Symbol.for("immer-nothing"),ba=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,rr=Oe.getPrototypeOf,yi="constructor",Ai="prototype",In="configurable",bi="enumerable",mi="writable",Dr="value",qe=t=>!!t&&!!t[fe];function Re(t){return t?Ta(t)||Ci(t)||!!t[ba]||!!t[yi]?.[ba]||wi(t)||Ti(t):!1}var Lu=Oe[Ai][yi].toString(),xa=new WeakMap;function Ta(t){if(!t||!zn(t))return!1;let e=rr(t);if(e===null||e===Oe[Ai])return!0;let r=Oe.hasOwnProperty.call(e,yi)&&e[yi];if(r===Object)return!0;if(!tr(r))return!1;let i=xa.get(r);return i===void 0&&(i=Function.toString.call(r),xa.set(r,i)),i===Lu}function _i(t,e,r=!0){Ir(t)===0?(r?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Ir(t){let e=t[fe];return e?e.type_:Ci(t)?1:wi(t)?2:Ti(t)?3:0}var Dn=(t,e,r=Ir(t))=>r===2?t.has(e):Oe[Ai].hasOwnProperty.call(t,e),Mn=(t,e,r=Ir(t))=>r===2?t.get(e):t[e],xi=(t,e,r,i=Ir(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ci=Array.isArray,wi=t=>t instanceof Map,Ti=t=>t instanceof Set,zn=t=>typeof t=="object",tr=t=>typeof t=="function",Nn=t=>typeof t=="boolean";function Du(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var jn=t=>t.modified_?t.copy_:t.base_;function $n(t,e){if(wi(t))return new Map(t);if(Ti(t))return new Set(t);if(Ci(t))return Array[Ai].slice.call(t);let r=Ta(t);if(e===!0||e==="class_only"&&!r){let i=Oe.getOwnPropertyDescriptors(t);delete i[fe];let n=Reflect.ownKeys(i);for(let o=0;o<n.length;o++){let s=n[o],a=i[s];a[mi]===!1&&(a[mi]=!0,a[In]=!0),(a.get||a.set)&&(i[s]={[In]:!0,[mi]:!0,[bi]:a[bi],[Dr]:t[s]})}return Oe.create(rr(t),i)}else{let i=rr(t);if(i!==null&&r)return{...t};let n=Oe.create(i);return Oe.assign(n,t)}}function Wn(t,e=!1){return Oi(t)||qe(t)||!Re(t)||(Ir(t)>1&&Oe.defineProperties(t,{set:hi,add:hi,clear:hi,delete:hi}),Oe.freeze(t),e&&_i(t,(r,i)=>{Wn(i,!0)},!1)),t}function Nu(){ze(2)}var hi={[Dr]:Nu};function Oi(t){return t===null||!zn(t)?!0:Oe.isFrozen(t)}var vi="MapSet",Un="Patches",va="ArrayMethods",Oa={};function Dt(t){let e=Oa[t];return e||ze(0,t),e}var Sa=t=>!!Oa[t];var Nr,Ra=()=>Nr,ku=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Sa(vi)?Dt(vi):void 0,arrayMethodsPlugin_:Sa(va)?Dt(va):void 0});function Ea(t,e){e&&(t.patchPlugin_=Dt(Un),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Vn(t){Fn(t),t.drafts_.forEach(Iu),t.drafts_=null}function Fn(t){t===Nr&&(Nr=t.parent_)}var Aa=t=>Nr=ku(Nr,t);function Iu(t){let e=t[fe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function _a(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[fe].modified_&&(Vn(e),ze(4)),Re(t)&&(t=Ca(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[fe].base_,t,e)}else t=Ca(e,r);return Mu(e,t,!0),Vn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==wa?t:void 0}function Ca(t,e){if(Oi(e))return e;let r=e[fe];if(!r)return Si(e,t.handledSet_,t);if(!Ri(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Da(r,t)}return r.copy_}function Mu(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Wn(e,r)}function La(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ri=(t,e)=>t.scope_===e,$u=[];function Pa(t,e,r,i){let n=rt(t),o=t.type_;if(i!==void 0&&Mn(n,i,o)===e){xi(n,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_i(n,(l,c)=>{if(qe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??$u;for(let a of s)xi(n,a,r,o)}function Uu(t,e,r){t.callbacks_.push(function(n){let o=e;if(!o||!Ri(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=jn(o);Pa(t,o.draft_??o,s,r),Da(o,n)})}function Da(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}La(t)}}function Vu(t,e,r){let{scope_:i}=t;if(qe(r)){let n=r[fe];Ri(n,i)&&n.callbacks_.push(function(){gi(t);let s=jn(n);Pa(t,r,s,e)})}else Re(r)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(r)&&Si(r,i.handledSet_,i):Mn(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Si(Mn(t.copy_,e,t.type_),i.handledSet_,i)})}function Si(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||qe(t)||e.has(t)||!Re(t)||Oi(t)||(e.add(t),_i(t,(i,n)=>{if(qe(n)){let o=n[fe];if(Ri(o,r)){let s=jn(o);xi(t,i,s,t.type_),La(o)}}else Re(n)&&Si(n,e,r)})),t}function Fu(t,e){let r=Ci(t),i={type_:r?1:0,scope_:e?e.scope_:Ra(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,o=Ei;r&&(n=[i],o=kr);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return i.draft_=a,i.revoke_=s,[a,i]}var Ei={get(t,e){if(e===fe)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=rt(t);if(!Dn(n,e,t.type_))return Hu(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Du(e))return o;if(o===kn(t.base_,e)||Bu(t,e,o)){gi(t);let s=t.type_===1?+e:e,a=Hn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,r){let i=Na(rt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=kn(rt(t),e),o=n?.[fe];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Pu(r,n)&&(r!==void 0||Dn(t.base_,e,t.type_)))return!0;gi(t),Bn(t)}return t.copy_[e]===r&&(r!==void 0||Dn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vu(t,e,r)),!0},deleteProperty(t,e){return gi(t),kn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Bn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=rt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[mi]:!0,[In]:t.type_!==1||e!=="length",[bi]:i[bi],[Dr]:r[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return rr(t.base_)},setPrototypeOf(){ze(12)}},kr={};for(let t in Ei){let e=Ei[t];kr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)};kr.set=function(t,e,r){return Ei.set.call(this,t[0],e,r,t[0])};function kn(t,e){let r=t[fe];return(r?rt(r):t)[e]}function Bu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Re(r)||r[fe]?!1:t.baseRefs_.has(r)}function Hu(t,e,r){let i=Na(e,r);return i?Dr in i?i[Dr]:i.get?.call(t.draft_):void 0}function Na(t,e){if(!(e in t))return;let r=rr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=rr(r)}}function Bn(t){t.modified_||(t.modified_=!0,t.parent_&&Bn(t.parent_))}function gi(t){t.copy_||(t.assigned_=new Map,t.copy_=$n(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var zu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(tr(e)&&!tr(r)){let o=r;r=e;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}tr(r)||ze(6),i!==void 0&&!tr(i)&&ze(7);let n;if(Re(e)){let o=Aa(this),s=Hn(o,e,void 0),a=!0;try{n=r(s),a=!1}finally{a?Vn(o):Fn(o)}return Ea(o,i),_a(n,o)}else if(!e||!zn(e)){if(n=r(e),n===void 0&&(n=e),n===wa&&(n=void 0),this.autoFreeze_&&Wn(n,!0),i){let o=[],s=[];Dt(Un).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),i(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,r)=>{if(tr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,n;return[this.produce(e,r,(s,a)=>{i=s,n=a}),i,n]},Nn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Nn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Nn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),qe(t)&&(t=ka(t));let e=Aa(this),r=Hn(e,t,void 0);return r[fe].isManual_=!0,Fn(e),r}finishDraft(t,e){let r=t&&t[fe];(!r||!r.isManual_)&&ze(9);let{scope_:i}=r;return Ea(i,e),_a(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Dt(Un).applyPatches_;return qe(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Hn(t,e,r,i){let[n,o]=wi(e)?Dt(vi).proxyMap_(e,r):Ti(e)?Dt(vi).proxySet_(e,r):Fu(e,r);return(r?.scope_??Ra()).drafts_.push(n),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?Uu(r,o,i):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function ka(t){return qe(t)||ze(10,t),Ia(t)}function Ia(t){if(!Re(t)||Oi(t))return t;let e=t[fe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=$n(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=$n(t,!0);return _i(r,(n,o)=>{xi(r,n,Ia(o))},i),e&&(e.finalized_=!1),r}var ju=globalThis.Iterator,ph=typeof ju?.from=="function";var Wu=new zu,Kn=Wu.produce;function Ma(t){return({dispatch:r,getState:i})=>n=>o=>typeof o=="function"?o(r,i,t):n(o)}var $a=Ma(),Ua=Ma;var Ku=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pr:Pr.apply(null,arguments)},xh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gu=t=>t&&typeof t.match=="function";function ht(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(it(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>ya(i)&&i.type===t,r}var za=class Mr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Mr.prototype)}static get[Symbol.species](){return Mr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Mr(...e[0].concat(this)):new Mr(...e.concat(this))}};function Va(t){return Re(t)?Kn(t,()=>{}):t}function Li(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new za;return r&&(qu(r)?s.push($a):s.push(Ua(r.extraArgument))),s},Xu="RTK_autoBatch";var Fa=t=>e=>{setTimeout(e,t)},Zu=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=t(n),s=setTimeout(n,e)},Ju=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Zu(window.requestAnimationFrame,100):Fa(10):t.type==="callback"?t.queueNotification:Fa(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Xu],o=!n,o&&(s||(s=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Qu=t=>function(r){let{autoBatch:i=!0}=r??{},n=new za(t);return i&&n.push(Ju(typeof i=="object"?i:void 0)),n};function ja(t){let e=Yu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(fi(r))l=ma(r);else throw new Error(it(1));let c;typeof i=="function"?c=i(e):c=e();let u=Pr;n&&(u=Ku({trace:!1,...typeof n=="object"&&n}));let d=ga(...c),p=Qu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return Pn(l,s,x)}function Wa(t){let e={},r=[],i,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(it(28));if(a in e)throw new Error(it(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase(o){return i=o,n}};return t(n),[e,r,i]}function ed(t){return typeof t=="function"}function td(t,e){let[r,i,n]=Wa(e),o;if(ed(t))o=()=>Va(t());else{let a=Va(t);o=()=>a}function s(a=o(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(qe(u)){let g=d(u,l);return g===void 0?u:g}else{if(Re(u))return Kn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var rd=(t,e)=>Gu(t)?t.match(e):t(e);function id(...t){return e=>t.some(r=>rd(r,e))}var nd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",od=(t=21)=>{let e="",r=t;for(;r--;)e+=nd[Math.random()*64|0];return e},sd=["name","message","stack","code"],Gn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Ba=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},ad=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of sd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Ha="External signal was aborted",ld=(()=>{function t(e,r,i){let n=ht(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=ht(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=ht(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||ad)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):od(),x=new AbortController,_,b;function O(v){b=v,x.abort()}c&&(c.aborted?O(Ha):c.addEventListener("abort",()=>O(Ha),{once:!0}));let V=(async function(){let v;try{let M=i?.condition?.(l,{getState:d,extra:p});if(ud(M)&&(M=await M),M===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{_=()=>{Z({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([X,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:O,rejectWithValue:((j,Z)=>new Gn(j,Z)),fulfillWithValue:((j,Z)=>new Ba(j,Z))})).then(j=>{if(j instanceof Gn)throw j;return j instanceof Ba?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(M){v=M instanceof Gn?s(null,g,l,M.payload,M.meta):s(M,g,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:O,requestId:g,arg:l,unwrap(){return V.then(cd)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:id(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function cd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ud(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ka=Symbol.for("rtk-slice-createasyncthunk"),Sh={[Ka]:ld};function dd(t,e){return`${t}/${e}`}function pd({creators:t}={}){let e=t?.asyncThunk?.[Ka];return function(i){let{name:n,reducerPath:o=n}=i;if(!n)throw new Error(it(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(hd()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,L){let M=typeof v=="string"?v:v.type;if(!M)throw new Error(it(12));if(M in l.sliceCaseReducersByType)throw new Error(it(13));return l.sliceCaseReducersByType[M]=L,c},addMatcher(v,L){return l.sliceMatchers.push({matcher:v,reducer:L}),c},exposeAction(v,L){return l.actionCreators[v]=L,c},exposeCaseReducer(v,L){return l.sliceCaseReducersByName[v]=L,c}};a.forEach(v=>{let L=s[v],M={reducerName:v,type:dd(n,v),createNotation:typeof i.reducers=="function"};gd(L)?bd(M,L,c,e):md(M,L,c)});function u(){let[v={},L=[],M=void 0]=typeof i.extraReducers=="function"?Wa(i.extraReducers):[i.extraReducers],X={...v,...l.sliceCaseReducersByType};return td(i.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of L)j.addMatcher(Z.matcher,Z.reducer);M&&j.addDefaultCase(M)})}let d=v=>v,p=new Map,g=new WeakMap,x;function _(v,L){return x||(x=u()),x(v,L)}function b(){return x||(x=u()),x.getInitialState()}function O(v,L=!1){function M(j){let Z=j[v];return typeof Z>"u"&&L&&(Z=Li(g,M,b)),Z}function X(j=d){let Z=Li(p,L,()=>new WeakMap);return Li(Z,j,()=>{let dr={};for(let[De,gt]of Object.entries(i.selectors??{}))dr[De]=fd(gt,j,()=>Li(g,j,b),L);return dr})}return{reducerPath:v,getSelectors:X,get selectors(){return X(M)},selectSlice:M}}let V={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(o),injectInto(v,{reducerPath:L,...M}={}){let X=L??o;return v.inject({reducerPath:X,reducer:_},M),{...V,...O(X,!0)}}};return V}}function fd(t,e,r,i){function n(o,...s){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return n.unwrapped=t,n}var Ga=pd();function hd(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function md({type:t,reducerName:e,createNotation:r},i,n){let o,s;if("reducer"in i){if(r&&!yd(i))throw new Error(it(17));o=i.reducer,s=i.prepare}else o=i;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ht(t,s):ht(t))}function gd(t){return t._reducerDefinitionType==="asyncThunk"}function yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function bd({type:t,reducerName:e},r,i,n){if(!n)throw new Error(it(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=n(t,o,u);i.exposeAction(e,d),s&&i.addCase(d.fulfilled,s),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(e,{fulfilled:s||Pi,pending:a||Pi,rejected:l||Pi,settled:c||Pi})}function Pi(){}var qa="listener",Ya="completed",Xa="cancelled",Eh=`task-${Xa}`,Ah=`task-${Ya}`,_h=`${qa}-${Xa}`,Ch=`${qa}-${Ya}`;var{assign:Za}=Object;var qn="listenerMiddleware";var xd=Za(ht(`${qn}/add`),{withTypes:()=>xd}),wh=ht(`${qn}/removeAll`),vd=Za(ht(`${qn}/remove`),{withTypes:()=>vd});function it(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Sd=si(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Di=class extends Sd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ja=class t extends Di{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(di(o))return o;if(n==null)return;let s=Ga({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=ja({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Or(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ai,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Jt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ni=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ki=f(S()),Ed="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var $r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$r.eventName="ui-locale-changed";var Ad={session:(t,e)=>{(0,ki.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Nt(e.payload)),0))}},P=ki.FtReduxStore.get({name:Ed,reducers:Ad,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Qa=f(S()),Ii=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},rm=(0,Qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Ni.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ii([(0,Yn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ii([(0,Yn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ii([Rn({store:P.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ii([Rn({store:P.name})],e.prototype,"uiLocale",void 0),e});var el;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(el||(el={}));var tl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(tl||(tl={}));var rl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(rl||(rl={}));var il;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(il||(il={}));var nl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(nl||(nl={}));var ol;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ol||(ol={}));var sl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(sl||(sl={}));var al;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(al||(al={}));var ll;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ll||(ll={}));var cl;(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"})(cl||(cl={}));var ul;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(ul||(ul={}));var dl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(dl||(dl={}));var pl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(pl||(pl={}));var fl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(fl||(fl={}));var hl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(hl||(hl={}));var ml;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ml||(ml={}));var gl;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gl||(gl={}));var yl;(function(t){t.ASC="ASC",t.DESC="DESC"})(yl||(yl={}));var bl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(bl||(bl={}));var xl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xl||(xl={}));var vl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(vl||(vl={}));var Sl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Sl||(Sl={}));var El;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(El||(El={}));var Al;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Al||(Al={}));var _l;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(_l||(_l={}));var Cl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Cl||(Cl={}));var wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(wl||(wl={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var Tl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Tl||(Tl={}));var Ol;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ol||(Ol={}));var Rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Rl||(Rl={}));var Ll;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Ll||(Ll={}));var Pl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Pl||(Pl={}));var Dl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Dl||(Dl={}));var Nl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Nl||(Nl={}));var kl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kl||(kl={}));var Il;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Il||(Il={}));var Ml;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Ml||(Ml={}));var $l;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})($l||($l={}));var Ul;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ul||(Ul={}));var _d={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Vl(t,e){return t===e||(_d[t]??[]).some(r=>Vl(r,e))}function Fl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Vl(i,e))}var Fi=f(S());var Xn=f(S());var kt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=P.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=P.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ir=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ir{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Xn.CacheRegistry,this.cache=e?n.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Mi=class extends Le{async listMySearches(){let{session:e}=P.getState();return Fl(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $i=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ui=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Vi=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Cd="ft-user-assets",wd={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ke).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Jn(t,r,[...Zn(t,r),n]),Bl(t,r,1,i),Hl(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Jn(t,r,Zn(t,r).map(n=>n.id===i.id?i:n)),Hl(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Jn(t,r,Zn(t,r).filter(o=>o.id!==n)),Bl(t,r,-1,i)}},zl={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},Zn=(t,e)=>{var r;let i=zl[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Jn=(t,e,r)=>{let i=zl[e];i&&(t[i]=r)},Bl=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ke.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Hl=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ge=Fi.FtReduxStore.get({name:Cd,reducers:wd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(e=new Ui,r=new Vi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,this.savedSearchesService=new Mi,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,Fi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ge.getState().assetCounts.allAsset[e]!==r.count&&ge.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ge.getState().assetCounts.bookmarkByMap[e]!==r.count&&ge.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&r&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(r)}}},Td=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Td);var eo=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new eo;var Ie=f(S());var jl,nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Od=Symbol("clearAfterUnitTest"),Bi=class extends(0,Ie.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[jl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new nr({loadedContexts:e})),this.dispatchEvent(new nr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new nr({loadedContexts:[e]})),this.dispatchEvent(new nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ie.delay)(0).then(()=>i()).catch(()=>null)))}};jl=Od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var or=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var Wl=f(S()),to=class{highlightHtml(e,r,i){(0,Wl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new to;var Kl=f(S());var ro=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Kl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:P.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ro;var Gl=f(S());var Ur=class{static get(e,r){var i,n,o,s;let a=P.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Gl.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var io=class{urlToSearchRequest(e){return Ur.get().parse(e)}searchRequestToUrl(e){return Ur.get().serialize(e)}};window.FluidTopicsUrlService=new io;var nt=f(S());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};It.eventName="before-location-change";var Mt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mt.eventName="change";var no=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},ql=new no;var zi=class t extends nt.WithEventBus{static build(){return new t(window.history,ql,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(It.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(It.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,nt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Yl=f(z());var Xl=Yl.css`
656
+ `;var Ql=f(z()),ye=f(ie()),Vt=f(S());var $t=f(S());function Zl(t,e){let{authenticationRequired:r,session:i}=P.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ji=class extends ir{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var oo=class t extends $t.FtStateManager{static build(e){return new t(P,e)}constructor(e,r){super(),this.store=e,this.cache=new $t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ji,this.cleanSessionDebouncer=new $t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new $t.Debouncer(500),this.apiProvider=r??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Nt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Zl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $r(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Jl=oo.build();var Ut=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Vr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Ut(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},G=class extends Vt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Jl,this.contextRoot=new Vr}render(){return Ql.html`
657
+ <slot></slot>
658
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>or.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Xl;ae([(0,ye.property)()],G.prototype,"baseUrl",void 0);ae([(0,ye.property)()],G.prototype,"tenantId",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ae([(0,ye.property)()],G.prototype,"uiLocale",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ae([(0,Vt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ae([(0,Vt.jsonProperty)(void 0)],G.prototype,"session",void 0);var tc=f(S());var ec={"ft-app-context":G};(0,tc.customElements)(ec);var rc=f(ie());var so=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},sr=new so;var Pd=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Br=Symbol("i18nAttributes"),ic=Symbol("i18nListAttributes"),nc=Symbol("i18nProperties"),Wi=Symbol("i18nContexts"),Fr=Symbol("i18nUnsubs"),qi=(0,ar.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hi:or}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(sr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Br])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[ic])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[nc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Wi].set(l,{isCustomContext:a}),this[Fr].has(l)||this[Fr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Wi].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wi].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fr].forEach(o=>o()),this[Fr].clear()}}return e=Wi,r=Fr,Pd([(0,rc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Ki=class extends qi(ar.FtLitElement){},Gi=class extends qi(ar.FtLitElementRedux){};var oc=f(S());var ao=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?sr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Dd=new ao;var sc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:oc.hasChanged,converter:sr,...e}),r[Br]=(n=r[Br])!==null&&n!==void 0?n:new Map,r[Br].set(i,t??{})};var Yi=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hi:or}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ac=f(z());var lc=ac.css`
659
+ `;var Xi=f(z()),cr=f(ie()),Zi=f(S());var lr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Me=class extends Gi{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Xi.nothing:Xi.html`
660
+ <span class="ft-i18n">
661
+ ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
662
+ </span>
663
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Me.elementDefinitions={};Me.styles=lc;lr([(0,Zi.redux)()],Me.prototype,"editorMode",void 0);lr([(0,cr.property)()],Me.prototype,"context",void 0);lr([(0,cr.property)()],Me.prototype,"key",void 0);lr([(0,Zi.jsonProperty)([])],Me.prototype,"args",void 0);lr([(0,cr.property)()],Me.prototype,"defaultMessage",void 0);lr([(0,cr.state)()],Me.prototype,"editorMessage",void 0);var uc=f(S());var cc={"ft-i18n":Me};(0,uc.customElements)(cc);var je=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},oe=class extends Ki{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new $e.Debouncer,this.revealDebouncer=new $e.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return dc.html`
664
+ <div part="container"
665
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
666
+ <slot part="slot"></slot>
667
+ <div part="tooltip" role="tooltip" inert
668
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
669
+ popover="manual">
670
+ <div part="tooltip-content" class="ft-tooltip--content">
671
+ <slot name="text"></slot>
672
+ <ft-typography variant="${me.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
673
+ ${(r=this.text)===null||r===void 0?void 0:r.message}
674
+ </ft-typography>
675
+ </div>
676
+ </div>
677
+ </div>
678
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&ta(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${$e.designSystemVariables.transitionDuration}, left ${$e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};oe.elementDefinitions={"ft-typography":ne};oe.styles=Ts;je([sc()],oe.prototype,"text",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"manual",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"inline",void 0);je([(0,$e.numberProperty)()],oe.prototype,"delay",void 0);je([(0,Ue.property)()],oe.prototype,"position",void 0);je([(0,$e.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);je([(0,Ue.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);je([(0,Ue.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);je([(0,Ue.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);je([(0,Ue.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);je([(0,Ue.state)()],oe.prototype,"visible",void 0);var fc=f(S());var pc={"ft-tooltip":oe};(0,fc.customElements)(pc);var hc=f(z()),Hr=f(S()),Ft={color:Hr.FtCssVariableFactory.extend("--ft-loader-color","",Hr.designSystemVariables.colorPrimary),size:Hr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},mc=hc.css`
679
+ :host {
680
+ line-height: 0;
743
681
  }
744
682
 
745
- .ft-combobox--input-panel {
746
- flex-grow: 1;
683
+ .ft-loader {
684
+ display: inline-block;
747
685
  position: relative;
748
- display: flex;
749
- align-items: center;
750
- overflow: hidden;
751
- padding: 0 ${T.horizontalSpacing};
686
+
687
+ width: ${Ft.size};
688
+ height: ${Ft.size};
752
689
  }
753
690
 
754
- .ft-combobox--outlined .ft-combobox--input-panel {
755
- border-radius: ${T.borderRadiusS};
691
+ .ft-loader div {
692
+ position: absolute;
693
+ top: 37.5%;
694
+ width: 25%;
695
+ height: 25%;
696
+ border-radius: 50%;
697
+ background: ${Ft.color};
698
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
756
699
  }
757
700
 
758
- .ft-combobox--filled .ft-combobox--input-panel {
759
- border-radius: ${T.borderRadiusS} ${T.borderRadiusS} 0 0;
701
+ .ft-loader div:nth-child(1) {
702
+ left: 2.5%;
703
+ animation: appear 0.6s infinite;
760
704
  }
761
705
 
762
- /* Match text-field filled layout when there is a label: input aligns to bottom and container has bottom padding */
763
- .ft-combobox--filled.ft-combobox--with-label .ft-combobox--input-panel {
764
- align-items: flex-end;
765
- padding: 0 ${T.horizontalSpacing} ${T.verticalSpacing} ${T.horizontalSpacing};
706
+ .ft-loader div:nth-child(2) {
707
+ left: 2.5%;
708
+ animation: move 0.6s infinite;
766
709
  }
767
710
 
768
- /* Focus color on label when interacting */
769
- .ft-combobox:not(.ft-combobox--disabled):focus-within ft-input-label {
770
- ${(0,fe.setVariable)(E.borderColor,T.colorPrimary)};
771
- ${(0,fe.setVariable)(E.textColor,T.colorPrimary)};
711
+ .ft-loader div:nth-child(3) {
712
+ left: 37.5%;
713
+ animation: move 0.6s infinite;
772
714
  }
773
715
 
774
- .ft-combobox--in-error .ft-combobox--input,
775
- .ft-combobox--in-error .ft-combobox--helper-text {
776
- color: ${C.colorError};
716
+ .ft-loader div:nth-child(4) {
717
+ left: 72.5%;
718
+ animation: disappear 0.6s infinite;
777
719
  }
778
720
 
779
- .ft-combobox--input {
780
- display: block;
781
- position: relative;
782
- flex-grow: 1;
783
- flex-shrink: 1;
784
- min-width: 0;
785
- font-size: ${T.fontSize};
786
- color: ${T.colorOnSurface};
787
- padding: calc(2 * ${T.verticalSpacing}) 0;
788
- border: none;
789
- background: none;
721
+ @keyframes appear {
722
+ 0% {
723
+ transform: scale(0);
724
+ }
725
+ 100% {
726
+ transform: scale(1);
727
+ }
790
728
  }
791
729
 
792
- .ft-combobox--with-label.ft-combobox--filled .ft-combobox--input {
793
- padding-bottom: 0;
794
- padding-top: calc(${T.labelSize} + 2 * ${T.verticalSpacing});
730
+ @keyframes disappear {
731
+ 0% {
732
+ transform: scale(1);
733
+ }
734
+ 100% {
735
+ transform: scale(0);
736
+ }
795
737
  }
796
738
 
797
- .ft-combobox--disabled .ft-combobox--input {
798
- color: ${T.colorOnSurfaceDisabled};
799
- cursor: not-allowed;
739
+ @keyframes move {
740
+ 0% {
741
+ transform: translate(0, 0);
742
+ }
743
+ 100% {
744
+ transform: translate(calc(0.35 * ${Ft.size}), 0);
745
+ }
746
+ }
747
+ `;var gc=f(z()),yc=f(S());var Bt=class extends yc.FtLitElement{render(){return gc.html`
748
+ <div class="ft-loader">
749
+ <div></div>
750
+ <div></div>
751
+ <div></div>
752
+ <div></div>
753
+ </div>
754
+ `}};Bt.styles=mc;var xc=f(S());var bc={"ft-loader":Bt};(0,xc.customElements)(bc);var mt=f(z()),Ji=f(ot()),H=f(ie());var Ec=f(z()),R=f(S());var vc=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),q={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:vc,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",vc),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},Sc=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),lo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:Sc,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Sc)},Ye={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ac=Ec.css`
755
+ :host {
756
+ display: inline-block;
757
+ max-width: 100%;
758
+ pointer-events: none;
800
759
  }
801
760
 
802
- .ft-combobox--helper-text {
803
- padding: 0 12px 0 ${T.horizontalSpacing};
804
- color: ${T.helperColor};
805
- }
806
-
807
- .ft-combobox--listbox {
808
- margin: 0;
809
- padding: 0;
810
- display: none;
811
- position: absolute;
812
- top: calc(100% + 2px);
813
- left: -1px;
814
- right: -1px;
815
- list-style: none;
816
- z-index: ${T.floatingZIndex};
817
- background: ${T.backgroundColor};
818
- border: 1px solid ${T.colorOutline};
819
- border-radius: 0 0 ${T.borderRadiusS} ${T.borderRadiusS};
820
- box-shadow: ${T.elevation02};
821
- outline: none;
822
- max-height: ${T.suggestSize};
823
- overflow-y: auto;
824
- overflow-x: hidden;
825
- font-size: ${T.fontSize};
826
- cursor: pointer;
827
- }
828
-
829
- .ft-combobox--listbox[data-visible="true"] {
830
- display: block;
831
- }
832
-
833
- .ft-combobox--option {
834
- margin: 0;
835
- display: block;
836
- padding: 0; /* Inner suggestion container handles padding */
837
- cursor: pointer;
838
- color: ${T.colorOnSurface};
839
- }
840
-
841
- .ft-combobox-suggestion {
842
- position: relative;
843
- padding: 8px ${T.horizontalSpacing};
844
- cursor: pointer;
845
- min-height: 44px;
846
- box-sizing: border-box;
847
- outline: none;
848
- display: flex;
849
- align-items: center;
850
- gap: 8px;
851
- }
852
-
853
- .ft-combobox-suggestion--label {
854
- display: flex;
855
- align-items: center;
856
- gap: 8px;
857
- flex-grow: 1;
858
- flex-shrink: 1;
859
- }
860
-
861
- .ft-combobox-suggestion--with-helper {
862
- display: flex;
863
- flex-direction: column;
864
- align-items: flex-start;
865
- gap: 0;
866
- }
867
-
868
- .ft-combobox-suggestion--helper-text {
869
- color: ${T.helperColor};
870
- }
871
-
872
- .ft-combobox--option[data-active="true"] .ft-combobox-suggestion,
873
- .ft-combobox--option:hover:not([data-selected="true"]) .ft-combobox-suggestion {
874
- background-color: rgba(0, 0, 0, 0.04);
875
- }
876
-
877
- .ft-combobox--option-new-value {
878
- border-top: 1px solid ${T.colorOutline};
879
- }
880
-
881
- .ft-combobox--icon {
882
- align-self: center;
883
- margin-left: 8px;
884
- color: ${T.iconColor};
885
- }
886
-
887
- .ft-combobox--with-icon {
888
- ${(0,fe.setVariable)(E.labelMaxWidth,`calc(100% - ${le.size} - ${T.horizontalSpacing})`)};
889
- }
890
-
891
- .ft-combobox--chips-container {
892
- display: flex;
893
- flex-wrap: wrap;
894
- gap: ${T.chipGap};
895
- margin-top: ${T.chipsMarginTop};
896
- }
897
-
898
- .ft-combobox--chips-container ft-chip {
899
- flex-shrink: 0;
900
- }
901
- `;var Qi=f(z()),de=f(re()),$c=f(it()),lr=f(S());var Hr=f(z()),D=f(S());var Xe=f(S());var bc=f(z()),Ue=f(re()),$e=f(S());var Ns=f(z()),at=f(S()),xr={distance:at.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:at.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:at.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:at.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",at.designSystemVariables.borderRadiusS),maxWidth:at.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ks=Ns.css`
902
- .ft-tooltip--container {
903
- display: block;
904
- }
905
-
906
- .ft-tooltip--inline {
907
- display: inline-block;
908
- max-width: 100%;
909
- }
910
-
911
- .ft-tooltip {
912
- inset: 0;
913
- margin: 0;
914
- border: none;
915
- background: transparent;
916
- box-sizing: border-box;
917
- overflow: hidden;
918
- width: max-content;
919
- max-width: ${xr.maxWidth};
920
- text-align: center;
921
- padding: ${xr.distance};
922
- }
923
-
924
- .ft-tooltip--content {
925
- padding: 4px 8px;
926
- border-radius: ${xr.borderRadiusS};
927
- background-color: ${xr.backgroundColor};
928
- color: ${xr.color};
929
- position: relative;
930
- word-break: break-word;
931
- }
932
- `;var Ms=["top","right","bottom","left"],Is=["start","end"],En=Ms.reduce((t,e)=>t.concat(e,e+"-"+Is[0],e+"-"+Is[1]),[]),vr=Math.min,lt=Math.max,Sr=Math.round;var Ke=t=>({x:t,y:t}),ru={left:"right",right:"left",bottom:"top",top:"bottom"};function $s(t,e,r){return lt(t,vr(e,r))}function Jr(t,e){return typeof t=="function"?t(e):t}function Er(t){return t.split("-")[0]}function ct(t){return t.split("-")[1]}function An(t){return t==="x"?"y":"x"}function _n(t){return t==="y"?"height":"width"}function Qr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Cn(t){return An(Qr(t))}function Us(t,e,r){r===void 0&&(r=!1);let i=ct(t),n=Cn(t),o=_n(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Sn(s)),[s,Sn(s)]}function Vs(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Sn(t){let e=Er(t);return ru[e]+t.slice(e.length)}function iu(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Fs(t){return typeof t!="number"?iu(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Bs(t,e,r){let{reference:i,floating:n}=t,o=Qr(e),s=Cn(e),a=_n(s),l=Er(e),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let x=ct(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function Hs(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Jr(e,t),x=Fs(g),b=a[p?d==="floating"?"reference":"floating":d],O=Tt(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(b)))==null||r?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},I=Tt(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(O.top-I.top+x.top)/L.y,bottom:(I.bottom-O.bottom+x.bottom)/L.y,left:(O.left-I.left+x.left)/L.x,right:(I.right-O.right+x.right)/L.x}}var nu=50,zs=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Hs},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Bs(c,i,l),p=i,g=0,x={};for(let _=0;_<o.length;_++){let b=o[_];if(!b)continue;let{name:O,fn:V}=b,{x:v,y:L,data:I,reset:X}=await V({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=L??d,x[O]={...x[O],...I},X&&g<nu&&(g++,typeof X=="object"&&(X.placement&&(p=X.placement),X.rects&&(c=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:u,y:d}=Bs(c,p,l)),_=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function ou(t,e,r){return(t?[...r.filter(n=>ct(n)===t),...r.filter(n=>ct(n)!==t)]:r.filter(n=>Er(n)===n)).filter(n=>t?ct(n)===t||(e?Vs(n)!==n:!1):!0)}var js=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=En,autoAlignment:g=!0,...x}=Jr(t,e),_=d!==void 0||p===En?ou(d||null,g,p):p,b=((r=s.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let V=await l.detectOverflow(e,x),v=Us(O,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[V[Er(O)],V[v[0]],V[v[1]]],I=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:L}],X=_[b+1];if(X)return{data:{index:b+1,overflows:I},reset:{placement:X}};let j=I.map(Pe=>{let ht=ct(Pe.placement);return[Pe.placement,ht&&u?Pe.overflows.slice(0,2).reduce((zc,jc)=>zc+jc,0):Pe.overflows[0],Pe.overflows]}).sort((Pe,ht)=>Pe[1]-ht[1]),cr=((n=j.filter(Pe=>Pe[2].slice(0,ct(Pe[0])?2:3).every(ht=>ht<=0))[0])==null?void 0:n[0])||j[0][0];return cr!==a?{data:{index:b+1,overflows:I},reset:{placement:cr}}:{}}}};var Ws=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:L}=V;return{x:v,y:L}}},...c}=Jr(t,e),u={x:r,y:i},d=await o.detectOverflow(e,c),p=Qr(n),g=An(p),x=u[g],_=u[p],b=(V,v)=>$s(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(_=b(p,_));let O=l.fn({...e,[g]:x,[p]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[g]:s,[p]:a}}}}}};function ti(){return typeof window<"u"}function Rt(t){return Gs(t)?(t.nodeName||"").toLowerCase():"#document"}function Ee(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Je(t){var e;return(e=(Gs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gs(t){return ti()?t instanceof Node||t instanceof Ee(t).Node:!1}function Be(t){return ti()?t instanceof Element||t instanceof Ee(t).Element:!1}function Qe(t){return ti()?t instanceof HTMLElement||t instanceof Ee(t).HTMLElement:!1}function Ks(t){return!ti()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ee(t).ShadowRoot}function Ar(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function qs(t){return/^(table|td|th)$/.test(Rt(t))}function _r(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var su=/transform|translate|scale|rotate|perspective|filter/,au=/paint|layout|strict|content/,Ot=t=>!!t&&t!=="none",wn;function Gt(t){let e=Be(t)?He(t):t;return Ot(e.transform)||Ot(e.translate)||Ot(e.scale)||Ot(e.rotate)||Ot(e.perspective)||!ri()&&(Ot(e.backdropFilter)||Ot(e.filter))||su.test(e.willChange||"")||au.test(e.contain||"")}function Ys(t){let e=ut(t);for(;Qe(e)&&!qt(e);){if(Gt(e))return e;if(_r(e))return null;e=ut(e)}return null}function ri(){return wn==null&&(wn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wn}function qt(t){return/^(html|body|#document)$/.test(Rt(t))}function He(t){return Ee(t).getComputedStyle(t)}function Cr(t){return Be(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ut(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ks(t)&&t.host||Je(t);return Ks(e)?e.host:e}function Xs(t){let e=ut(t);return qt(e)?(t.ownerDocument||t).body:Qe(e)&&Ar(e)?e:Xs(e)}function ei(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Xs(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ee(n);if(o){let a=ii(s);return e.concat(s,s.visualViewport||[],Ar(n)?n:[],a&&r?ei(a):[])}else return e.concat(n,ei(n,[],r))}function ii(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Qs(t){let e=He(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Qe(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Sr(r)!==o||Sr(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function ea(t){return Be(t)?t:t.contextElement}function Yt(t){let e=ea(t);if(!Qe(e))return Ke(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=Qs(e),s=(o?Sr(r.width):r.width)/i,a=(o?Sr(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var lu=Ke(0);function ta(t){let e=Ee(t);return!ri()||!e.visualViewport?lu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cu(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ee(t)}function wr(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=ea(t),s=Ke(1);e&&(i?Be(i)&&(s=Yt(i)):s=Yt(t));let a=cu(o,r,i)?ta(o):Ke(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&i){let p=Ee(o),g=Be(i)?Ee(i):i,x=p,_=ii(x);for(;_&&g!==x;){let b=Yt(_),O=_.getBoundingClientRect(),V=He(_),v=O.left+(_.clientLeft+parseFloat(V.paddingLeft))*b.x,L=O.top+(_.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=L,x=Ee(_),_=ii(x)}}return Tt({width:u,height:d,x:l,y:c})}function ni(t,e){let r=Cr(t).scrollLeft;return e?e.left+r:wr(Je(t)).left+r}function ra(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-ni(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function uu(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Je(i),a=e?_r(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ke(1),u=Ke(0),d=Qe(i);if((d||!o)&&((Rt(i)!=="body"||Ar(s))&&(l=Cr(i)),d)){let g=wr(i);c=Yt(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=s&&!d&&!o?ra(s,l):Ke(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function du(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function pu(t){let e=Cr(t),r=t.ownerDocument.body,i=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+ni(t),s=-e.scrollTop;return He(r).direction==="rtl"&&(o+=lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var fu=25;function hu(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ee(t),o=Je(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!ri()||e==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(ni(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),_=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-_),O=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;O<=fu&&(a-=O)}return{width:a,height:l,x:c,y:u}}function mu(t,e){let r=wr(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Yt(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function Zs(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=hu(t,r,e);else if(e==="document")i=pu(Je(t));else if(Be(e))i=mu(e,r);else{let n=ta(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tt(i)}function gu(t,e){let r=e.get(t);if(r)return r;let i=ei(t,[],!1).filter(a=>Be(a)&&Rt(a)!=="body"),n=null,o=He(t).position==="fixed",s=o?ut(t):t;for(;Be(s)&&!qt(s);){let a=He(s),l=Gt(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=ut(s)}return e.set(t,i),i}function yu(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?_r(e)?[]:gu(e,this._c):[].concat(r),i],a=Zs(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=Zs(e,s[p],n);l=lt(g.top,l),c=vr(g.right,c),u=vr(g.bottom,u),d=lt(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function bu(t){let{width:e,height:r}=Qs(t);return{width:e,height:r}}function xu(t,e,r){let i=Qe(e),n=Je(e),o=r==="fixed",s=wr(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ke(0);if((i||!o)&&((Rt(e)!=="body"||Ar(n))&&(a=Cr(e)),i)){let p=wr(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!i&&n&&(l.x=ni(n));let c=n&&!i&&!o?ra(n,a):Ke(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function Tn(t){return He(t).position==="static"}function Js(t,e){if(!Qe(t)||He(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Je(t)===r&&(r=r.ownerDocument.body),r}function ia(t,e){let r=Ee(t);if(_r(t))return r;if(!Qe(t)){let n=ut(t);for(;n&&!qt(n);){if(Be(n)&&!Tn(n))return n;n=ut(n)}return r}let i=Js(t,e);for(;i&&qs(i)&&Tn(i);)i=Js(i,e);return i&&qt(i)&&Tn(i)&&!Gt(i)?r:i||Ys(t)||r}var vu=async function(t){let e=this.getOffsetParent||ia,r=this.getDimensions,i=await r(t.floating);return{reference:xu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Su(t){return He(t).direction==="rtl"}var oi={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Je,getClippingRect:yu,getOffsetParent:ia,getElementRects:vu,getClientRects:du,getDimensions:bu,getScale:Yt,isElement:Be,isRTL:Su};var na=js,oa=Ws;var sa=(t,e,r)=>{let i=new Map,n=r??{},o={...oi,...n.platform,_c:i};return zs(t,e,{...n,platform:o})};function aa(t){return Eu(t)}function On(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Eu(t){for(let e=t;e;e=On(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=On(t);e;e=On(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Gt(r)||e.tagName==="BODY"))return e}return null}async function la(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},sa(t,e,{strategy:i.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,aa)},middleware:[oa({crossAxis:!0}),na({allowedPlacements:[i.placement]})]})}var or=f(S());var Xn=f(re());var ca=f(re(),1);var Rn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ua(t,e){return(0,ca.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Tr(t);try{return JSON.parse(r)}catch{return Tr(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Or,...e??{}})}function Au(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Xt(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Xt(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Xt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Xt(t,e){try{return Au(t,e)}catch{return!1}}function Or(t,e){return!Xt(t,e)}function Tr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function si(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var da=f(re(),1);var Ln=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:Or,attribute:!1,...e};(0,da.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var ai=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lt=f(re(),1);var li=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var fa=f(z(),1);var ci=globalThis,_u=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var pa=(t,e)=>{if(_u)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var ui=class extends fa.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return pa(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Rn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function ha(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Jt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ba,ma=Symbol("constructorPrototype"),ga=Symbol("constructorName"),xa=Symbol("exportpartsDebouncer"),ya=Symbol("dynamicDependenciesLoaded"),Zt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Zt.eventName="exportparts-updated";var Ge=class extends ui{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ba]=new li(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[xa].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ga]=this.constructor.name,this[ma]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ga]&&Object.setPrototypeOf(this,this[ma])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ya]||(r[ya]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Zt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Zt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Zt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=ha(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],x=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...g,...x].filter(l).map(b=>b.trim());for(let b of _)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};ba=xa;Jt([(0,Lt.property)()],Ge.prototype,"exportpartsPrefix",void 0);Jt([ua([])],Ge.prototype,"exportpartsPrefixes",void 0);Jt([(0,Lt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);Jt([(0,Lt.property)()],Ge.prototype,"customStylesheet",void 0);Jt([(0,Lt.property)()],Ge.prototype,"elementToFocus",void 0);Jt([(0,Lt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function di(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Rr=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Pt=Symbol("internalStores"),Cu=si(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Pt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Pt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Pt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Pt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Pt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[dt].has(s.store):this[dt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[dt].set(s,a.subscribe(()=>this.updateFromStores())),this[Rr].set(s,[]),di(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Rr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[dt].has(s)&&this[dt].get(s)(),this[dt].delete(s),(a=this[Rr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Rr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dt,r=Pt,i=Rr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),va=class extends Cu(Ge){};function ue(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Sa=wu,Pn=()=>Math.random().toString(36).substring(7).split("").join("."),Tu={INIT:`@@redux/INIT${Pn()}`,REPLACE:`@@redux/REPLACE${Pn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pn()}`},pi=Tu;function fi(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Dn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Dn)(t,e)}let i=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,O)=>{s.set(O,b)}))}function u(){if(l)throw new Error(ue(3));return n}function d(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let O=!0;c();let V=a++;return s.set(V,b),function(){if(O){if(l)throw new Error(ue(6));O=!1,c(),s.delete(V),o=null}}}function p(b){if(!fi(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(ue(10));i=b,p({type:pi.REPLACE})}function x(){let b=d;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ue(11));function V(){let L=O;L.next&&L.next(u())}return V(),{unsubscribe:b(V)}},[Sa](){return this}}}return p({type:pi.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Sa]:x}}function Ou(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:pi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:pi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Ea(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,o;try{Ou(r)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],x=a[p],_=g(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[p]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Lr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Aa(...t){return e=>(r,i)=>{let n=e(r,i),o=()=>{throw new Error(ue(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Lr(...a)(n.dispatch),{...n,dispatch:o}}}function _a(t){return fi(t)&&"type"in t&&typeof t.type=="string"}var Na=Symbol.for("immer-nothing"),Ca=Symbol.for("immer-draftable"),he=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Te=Object,er=Te.getPrototypeOf,yi="constructor",Ai="prototype",Mn="configurable",bi="enumerable",mi="writable",Pr="value",qe=t=>!!t&&!!t[he];function Oe(t){return t?ka(t)||Ci(t)||!!t[Ca]||!!t[yi]?.[Ca]||wi(t)||Ti(t):!1}var Ru=Te[Ai][yi].toString(),wa=new WeakMap;function ka(t){if(!t||!jn(t))return!1;let e=er(t);if(e===null||e===Te[Ai])return!0;let r=Te.hasOwnProperty.call(e,yi)&&e[yi];if(r===Object)return!0;if(!Qt(r))return!1;let i=wa.get(r);return i===void 0&&(i=Function.toString.call(r),wa.set(r,i)),i===Ru}function _i(t,e,r=!0){kr(t)===0?(r?Reflect.ownKeys(t):Te.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function kr(t){let e=t[he];return e?e.type_:Ci(t)?1:wi(t)?2:Ti(t)?3:0}var Nn=(t,e,r=kr(t))=>r===2?t.has(e):Te[Ai].hasOwnProperty.call(t,e),$n=(t,e,r=kr(t))=>r===2?t.get(e):t[e],xi=(t,e,r,i=kr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Lu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ci=Array.isArray,wi=t=>t instanceof Map,Ti=t=>t instanceof Set,jn=t=>typeof t=="object",Qt=t=>typeof t=="function",kn=t=>typeof t=="boolean";function Pu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var et=t=>t.copy_||t.base_;var Wn=t=>t.modified_?t.copy_:t.base_;function Un(t,e){if(wi(t))return new Map(t);if(Ti(t))return new Set(t);if(Ci(t))return Array[Ai].slice.call(t);let r=ka(t);if(e===!0||e==="class_only"&&!r){let i=Te.getOwnPropertyDescriptors(t);delete i[he];let n=Reflect.ownKeys(i);for(let o=0;o<n.length;o++){let s=n[o],a=i[s];a[mi]===!1&&(a[mi]=!0,a[Mn]=!0),(a.get||a.set)&&(i[s]={[Mn]:!0,[mi]:!0,[bi]:a[bi],[Pr]:t[s]})}return Te.create(er(t),i)}else{let i=er(t);if(i!==null&&r)return{...t};let n=Te.create(i);return Te.assign(n,t)}}function Kn(t,e=!1){return Oi(t)||qe(t)||!Oe(t)||(kr(t)>1&&Te.defineProperties(t,{set:hi,add:hi,clear:hi,delete:hi}),Te.freeze(t),e&&_i(t,(r,i)=>{Kn(i,!0)},!1)),t}function Du(){ze(2)}var hi={[Pr]:Du};function Oi(t){return t===null||!jn(t)?!0:Te.isFrozen(t)}var vi="MapSet",Vn="Patches",Ta="ArrayMethods",Ia={};function Dt(t){let e=Ia[t];return e||ze(0,t),e}var Oa=t=>!!Ia[t];var Dr,Ma=()=>Dr,Nu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Oa(vi)?Dt(vi):void 0,arrayMethodsPlugin_:Oa(Ta)?Dt(Ta):void 0});function Ra(t,e){e&&(t.patchPlugin_=Dt(Vn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Fn(t){Bn(t),t.drafts_.forEach(ku),t.drafts_=null}function Bn(t){t===Dr&&(Dr=t.parent_)}var La=t=>Dr=Nu(Dr,t);function ku(t){let e=t[he];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Pa(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[he].modified_&&(Fn(e),ze(4)),Oe(t)&&(t=Da(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[he].base_,t,e)}else t=Da(e,r);return Iu(e,t,!0),Fn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Na?t:void 0}function Da(t,e){if(Oi(e))return e;let r=e[he];if(!r)return Si(e,t.handledSet_,t);if(!Ri(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Va(r,t)}return r.copy_}function Iu(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Kn(e,r)}function $a(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ri=(t,e)=>t.scope_===e,Mu=[];function Ua(t,e,r,i){let n=et(t),o=t.type_;if(i!==void 0&&$n(n,i,o)===e){xi(n,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_i(n,(l,c)=>{if(qe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??Mu;for(let a of s)xi(n,a,r,o)}function $u(t,e,r){t.callbacks_.push(function(n){let o=e;if(!o||!Ri(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Wn(o);Ua(t,o.draft_??o,s,r),Va(o,n)})}function Va(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}$a(t)}}function Uu(t,e,r){let{scope_:i}=t;if(qe(r)){let n=r[he];Ri(n,i)&&n.callbacks_.push(function(){gi(t);let s=Wn(n);Ua(t,r,s,e)})}else Oe(r)&&t.callbacks_.push(function(){let o=et(t);t.type_===3?o.has(r)&&Si(r,i.handledSet_,i):$n(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Si($n(t.copy_,e,t.type_),i.handledSet_,i)})}function Si(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||qe(t)||e.has(t)||!Oe(t)||Oi(t)||(e.add(t),_i(t,(i,n)=>{if(qe(n)){let o=n[he];if(Ri(o,r)){let s=Wn(o);xi(t,i,s,t.type_),$a(o)}}else Oe(n)&&Si(n,e,r)})),t}function Vu(t,e){let r=Ci(t),i={type_:r?1:0,scope_:e?e.scope_:Ma(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,o=Ei;r&&(n=[i],o=Nr);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return i.draft_=a,i.revoke_=s,[a,i]}var Ei={get(t,e){if(e===he)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=et(t);if(!Nn(n,e,t.type_))return Bu(t,n,e);let o=n[e];if(t.finalized_||!Oe(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Pu(e))return o;if(o===In(t.base_,e)||Fu(t,e,o)){gi(t);let s=t.type_===1?+e:e,a=zn(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in et(t)},ownKeys(t){return Reflect.ownKeys(et(t))},set(t,e,r){let i=Fa(et(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=In(et(t),e),o=n?.[he];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Lu(r,n)&&(r!==void 0||Nn(t.base_,e,t.type_)))return!0;gi(t),Hn(t)}return t.copy_[e]===r&&(r!==void 0||Nn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Uu(t,e,r)),!0},deleteProperty(t,e){return gi(t),In(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Hn(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=et(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[mi]:!0,[Mn]:t.type_!==1||e!=="length",[bi]:i[bi],[Pr]:r[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return er(t.base_)},setPrototypeOf(){ze(12)}},Nr={};for(let t in Ei){let e=Ei[t];Nr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Nr.deleteProperty=function(t,e){return Nr.set.call(this,t,e,void 0)};Nr.set=function(t,e,r){return Ei.set.call(this,t[0],e,r,t[0])};function In(t,e){let r=t[he];return(r?et(r):t)[e]}function Fu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Oe(r)||r[he]?!1:t.baseRefs_.has(r)}function Bu(t,e,r){let i=Fa(e,r);return i?Pr in i?i[Pr]:i.get?.call(t.draft_):void 0}function Fa(t,e){if(!(e in t))return;let r=er(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=er(r)}}function Hn(t){t.modified_||(t.modified_=!0,t.parent_&&Hn(t.parent_))}function gi(t){t.copy_||(t.assigned_=new Map,t.copy_=Un(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Hu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Qt(e)&&!Qt(r)){let o=r;r=e;let s=this;return function(l=o,...c){return s.produce(l,u=>r.call(this,u,...c))}}Qt(r)||ze(6),i!==void 0&&!Qt(i)&&ze(7);let n;if(Oe(e)){let o=La(this),s=zn(o,e,void 0),a=!0;try{n=r(s),a=!1}finally{a?Fn(o):Bn(o)}return Ra(o,i),Pa(n,o)}else if(!e||!jn(e)){if(n=r(e),n===void 0&&(n=e),n===Na&&(n=void 0),this.autoFreeze_&&Kn(n,!0),i){let o=[],s=[];Dt(Vn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),i(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,r)=>{if(Qt(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,n;return[this.produce(e,r,(s,a)=>{i=s,n=a}),i,n]},kn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),kn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),kn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Oe(t)||ze(8),qe(t)&&(t=Ba(t));let e=La(this),r=zn(e,t,void 0);return r[he].isManual_=!0,Bn(e),r}finishDraft(t,e){let r=t&&t[he];(!r||!r.isManual_)&&ze(9);let{scope_:i}=r;return Ra(i,e),Pa(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Dt(Vn).applyPatches_;return qe(t)?i(t,e):this.produce(t,n=>i(n,e))}};function zn(t,e,r,i){let[n,o]=wi(e)?Dt(vi).proxyMap_(e,r):Ti(e)?Dt(vi).proxySet_(e,r):Vu(e,r);return(r?.scope_??Ma()).drafts_.push(n),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?$u(r,o,i):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function Ba(t){return qe(t)||ze(10,t),Ha(t)}function Ha(t){if(!Oe(t)||Oi(t))return t;let e=t[he],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Un(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Un(t,!0);return _i(r,(n,o)=>{xi(r,n,Ha(o))},i),e&&(e.finalized_=!1),r}var zu=globalThis.Iterator,jh=typeof zu?.from=="function";var ju=new Hu,Gn=ju.produce;function za(t){return({dispatch:r,getState:i})=>n=>o=>typeof o=="function"?o(r,i,t):n(o)}var ja=za(),Wa=za;var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lr:Lr.apply(null,arguments)},Zh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Ku=t=>t&&typeof t.match=="function";function pt(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(tt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>_a(i)&&i.type===t,r}var Xa=class Ir extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Ir.prototype)}static get[Symbol.species](){return Ir}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Ir(...e[0].concat(this)):new Ir(...e.concat(this))}};function Ka(t){return Oe(t)?Gn(t,()=>{}):t}function Li(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Gu(t){return typeof t=="boolean"}var qu=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new Xa;return r&&(Gu(r)?s.push(ja):s.push(Wa(r.extraArgument))),s},Yu="RTK_autoBatch";var Ga=t=>e=>{setTimeout(e,t)},Xu=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=t(n),s=setTimeout(n,e)},Zu=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):Ga(10):t.type==="callback"?t.queueNotification:Ga(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Yu],o=!n,o&&(s||(s=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},Ju=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Xa(t);return i&&n.push(Zu(typeof i=="object"?i:void 0)),n};function Za(t){let e=qu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(fi(r))l=Ea(r);else throw new Error(tt(1));let c;typeof i=="function"?c=i(e):c=e();let u=Lr;n&&(u=Wu({trace:!1,...typeof n=="object"&&n}));let d=Aa(...c),p=Ju(d),g=typeof a=="function"?a(p):p(),x=u(...g);return Dn(l,s,x)}function Ja(t){let e={},r=[],i,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(tt(28));if(a in e)throw new Error(tt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase(o){return i=o,n}};return t(n),[e,r,i]}function Qu(t){return typeof t=="function"}function ed(t,e){let[r,i,n]=Ja(e),o;if(Qu(t))o=()=>Ka(t());else{let a=Ka(t);o=()=>a}function s(a=o(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(qe(u)){let g=d(u,l);return g===void 0?u:g}else{if(Oe(u))return Gn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return s.getInitialState=o,s}var td=(t,e)=>Ku(t)?t.match(e):t(e);function rd(...t){return e=>t.some(r=>td(r,e))}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nd=(t=21)=>{let e="",r=t;for(;r--;)e+=id[Math.random()*64|0];return e},od=["name","message","stack","code"],qn=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},qa=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},sd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of od)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Ya="External signal was aborted",ad=(()=>{function t(e,r,i){let n=pt(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=pt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=pt(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||sd)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):nd(),x=new AbortController,_,b;function O(v){b=v,x.abort()}c&&(c.aborted?O(Ya):c.addEventListener("abort",()=>O(Ya),{once:!0}));let V=(async function(){let v;try{let I=i?.condition?.(l,{getState:d,extra:p});if(cd(I)&&(I=await I),I===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let X=new Promise((j,Z)=>{_=()=>{Z({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(o(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([X,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:O,rejectWithValue:((j,Z)=>new qn(j,Z)),fulfillWithValue:((j,Z)=>new qa(j,Z))})).then(j=>{if(j instanceof qn)throw j;return j instanceof qa?n(j.payload,g,l,j.meta):n(j,g,l)})])}catch(I){v=I instanceof qn?s(null,g,l,I.payload,I.meta):s(I,g,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:O,requestId:g,arg:l,unwrap(){return V.then(ld)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:rd(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function ld(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function cd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qa=Symbol.for("rtk-slice-createasyncthunk"),Qh={[Qa]:ad};function ud(t,e){return`${t}/${e}`}function dd({creators:t}={}){let e=t?.asyncThunk?.[Qa];return function(i){let{name:n,reducerPath:o=n}=i;if(!n)throw new Error(tt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(fd()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,L){let I=typeof v=="string"?v:v.type;if(!I)throw new Error(tt(12));if(I in l.sliceCaseReducersByType)throw new Error(tt(13));return l.sliceCaseReducersByType[I]=L,c},addMatcher(v,L){return l.sliceMatchers.push({matcher:v,reducer:L}),c},exposeAction(v,L){return l.actionCreators[v]=L,c},exposeCaseReducer(v,L){return l.sliceCaseReducersByName[v]=L,c}};a.forEach(v=>{let L=s[v],I={reducerName:v,type:ud(n,v),createNotation:typeof i.reducers=="function"};md(L)?yd(I,L,c,e):hd(I,L,c)});function u(){let[v={},L=[],I=void 0]=typeof i.extraReducers=="function"?Ja(i.extraReducers):[i.extraReducers],X={...v,...l.sliceCaseReducersByType};return ed(i.initialState,j=>{for(let Z in X)j.addCase(Z,X[Z]);for(let Z of l.sliceMatchers)j.addMatcher(Z.matcher,Z.reducer);for(let Z of L)j.addMatcher(Z.matcher,Z.reducer);I&&j.addDefaultCase(I)})}let d=v=>v,p=new Map,g=new WeakMap,x;function _(v,L){return x||(x=u()),x(v,L)}function b(){return x||(x=u()),x.getInitialState()}function O(v,L=!1){function I(j){let Z=j[v];return typeof Z>"u"&&L&&(Z=Li(g,I,b)),Z}function X(j=d){let Z=Li(p,L,()=>new WeakMap);return Li(Z,j,()=>{let cr={};for(let[Pe,ht]of Object.entries(i.selectors??{}))cr[Pe]=pd(ht,j,()=>Li(g,j,b),L);return cr})}return{reducerPath:v,getSelectors:X,get selectors(){return X(I)},selectSlice:I}}let V={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(o),injectInto(v,{reducerPath:L,...I}={}){let X=L??o;return v.inject({reducerPath:X,reducer:_},I),{...V,...O(X,!0)}}};return V}}function pd(t,e,r,i){function n(o,...s){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return n.unwrapped=t,n}var el=dd();function fd(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function hd({type:t,reducerName:e,createNotation:r},i,n){let o,s;if("reducer"in i){if(r&&!gd(i))throw new Error(tt(17));o=i.reducer,s=i.prepare}else o=i;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?pt(t,s):pt(t))}function md(t){return t._reducerDefinitionType==="asyncThunk"}function gd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function yd({type:t,reducerName:e},r,i,n){if(!n)throw new Error(tt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,d=n(t,o,u);i.exposeAction(e,d),s&&i.addCase(d.fulfilled,s),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(e,{fulfilled:s||Pi,pending:a||Pi,rejected:l||Pi,settled:c||Pi})}function Pi(){}var tl="listener",rl="completed",il="cancelled",em=`task-${il}`,tm=`task-${rl}`,rm=`${tl}-${il}`,im=`${tl}-${rl}`;var{assign:nl}=Object;var Yn="listenerMiddleware";var bd=nl(pt(`${Yn}/add`),{withTypes:()=>bd}),nm=pt(`${Yn}/removeAll`),xd=nl(pt(`${Yn}/remove`),{withTypes:()=>xd});function tt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var vd=si(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Di=class extends vd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ol=class t extends Di{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(di(o))return o;if(n==null)return;let s=el({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Za({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Tr(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new ai,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Xt(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ni=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ki=f(S()),Sd="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mr.eventName="ui-locale-changed";var Ed={session:(t,e)=>{(0,ki.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Nt(e.payload)),0))}},P=ki.FtReduxStore.get({name:Sd,reducers:Ed,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var sl=f(S()),Ii=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},km=(0,sl.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Ni.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ii([(0,Xn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ii([(0,Xn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ii([Ln({store:P.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ii([Ln({store:P.name})],e.prototype,"uiLocale",void 0),e});var al;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(al||(al={}));var ll;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ll||(ll={}));var cl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(cl||(cl={}));var ul;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ul||(ul={}));var dl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(dl||(dl={}));var pl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pl||(pl={}));var fl;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(fl||(fl={}));var hl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(hl||(hl={}));var ml;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(ml||(ml={}));var gl;(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"})(gl||(gl={}));var yl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(yl||(yl={}));var bl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(bl||(bl={}));var xl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(xl||(xl={}));var vl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(vl||(vl={}));var Sl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Sl||(Sl={}));var El;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(El||(El={}));var Al;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Al||(Al={}));var _l;(function(t){t.ASC="ASC",t.DESC="DESC"})(_l||(_l={}));var Cl;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Cl||(Cl={}));var wl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(wl||(wl={}));var Tl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Tl||(Tl={}));var Ol;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ol||(Ol={}));var Rl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Rl||(Rl={}));var Ll;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ll||(Ll={}));var Pl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Pl||(Pl={}));var Dl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Dl||(Dl={}));var Nl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Nl||(Nl={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var ke;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ke||(ke={}));var kl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(kl||(kl={}));var Il;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Il||(Il={}));var Ml;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ml||(Ml={}));var $l;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})($l||($l={}));var Ul;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ul||(Ul={}));var Vl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Vl||(Vl={}));var Fl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fl||(Fl={}));var Bl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Bl||(Bl={}));var Hl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Hl||(Hl={}));var zl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(zl||(zl={}));var jl;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(jl||(jl={}));var Wl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Wl||(Wl={}));var Ad={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Kl(t,e){return t===e||(Ad[t]??[]).some(r=>Kl(r,e))}function Gl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Kl(i,e))}var Fi=f(S());var Zn=f(S());var kt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=P.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=P.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var tr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Re=class extends tr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Zn.CacheRegistry,this.cache=e?n.commonCache:new Zn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Mi=class extends Re{async listMySearches(){let{session:e}=P.getState();return Gl(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var $i=class extends Re{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Ui=class extends Re{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Vi=class extends Re{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var _d="ft-user-assets",Cd={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ke).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Qn(t,r,[...Jn(t,r),n]),ql(t,r,1,i),Yl(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Qn(t,r,Jn(t,r).map(n=>n.id===i.id?i:n)),Yl(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Qn(t,r,Jn(t,r).filter(o=>o.id!==n)),ql(t,r,-1,i)}},Xl={[ke.SEARCHES]:"savedSearches",[ke.BOOKMARKS]:"bookmarks",[ke.BOOKS]:void 0,[ke.COLLECTIONS]:void 0},Jn=(t,e)=>{var r;let i=Xl[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Qn=(t,e,r)=>{let i=Xl[e];i&&(t[i]=r)},ql=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ke.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Yl=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ge=Fi.FtReduxStore.get({name:_d,reducers:Cd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ke).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),eo=class{constructor(e=new Ui,r=new Vi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,this.savedSearchesService=new Mi,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,Fi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ge.getState().assetCounts.allAsset[e]!==r.count&&ge.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ge.getState().assetCounts.bookmarkByMap[e]!==r.count&&ge.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===ke.BOOKMARKS&&r&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(r)}}},wd=new eo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd);var to=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new to;var Ie=f(S());var Zl,rr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Td=Symbol("clearAfterUnitTest"),Bi=class extends(0,Ie.withEventBus)(Re){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zl]=()=>{this.defaultMessages={},this.cache=new Ie.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ie.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new Ie.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof Ie.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new rr({loadedContexts:e})),this.dispatchEvent(new rr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new rr({loadedContexts:[e]})),this.dispatchEvent(new rr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ie.delay)(0).then(()=>i()).catch(()=>null)))}};Zl=Td;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Bi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ir=window.FluidTopicsI18nService,Hi=window.FluidTopicsCustomI18nService;var Jl=f(S()),ro=class{highlightHtml(e,r,i){(0,Jl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ro;var Ql=f(S());var io=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Ql.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:P.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new io;var ec=f(S());var $r=class{static get(e,r){var i,n,o,s;let a=P.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new ec.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var no=class{urlToSearchRequest(e){return $r.get().parse(e)}searchRequestToUrl(e){return $r.get().serialize(e)}};window.FluidTopicsUrlService=new no;var rt=f(S());var It=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};It.eventName="before-location-change";var Mt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mt.eventName="change";var oo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},tc=new oo;var zi=class t extends rt.WithEventBus{static build(){return new t(window.history,tc,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,rt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=new It(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(It.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(It.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mt.eventName,e)}currentItem(){return(0,rt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,rt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,rt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,rt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=zi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var rc=f(z());var ic=rc.css`
933
- `;var sc=f(z()),ye=f(re()),Vt=f(S());var $t=f(S());function nc(t,e){let{authenticationRequired:r,session:i}=P.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ji=class extends tr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var so=class t extends $t.FtStateManager{static build(e){return new t(P,e)}constructor(e,r){super(),this.store=e,this.cache=new $t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ji,this.cleanSessionDebouncer=new $t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new $t.Debouncer(500),this.apiProvider=r??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Nt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>nc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Mr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},oc=so.build();var Ut=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ur=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Ut(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},G=class extends Vt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=oc,this.contextRoot=new Ur}render(){return sc.html`
934
- <slot></slot>
935
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ir.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=ic;ae([(0,ye.property)()],G.prototype,"baseUrl",void 0);ae([(0,ye.property)()],G.prototype,"tenantId",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ae([(0,ye.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ae([(0,ye.property)()],G.prototype,"uiLocale",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ae([(0,Vt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"editorMode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"noCustom",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ae([(0,ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ae([(0,ye.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ae([(0,Vt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ae([(0,Vt.jsonProperty)(void 0)],G.prototype,"session",void 0);var lc=f(S());var ac={"ft-app-context":G};(0,lc.customElements)(ac);var cc=f(re());var ao=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},nr=new ao;var Ld=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Fr=Symbol("i18nAttributes"),uc=Symbol("i18nListAttributes"),dc=Symbol("i18nProperties"),Wi=Symbol("i18nContexts"),Vr=Symbol("i18nUnsubs"),qi=(0,or.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Hi:ir}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(nr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Fr])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[uc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[dc])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Wi].set(l,{isCustomContext:a}),this[Vr].has(l)||this[Vr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Wi].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Wi].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Vr].forEach(o=>o()),this[Vr].clear()}}return e=Wi,r=Vr,Ld([(0,cc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Ki=class extends qi(or.FtLitElement){},Gi=class extends qi(or.FtLitElementRedux){};var pc=f(S());var lo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?nr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Pd=new lo;var fc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:pc.hasChanged,converter:nr,...e}),r[Fr]=(n=r[Fr])!==null&&n!==void 0?n:new Map,r[Fr].set(i,t??{})};var Yi=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Hi:ir}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var hc=f(z());var mc=hc.css`
936
- `;var Xi=f(z()),ar=f(re()),Zi=f(S());var sr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Me=class extends Gi{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Xi.nothing:Xi.html`
937
- <span class="ft-i18n">
938
- ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
939
- </span>
940
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Me.elementDefinitions={};Me.styles=mc;sr([(0,Zi.redux)()],Me.prototype,"editorMode",void 0);sr([(0,ar.property)()],Me.prototype,"context",void 0);sr([(0,ar.property)()],Me.prototype,"key",void 0);sr([(0,Zi.jsonProperty)([])],Me.prototype,"args",void 0);sr([(0,ar.property)()],Me.prototype,"defaultMessage",void 0);sr([(0,ar.state)()],Me.prototype,"editorMessage",void 0);var yc=f(S());var gc={"ft-i18n":Me};(0,yc.customElements)(gc);var je=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},oe=class extends Ki{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new $e.Debouncer,this.revealDebouncer=new $e.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return bc.html`
941
- <div part="container"
942
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
943
- <slot part="slot"></slot>
944
- <div part="tooltip" role="tooltip" inert
945
- class="ft-tooltip ft-tooltip--${this.validPosition}"
946
- popover="manual">
947
- <div part="tooltip-content" class="ft-tooltip--content">
948
- <slot name="text"></slot>
949
- <ft-typography variant="${Ce.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
950
- ${(r=this.text)===null||r===void 0?void 0:r.message}
951
- </ft-typography>
952
- </div>
953
- </div>
954
- </div>
955
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&la(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${$e.designSystemVariables.transitionDuration}, left ${$e.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,$e.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};oe.elementDefinitions={"ft-typography":ie};oe.styles=ks;je([fc()],oe.prototype,"text",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"manual",void 0);je([(0,Ue.property)({type:Boolean})],oe.prototype,"inline",void 0);je([(0,$e.numberProperty)()],oe.prototype,"delay",void 0);je([(0,Ue.property)()],oe.prototype,"position",void 0);je([(0,$e.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);je([(0,Ue.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);je([(0,Ue.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);je([(0,Ue.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);je([(0,Ue.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);je([(0,Ue.state)()],oe.prototype,"visible",void 0);var vc=f(S());var xc={"ft-tooltip":oe};(0,vc.customElements)(xc);var Sc=f(z()),Br=f(S()),Ft={color:Br.FtCssVariableFactory.extend("--ft-loader-color","",Br.designSystemVariables.colorPrimary),size:Br.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ec=Sc.css`
956
- :host {
957
- line-height: 0;
958
- }
959
-
960
- .ft-loader {
961
- display: inline-block;
962
- position: relative;
963
-
964
- width: ${Ft.size};
965
- height: ${Ft.size};
966
- }
967
-
968
- .ft-loader div {
969
- position: absolute;
970
- top: 37.5%;
971
- width: 25%;
972
- height: 25%;
973
- border-radius: 50%;
974
- background: ${Ft.color};
975
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
976
- }
977
-
978
- .ft-loader div:nth-child(1) {
979
- left: 2.5%;
980
- animation: appear 0.6s infinite;
981
- }
982
-
983
- .ft-loader div:nth-child(2) {
984
- left: 2.5%;
985
- animation: move 0.6s infinite;
986
- }
987
-
988
- .ft-loader div:nth-child(3) {
989
- left: 37.5%;
990
- animation: move 0.6s infinite;
991
- }
992
-
993
- .ft-loader div:nth-child(4) {
994
- left: 72.5%;
995
- animation: disappear 0.6s infinite;
996
- }
997
-
998
- @keyframes appear {
999
- 0% {
1000
- transform: scale(0);
1001
- }
1002
- 100% {
1003
- transform: scale(1);
1004
- }
1005
- }
1006
-
1007
- @keyframes disappear {
1008
- 0% {
1009
- transform: scale(1);
1010
- }
1011
- 100% {
1012
- transform: scale(0);
1013
- }
1014
- }
1015
-
1016
- @keyframes move {
1017
- 0% {
1018
- transform: translate(0, 0);
1019
- }
1020
- 100% {
1021
- transform: translate(calc(0.35 * ${Ft.size}), 0);
1022
- }
1023
- }
1024
- `;var Ac=f(z()),_c=f(S());var Bt=class extends _c.FtLitElement{render(){return Ac.html`
1025
- <div class="ft-loader">
1026
- <div></div>
1027
- <div></div>
1028
- <div></div>
1029
- <div></div>
1030
- </div>
1031
- `}};Bt.styles=Ec;var wc=f(S());var Cc={"ft-loader":Bt};(0,wc.customElements)(Cc);var ft=f(z()),Ji=f(it()),H=f(re());var Rc=f(z()),R=f(S());var Tc=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),q={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:Tc,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",Tc),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},Oc=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),co={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:Oc,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Oc)},Ye={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Lc=Rc.css`
1032
- :host {
1033
- display: inline-block;
1034
- max-width: 100%;
1035
- pointer-events: none;
1036
- }
1037
-
1038
- .ft-button {
1039
- box-shadow: 0px 0px 0px transparent;
1040
- border: 0px solid transparent;
1041
- text-shadow: 0px 0px 0px transparent;
1042
- font-size: ${q.fontSize};
1043
- text-decoration: none;
761
+ .ft-button {
762
+ box-shadow: 0px 0px 0px transparent;
763
+ border: 0px solid transparent;
764
+ text-shadow: 0px 0px 0px transparent;
765
+ font-size: ${q.fontSize};
766
+ text-decoration: none;
1044
767
  }
1045
768
 
1046
769
  .ft-button:hover {
@@ -1118,9 +841,9 @@
1118
841
  }
1119
842
 
1120
843
  .ft-button.ft-button--primary {
1121
- background-color: ${co.backgroundColor};
1122
- --button-internal-color: ${co.color};
1123
- ${(0,R.setVariable)(se.color,co.rippleColor)};
844
+ background-color: ${lo.backgroundColor};
845
+ --button-internal-color: ${lo.color};
846
+ ${(0,R.setVariable)(se.color,lo.rippleColor)};
1124
847
  }
1125
848
 
1126
849
  .ft-button--label {
@@ -1165,19 +888,19 @@
1165
888
  ${(0,R.setVariable)(Ft.size,q.iconSize)};
1166
889
  ${(0,R.setVariable)(Ft.color,"var(--button-internal-color)")};
1167
890
  }
1168
- `;var K=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},$=class t extends(0,Xe.toFtFormComponent)(Xe.FtLitElement){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Xe.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=ft.html`
891
+ `;var K=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},I=class t extends(0,Xe.toFtFormComponent)(Xe.FtLitElement){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}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Xe.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=mt.html`
1169
892
  <ft-ripple part="ripple"
1170
893
  ?disabled=${this.isDisabled()}
1171
894
  ?activated=${this.activated}
1172
895
  ></ft-ripple>
1173
896
  <ft-typography part="label"
1174
- variant="${Ce.button}"
897
+ variant="${me.button}"
1175
898
  element="span"
1176
899
  class="${(0,Ji.classMap)(n)}">
1177
900
  <slot></slot>
1178
901
  </ft-typography>
1179
902
  ${this.resolveIcon()}
1180
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?ft.html`
903
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?mt.html`
1181
904
  <a href="${s}"
1182
905
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
1183
906
  part="button"
@@ -1186,7 +909,7 @@
1186
909
  ?disabled=${this.isDisabled()}>
1187
910
  ${o}
1188
911
  </a>
1189
- `:ft.html`
912
+ `:mt.html`
1190
913
  <button part="button"
1191
914
  class="${(0,Ji.classMap)(this.buttonClasses)}"
1192
915
  aria-label="${pe((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
@@ -1195,18 +918,321 @@
1195
918
  ?disabled=${this.isDisabled()}>
1196
919
  ${o}
1197
920
  </button>
1198
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?ft.html`
921
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?mt.html`
1199
922
  <ft-tooltip part="tooltip"
1200
923
  text="${this.label}"
1201
924
  position="${this.tooltipPosition}">
1202
925
  ${e}
1203
926
  </ft-tooltip>
1204
- `:e}resolveIcon(){return this.loading?ft.html`
1205
- <ft-loader part="loader icon"></ft-loader> `:this.icon?ft.html`
927
+ `:e}resolveIcon(){return this.loading?mt.html`
928
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?mt.html`
1206
929
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1207
- `:ft.html`
930
+ `:mt.html`
1208
931
  <slot part="icon" name="icon"></slot>
1209
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};$.elementDefinitions={"ft-ripple":F,"ft-tooltip":oe,"ft-icon":J,"ft-loader":Bt,"ft-typography":ie};$.styles=[Xe.safariEllipsisFix,Lc,Xe.noTextSelect];$.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:$.labelsObserver.unobserve(e.target)}});K([(0,H.property)({type:Boolean})],$.prototype,"primary",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"outlined",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"dense",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"round",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"disabled",void 0);K([(0,H.property)()],$.prototype,"icon",void 0);K([(0,H.property)()],$.prototype,"iconVariant",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);K([(0,H.property)()],$.prototype,"label",void 0);K([(0,H.property)()],$.prototype,"type",void 0);K([(0,H.property)()],$.prototype,"href",void 0);K([(0,H.property)()],$.prototype,"target",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"loading",void 0);K([(0,H.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);K([(0,H.property)()],$.prototype,"ariaHasPopup",void 0);K([(0,H.property)({attribute:"aria-pressed"})],$.prototype,"ariaPressed",void 0);K([(0,H.property)()],$.prototype,"tooltipPosition",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);K([(0,H.property)({type:Boolean})],$.prototype,"activated",void 0);K([(0,H.query)(".ft-button")],$.prototype,"button",void 0);K([(0,H.query)(".ft-button--label")],$.prototype,"labelContainer",void 0);K([(0,H.state)()],$.prototype,"hasTextContent",void 0);K([(0,H.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);K([(0,H.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var Dc=f(S());var Pc={"ft-button":$};(0,Dc.customElements)(Pc);var Nc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),Ae={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:Nc,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",_e.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",_e.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Nc),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},kc=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),uo={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:kc,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",kc)},Ic={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Mc=[D.noTextSelect,Hr.css`
932
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":F,"ft-tooltip":oe,"ft-icon":J,"ft-loader":Bt,"ft-typography":ne};I.styles=[Xe.safariEllipsisFix,Ac,Xe.noTextSelect];I.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:I.labelsObserver.unobserve(e.target)}});K([(0,H.property)({type:Boolean})],I.prototype,"primary",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"outlined",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"dense",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"round",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"disabled",void 0);K([(0,H.property)()],I.prototype,"icon",void 0);K([(0,H.property)()],I.prototype,"iconVariant",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);K([(0,H.property)()],I.prototype,"label",void 0);K([(0,H.property)()],I.prototype,"type",void 0);K([(0,H.property)()],I.prototype,"href",void 0);K([(0,H.property)()],I.prototype,"target",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"loading",void 0);K([(0,H.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);K([(0,H.property)()],I.prototype,"ariaHasPopup",void 0);K([(0,H.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);K([(0,H.property)()],I.prototype,"tooltipPosition",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);K([(0,H.property)({type:Boolean})],I.prototype,"activated",void 0);K([(0,H.query)(".ft-button")],I.prototype,"button",void 0);K([(0,H.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);K([(0,H.state)()],I.prototype,"hasTextContent",void 0);K([(0,H.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);K([(0,H.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var Cc=f(S());var _c={"ft-button":I};(0,Cc.customElements)(_c);var zt=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},co=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},uo=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},be=class extends wc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Ht.html`
933
+ <div class="${(0,Tc.classMap)(e)}">
934
+ <div
935
+ class="ft-text-field-suggestion--suggestion"
936
+ tabindex="-1"
937
+ @keydown=${this.suggestionKeyDown}
938
+ @click=${this.selectSuggestion}
939
+ >
940
+ <ft-ripple></ft-ripple>
941
+ ${this.helper?Ht.html`
942
+ <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
943
+ ${this.helper}
944
+ </ft-typography>`:Ht.nothing}
945
+ <ft-typography part="label"
946
+ variant="${me.body1}"
947
+ class="ft-text-field-suggestion--label">
948
+ <slot></slot>
949
+ </ft-typography>
950
+ </div>
951
+ ${this.removable?Ht.html`
952
+ <ft-button icon="${Qe.CLOSE}"
953
+ part="remove-button"
954
+ class="ft-text-field-suggestion--remove"
955
+ round
956
+ label="${this.removeButtonLabel}"
957
+ tooltipPosition="left"
958
+ tabindex="-1"
959
+ @keydown=${this.removeButtonKeyDown}
960
+ @click=${this.removeSuggestion}>
961
+ </ft-button>
962
+ `:Ht.nothing}
963
+ </div>
964
+ `}focus(e,r){var i,n;r&&this.removable?(i=this.removeButton)===null||i===void 0||i.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var r;(r=e?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var e,r;return(r=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new co(this.getValue()))}removeSuggestion(){this.dispatchEvent(new uo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(e){var r;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};be.elementDefinitions={"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-button":I};be.styles=Cs;zt([(0,Ze.property)()],be.prototype,"value",void 0);zt([(0,Ze.property)()],be.prototype,"helper",void 0);zt([(0,Ze.property)({type:Boolean})],be.prototype,"removable",void 0);zt([(0,Ze.property)()],be.prototype,"removeButtonLabel",void 0);zt([(0,Ze.query)(".ft-text-field-suggestion--suggestion")],be.prototype,"suggestion",void 0);zt([(0,Ze.query)(".ft-text-field-suggestion--remove")],be.prototype,"removeButton",void 0);zt([(0,Ze.queryAssignedNodes)()],be.prototype,"assignedNodes",void 0);var $=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},w=class extends(0,xe.toFtFormComponent)(xe.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Qe.EYE_SLASH,this.passwordRevealedIcon=Qe.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return re.html`
965
+ <div class="${(0,Rc.classMap)(r)}">
966
+ <div class="ft-text-field--main-panel"
967
+ @keydown=${this.handleKeyboardNavigation}
968
+ @focusout=${this.onMainPanelBlur}>
969
+ <ft-input-label text="${this.label}"
970
+ ?disabled=${this.disabled}
971
+ ?outlined=${this.outlined}
972
+ ?raised=${this.focused||this.value!=""}
973
+ ?error=${!this.inputValid||this.error}></ft-input-label>
974
+ <div class="ft-text-field--input-panel">
975
+ ${this.outlined?re.nothing:re.html`
976
+ <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
977
+ `}
978
+ ${this.prefix?re.html`
979
+ <ft-typography class="ft-text-field--prefix" variant="body1">
980
+ ${this.prefix}
981
+ </ft-typography>
982
+ `:re.nothing}
983
+ <input type="${this.resolveInputType()}"
984
+ name="${pe(this.name)}"
985
+ maxlength="${pe(this.maxLength||void 0)}"
986
+ aria-label="${this.label}"
987
+ aria-describedby="${pe(this.helper?"helper":void 0)}"
988
+ aria-invalid="${this.error}"
989
+ autocomplete="${pe(this.autocomplete)}"
990
+ class="ft-typography--body1 ft-text-field--input"
991
+ part="input"
992
+ ?disabled=${this.disabled}
993
+ .value=${this.value}
994
+ @click=${this.handleClick}
995
+ @keyup=${this.handleInput}
996
+ @keydown=${this.catchComposingEvents}
997
+ @focus=${this.onFocus}
998
+ />
999
+ ${this.renderIcon()}
1000
+ </div>
1001
+ <div class="ft-text-field--suggestions"
1002
+ part="suggestions"
1003
+ @suggestion-selected=${this.onSuggestionSelected}
1004
+ @suggestion-removed=${this.onSuggestionRemoved}
1005
+ >
1006
+ ${this.renderSuggestions()}
1007
+ ${!this.hideCurrentValueSuggestion&&o?re.html`
1008
+ <ft-text-field-suggestion
1009
+ class="ft-text-field-suggestion--new-value"
1010
+ part="suggestion current-value-suggestion"
1011
+ helper="${this.suggestionsHelper}">
1012
+ ${this.value}
1013
+ </ft-text-field-suggestion>
1014
+ `:re.nothing}
1015
+ </div>
1016
+ </div>
1017
+ ${s?re.html`
1018
+ <ft-typography class="ft-text-field--helper-text" variant="${me.caption}" id="helper" role="alert">
1019
+ ${s}
1020
+ </ft-typography>
1021
+ `:re.nothing}
1022
+ </div>
1023
+ `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?re.html`
1024
+ ${(0,Oc.repeat)(this.providedSuggestions,e=>{var r;return re.html`
1025
+ <ft-text-field-suggestion part="suggestion"
1026
+ value="${e.value}"
1027
+ ?removable=${e.removable} }
1028
+ removeButtonLabel="${(r=e.removeButtonLabel)!==null&&r!==void 0?r:re.nothing}"
1029
+ >
1030
+ ${e.icon?re.html`<ft-icon .value=${e.icon}></ft-icon>`:re.nothing}
1031
+ ${e.label}
1032
+ </ft-text-field-suggestion>
1033
+ `})}
1034
+ `:re.html`
1035
+ <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1036
+ `}renderPasswordIcon(){return re.html`
1037
+ <ft-icon class="ft-text-field--icon"
1038
+ .variant=${this.iconVariant}
1039
+ .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1040
+ @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1041
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?re.html`
1042
+ <ft-icon class="ft-text-field--icon"
1043
+ .variant=${this.iconVariant}
1044
+ .value=${this.icon}
1045
+ @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1046
+ `:re.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,xe.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("providedSuggestions")&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new qr(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Yr(e))):this.dispatchEvent(new Xr(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r,i;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[o])===null||r===void 0||r.focus(void 0,(i=this.visibleSuggestions[n])===null||i===void 0?void 0:i.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,xe.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};w.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-text-field-suggestion":be};w.styles=[qt,xe.noTextInputDefaultClearButton,rs];$([(0,N.property)()],w.prototype,"label",void 0);$([(0,N.property)({noAccessor:!0})],w.prototype,"value",null);$([(0,N.state)()],w.prototype,"dispatchedValue",void 0);$([(0,N.property)()],w.prototype,"helper",void 0);$([(0,N.property)()],w.prototype,"suggestionsHelper",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"outlined",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"disabled",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"error",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"fixedMenuPosition",void 0);$([(0,N.property)()],w.prototype,"prefix",void 0);$([(0,N.property)()],w.prototype,"icon",void 0);$([(0,N.property)()],w.prototype,"name",void 0);$([(0,N.property)()],w.prototype,"type",void 0);$([(0,N.property)()],w.prototype,"passwordHiddenIcon",void 0);$([(0,N.property)()],w.prototype,"passwordRevealedIcon",void 0);$([(0,N.property)()],w.prototype,"iconVariant",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"filterSuggestions",void 0);$([(0,xe.numberProperty)()],w.prototype,"maxLength",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"password",void 0);$([(0,N.property)({type:String})],w.prototype,"autocomplete",void 0);$([(0,N.property)({attribute:!1})],w.prototype,"suggestionsProvider",void 0);$([(0,N.property)({type:Boolean})],w.prototype,"hideCurrentValueSuggestion",void 0);$([(0,N.state)()],w.prototype,"focused",void 0);$([(0,N.state)()],w.prototype,"inputValid",void 0);$([(0,N.state)()],w.prototype,"hidePassword",void 0);$([(0,N.state)()],w.prototype,"hideSuggestions",void 0);$([(0,N.state)()],w.prototype,"visibleSuggestions",void 0);$([(0,N.state)()],w.prototype,"providedSuggestions",void 0);$([(0,N.query)(".ft-text-field--main-panel")],w.prototype,"mainPanel",void 0);$([(0,N.query)(".ft-text-field--input")],w.prototype,"input",void 0);$([(0,N.query)(".ft-text-field-suggestion--new-value")],w.prototype,"newValueSuggestion",void 0);$([(0,N.query)(".ft-text-field--suggestions")],w.prototype,"suggestionsContainer",void 0);$([(0,N.queryAll)("ft-text-field-suggestion")],w.prototype,"providedSuggestionsInDom",void 0);$([(0,N.queryAssignedElements)({selector:"ft-text-field-suggestion"})],w.prototype,"slottedSuggestions",void 0);$([(0,xe.ignoreComposingEvents)()],w.prototype,"handleInput",null);$([(0,xe.ignoreComposingEvents)()],w.prototype,"catchComposingEvents",null);var Pc=f(S());var Lc={"ft-text-field":w,"ft-text-field-suggestion":be};(0,Pc.customElements)(Lc);var T={...C,chipGap:he.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",he.foundation.spacing1),chipsMarginTop:he.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",he.foundation.spacing2),suggestSize:he.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Nc=Dc.css`
1047
+ *:focus {
1048
+ outline: none;
1049
+ }
1050
+
1051
+ .ft-combobox {
1052
+ display: flex;
1053
+ flex-direction: column;
1054
+ align-items: stretch;
1055
+ position: relative;
1056
+ --combobox-internal-suggest-size: ${T.suggestSize};
1057
+ }
1058
+
1059
+ ft-input-label {
1060
+ ${(0,he.setVariable)(E.fontSize,T.fontSize)};
1061
+ ${(0,he.setVariable)(E.raisedFontSize,T.labelSize)};
1062
+ ${(0,he.setVariable)(E.verticalSpacing,T.verticalSpacing)};
1063
+ ${(0,he.setVariable)(E.horizontalSpacing,T.horizontalSpacing)};
1064
+ ${(0,he.setVariable)(E.backgroundColor,T.backgroundColor)};
1065
+ }
1066
+
1067
+ /* Ensure the floating label renders above input content and doesn't intercept events */
1068
+ .ft-combobox--main-panel ft-input-label .ft-input-label {
1069
+ z-index: 1;
1070
+ pointer-events: none;
1071
+ }
1072
+
1073
+ .ft-combobox--main-panel {
1074
+ position: relative;
1075
+ display: flex;
1076
+ height: calc(4 * ${T.verticalSpacing} + ${T.labelSize} + ${T.fontSize});
1077
+ }
1078
+
1079
+ .ft-combobox--input-panel {
1080
+ flex-grow: 1;
1081
+ position: relative;
1082
+ display: flex;
1083
+ align-items: center;
1084
+ overflow: hidden;
1085
+ padding: 0 ${T.horizontalSpacing};
1086
+ }
1087
+
1088
+ .ft-combobox--outlined .ft-combobox--input-panel {
1089
+ border-radius: ${T.borderRadiusS};
1090
+ }
1091
+
1092
+ .ft-combobox--filled .ft-combobox--input-panel {
1093
+ border-radius: ${T.borderRadiusS} ${T.borderRadiusS} 0 0;
1094
+ }
1095
+
1096
+ /* Match text-field filled layout when there is a label: input aligns to bottom and container has bottom padding */
1097
+ .ft-combobox--filled.ft-combobox--with-label .ft-combobox--input-panel {
1098
+ align-items: flex-end;
1099
+ padding: 0 ${T.horizontalSpacing} ${T.verticalSpacing} ${T.horizontalSpacing};
1100
+ }
1101
+
1102
+ /* Focus color on label when interacting */
1103
+ .ft-combobox:not(.ft-combobox--disabled):focus-within ft-input-label {
1104
+ ${(0,he.setVariable)(E.borderColor,T.colorPrimary)};
1105
+ ${(0,he.setVariable)(E.textColor,T.colorPrimary)};
1106
+ }
1107
+
1108
+ .ft-combobox--in-error .ft-combobox--input,
1109
+ .ft-combobox--in-error .ft-combobox--helper-text {
1110
+ color: ${C.colorError};
1111
+ }
1112
+
1113
+ .ft-combobox--input {
1114
+ display: block;
1115
+ position: relative;
1116
+ flex-grow: 1;
1117
+ flex-shrink: 1;
1118
+ min-width: 0;
1119
+ font-size: ${T.fontSize};
1120
+ color: ${T.colorOnSurface};
1121
+ padding: calc(2 * ${T.verticalSpacing}) 0;
1122
+ border: none;
1123
+ background: none;
1124
+ }
1125
+
1126
+ .ft-combobox--with-label.ft-combobox--filled .ft-combobox--input {
1127
+ padding-bottom: 0;
1128
+ padding-top: calc(${T.labelSize} + 2 * ${T.verticalSpacing});
1129
+ }
1130
+
1131
+ .ft-combobox--disabled .ft-combobox--input {
1132
+ color: ${T.colorOnSurfaceDisabled};
1133
+ cursor: not-allowed;
1134
+ }
1135
+
1136
+ .ft-combobox--helper-text {
1137
+ padding: 0 12px 0 ${T.horizontalSpacing};
1138
+ color: ${T.helperColor};
1139
+ }
1140
+
1141
+ .ft-combobox--listbox {
1142
+ margin: 0;
1143
+ padding: 0;
1144
+ display: none;
1145
+ position: absolute;
1146
+ top: calc(100% + 2px);
1147
+ left: -1px;
1148
+ right: -1px;
1149
+ list-style: none;
1150
+ z-index: ${T.floatingZIndex};
1151
+ background: ${T.backgroundColor};
1152
+ border: 1px solid ${T.colorOutline};
1153
+ border-radius: 0 0 ${T.borderRadiusS} ${T.borderRadiusS};
1154
+ box-shadow: ${T.elevation02};
1155
+ outline: none;
1156
+ max-height: ${T.suggestSize};
1157
+ overflow-y: auto;
1158
+ overflow-x: hidden;
1159
+ font-size: ${T.fontSize};
1160
+ cursor: pointer;
1161
+ }
1162
+
1163
+ .ft-combobox--listbox[data-visible="true"] {
1164
+ display: block;
1165
+ }
1166
+
1167
+ .ft-combobox--option {
1168
+ margin: 0;
1169
+ display: block;
1170
+ padding: 0; /* Inner suggestion container handles padding */
1171
+ cursor: pointer;
1172
+ color: ${T.colorOnSurface};
1173
+ }
1174
+
1175
+ .ft-combobox-suggestion {
1176
+ position: relative;
1177
+ padding: 8px ${T.horizontalSpacing};
1178
+ cursor: pointer;
1179
+ min-height: 44px;
1180
+ box-sizing: border-box;
1181
+ outline: none;
1182
+ display: flex;
1183
+ align-items: center;
1184
+ gap: 8px;
1185
+ }
1186
+
1187
+ .ft-combobox-suggestion--label {
1188
+ display: flex;
1189
+ align-items: center;
1190
+ gap: 8px;
1191
+ flex-grow: 1;
1192
+ flex-shrink: 1;
1193
+ }
1194
+
1195
+ .ft-combobox-suggestion--with-helper {
1196
+ display: flex;
1197
+ flex-direction: column;
1198
+ align-items: flex-start;
1199
+ gap: 0;
1200
+ }
1201
+
1202
+ .ft-combobox-suggestion--helper-text {
1203
+ color: ${T.helperColor};
1204
+ }
1205
+
1206
+ .ft-combobox--option[data-active="true"] .ft-combobox-suggestion,
1207
+ .ft-combobox--option:hover:not([data-selected="true"]) .ft-combobox-suggestion {
1208
+ background-color: rgba(0, 0, 0, 0.04);
1209
+ }
1210
+
1211
+ .ft-combobox--option-new-value {
1212
+ border-top: 1px solid ${T.colorOutline};
1213
+ }
1214
+
1215
+ .ft-combobox--icon {
1216
+ align-self: center;
1217
+ margin-left: 8px;
1218
+ color: ${T.iconColor};
1219
+ }
1220
+
1221
+ .ft-combobox--with-icon {
1222
+ ${(0,he.setVariable)(E.labelMaxWidth,`calc(100% - ${le.size} - ${T.horizontalSpacing})`)};
1223
+ }
1224
+
1225
+ .ft-combobox--chips-container {
1226
+ display: flex;
1227
+ flex-wrap: wrap;
1228
+ gap: ${T.chipGap};
1229
+ margin-top: ${T.chipsMarginTop};
1230
+ }
1231
+
1232
+ .ft-combobox--chips-container ft-chip {
1233
+ flex-shrink: 0;
1234
+ }
1235
+ `;var Qi=f(z()),de=f(ie()),Uc=f(ot()),ur=f(S());var zr=f(z()),D=f(S());var kc=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),Ce={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:kc,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",kc),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ic=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),po={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Ic,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ic)},Mc={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},$c=[D.noTextSelect,zr.css`
1210
1236
  :host {
1211
1237
  display: inline-block;
1212
1238
  max-width: 100%;
@@ -1222,21 +1248,21 @@
1222
1248
  box-sizing: border-box;
1223
1249
  pointer-events: auto;
1224
1250
 
1225
- --chip-internal-font-size: ${Ae.fontSize};
1226
- --chip-internal-font-weight: ${Ae.fontWeight};
1251
+ --chip-internal-font-size: ${Ce.fontSize};
1252
+ --chip-internal-font-weight: ${Ce.fontWeight};
1227
1253
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1228
- ${(0,D.setVariable)(le.size,Ae.iconSize)};
1229
- --chip-internal-vertical-padding: ${Ae.verticalPadding};
1230
- --chip-internal-horizontal-padding: ${Ae.horizontalPadding};
1254
+ ${(0,D.setVariable)(le.size,Ce.iconSize)};
1255
+ --chip-internal-vertical-padding: ${Ce.verticalPadding};
1256
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding};
1231
1257
  --chip-internal-icon-padding: 3px;
1232
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ae.iconSize});
1258
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ce.iconSize});
1233
1259
 
1234
- border: 1px solid ${Ae.borderColor};
1235
- color: ${Ae.color};
1236
- ${(0,D.setVariable)(se.color,Ae.rippleColor)};
1237
- border-radius: var(${(0,Hr.unsafeCSS)(Ae.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1260
+ border: 1px solid ${Ce.borderColor};
1261
+ color: ${Ce.color};
1262
+ ${(0,D.setVariable)(se.color,Ce.rippleColor)};
1263
+ border-radius: var(${(0,zr.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1238
1264
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1239
- background-color: ${Ae.backgroundColor};
1265
+ background-color: ${Ce.backgroundColor};
1240
1266
  line-height: var(--chip-internal-content-height);
1241
1267
  }
1242
1268
 
@@ -1246,28 +1272,28 @@
1246
1272
 
1247
1273
  .ft-chip--dense {
1248
1274
  --chip-internal-icon-padding: 3px;
1249
- --chip-internal-vertical-padding: ${Ic.verticalPadding};
1250
- --chip-internal-horizontal-padding: ${Ic.horizontalPadding};
1275
+ --chip-internal-vertical-padding: ${Mc.verticalPadding};
1276
+ --chip-internal-horizontal-padding: ${Mc.horizontalPadding};
1251
1277
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1252
1278
  }
1253
1279
 
1254
1280
  .ft-chip--no-content {
1255
- --chip-internal-horizontal-padding: ${Ae.horizontalPadding.get(Hr.css`var(--chip-internal-vertical-padding)`)};
1281
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(zr.css`var(--chip-internal-vertical-padding)`)};
1256
1282
  }
1257
1283
 
1258
1284
  .ft-chip--disabled {
1259
1285
  cursor: default;
1260
1286
  pointer-events: none;
1261
1287
  filter: grayscale(1);
1262
- opacity: ${Ae.opacityDisabled};
1288
+ opacity: ${Ce.opacityDisabled};
1263
1289
  }
1264
1290
 
1265
1291
  .ft-chip--highlighted {
1266
1292
  border: none;
1267
1293
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1268
- background-color: ${uo.backgroundColor};
1269
- ${(0,D.setVariable)(se.color,uo.rippleColor)};
1270
- color: ${uo.color};
1294
+ background-color: ${po.backgroundColor};
1295
+ ${(0,D.setVariable)(se.color,po.rippleColor)};
1296
+ color: ${po.color};
1271
1297
  }
1272
1298
 
1273
1299
  .ft-chip--clickable {
@@ -1298,7 +1324,7 @@
1298
1324
  }
1299
1325
 
1300
1326
  .ft-chip--icon-button {
1301
- ${(0,D.setVariable)(q.iconSize,Ae.iconSize)};
1327
+ ${(0,D.setVariable)(q.iconSize,Ce.iconSize)};
1302
1328
  ${(0,D.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1303
1329
  ${(0,D.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
1304
1330
  margin: calc((-1) * var(--chip-internal-icon-padding));
@@ -1308,9 +1334,9 @@
1308
1334
  vertical-align: bottom;
1309
1335
  display: block;
1310
1336
  margin: 0 var(--chip-internal-horizontal-padding);
1311
- ${(0,D.setVariable)(_e.fontSize,"var(--chip-internal-font-size)")};
1312
- ${(0,D.setVariable)(_e.fontWeight,"var(--chip-internal-font-weight)")};
1313
- ${(0,D.setVariable)(_e.lineHeight,"var(--chip-internal-content-height)")};
1337
+ ${(0,D.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
1338
+ ${(0,D.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
1339
+ ${(0,D.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
1314
1340
  }
1315
1341
 
1316
1342
  .ft-chip--safari-fix .ft-chip--label {
@@ -1346,8 +1372,8 @@
1346
1372
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1347
1373
  order: -1;
1348
1374
  }
1349
- `];var be=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},en=class extends CustomEvent{constructor(){super("icon-click")}},Y=class extends lr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":lr.isSafari};return Qi.html`
1350
- <div class="${(0,$c.classMap)(r)}"
1375
+ `];var ve=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},en=class extends CustomEvent{constructor(){super("icon-click")}},Y=class extends ur.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ur.isSafari};return Qi.html`
1376
+ <div class="${(0,Uc.classMap)(r)}"
1351
1377
  aria-label="${this.getLabel()}"
1352
1378
  tabindex="${this.interactionsOnChip?0:-1}"
1353
1379
  @keyup=${this.onKeyUp}
@@ -1373,7 +1399,7 @@
1373
1399
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1374
1400
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1375
1401
  </div>
1376
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new en))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new en))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,lr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":F,"ft-typography":ie,"ft-icon":J,"ft-button":$};Y.styles=Mc;be([(0,de.property)({type:Boolean})],Y.prototype,"highlighted",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"removable",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"disabled",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"clickable",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"dense",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"multiLine",void 0);be([(0,de.property)()],Y.prototype,"label",void 0);be([(0,de.property)()],Y.prototype,"iconLabel",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);be([(0,de.property)()],Y.prototype,"icon",void 0);be([(0,de.property)()],Y.prototype,"iconVariant",void 0);be([(0,de.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);be([(0,de.property)()],Y.prototype,"typographyVariant",void 0);be([(0,de.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Vc=f(S());var Uc={"ft-chip":Y};(0,Vc.customElements)(Uc);var Ht=Yi.build("ftCombobox"),Fc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},k=class extends qi(Le.FtLitElement){get value(){return this._value||""}set value(e){let r=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",r)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=async()=>{let e=this.input.value,r=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&r&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var r;e.kind==="new"?this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(Ht,Fc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Le.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},r={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return xe.html`
1402
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new en))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new en))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ur.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-button":I};Y.styles=$c;ve([(0,de.property)({type:Boolean})],Y.prototype,"highlighted",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"removable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"disabled",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"clickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"dense",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"multiLine",void 0);ve([(0,de.property)()],Y.prototype,"label",void 0);ve([(0,de.property)()],Y.prototype,"iconLabel",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);ve([(0,de.property)()],Y.prototype,"icon",void 0);ve([(0,de.property)()],Y.prototype,"iconVariant",void 0);ve([(0,de.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ve([(0,de.property)()],Y.prototype,"typographyVariant",void 0);ve([(0,de.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var Fc=f(S());var Vc={"ft-chip":Y};(0,Fc.customElements)(Vc);var jt=Yi.build("ftCombobox"),Bc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}"};var U=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},k=class extends qi(Pe.FtLitElement){get value(){return this._value||""}set value(e){let r=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",r)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onComboboxInput=async()=>{let e=this.input.value,r=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&r&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var r;e.kind==="new"?this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(jt,Bc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Pe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},r={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return Se.html`
1377
1403
  <div class="${(0,tn.classMap)(e)}">
1378
1404
  <div class="ft-combobox--main-panel"
1379
1405
  @focusout=${this.onComboboxBlur}>
@@ -1385,7 +1411,7 @@
1385
1411
  ?error=${this.error}>
1386
1412
  </ft-input-label>
1387
1413
  <div class="ft-combobox--input-panel">
1388
- ${this.outlined?xe.nothing:xe.html`
1414
+ ${this.outlined?Se.nothing:Se.html`
1389
1415
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1390
1416
  `}
1391
1417
  <input
@@ -1417,7 +1443,7 @@
1417
1443
  <div class="sr-only" aria-live="polite" aria-atomic="true">
1418
1444
  ${this.ariaLiveMessage||this.renderLiveText()}
1419
1445
  </div>
1420
- ${hr(this.visibleSuggestions.length>0,()=>xe.html`
1446
+ ${gr(this.visibleSuggestions.length>0,()=>Se.html`
1421
1447
  <ul
1422
1448
  id="combobox-listbox"
1423
1449
  class="${(0,tn.classMap)(r)}"
@@ -1426,23 +1452,23 @@
1426
1452
  aria-label="${this.label||"Options"}"
1427
1453
  data-visible="${this.isOpen}"
1428
1454
  >
1429
- ${(0,po.repeat)(this.visibleSuggestions,i=>i.id,(i,n)=>this.renderSuggestion(i,n))}
1455
+ ${(0,fo.repeat)(this.visibleSuggestions,i=>i.id,(i,n)=>this.renderSuggestion(i,n))}
1430
1456
  </ul>`)}
1431
1457
 
1432
1458
  </div>
1433
- ${this.helper?xe.html`
1459
+ ${this.helper?Se.html`
1434
1460
  <ft-typography class="ft-combobox--helper-text" variant="caption" id="helper" role="alert">
1435
1461
  ${this.helper}
1436
1462
  </ft-typography>
1437
- `:xe.nothing}
1438
- ${hr(this.multiValued&&this.labels.length>0,()=>xe.html`
1463
+ `:Se.nothing}
1464
+ ${gr(this.multiValued&&this.labels.length>0,()=>Se.html`
1439
1465
  <div class="ft-combobox--chips-container" role="group" aria-label="Selected values">
1440
- ${(0,po.repeat)(this.labels,i=>i,i=>xe.html`
1466
+ ${(0,fo.repeat)(this.labels,i=>i,i=>Se.html`
1441
1467
  <ft-chip removable
1442
1468
  dense
1443
1469
  hideIconTooltip
1444
1470
  label="${i}"
1445
- iconLabel="${Ht.messages.removeValueLabel(i)}"
1471
+ iconLabel="${jt.messages.removeValueLabel(i)}"
1446
1472
  @icon-click=${()=>this.removeFromSelection(i)}>
1447
1473
  ${i}
1448
1474
  </ft-chip>
@@ -1450,12 +1476,12 @@
1450
1476
  </div>
1451
1477
  `)}
1452
1478
  </div>
1453
- `}renderIcon(){return this.icon?xe.html`
1479
+ `}renderIcon(){return this.icon?Se.html`
1454
1480
  <ft-icon class="ft-combobox--icon"
1455
1481
  .variant=${this.iconVariant}
1456
1482
  .value=${this.icon}
1457
1483
  @click=${()=>{var e,r;(e=this.input)===null||e===void 0||e.click(),(r=this.input)===null||r===void 0||r.focus()}}></ft-icon>
1458
- `:xe.nothing}renderSuggestion(e,r){let i=e.kind==="new"&&!!this.suggestionsHelper,n=this.multiValued&&this.labels.includes(e.label),o=r===this.activeIndex,s={"ft-combobox-suggestion":!0,"ft-combobox-suggestion--with-helper":i};return xe.html`
1484
+ `:Se.nothing}renderSuggestion(e,r){let i=e.kind==="new"&&!!this.suggestionsHelper,n=this.multiValued&&this.labels.includes(e.label),o=r===this.activeIndex,s={"ft-combobox-suggestion":!0,"ft-combobox-suggestion--with-helper":i};return Se.html`
1459
1485
  <li
1460
1486
  id="${e.kind==="new"?"suggestion-new-value":`option-${r}`}"
1461
1487
  class="ft-combobox--option ${e.kind==="new"?"ft-combobox--option-new-value":""}"
@@ -1468,18 +1494,18 @@
1468
1494
  >
1469
1495
  <div class="${(0,tn.classMap)(s)}" tabindex="-1">
1470
1496
  <ft-ripple ?primary=${n} ?activated=${n}></ft-ripple>
1471
- ${i?xe.html`
1497
+ ${i?Se.html`
1472
1498
  <ft-typography aria-label="${this.suggestionsHelper}," class="ft-combobox-suggestion--helper-text"
1473
- variant="${Ce.caption}">
1499
+ variant="${me.caption}">
1474
1500
  ${this.suggestionsHelper}
1475
1501
  </ft-typography>
1476
- `:xe.nothing}
1477
- <ft-typography part="label" variant="${Ce.body1}" class="ft-combobox-suggestion--label">
1502
+ `:Se.nothing}
1503
+ <ft-typography part="label" variant="${me.body1}" class="ft-combobox-suggestion--label">
1478
1504
  ${e.label}
1479
1505
  </ft-typography>
1480
1506
  </div>
1481
1507
  </li>
1482
- `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let r=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",i=this.multiValued&&this.labels.includes(r);return r!==""&&!this.providedSuggestions.some(n=>n.label===r)&&!i&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?Ht.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let r=(this.filterSuggestions?this.providedSuggestions.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((i,n)=>({id:`regular-${n}`,label:i.label,kind:"regular"}));this.visibleSuggestions=[...r,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,r=!1){var i,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(r){let a=s.kind==="new"?((i=this.input)===null||i===void 0?void 0:i.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var r,i;let n;this.isNewValueSuggestionSelected()?n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector("#option-new-value"):n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,r;let i=(r=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:this._value;this.dispatchEvent(new CustomEvent("change",{detail:i,bubbles:!0,composed:!0}))}addToSelection(e){var r,i;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=Ht.messages.maxValuesReached((r=this.maxValues)!==null&&r!==void 0?r:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(i=a?.value)!==null&&i!==void 0?i:e),this.ariaLiveMessage=Ht.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(r=>r!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=Ht.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(r=>{var i;return(i=this.labelsToValues.get(r))!==null&&i!==void 0?i:r});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,r;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((r=this.input)===null||r===void 0?void 0:r.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let i=this.activeIndex<r-1?this.activeIndex+1:0;this.setActiveSuggestion(i)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0))if(this.listboxHasVisualFocus){let i=this.activeIndex>0?this.activeIndex-1:r-1;this.setActiveSuggestion(i)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(r-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let r=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),r=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),r=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),r=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),r=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),r=!0;break;case"End":{this.moveCaretToEnd(),r=!0;break}}r&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let r=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),r=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":r=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),r=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}r&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};k.styles=[Kt,Le.screenReaderStyles,Ds];k.elementDefinitions={"ft-input-label":we,"ft-ripple":F,"ft-typography":ie,"ft-icon":J,"ft-chip":Y};U([(0,B.property)()],k.prototype,"label",void 0);U([(0,B.property)()],k.prototype,"icon",void 0);U([(0,B.property)()],k.prototype,"iconVariant",void 0);U([(0,B.property)()],k.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"filterSuggestions",void 0);U([(0,B.property)()],k.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"outlined",void 0);U([(0,B.property)()],k.prototype,"placeholder",void 0);U([(0,B.property)()],k.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],k.prototype,"suggestionsProvider",void 0);U([(0,Le.numberProperty)()],k.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],k.prototype,"value",null);U([(0,B.property)({type:Boolean})],k.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"multiValued",void 0);U([(0,Le.numberProperty)()],k.prototype,"maxValues",void 0);U([(0,Le.numberProperty)()],k.prototype,"maxLength",void 0);U([(0,B.property)()],k.prototype,"labels",void 0);U([(0,B.state)()],k.prototype,"labelsToValues",void 0);U([(0,B.state)()],k.prototype,"filter",void 0);U([(0,B.state)()],k.prototype,"isOpen",void 0);U([(0,B.state)()],k.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"providedSuggestions",void 0);U([(0,B.state)()],k.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],k.prototype,"activeIndex",void 0);U([(0,B.state)()],k.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],k.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],k.prototype,"listbox",void 0);U([(0,Le.ignoreComposingEvents)()],k.prototype,"onComboboxKeyDown",null);U([(0,Le.ignoreComposingEvents)()],k.prototype,"onComboboxKeyUp",null);var Bc={"ft-combobox":k};(0,Hc.customElements)(Bc);})();
1508
+ `}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let r=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",i=this.multiValued&&this.labels.includes(r);return r!==""&&!this.providedSuggestions.some(n=>n.label===r)&&!i&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?jt.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let r=(this.filterSuggestions?this.providedSuggestions.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((i,n)=>({id:`regular-${n}`,label:i.label,kind:"regular"}));this.visibleSuggestions=[...r,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,r=!1){var i,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(r){let a=s.kind==="new"?((i=this.input)===null||i===void 0?void 0:i.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var r,i;let n;this.isNewValueSuggestionSelected()?n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector("#option-new-value"):n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,r;let i=(r=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:this._value;this.dispatchEvent(new CustomEvent("change",{detail:i,bubbles:!0,composed:!0}))}addToSelection(e){var r,i;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=jt.messages.maxValuesReached((r=this.maxValues)!==null&&r!==void 0?r:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(i=a?.value)!==null&&i!==void 0?i:e),this.ariaLiveMessage=jt.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(r=>r!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=jt.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(r=>{var i;return(i=this.labelsToValues.get(r))!==null&&i!==void 0?i:r});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,r;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((r=this.input)===null||r===void 0?void 0:r.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let i=this.activeIndex<r-1?this.activeIndex+1:0;this.setActiveSuggestion(i)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let r=this.getTotalSuggestionsCount();if(!(r<=0))if(this.listboxHasVisualFocus){let i=this.activeIndex>0?this.activeIndex-1:r-1;this.setActiveSuggestion(i)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(r-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let r=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),r=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),r=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),r=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),r=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),r=!0;break;case"End":{this.moveCaretToEnd(),r=!0;break}}r&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let r=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),r=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":r=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),r=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}r&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};k.styles=[qt,Pe.screenReaderStyles,Nc];k.elementDefinitions={"ft-input-label":Te,"ft-ripple":F,"ft-typography":ne,"ft-icon":J,"ft-chip":Y};U([(0,B.property)()],k.prototype,"label",void 0);U([(0,B.property)()],k.prototype,"icon",void 0);U([(0,B.property)()],k.prototype,"iconVariant",void 0);U([(0,B.property)()],k.prototype,"name",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"error",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"filterSuggestions",void 0);U([(0,B.property)()],k.prototype,"helper",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"disabled",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"outlined",void 0);U([(0,B.property)()],k.prototype,"placeholder",void 0);U([(0,B.property)()],k.prototype,"suggestionsHelper",void 0);U([(0,B.property)({attribute:!1})],k.prototype,"suggestionsProvider",void 0);U([(0,Pe.numberProperty)()],k.prototype,"suggestionsProviderDebouncerTimeout",void 0);U([(0,B.property)({noAccessor:!0})],k.prototype,"value",null);U([(0,B.property)({type:Boolean})],k.prototype,"canOfferNewValue",void 0);U([(0,B.property)({type:Boolean})],k.prototype,"multiValued",void 0);U([(0,Pe.numberProperty)()],k.prototype,"maxValues",void 0);U([(0,Pe.numberProperty)()],k.prototype,"maxLength",void 0);U([(0,B.property)()],k.prototype,"labels",void 0);U([(0,B.state)()],k.prototype,"labelsToValues",void 0);U([(0,B.state)()],k.prototype,"filter",void 0);U([(0,B.state)()],k.prototype,"isOpen",void 0);U([(0,B.state)()],k.prototype,"comboboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"listboxHasVisualFocus",void 0);U([(0,B.state)()],k.prototype,"providedSuggestions",void 0);U([(0,B.state)()],k.prototype,"visibleSuggestions",void 0);U([(0,B.state)()],k.prototype,"activeIndex",void 0);U([(0,B.state)()],k.prototype,"ariaLiveMessage",void 0);U([(0,B.query)(".ft-combobox--input")],k.prototype,"input",void 0);U([(0,B.query)(".ft-combobox--listbox")],k.prototype,"listbox",void 0);U([(0,Pe.ignoreComposingEvents)()],k.prototype,"onComboboxKeyDown",null);U([(0,Pe.ignoreComposingEvents)()],k.prototype,"onComboboxKeyUp",null);var Hc={"ft-combobox":k};(0,zc.customElements)(Hc);})();
1483
1509
  /*! Bundled license information:
1484
1510
 
1485
1511
  lit-html/lit-html.js: