@fluid-topics/ft-search-selected-facets 2.2.50 → 2.2.52

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.
@@ -335,7 +335,7 @@
335
335
  position: relative;
336
336
  word-break: break-word;
337
337
  }
338
- `;var lc=["top","right","bottom","left"],ac=["start","end"],zs=lc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),pi=Math.min,kt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),mp={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(t,e,r){return kt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ws(t){return js(On(t))}function uc(t,e,r){r===void 0&&(r=!1);let i=Lt(t),n=Ws(t),s=qs(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Vs(o)),[o,Vs(o)]}function dc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Vs(t){let e=hi(t);return mp[e]+t.slice(e.length)}function yp(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 pc(t){return typeof t!="number"?yp(t):{top:t,right:t,bottom:t,left:t}}function lr(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 fc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ws(e),a=qs(o),l=hi(e),c=s==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:p,y:i.y-n.height};break;case"bottom":g={x:p,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=Lt(e);return x&&(g[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function hc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=wn(e,t),x=pc(g),b=a[f?d==="floating"?"reference":"floating":d],R=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),P=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(R.top-M.top+x.top)/w.y,bottom:(M.bottom-R.bottom+x.bottom)/w.y,left:(R.left-M.left+x.left)/w.x,right:(M.right-R.right+x.right)/w.x}}var gp=50,mc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:hc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=fc(c,i,l),f=i,g=0,x={};for(let T=0;T<s.length;T++){let b=s[T];if(!b)continue;let{name:R,fn:P}=b,{x:S,y:w,data:M,reset:ee}=await P({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});p=S??p,d=w??d,x[R]={...x[R],...M},ee&&g<gp&&(g++,typeof ee=="object"&&(ee.placement&&(f=ee.placement),ee.rects&&(c=ee.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ee.rects),{x:p,y:d}=fc(c,f,l)),T=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:x}};function vp(t,e,r){return(t?[...r.filter(n=>Lt(n)===t),...r.filter(n=>Lt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Lt(n)===t||(e?dc(n)!==n:!1):!0)}var yc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=zs,autoAlignment:g=!0,...x}=wn(t,e),T=d!==void 0||f===zs?vp(d||null,g,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,R=T[b];if(R==null)return{};if(a!==R)return{reset:{placement:T[0]}};let P=await l.detectOverflow(e,x),S=uc(R,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[P[hi(R)],P[S[0]],P[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:w}],ee=T[b+1];if(ee)return{data:{index:b+1,overflows:M},reset:{placement:ee}};let Le=M.map(Fe=>{let Hr=Lt(Fe.placement);return[Fe.placement,Hr&&p?Fe.overflows.slice(0,2).reduce((ed,td)=>ed+td,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Hr)=>Fe[1]-Hr[1]),Oi=((n=Le.filter(Fe=>Fe[2].slice(0,Lt(Fe[0])?2:3).every(Hr=>Hr<=0))[0])==null?void 0:n[0])||Le[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var gc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:w}=P;return{x:S,y:w}}},...c}=wn(t,e),p={x:r,y:i},d=await s.detectOverflow(e,c),f=On(n),g=js(f),x=p[g],T=p[f],b=(P,S)=>cc(S+d[P==="y"?"top":"left"],S,S-d[P==="y"?"bottom":"right"]);o&&(x=b(g,x)),a&&(T=b(f,T));let R=l.fn({...e,[g]:x,[f]:T});return{...R,data:{x:R.x-r,y:R.y-i,enabled:{[g]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function ur(t){return bc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(bc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bc(t){return Rn()?t instanceof Node||t instanceof _e(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof _e(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function vc(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function xc(t){return/^(table|td|th)$/.test(ur(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var bp=/transform|translate|scale|rotate|perspective|filter/,xp=/paint|layout|strict|content/,cr=t=>!!t&&t!=="none",Ks;function Lr(t){let e=Ye(t)?Xe(t):t;return cr(e.transform)||cr(e.translate)||cr(e.scale)||cr(e.rotate)||cr(e.perspective)||!kn()&&(cr(e.backdropFilter)||cr(e.filter))||bp.test(e.willChange||"")||xp.test(e.contain||"")}function Sc(t){let e=Dt(t);for(;bt(e)&&!Dr(e);){if(Lr(e))return e;if(yi(e))return null;e=Dt(e)}return null}function kn(){return Ks==null&&(Ks=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ks}function Dr(t){return/^(html|body|#document)$/.test(ur(t))}function Xe(t){return _e(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(ur(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vc(t)&&t.host||vt(t);return vc(e)?e.host:e}function Ec(t){let e=Dt(t);return Dr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:Ec(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ec(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function wc(t){return Ye(t)?t:t.contextElement}function Nr(t){let e=wc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Cc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Sp=at(0);function Oc(t){let e=_e(t);return!kn()||!e.visualViewport?Sp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ep(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=wc(t),o=at(1);e&&(i?Ye(i)&&(o=Nr(i)):o=Nr(t));let a=Ep(s,r,i)?Oc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,p=n.width/o.x,d=n.height/o.y;if(s&&i){let f=_e(s),g=Ye(i)?_e(i):i,x=f,T=Ln(x);for(;T&&g!==x;){let b=Nr(T),R=T.getBoundingClientRect(),P=Xe(T),S=R.left+(T.clientLeft+parseFloat(P.paddingLeft))*b.x,w=R.top+(T.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,d*=b.y,l+=S,c+=w,x=_e(T),T=Ln(x)}}return lr({width:p,height:d,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ap(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),p=at(0),d=bt(i);if((d||!s)&&((ur(i)!=="body"||mi(o))&&(l=gi(i)),d)){let g=vi(i);c=Nr(i),p.x=g.x+i.clientLeft,p.y=g.y+i.clientTop}let f=o&&!d&&!s?Tc(o,l):at(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function _p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Cp(t){let e=gi(t),r=t.ownerDocument.body,i=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var wp=25;function Op(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,p=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,p=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,p=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,g=f.body,x=getComputedStyle(g),T=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-g.clientWidth-T),R=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;R<=wp&&(a-=R)}return{width:a,height:l,x:c,y:p}}function Tp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Nr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ac(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Op(t,r,e);else if(e==="document")i=Cp(vt(t));else if(Ye(e))i=Tp(e,r);else{let n=Oc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return lr(i)}function Rp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&ur(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Dt(t):t;for(;Ye(o)&&!Dr(o);){let a=Xe(o),l=Lr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Dt(o)}return e.set(t,i),i}function kp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Rp(e,this._c):[].concat(r),i],a=Ac(e,o[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let g=Ac(e,o[f],n);l=kt(g.top,l),c=pi(g.right,c),p=pi(g.bottom,p),d=kt(g.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Lp(t){let{width:e,height:r}=Cc(t);return{width:e,height:r}}function Dp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((ur(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Tc(n,a):at(0),p=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:o.width,height:o.height}}function Gs(t){return Xe(t).position==="static"}function _c(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Rc(t,e){let r=_e(t);if(yi(t))return r;if(!bt(t)){let n=Dt(t);for(;n&&!Dr(n);){if(Ye(n)&&!Gs(n))return n;n=Dt(n)}return r}let i=_c(t,e);for(;i&&xc(i)&&Gs(i);)i=_c(i,e);return i&&Dr(i)&&Gs(i)&&!Lr(i)?r:i||Sc(t)||r}var Np=async function(t){let e=this.getOffsetParent||Rc,r=this.getDimensions,i=await r(t.floating);return{reference:Dp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Pp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Ap,getDocumentElement:vt,getClippingRect:kp,getOffsetParent:Rc,getElementRects:Np,getClientRects:_p,getDimensions:Lp,getScale:Nr,isElement:Ye,isRTL:Pp};var kc=yc,Lc=gc;var Dc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return mc(t,e,{...n,platform:s})};function Nc(t){return Ip(t)}function Ys(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ip(t){for(let e=t;e;e=Ys(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ys(t);e;e=Ys(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Lr(r)||e.tagName==="BODY"))return e}return null}async function Pc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Dc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>Nn.getOffsetParent(n,Nc)},middleware:[Lc({crossAxis:!0}),kc({allowedPlacements:[i.placement]})]})}var Ir=u(v());var Ic=u(F());var Xs=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-]+$/)}},Pr=new Xs;var Mp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Mc=Symbol("i18nListAttributes"),$c=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Ir.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(s){return s??this.useCustomMessageContexts?mn:Tr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:p,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=p??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Pr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(p,d,f)=>f?.context&&f.key&&s(p,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...p})}:f;(o=this[xi])===null||o===void 0||o.forEach((p,d)=>l[d]=c(p,d,l[d])),(a=this[Mc])===null||a===void 0||a.forEach((p,d)=>{var f;return l[d]=(f=l[d])===null||f===void 0?void 0:f.map(g=>c(p,d,g))})}updateI18nProperties(s){var o;(o=this[$c])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Mp([(0,Ic.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Ir.FtLitElement){},Mn=class extends lt(Ir.FtLitElementRedux){};var Fc=u(v());var Qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},$p=new Qs;var Uc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Fc.hasChanged,converter:Pr,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Tr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),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 Bc=u(O());var Hc=Bc.css`
338
+ `;var lc=["top","right","bottom","left"],ac=["start","end"],zs=lc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),pi=Math.min,kt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),mp={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(t,e,r){return kt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ws(t){return js(On(t))}function uc(t,e,r){r===void 0&&(r=!1);let i=Lt(t),n=Ws(t),s=qs(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Vs(o)),[o,Vs(o)]}function dc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Vs(t){let e=hi(t);return mp[e]+t.slice(e.length)}function yp(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 pc(t){return typeof t!="number"?yp(t):{top:t,right:t,bottom:t,left:t}}function lr(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 fc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ws(e),a=qs(o),l=hi(e),c=s==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:p,y:i.y-n.height};break;case"bottom":g={x:p,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=Lt(e);return x&&(g[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function hc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=wn(e,t),x=pc(g),b=a[f?d==="floating"?"reference":"floating":d],R=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),P=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(R.top-M.top+x.top)/w.y,bottom:(M.bottom-R.bottom+x.bottom)/w.y,left:(R.left-M.left+x.left)/w.x,right:(M.right-R.right+x.right)/w.x}}var gp=50,mc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:hc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=fc(c,i,l),f=i,g=0,x={};for(let T=0;T<s.length;T++){let b=s[T];if(!b)continue;let{name:R,fn:P}=b,{x:S,y:w,data:M,reset:ee}=await P({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});p=S??p,d=w??d,x[R]={...x[R],...M},ee&&g<gp&&(g++,typeof ee=="object"&&(ee.placement&&(f=ee.placement),ee.rects&&(c=ee.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ee.rects),{x:p,y:d}=fc(c,f,l)),T=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:x}};function vp(t,e,r){return(t?[...r.filter(n=>Lt(n)===t),...r.filter(n=>Lt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Lt(n)===t||(e?dc(n)!==n:!1):!0)}var yc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=zs,autoAlignment:g=!0,...x}=wn(t,e),T=d!==void 0||f===zs?vp(d||null,g,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,R=T[b];if(R==null)return{};if(a!==R)return{reset:{placement:T[0]}};let P=await l.detectOverflow(e,x),S=uc(R,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[P[hi(R)],P[S[0]],P[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:w}],ee=T[b+1];if(ee)return{data:{index:b+1,overflows:M},reset:{placement:ee}};let Le=M.map(Fe=>{let Hr=Lt(Fe.placement);return[Fe.placement,Hr&&p?Fe.overflows.slice(0,2).reduce((ed,td)=>ed+td,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Hr)=>Fe[1]-Hr[1]),Oi=((n=Le.filter(Fe=>Fe[2].slice(0,Lt(Fe[0])?2:3).every(Hr=>Hr<=0))[0])==null?void 0:n[0])||Le[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var gc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:w}=P;return{x:S,y:w}}},...c}=wn(t,e),p={x:r,y:i},d=await s.detectOverflow(e,c),f=On(n),g=js(f),x=p[g],T=p[f],b=(P,S)=>cc(S+d[P==="y"?"top":"left"],S,S-d[P==="y"?"bottom":"right"]);o&&(x=b(g,x)),a&&(T=b(f,T));let R=l.fn({...e,[g]:x,[f]:T});return{...R,data:{x:R.x-r,y:R.y-i,enabled:{[g]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function ur(t){return bc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(bc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bc(t){return Rn()?t instanceof Node||t instanceof _e(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof _e(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function vc(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function xc(t){return/^(table|td|th)$/.test(ur(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var bp=/transform|translate|scale|rotate|perspective|filter/,xp=/paint|layout|strict|content/,cr=t=>!!t&&t!=="none",Ks;function Lr(t){let e=Ye(t)?Xe(t):t;return cr(e.transform)||cr(e.translate)||cr(e.scale)||cr(e.rotate)||cr(e.perspective)||!kn()&&(cr(e.backdropFilter)||cr(e.filter))||bp.test(e.willChange||"")||xp.test(e.contain||"")}function Sc(t){let e=Dt(t);for(;bt(e)&&!Dr(e);){if(Lr(e))return e;if(yi(e))return null;e=Dt(e)}return null}function kn(){return Ks==null&&(Ks=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ks}function Dr(t){return/^(html|body|#document)$/.test(ur(t))}function Xe(t){return _e(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(ur(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vc(t)&&t.host||vt(t);return vc(e)?e.host:e}function Ec(t){let e=Dt(t);return Dr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:Ec(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ec(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function wc(t){return Ye(t)?t:t.contextElement}function Nr(t){let e=wc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Cc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Sp=at(0);function Oc(t){let e=_e(t);return!kn()||!e.visualViewport?Sp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ep(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=wc(t),o=at(1);e&&(i?Ye(i)&&(o=Nr(i)):o=Nr(t));let a=Ep(s,r,i)?Oc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,p=n.width/o.x,d=n.height/o.y;if(s&&i){let f=_e(s),g=Ye(i)?_e(i):i,x=f,T=Ln(x);for(;T&&g!==x;){let b=Nr(T),R=T.getBoundingClientRect(),P=Xe(T),S=R.left+(T.clientLeft+parseFloat(P.paddingLeft))*b.x,w=R.top+(T.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,d*=b.y,l+=S,c+=w,x=_e(T),T=Ln(x)}}return lr({width:p,height:d,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ap(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),p=at(0),d=bt(i);if((d||!s)&&((ur(i)!=="body"||mi(o))&&(l=gi(i)),d)){let g=vi(i);c=Nr(i),p.x=g.x+i.clientLeft,p.y=g.y+i.clientTop}let f=o&&!d&&!s?Tc(o,l):at(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function _p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Cp(t){let e=gi(t),r=t.ownerDocument.body,i=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var wp=25;function Op(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,p=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,p=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,p=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,g=f.body,x=getComputedStyle(g),T=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-g.clientWidth-T),R=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;R<=wp&&(a-=R)}return{width:a,height:l,x:c,y:p}}function Tp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Nr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ac(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Op(t,r,e);else if(e==="document")i=Cp(vt(t));else if(Ye(e))i=Tp(e,r);else{let n=Oc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return lr(i)}function Rp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&ur(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Dt(t):t;for(;Ye(o)&&!Dr(o);){let a=Xe(o),l=Lr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Dt(o)}return e.set(t,i),i}function kp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Rp(e,this._c):[].concat(r),i],a=Ac(e,o[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let g=Ac(e,o[f],n);l=kt(g.top,l),c=pi(g.right,c),p=pi(g.bottom,p),d=kt(g.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Lp(t){let{width:e,height:r}=Cc(t);return{width:e,height:r}}function Dp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((ur(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Tc(n,a):at(0),p=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:o.width,height:o.height}}function Gs(t){return Xe(t).position==="static"}function _c(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Rc(t,e){let r=_e(t);if(yi(t))return r;if(!bt(t)){let n=Dt(t);for(;n&&!Dr(n);){if(Ye(n)&&!Gs(n))return n;n=Dt(n)}return r}let i=_c(t,e);for(;i&&xc(i)&&Gs(i);)i=_c(i,e);return i&&Dr(i)&&Gs(i)&&!Lr(i)?r:i||Sc(t)||r}var Np=async function(t){let e=this.getOffsetParent||Rc,r=this.getDimensions,i=await r(t.floating);return{reference:Dp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Pp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Ap,getDocumentElement:vt,getClippingRect:kp,getOffsetParent:Rc,getElementRects:Np,getClientRects:_p,getDimensions:Lp,getScale:Nr,isElement:Ye,isRTL:Pp};var kc=yc,Lc=gc;var Dc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return mc(t,e,{...n,platform:s})};function Nc(t){return Ip(t)}function Ys(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ip(t){for(let e=t;e;e=Ys(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ys(t);e;e=Ys(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Lr(r)||e.tagName==="BODY"))return e}return null}async function Pc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Dc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>i.strategy==="fixed"?window:Nn.getOffsetParent(n,Nc)},middleware:[Lc({crossAxis:!0,boundary:i.strategy==="fixed"?[]:"clippingAncestors"}),kc({allowedPlacements:[i.placement]})]})}var Ir=u(v());var Ic=u(F());var Xs=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-]+$/)}},Pr=new Xs;var Mp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Mc=Symbol("i18nListAttributes"),$c=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Ir.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(s){return s??this.useCustomMessageContexts?mn:Tr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:p,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=p??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Pr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(p,d,f)=>f?.context&&f.key&&s(p,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...p})}:f;(o=this[xi])===null||o===void 0||o.forEach((p,d)=>l[d]=c(p,d,l[d])),(a=this[Mc])===null||a===void 0||a.forEach((p,d)=>{var f;return l[d]=(f=l[d])===null||f===void 0?void 0:f.map(g=>c(p,d,g))})}updateI18nProperties(s){var o;(o=this[$c])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Mp([(0,Ic.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Ir.FtLitElement){},Mn=class extends lt(Ir.FtLitElementRedux){};var Fc=u(v());var Qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},$p=new Qs;var Uc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Fc.hasChanged,converter:Pr,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Tr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),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 Bc=u(O());var Hc=Bc.css`
339
339
  `;var $n=u(O()),$r=u(F()),Fn=u(v());var Mr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ve=class extends Mn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:$n.nothing:$n.html`
340
340
  <span class="ft-i18n">
341
341
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}