@momentum-design/components 0.127.7 → 0.127.9

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.
@@ -1031,6 +1031,13 @@
1031
1031
  :host([variant='informational']:active) {
1032
1032
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
1033
1033
  }
1034
+
1035
+ /* High Contrast Mode */
1036
+ @media (forced-colors: active) {
1037
+ :host([variant='neutral'])::part(icon) {
1038
+ --mdc-chip-icon-color: ButtonText;
1039
+ }
1040
+ }
1034
1041
  `,du=[bt,hE,...At()];var cu=z.constructTagName("alertchip"),xo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},hs={VARIANT:xo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:go[24],ROLE:"button"};var hu=n=>({[xo.ERROR]:"error-legacy-badge-filled",[xo.WARNING]:"warning-badge-filled",[xo.SUCCESS]:"check-circle-badge-filled",[xo.INFORMATIONAL]:"info-badge-filled",[xo.NEUTRAL]:"dnd-presence-badge-filled"})[n];var ps=class extends Xt(se){constructor(){super(...arguments);this.variant=hs.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=hs.SIZE,this.role=hs.ROLE}render(){return _`
1035
1042
  <mdc-icon part="icon" name="${this.iconName||hu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1036
1043
  ${this.label?_`<mdc-text part="label" type="${hs.TEXT_TYPE}" tagname="${hs.TAG_NAME}"
@@ -1060,9 +1067,9 @@
1060
1067
  width: 100%;
1061
1068
  height: 100%;
1062
1069
  background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
1063
- z-index: ${this.zIndex-1};
1070
+ z-index: ${this.zIndex-2};
1064
1071
  }
1065
- `,d.appendChild(m);let x=document.getElementById(this.backdropAppendTo)||this.parentElement;x==null||x.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return o};var bl=z.constructTagName("responsivesettingsprovider"),xr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Au=["float","dialog"],Su=["unknown","mobile","desktop","tablet"];var yl=class{constructor(o={}){this.media=xr.MEDIA;this.forceFullscreenDialog=xr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=xr.POPOVER_POSITIONING;Object.assign(this,o)}};yl.context=bl;var El=yl;var vs=class extends Ee{constructor(){super({context:El.context,initialValue:new El({media:xr.MEDIA,popoverPositioning:xr.POPOVER_POSITIONING,forceFullscreenDialog:xr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=xr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=xr.POPOVER_POSITIONING;this.privateMedia=xr.MEDIA}static get Context(){return El.context}set popoverPositioning(t){Au.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Su.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};p([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],vs.prototype,"forceFullscreenDialog",2),p([u({type:String,attribute:"popover-positioning",reflect:!0})],vs.prototype,"popoverPositioning",1),p([u({type:String,attribute:"media",reflect:!0})],vs.prototype,"media",1);var xc=vs;xc.register(bl);var Ac=xc;var Iu=z.constructTagName("dialog"),Sc={DEFAULT:"default",PROMOTIONAL:"promotional"},ar={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Sc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var $i=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var TE=U`
1072
+ `,d.appendChild(m);let x=document.getElementById(this.backdropAppendTo)||this.parentElement;x==null||x.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex-1}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return o};var bl=z.constructTagName("responsivesettingsprovider"),xr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Au=["float","dialog"],Su=["unknown","mobile","desktop","tablet"];var yl=class{constructor(o={}){this.media=xr.MEDIA;this.forceFullscreenDialog=xr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=xr.POPOVER_POSITIONING;Object.assign(this,o)}};yl.context=bl;var El=yl;var vs=class extends Ee{constructor(){super({context:El.context,initialValue:new El({media:xr.MEDIA,popoverPositioning:xr.POPOVER_POSITIONING,forceFullscreenDialog:xr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=xr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=xr.POPOVER_POSITIONING;this.privateMedia=xr.MEDIA}static get Context(){return El.context}set popoverPositioning(t){Au.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Su.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};p([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],vs.prototype,"forceFullscreenDialog",2),p([u({type:String,attribute:"popover-positioning",reflect:!0})],vs.prototype,"popoverPositioning",1),p([u({type:String,attribute:"media",reflect:!0})],vs.prototype,"media",1);var xc=vs;xc.register(bl);var Ac=xc;var Iu=z.constructTagName("dialog"),Sc={DEFAULT:"default",PROMOTIONAL:"promotional"},ar={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Sc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var $i=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var TE=U`
1066
1073
  :host {
1067
1074
  --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1068
1075
  --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2543,7 +2550,7 @@
2543
2550
  }
2544
2551
  }
2545
2552
  `],Ef=oT;var Io=class extends Bt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
2546
- <span part="radio-icon" class="radio-icon"></span>`}};Io.styles=[...q.styles,...Ef],p([u({type:Boolean,reflect:!0})],Io.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Io.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Io.prototype,"softDisabled",2);var Hc=Io;var Tf=z.constructTagName("staticradio");Hc.register(Tf);var sT=Hc;Uc.register(Rl);var aT=Uc;var Ur=Math.min,we=Math.max,Da=Math.round,Fa=Math.floor,Sr=n=>({x:n,y:n}),nT={left:"right",right:"left",bottom:"top",top:"bottom"},lT={start:"end",end:"start"};function Pl(n,o,t){return we(n,Ur(o,t))}function _o(n,o){return typeof n=="function"?n(o):n}function hi(n){return n.split("-")[0]}function Co(n){return n.split("-")[1]}function Gc(n){return n==="x"?"y":"x"}function Dl(n){return n==="y"?"height":"width"}var dT=new Set(["top","bottom"]);function Hr(n){return dT.has(hi(n))?"y":"x"}function Fl(n){return Gc(Hr(n))}function Sf(n,o,t){t===void 0&&(t=!1);let r=Co(n),s=Fl(n),d=Dl(s),m=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Pa(m)),[m,Pa(m)]}function If(n){let o=Pa(n);return[Ml(n),o,Ml(o)]}function Ml(n){return n.replace(/start|end/g,o=>lT[o])}var xf=["left","right"],Af=["right","left"],cT=["top","bottom"],hT=["bottom","top"];function pT(n,o,t){switch(n){case"top":case"bottom":return t?o?Af:xf:o?xf:Af;case"left":case"right":return o?cT:hT;default:return[]}}function _f(n,o,t,r){let s=Co(n),d=pT(hi(n),t==="start",r);return s&&(d=d.map(m=>m+"-"+s),o&&(d=d.concat(d.map(Ml)))),d}function Pa(n){return n.replace(/left|right|bottom|top/g,o=>nT[o])}function mT(n){return{top:0,right:0,bottom:0,left:0,...n}}function Yc(n){return typeof n!="number"?mT(n):{top:n,right:n,bottom:n,left:n}}function ko(n){let{x:o,y:t,width:r,height:s}=n;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Cf(n,o,t){let{reference:r,floating:s}=n,d=Hr(o),m=Fl(o),g=Dl(m),x=hi(o),L=d==="y",B=r.x+r.width/2-s.width/2,K=r.y+r.height/2-s.height/2,Q=r[g]/2-s[g]/2,X;switch(x){case"top":X={x:B,y:r.y-s.height};break;case"bottom":X={x:B,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:K};break;case"left":X={x:r.x-s.width,y:K};break;default:X={x:r.x,y:r.y}}switch(Co(o)){case"start":X[m]-=Q*(t&&L?-1:1);break;case"end":X[m]+=Q*(t&&L?-1:1);break}return X}var kf=async(n,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=t,g=d.filter(Boolean),x=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:s}),{x:B,y:K}=Cf(L,r,x),Q=r,X={},it=0;for(let dt=0;dt<g.length;dt++){let{name:lt,fn:gt}=g[dt],{x:St,y:Ct,data:Gt,reset:zt}=await gt({x:B,y:K,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});B=St!=null?St:B,K=Ct!=null?Ct:K,X={...X,[lt]:{...X[lt],...Gt}},zt&&it<=50&&(it++,typeof zt=="object"&&(zt.placement&&(Q=zt.placement),zt.rects&&(L=zt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:s}):zt.rects),{x:B,y:K}=Cf(L,Q,x)),dt=-1)}return{x:B,y:K,placement:Q,strategy:s,middlewareData:X}};async function $l(n,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:m,elements:g,strategy:x}=n,{boundary:L="clippingAncestors",rootBoundary:B="viewport",elementContext:K="floating",altBoundary:Q=!1,padding:X=0}=_o(o,n),it=Yc(X),lt=g[Q?K==="floating"?"reference":"floating":K],gt=ko(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(g.floating)),boundary:L,rootBoundary:B,strategy:x})),St=K==="floating"?{x:r,y:s,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g.floating)),Gt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},zt=ko(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:St,offsetParent:Ct,strategy:x}):St);return{top:(gt.top-zt.top+it.top)/Gt.y,bottom:(zt.bottom-gt.bottom+it.bottom)/Gt.y,left:(gt.left-zt.left+it.left)/Gt.x,right:(zt.right-gt.right+it.right)/Gt.x}}var wf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:m,elements:g,middlewareData:x}=o,{element:L,padding:B=0}=_o(n,o)||{};if(L==null)return{};let K=Yc(B),Q={x:t,y:r},X=Fl(s),it=Dl(X),dt=await m.getDimensions(L),lt=X==="y",gt=lt?"top":"left",St=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Gt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],zt=Q[X]-d.reference[X],Yt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Qt=Yt?Yt[Ct]:0;(!Qt||!await(m.isElement==null?void 0:m.isElement(Yt)))&&(Qt=g.floating[Ct]||d.floating[it]);let de=Gt/2-zt/2,vr=Qt/2-dt[it]/2-1,Re=Ur(K[gt],vr),Qe=Ur(K[St],vr),gr=Re,br=Qt-dt[it]-Qe,kt=Qt/2-dt[it]/2+de,ue=Pl(gr,kt,br),Je=!x.arrow&&Co(s)!=null&&kt!==ue&&d.reference[it]/2-(kt<gr?Re:Qe)-dt[it]/2<0,tr=Je?kt<gr?kt-gr:kt-br:0;return{[X]:Q[X]+tr,data:{[X]:ue,centerOffset:kt-ue-tr,...Je&&{alignmentOffset:tr}},reset:Je}}});var Nf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:m,initialPlacement:g,platform:x,elements:L}=o,{mainAxis:B=!0,crossAxis:K=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=_o(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=hi(s),St=Hr(g),Ct=hi(g)===g,Gt=await(x.isRTL==null?void 0:x.isRTL(L.floating)),zt=Q||(Ct||!dt?[Pa(g)]:If(g)),Yt=it!=="none";!Q&&Yt&&zt.push(..._f(g,dt,it,Gt));let Qt=[g,...zt],de=await $l(o,lt),vr=[],Re=((r=d.flip)==null?void 0:r.overflows)||[];if(B&&vr.push(de[gt]),K){let kt=Sf(s,m,Gt);vr.push(de[kt[0]],de[kt[1]])}if(Re=[...Re,{placement:s,overflows:vr}],!vr.every(kt=>kt<=0)){var Qe,gr;let kt=(((Qe=d.flip)==null?void 0:Qe.index)||0)+1,ue=Qt[kt];if(ue&&(!(K==="alignment"?St!==Hr(ue):!1)||Re.every(er=>er.overflows[0]>0&&Hr(er.placement)===St)))return{data:{index:kt,overflows:Re},reset:{placement:ue}};let Je=(gr=Re.filter(tr=>tr.overflows[0]<=0).sort((tr,er)=>tr.overflows[1]-er.overflows[1])[0])==null?void 0:gr.placement;if(!Je)switch(X){case"bestFit":{var br;let tr=(br=Re.filter(er=>{if(Yt){let rr=Hr(er.placement);return rr===St||rr==="y"}return!0}).map(er=>[er.placement,er.overflows.filter(rr=>rr>0).reduce((rr,yn)=>rr+yn,0)]).sort((er,rr)=>er[1]-rr[1])[0])==null?void 0:br[0];tr&&(Je=tr);break}case"initialPlacement":Je=g;break}if(s!==Je)return{reset:{placement:Je}}}return{}}}};var uT=new Set(["left","top"]);async function fT(n,o){let{placement:t,platform:r,elements:s}=n,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=hi(t),g=Co(t),x=Hr(t)==="y",L=uT.has(m)?-1:1,B=d&&x?-1:1,K=_o(o,n),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return g&&typeof it=="number"&&(X=g==="end"?it*-1:it),x?{x:X*B,y:Q*L}:{x:Q*L,y:X*B}}var Lf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:s,y:d,placement:m,middlewareData:g}=o,x=await fT(o,n);return m===((t=g.offset)==null?void 0:t.placement)&&(r=g.arrow)!=null&&r.alignmentOffset?{}:{x:s+x.x,y:d+x.y,data:{...x,placement:m}}}}},Of=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:lt=>{let{x:gt,y:St}=lt;return{x:gt,y:St}}},...x}=_o(n,o),L={x:t,y:r},B=await $l(o,x),K=Hr(hi(s)),Q=Gc(K),X=L[Q],it=L[K];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",St=X+B[lt],Ct=X-B[gt];X=Pl(St,X,Ct)}if(m){let lt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",St=it+B[lt],Ct=it-B[gt];it=Pl(St,it,Ct)}let dt=g.fn({...o,[Q]:X,[K]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[K]:m}}}}}};var Rf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:s,rects:d,platform:m,elements:g}=o,{apply:x=()=>{},...L}=_o(n,o),B=await $l(o,L),K=hi(s),Q=Co(s),X=Hr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;K==="top"||K==="bottom"?(lt=K,gt=Q===(await(m.isRTL==null?void 0:m.isRTL(g.floating))?"start":"end")?"left":"right"):(gt=K,lt=Q==="end"?"top":"bottom");let St=dt-B.top-B.bottom,Ct=it-B.left-B.right,Gt=Ur(dt-B[lt],St),zt=Ur(it-B[gt],Ct),Yt=!o.middlewareData.shift,Qt=Gt,de=zt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(de=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(Qt=St),Yt&&!Q){let Re=we(B.left,0),Qe=we(B.right,0),gr=we(B.top,0),br=we(B.bottom,0);X?de=it-2*(Re!==0||Qe!==0?Re+Qe:we(B.left,B.right)):Qt=dt-2*(gr!==0||br!==0?gr+br:we(B.top,B.bottom))}await x({...o,availableWidth:de,availableHeight:Qt});let vr=await m.getDimensions(g.floating);return it!==vr.width||dt!==vr.height?{reset:{rects:!0}}:{}}}};function zl(){return typeof window<"u"}function wo(n){return Pf(n)?(n.nodeName||"").toLowerCase():"#document"}function Be(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Ir(n){var o;return(o=(Pf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Pf(n){return zl()?n instanceof Node||n instanceof Be(n).Node:!1}function lr(n){return zl()?n instanceof Element||n instanceof Be(n).Element:!1}function _r(n){return zl()?n instanceof HTMLElement||n instanceof Be(n).HTMLElement:!1}function Mf(n){return!zl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Be(n).ShadowRoot}var vT=new Set(["inline","contents"]);function _s(n){let{overflow:o,overflowX:t,overflowY:r,display:s}=dr(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!vT.has(s)}var gT=new Set(["table","td","th"]);function Df(n){return gT.has(wo(n))}var bT=[":popover-open",":modal"];function $a(n){return bT.some(o=>{try{return n.matches(o)}catch{return!1}})}var yT=["transform","translate","scale","rotate","perspective"],ET=["transform","translate","scale","rotate","perspective","filter"],TT=["paint","layout","strict","content"];function Vl(n){let o=Bl(),t=lr(n)?dr(n):n;return yT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||ET.some(r=>(t.willChange||"").includes(r))||TT.some(r=>(t.contain||"").includes(r))}function Ff(n){let o=pi(n);for(;_r(o)&&!No(o);){if(Vl(o))return o;if($a(o))return null;o=pi(o)}return null}function Bl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var xT=new Set(["html","body","#document"]);function No(n){return xT.has(wo(n))}function dr(n){return Be(n).getComputedStyle(n)}function za(n){return lr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function pi(n){if(wo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Mf(n)&&n.host||Ir(n);return Mf(o)?o.host:o}function $f(n){let o=pi(n);return No(o)?n.ownerDocument?n.ownerDocument.body:n.body:_r(o)&&_s(o)?o:$f(o)}function Is(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=$f(n),d=s===((r=n.ownerDocument)==null?void 0:r.body),m=Be(s);if(d){let g=Ul(m);return o.concat(m,m.visualViewport||[],_s(s)?s:[],g&&t?Is(g):[])}return o.concat(s,Is(s,[],t))}function Ul(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Bf(n){let o=dr(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=_r(n),d=s?n.offsetWidth:t,m=s?n.offsetHeight:r,g=Da(t)!==d||Da(r)!==m;return g&&(t=d,r=m),{width:t,height:r,$:g}}function jc(n){return lr(n)?n:n.contextElement}function Cs(n){let o=jc(n);if(!_r(o))return Sr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=Bf(o),m=(d?Da(t.width):t.width)/r,g=(d?Da(t.height):t.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!g||!Number.isFinite(g))&&(g=1),{x:m,y:g}}var AT=Sr(0);function Uf(n){let o=Be(n);return!Bl()||!o.visualViewport?AT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ST(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Be(n)?!1:o}function Lo(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=n.getBoundingClientRect(),d=jc(n),m=Sr(1);o&&(r?lr(r)&&(m=Cs(r)):m=Cs(n));let g=ST(d,t,r)?Uf(d):Sr(0),x=(s.left+g.x)/m.x,L=(s.top+g.y)/m.y,B=s.width/m.x,K=s.height/m.y;if(d){let Q=Be(d),X=r&&lr(r)?Be(r):r,it=Q,dt=Ul(it);for(;dt&&r&&X!==it;){let lt=Cs(dt),gt=dt.getBoundingClientRect(),St=dr(dt),Ct=gt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*lt.x,Gt=gt.top+(dt.clientTop+parseFloat(St.paddingTop))*lt.y;x*=lt.x,L*=lt.y,B*=lt.x,K*=lt.y,x+=Ct,L+=Gt,it=Be(dt),dt=Ul(it)}}return ko({width:B,height:K,x,y:L})}function Kc(n,o){let t=za(n).scrollLeft;return o?o.left+t:Lo(Ir(n)).left+t}function Hf(n,o,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:Kc(n,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function IT(n){let{elements:o,rect:t,offsetParent:r,strategy:s}=n,d=s==="fixed",m=Ir(r),g=o?$a(o.floating):!1;if(r===m||g&&d)return t;let x={scrollLeft:0,scrollTop:0},L=Sr(1),B=Sr(0),K=_r(r);if((K||!K&&!d)&&((wo(r)!=="body"||_s(m))&&(x=za(r)),_r(r))){let X=Lo(r);L=Cs(r),B.x=X.x+r.clientLeft,B.y=X.y+r.clientTop}let Q=m&&!K&&!d?Hf(m,x,!0):Sr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-x.scrollLeft*L.x+B.x+Q.x,y:t.y*L.y-x.scrollTop*L.y+B.y+Q.y}}function _T(n){return Array.from(n.getClientRects())}function CT(n){let o=Ir(n),t=za(n),r=n.ownerDocument.body,s=we(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=we(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),m=-t.scrollLeft+Kc(n),g=-t.scrollTop;return dr(r).direction==="rtl"&&(m+=we(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:g}}function kT(n,o){let t=Be(n),r=Ir(n),s=t.visualViewport,d=r.clientWidth,m=r.clientHeight,g=0,x=0;if(s){d=s.width,m=s.height;let L=Bl();(!L||L&&o==="fixed")&&(g=s.offsetLeft,x=s.offsetTop)}return{width:d,height:m,x:g,y:x}}var wT=new Set(["absolute","fixed"]);function NT(n,o){let t=Lo(n,!0,o==="fixed"),r=t.top+n.clientTop,s=t.left+n.clientLeft,d=_r(n)?Cs(n):Sr(1),m=n.clientWidth*d.x,g=n.clientHeight*d.y,x=s*d.x,L=r*d.y;return{width:m,height:g,x,y:L}}function zf(n,o,t){let r;if(o==="viewport")r=kT(n,t);else if(o==="document")r=CT(Ir(n));else if(lr(o))r=NT(o,t);else{let s=Uf(n);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return ko(r)}function Gf(n,o){let t=pi(n);return t===o||!lr(t)||No(t)?!1:dr(t).position==="fixed"||Gf(t,o)}function LT(n,o){let t=o.get(n);if(t)return t;let r=Is(n,[],!1).filter(g=>lr(g)&&wo(g)!=="body"),s=null,d=dr(n).position==="fixed",m=d?pi(n):n;for(;lr(m)&&!No(m);){let g=dr(m),x=Vl(m);!x&&g.position==="fixed"&&(s=null),(d?!x&&!s:!x&&g.position==="static"&&!!s&&wT.has(s.position)||_s(m)&&!x&&Gf(n,m))?r=r.filter(B=>B!==m):s=g,m=pi(m)}return o.set(n,r),r}function OT(n){let{element:o,boundary:t,rootBoundary:r,strategy:s}=n,m=[...t==="clippingAncestors"?$a(o)?[]:LT(o,this._c):[].concat(t),r],g=m[0],x=m.reduce((L,B)=>{let K=zf(o,B,s);return L.top=we(K.top,L.top),L.right=Ur(K.right,L.right),L.bottom=Ur(K.bottom,L.bottom),L.left=we(K.left,L.left),L},zf(o,g,s));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function RT(n){let{width:o,height:t}=Bf(n);return{width:o,height:t}}function MT(n,o,t){let r=_r(o),s=Ir(o),d=t==="fixed",m=Lo(n,!0,d,o),g={scrollLeft:0,scrollTop:0},x=Sr(0);function L(){x.x=Kc(s)}if(r||!r&&!d)if((wo(o)!=="body"||_s(s))&&(g=za(o)),r){let X=Lo(o,!0,d,o);x.x=X.x+o.clientLeft,x.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let B=s&&!r&&!d?Hf(s,g):Sr(0),K=m.left+g.scrollLeft-x.x-B.x,Q=m.top+g.scrollTop-x.y-B.y;return{x:K,y:Q,width:m.width,height:m.height}}function Wc(n){return dr(n).position==="static"}function Vf(n,o){if(!_r(n)||dr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Ir(n)===t&&(t=t.ownerDocument.body),t}function Yf(n,o){let t=Be(n);if($a(n))return t;if(!_r(n)){let s=pi(n);for(;s&&!No(s);){if(lr(s)&&!Wc(s))return s;s=pi(s)}return t}let r=Vf(n,o);for(;r&&Df(r)&&Wc(r);)r=Vf(r,o);return r&&No(r)&&Wc(r)&&!Vl(r)?t:r||Ff(n)||t}var PT=async function(n){let o=this.getOffsetParent||Yf,t=this.getDimensions,r=await t(n.floating);return{reference:MT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DT(n){return dr(n).direction==="rtl"}var FT={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:Ir,getClippingRect:OT,getOffsetParent:Yf,getElementRects:PT,getClientRects:_T,getDimensions:RT,getScale:Cs,isElement:lr,isRTL:DT};function Wf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function $T(n,o){let t=null,r,s=Ir(n);function d(){var g;clearTimeout(r),(g=t)==null||g.disconnect(),t=null}function m(g,x){g===void 0&&(g=!1),x===void 0&&(x=1),d();let L=n.getBoundingClientRect(),{left:B,top:K,width:Q,height:X}=L;if(g||o(),!Q||!X)return;let it=Fa(K),dt=Fa(s.clientWidth-(B+Q)),lt=Fa(s.clientHeight-(K+X)),gt=Fa(B),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:we(0,Ur(1,x))||1},Gt=!0;function zt(Yt){let Qt=Yt[0].intersectionRatio;if(Qt!==x){if(!Gt)return m();Qt?m(!1,Qt):r=setTimeout(()=>{m(!1,1e-7)},1e3)}Qt===1&&!Wf(L,n.getBoundingClientRect())&&m(),Gt=!1}try{t=new IntersectionObserver(zt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(zt,Ct)}t.observe(n)}return m(!0),d}function jf(n,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,L=jc(n),B=s||d?[...L?Is(L):[],...Is(o)]:[];B.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let K=L&&g?$T(L,t):null,Q=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[St]=gt;St&&St.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!x&&X.observe(L),X.observe(o));let it,dt=x?Lo(n):null;x&&lt();function lt(){let gt=Lo(n);dt&&!Wf(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;B.forEach(St=>{s&&St.removeEventListener("scroll",t),d&&St.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,x&&cancelAnimationFrame(it)}}var Kf=Lf;var qf=Of,Xf=Nf,Zf=Rf;var Qf=wf;var Jf=(n,o,t)=>{let r=new Map,s={platform:FT,...t},d={...s.platform,_c:r};return kf(n,o,{...s,platform:d})};var tv=z.constructTagName("popover"),Lt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Cr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Oo={TONAL:"tonal",CONTRAST:"contrast"},zT={ABSOLUTE:"absolute",FIXED:"fixed"},It={PLACEMENT:Lt.BOTTOM,TRIGGER:Cr.CLICK,COLOR:Oo.TONAL,STRATEGY:zT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:rt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1};var mi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var qc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ne=new qc;var VT=U`
2553
+ <span part="radio-icon" class="radio-icon"></span>`}};Io.styles=[...q.styles,...Ef],p([u({type:Boolean,reflect:!0})],Io.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],Io.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Io.prototype,"softDisabled",2);var Hc=Io;var Tf=z.constructTagName("staticradio");Hc.register(Tf);var sT=Hc;Uc.register(Rl);var aT=Uc;var Ur=Math.min,we=Math.max,Da=Math.round,Fa=Math.floor,Sr=n=>({x:n,y:n}),nT={left:"right",right:"left",bottom:"top",top:"bottom"},lT={start:"end",end:"start"};function Pl(n,o,t){return we(n,Ur(o,t))}function _o(n,o){return typeof n=="function"?n(o):n}function hi(n){return n.split("-")[0]}function Co(n){return n.split("-")[1]}function Gc(n){return n==="x"?"y":"x"}function Dl(n){return n==="y"?"height":"width"}var dT=new Set(["top","bottom"]);function Hr(n){return dT.has(hi(n))?"y":"x"}function Fl(n){return Gc(Hr(n))}function Sf(n,o,t){t===void 0&&(t=!1);let r=Co(n),s=Fl(n),d=Dl(s),m=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Pa(m)),[m,Pa(m)]}function If(n){let o=Pa(n);return[Ml(n),o,Ml(o)]}function Ml(n){return n.replace(/start|end/g,o=>lT[o])}var xf=["left","right"],Af=["right","left"],cT=["top","bottom"],hT=["bottom","top"];function pT(n,o,t){switch(n){case"top":case"bottom":return t?o?Af:xf:o?xf:Af;case"left":case"right":return o?cT:hT;default:return[]}}function _f(n,o,t,r){let s=Co(n),d=pT(hi(n),t==="start",r);return s&&(d=d.map(m=>m+"-"+s),o&&(d=d.concat(d.map(Ml)))),d}function Pa(n){return n.replace(/left|right|bottom|top/g,o=>nT[o])}function mT(n){return{top:0,right:0,bottom:0,left:0,...n}}function Yc(n){return typeof n!="number"?mT(n):{top:n,right:n,bottom:n,left:n}}function ko(n){let{x:o,y:t,width:r,height:s}=n;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function Cf(n,o,t){let{reference:r,floating:s}=n,d=Hr(o),m=Fl(o),g=Dl(m),x=hi(o),L=d==="y",B=r.x+r.width/2-s.width/2,K=r.y+r.height/2-s.height/2,Q=r[g]/2-s[g]/2,X;switch(x){case"top":X={x:B,y:r.y-s.height};break;case"bottom":X={x:B,y:r.y+r.height};break;case"right":X={x:r.x+r.width,y:K};break;case"left":X={x:r.x-s.width,y:K};break;default:X={x:r.x,y:r.y}}switch(Co(o)){case"start":X[m]-=Q*(t&&L?-1:1);break;case"end":X[m]+=Q*(t&&L?-1:1);break}return X}var kf=async(n,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=t,g=d.filter(Boolean),x=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:s}),{x:B,y:K}=Cf(L,r,x),Q=r,X={},it=0;for(let dt=0;dt<g.length;dt++){let{name:lt,fn:gt}=g[dt],{x:St,y:Ct,data:Gt,reset:zt}=await gt({x:B,y:K,initialPlacement:r,placement:Q,strategy:s,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});B=St!=null?St:B,K=Ct!=null?Ct:K,X={...X,[lt]:{...X[lt],...Gt}},zt&&it<=50&&(it++,typeof zt=="object"&&(zt.placement&&(Q=zt.placement),zt.rects&&(L=zt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:s}):zt.rects),{x:B,y:K}=Cf(L,Q,x)),dt=-1)}return{x:B,y:K,placement:Q,strategy:s,middlewareData:X}};async function $l(n,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:m,elements:g,strategy:x}=n,{boundary:L="clippingAncestors",rootBoundary:B="viewport",elementContext:K="floating",altBoundary:Q=!1,padding:X=0}=_o(o,n),it=Yc(X),lt=g[Q?K==="floating"?"reference":"floating":K],gt=ko(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(lt)))==null||t?lt:lt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(g.floating)),boundary:L,rootBoundary:B,strategy:x})),St=K==="floating"?{x:r,y:s,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g.floating)),Gt=await(d.isElement==null?void 0:d.isElement(Ct))?await(d.getScale==null?void 0:d.getScale(Ct))||{x:1,y:1}:{x:1,y:1},zt=ko(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:St,offsetParent:Ct,strategy:x}):St);return{top:(gt.top-zt.top+it.top)/Gt.y,bottom:(zt.bottom-gt.bottom+it.bottom)/Gt.y,left:(gt.left-zt.left+it.left)/Gt.x,right:(zt.right-gt.right+it.right)/Gt.x}}var wf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:m,elements:g,middlewareData:x}=o,{element:L,padding:B=0}=_o(n,o)||{};if(L==null)return{};let K=Yc(B),Q={x:t,y:r},X=Fl(s),it=Dl(X),dt=await m.getDimensions(L),lt=X==="y",gt=lt?"top":"left",St=lt?"bottom":"right",Ct=lt?"clientHeight":"clientWidth",Gt=d.reference[it]+d.reference[X]-Q[X]-d.floating[it],zt=Q[X]-d.reference[X],Yt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Qt=Yt?Yt[Ct]:0;(!Qt||!await(m.isElement==null?void 0:m.isElement(Yt)))&&(Qt=g.floating[Ct]||d.floating[it]);let de=Gt/2-zt/2,vr=Qt/2-dt[it]/2-1,Re=Ur(K[gt],vr),Qe=Ur(K[St],vr),gr=Re,br=Qt-dt[it]-Qe,kt=Qt/2-dt[it]/2+de,ue=Pl(gr,kt,br),Je=!x.arrow&&Co(s)!=null&&kt!==ue&&d.reference[it]/2-(kt<gr?Re:Qe)-dt[it]/2<0,tr=Je?kt<gr?kt-gr:kt-br:0;return{[X]:Q[X]+tr,data:{[X]:ue,centerOffset:kt-ue-tr,...Je&&{alignmentOffset:tr}},reset:Je}}});var Nf=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:m,initialPlacement:g,platform:x,elements:L}=o,{mainAxis:B=!0,crossAxis:K=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:dt=!0,...lt}=_o(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=hi(s),St=Hr(g),Ct=hi(g)===g,Gt=await(x.isRTL==null?void 0:x.isRTL(L.floating)),zt=Q||(Ct||!dt?[Pa(g)]:If(g)),Yt=it!=="none";!Q&&Yt&&zt.push(..._f(g,dt,it,Gt));let Qt=[g,...zt],de=await $l(o,lt),vr=[],Re=((r=d.flip)==null?void 0:r.overflows)||[];if(B&&vr.push(de[gt]),K){let kt=Sf(s,m,Gt);vr.push(de[kt[0]],de[kt[1]])}if(Re=[...Re,{placement:s,overflows:vr}],!vr.every(kt=>kt<=0)){var Qe,gr;let kt=(((Qe=d.flip)==null?void 0:Qe.index)||0)+1,ue=Qt[kt];if(ue&&(!(K==="alignment"?St!==Hr(ue):!1)||Re.every(er=>er.overflows[0]>0&&Hr(er.placement)===St)))return{data:{index:kt,overflows:Re},reset:{placement:ue}};let Je=(gr=Re.filter(tr=>tr.overflows[0]<=0).sort((tr,er)=>tr.overflows[1]-er.overflows[1])[0])==null?void 0:gr.placement;if(!Je)switch(X){case"bestFit":{var br;let tr=(br=Re.filter(er=>{if(Yt){let rr=Hr(er.placement);return rr===St||rr==="y"}return!0}).map(er=>[er.placement,er.overflows.filter(rr=>rr>0).reduce((rr,yn)=>rr+yn,0)]).sort((er,rr)=>er[1]-rr[1])[0])==null?void 0:br[0];tr&&(Je=tr);break}case"initialPlacement":Je=g;break}if(s!==Je)return{reset:{placement:Je}}}return{}}}};var uT=new Set(["left","top"]);async function fT(n,o){let{placement:t,platform:r,elements:s}=n,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=hi(t),g=Co(t),x=Hr(t)==="y",L=uT.has(m)?-1:1,B=d&&x?-1:1,K=_o(o,n),{mainAxis:Q,crossAxis:X,alignmentAxis:it}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return g&&typeof it=="number"&&(X=g==="end"?it*-1:it),x?{x:X*B,y:Q*L}:{x:Q*L,y:X*B}}var Lf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,r;let{x:s,y:d,placement:m,middlewareData:g}=o,x=await fT(o,n);return m===((t=g.offset)==null?void 0:t.placement)&&(r=g.arrow)!=null&&r.alignmentOffset?{}:{x:s+x.x,y:d+x.y,data:{...x,placement:m}}}}},Of=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:lt=>{let{x:gt,y:St}=lt;return{x:gt,y:St}}},...x}=_o(n,o),L={x:t,y:r},B=await $l(o,x),K=Hr(hi(s)),Q=Gc(K),X=L[Q],it=L[K];if(d){let lt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",St=X+B[lt],Ct=X-B[gt];X=Pl(St,X,Ct)}if(m){let lt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",St=it+B[lt],Ct=it-B[gt];it=Pl(St,it,Ct)}let dt=g.fn({...o,[Q]:X,[K]:it});return{...dt,data:{x:dt.x-t,y:dt.y-r,enabled:{[Q]:d,[K]:m}}}}}};var Rf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,r;let{placement:s,rects:d,platform:m,elements:g}=o,{apply:x=()=>{},...L}=_o(n,o),B=await $l(o,L),K=hi(s),Q=Co(s),X=Hr(s)==="y",{width:it,height:dt}=d.floating,lt,gt;K==="top"||K==="bottom"?(lt=K,gt=Q===(await(m.isRTL==null?void 0:m.isRTL(g.floating))?"start":"end")?"left":"right"):(gt=K,lt=Q==="end"?"top":"bottom");let St=dt-B.top-B.bottom,Ct=it-B.left-B.right,Gt=Ur(dt-B[lt],St),zt=Ur(it-B[gt],Ct),Yt=!o.middlewareData.shift,Qt=Gt,de=zt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(de=Ct),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(Qt=St),Yt&&!Q){let Re=we(B.left,0),Qe=we(B.right,0),gr=we(B.top,0),br=we(B.bottom,0);X?de=it-2*(Re!==0||Qe!==0?Re+Qe:we(B.left,B.right)):Qt=dt-2*(gr!==0||br!==0?gr+br:we(B.top,B.bottom))}await x({...o,availableWidth:de,availableHeight:Qt});let vr=await m.getDimensions(g.floating);return it!==vr.width||dt!==vr.height?{reset:{rects:!0}}:{}}}};function zl(){return typeof window<"u"}function wo(n){return Pf(n)?(n.nodeName||"").toLowerCase():"#document"}function Be(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Ir(n){var o;return(o=(Pf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Pf(n){return zl()?n instanceof Node||n instanceof Be(n).Node:!1}function lr(n){return zl()?n instanceof Element||n instanceof Be(n).Element:!1}function _r(n){return zl()?n instanceof HTMLElement||n instanceof Be(n).HTMLElement:!1}function Mf(n){return!zl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Be(n).ShadowRoot}var vT=new Set(["inline","contents"]);function _s(n){let{overflow:o,overflowX:t,overflowY:r,display:s}=dr(n);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!vT.has(s)}var gT=new Set(["table","td","th"]);function Df(n){return gT.has(wo(n))}var bT=[":popover-open",":modal"];function $a(n){return bT.some(o=>{try{return n.matches(o)}catch{return!1}})}var yT=["transform","translate","scale","rotate","perspective"],ET=["transform","translate","scale","rotate","perspective","filter"],TT=["paint","layout","strict","content"];function Vl(n){let o=Bl(),t=lr(n)?dr(n):n;return yT.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||ET.some(r=>(t.willChange||"").includes(r))||TT.some(r=>(t.contain||"").includes(r))}function Ff(n){let o=pi(n);for(;_r(o)&&!No(o);){if(Vl(o))return o;if($a(o))return null;o=pi(o)}return null}function Bl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var xT=new Set(["html","body","#document"]);function No(n){return xT.has(wo(n))}function dr(n){return Be(n).getComputedStyle(n)}function za(n){return lr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function pi(n){if(wo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Mf(n)&&n.host||Ir(n);return Mf(o)?o.host:o}function $f(n){let o=pi(n);return No(o)?n.ownerDocument?n.ownerDocument.body:n.body:_r(o)&&_s(o)?o:$f(o)}function Is(n,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=$f(n),d=s===((r=n.ownerDocument)==null?void 0:r.body),m=Be(s);if(d){let g=Ul(m);return o.concat(m,m.visualViewport||[],_s(s)?s:[],g&&t?Is(g):[])}return o.concat(s,Is(s,[],t))}function Ul(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Bf(n){let o=dr(n),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=_r(n),d=s?n.offsetWidth:t,m=s?n.offsetHeight:r,g=Da(t)!==d||Da(r)!==m;return g&&(t=d,r=m),{width:t,height:r,$:g}}function jc(n){return lr(n)?n:n.contextElement}function Cs(n){let o=jc(n);if(!_r(o))return Sr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=Bf(o),m=(d?Da(t.width):t.width)/r,g=(d?Da(t.height):t.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!g||!Number.isFinite(g))&&(g=1),{x:m,y:g}}var AT=Sr(0);function Uf(n){let o=Be(n);return!Bl()||!o.visualViewport?AT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ST(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Be(n)?!1:o}function Lo(n,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=n.getBoundingClientRect(),d=jc(n),m=Sr(1);o&&(r?lr(r)&&(m=Cs(r)):m=Cs(n));let g=ST(d,t,r)?Uf(d):Sr(0),x=(s.left+g.x)/m.x,L=(s.top+g.y)/m.y,B=s.width/m.x,K=s.height/m.y;if(d){let Q=Be(d),X=r&&lr(r)?Be(r):r,it=Q,dt=Ul(it);for(;dt&&r&&X!==it;){let lt=Cs(dt),gt=dt.getBoundingClientRect(),St=dr(dt),Ct=gt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*lt.x,Gt=gt.top+(dt.clientTop+parseFloat(St.paddingTop))*lt.y;x*=lt.x,L*=lt.y,B*=lt.x,K*=lt.y,x+=Ct,L+=Gt,it=Be(dt),dt=Ul(it)}}return ko({width:B,height:K,x,y:L})}function Kc(n,o){let t=za(n).scrollLeft;return o?o.left+t:Lo(Ir(n)).left+t}function Hf(n,o,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:Kc(n,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function IT(n){let{elements:o,rect:t,offsetParent:r,strategy:s}=n,d=s==="fixed",m=Ir(r),g=o?$a(o.floating):!1;if(r===m||g&&d)return t;let x={scrollLeft:0,scrollTop:0},L=Sr(1),B=Sr(0),K=_r(r);if((K||!K&&!d)&&((wo(r)!=="body"||_s(m))&&(x=za(r)),_r(r))){let X=Lo(r);L=Cs(r),B.x=X.x+r.clientLeft,B.y=X.y+r.clientTop}let Q=m&&!K&&!d?Hf(m,x,!0):Sr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-x.scrollLeft*L.x+B.x+Q.x,y:t.y*L.y-x.scrollTop*L.y+B.y+Q.y}}function _T(n){return Array.from(n.getClientRects())}function CT(n){let o=Ir(n),t=za(n),r=n.ownerDocument.body,s=we(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=we(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),m=-t.scrollLeft+Kc(n),g=-t.scrollTop;return dr(r).direction==="rtl"&&(m+=we(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:g}}function kT(n,o){let t=Be(n),r=Ir(n),s=t.visualViewport,d=r.clientWidth,m=r.clientHeight,g=0,x=0;if(s){d=s.width,m=s.height;let L=Bl();(!L||L&&o==="fixed")&&(g=s.offsetLeft,x=s.offsetTop)}return{width:d,height:m,x:g,y:x}}var wT=new Set(["absolute","fixed"]);function NT(n,o){let t=Lo(n,!0,o==="fixed"),r=t.top+n.clientTop,s=t.left+n.clientLeft,d=_r(n)?Cs(n):Sr(1),m=n.clientWidth*d.x,g=n.clientHeight*d.y,x=s*d.x,L=r*d.y;return{width:m,height:g,x,y:L}}function zf(n,o,t){let r;if(o==="viewport")r=kT(n,t);else if(o==="document")r=CT(Ir(n));else if(lr(o))r=NT(o,t);else{let s=Uf(n);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return ko(r)}function Gf(n,o){let t=pi(n);return t===o||!lr(t)||No(t)?!1:dr(t).position==="fixed"||Gf(t,o)}function LT(n,o){let t=o.get(n);if(t)return t;let r=Is(n,[],!1).filter(g=>lr(g)&&wo(g)!=="body"),s=null,d=dr(n).position==="fixed",m=d?pi(n):n;for(;lr(m)&&!No(m);){let g=dr(m),x=Vl(m);!x&&g.position==="fixed"&&(s=null),(d?!x&&!s:!x&&g.position==="static"&&!!s&&wT.has(s.position)||_s(m)&&!x&&Gf(n,m))?r=r.filter(B=>B!==m):s=g,m=pi(m)}return o.set(n,r),r}function OT(n){let{element:o,boundary:t,rootBoundary:r,strategy:s}=n,m=[...t==="clippingAncestors"?$a(o)?[]:LT(o,this._c):[].concat(t),r],g=m[0],x=m.reduce((L,B)=>{let K=zf(o,B,s);return L.top=we(K.top,L.top),L.right=Ur(K.right,L.right),L.bottom=Ur(K.bottom,L.bottom),L.left=we(K.left,L.left),L},zf(o,g,s));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function RT(n){let{width:o,height:t}=Bf(n);return{width:o,height:t}}function MT(n,o,t){let r=_r(o),s=Ir(o),d=t==="fixed",m=Lo(n,!0,d,o),g={scrollLeft:0,scrollTop:0},x=Sr(0);function L(){x.x=Kc(s)}if(r||!r&&!d)if((wo(o)!=="body"||_s(s))&&(g=za(o)),r){let X=Lo(o,!0,d,o);x.x=X.x+o.clientLeft,x.y=X.y+o.clientTop}else s&&L();d&&!r&&s&&L();let B=s&&!r&&!d?Hf(s,g):Sr(0),K=m.left+g.scrollLeft-x.x-B.x,Q=m.top+g.scrollTop-x.y-B.y;return{x:K,y:Q,width:m.width,height:m.height}}function Wc(n){return dr(n).position==="static"}function Vf(n,o){if(!_r(n)||dr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Ir(n)===t&&(t=t.ownerDocument.body),t}function Yf(n,o){let t=Be(n);if($a(n))return t;if(!_r(n)){let s=pi(n);for(;s&&!No(s);){if(lr(s)&&!Wc(s))return s;s=pi(s)}return t}let r=Vf(n,o);for(;r&&Df(r)&&Wc(r);)r=Vf(r,o);return r&&No(r)&&Wc(r)&&!Vl(r)?t:r||Ff(n)||t}var PT=async function(n){let o=this.getOffsetParent||Yf,t=this.getDimensions,r=await t(n.floating);return{reference:MT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DT(n){return dr(n).direction==="rtl"}var FT={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:Ir,getClippingRect:OT,getOffsetParent:Yf,getElementRects:PT,getClientRects:_T,getDimensions:RT,getScale:Cs,isElement:lr,isRTL:DT};function Wf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function $T(n,o){let t=null,r,s=Ir(n);function d(){var g;clearTimeout(r),(g=t)==null||g.disconnect(),t=null}function m(g,x){g===void 0&&(g=!1),x===void 0&&(x=1),d();let L=n.getBoundingClientRect(),{left:B,top:K,width:Q,height:X}=L;if(g||o(),!Q||!X)return;let it=Fa(K),dt=Fa(s.clientWidth-(B+Q)),lt=Fa(s.clientHeight-(K+X)),gt=Fa(B),Ct={rootMargin:-it+"px "+-dt+"px "+-lt+"px "+-gt+"px",threshold:we(0,Ur(1,x))||1},Gt=!0;function zt(Yt){let Qt=Yt[0].intersectionRatio;if(Qt!==x){if(!Gt)return m();Qt?m(!1,Qt):r=setTimeout(()=>{m(!1,1e-7)},1e3)}Qt===1&&!Wf(L,n.getBoundingClientRect())&&m(),Gt=!1}try{t=new IntersectionObserver(zt,{...Ct,root:s.ownerDocument})}catch{t=new IntersectionObserver(zt,Ct)}t.observe(n)}return m(!0),d}function jf(n,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:x=!1}=r,L=jc(n),B=s||d?[...L?Is(L):[],...Is(o)]:[];B.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let K=L&&g?$T(L,t):null,Q=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[St]=gt;St&&St.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),L&&!x&&X.observe(L),X.observe(o));let it,dt=x?Lo(n):null;x&&lt();function lt(){let gt=Lo(n);dt&&!Wf(dt,gt)&&t(),dt=gt,it=requestAnimationFrame(lt)}return t(),()=>{var gt;B.forEach(St=>{s&&St.removeEventListener("scroll",t),d&&St.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,x&&cancelAnimationFrame(it)}}var Kf=Lf;var qf=Of,Xf=Nf,Zf=Rf;var Qf=wf;var Jf=(n,o,t)=>{let r=new Map,s={platform:FT,...t},d={...s.platform,_c:r};return kf(n,o,{...s,platform:d})};var tv=z.constructTagName("popover"),Lt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Cr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Oo={TONAL:"tonal",CONTRAST:"contrast"},zT={ABSOLUTE:"absolute",FIXED:"fixed"},It={PLACEMENT:Lt.BOTTOM,TRIGGER:Cr.CLICK,COLOR:Oo.TONAL,STRATEGY:zT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:rt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1};var mi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var qc=class{constructor(){this.stack=[]}push(o){return this.stack.push(o),this.stack.length}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ne=new qc;var VT=U`
2547
2554
  :host {
2548
2555
  --mdc-popover-arrow-border-radius: 0.1875rem;
2549
2556
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2665,7 +2672,7 @@
2665
2672
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2666
2673
  border-bottom-left-radius: 100%;
2667
2674
  }
2668
- `,ev=[VT];var Gl=z.constructTagName("popoverportal"),Hl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Yl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Gl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===rt.DIALOG||this.popover.role===rt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var B;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:m}=o,g=this.popover.arrowElement.getBoundingClientRect(),x=(B=this.popover.arrowElement.offsetParent)==null?void 0:B.getBoundingClientRect();if(!this.arrowPixelChange){let K=x!=null&&x[s]?12-Math.abs(g[s]-x[s]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends gl(ml(pl(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=It.TRIGGER;this.placement=It.PLACEMENT;this.color=It.COLOR;this.visible=It.VISIBLE;this.offset=It.OFFSET;this.boundary=It.BOUNDARY;this.boundaryRoot=It.BOUNDARY_ROOT;this.focusTrap=It.FOCUS_TRAP;this.preventScroll=It.PREVENT_SCROLL;this.showArrow=It.ARROW;this.closeButton=It.CLOSE_BUTTON;this.interactive=It.INTERACTIVE;this.delay=It.DELAY;this.hideOnEscape=It.HIDE_ON_ESCAPE;this.propagateEventOnEscape=It.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=It.HIDE_ON_BLUR;this.hideOnOutsideClick=It.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=It.FOCUS_BACK;this.backdrop=It.BACKDROP;this.isBackdropInvisible=It.IS_BACKDROP_INVISIBLE;this.disableFlip=It.DISABLE_FLIP;this.size=It.SIZE;this.zIndex=It.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=It.STRATEGY;this.role=It.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=It.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=It.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=It.ANIMATION_FRAME;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(Cr).includes(m)).length>0?this.trigger:It.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ne.peek()!==this)return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),mi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),mi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var r,s,d,m;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(m=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&m.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[qf({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],m=this.offset;if(this.disableFlip||d.push(Xf({boundary:r,rootBoundary:s})),this.size){let g=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},x=this.renderRoot.querySelector('[part="popover-content"]');d.push(Zf({boundary:r,rootBoundary:s,apply({availableHeight:L}){x&&(Object.assign(x.style,{maxHeight:`${L}px`,overflowY:"auto"}),g(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let g=this.arrowElement.offsetHeight,x=Math.sqrt(2*g**2)/2;m+=x,d.push(Qf({element:this.arrowElement,padding:12}))}d.push(Kf(m)),this.floatingUICleanupFunction=jf(t,this,async()=>{let{triggerElement:g}=this;if(!g)return;let x=this.adjustPlacementForRtl(this.placement),{x:L,y:B,middlewareData:K,placement:Q}=await Jf(g,this,{placement:x,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,B),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.utils=new Yl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),mi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),mi.onDestroyedPopover(this),Ne.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Lt).includes(this.placement)?this.placement:It.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Oo).includes(this.color)?this.color:It.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,r){var d,m;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(Ne.peek()!==this&&Ne.push(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var g,x;this.interactive&&this.focusTrap&&((g=this.activateFocusTrap)==null||g.call(this),(x=this.setInitialFocus)==null||x.call(this))},0),mi.onShowPopover(this)):(Ne.peek()===this&&Ne.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),mi.onHidePopover(this)))}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return _`
2675
+ `,ev=[VT];var Gl=z.constructTagName("popoverportal"),Hl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Yl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Gl),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===rt.DIALOG||this.popover.role===rt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var B;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:m}=o,g=this.popover.arrowElement.getBoundingClientRect(),x=(B=this.popover.arrowElement.offsetParent)==null?void 0:B.getBoundingClientRect();if(!this.arrowPixelChange){let K=x!=null&&x[s]?12-Math.abs(g[s]-x[s]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends gl(ml(pl(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=It.TRIGGER;this.placement=It.PLACEMENT;this.color=It.COLOR;this.visible=It.VISIBLE;this.offset=It.OFFSET;this.boundary=It.BOUNDARY;this.boundaryRoot=It.BOUNDARY_ROOT;this.focusTrap=It.FOCUS_TRAP;this.preventScroll=It.PREVENT_SCROLL;this.showArrow=It.ARROW;this.closeButton=It.CLOSE_BUTTON;this.interactive=It.INTERACTIVE;this.delay=It.DELAY;this.hideOnEscape=It.HIDE_ON_ESCAPE;this.propagateEventOnEscape=It.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=It.HIDE_ON_BLUR;this.hideOnOutsideClick=It.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=It.FOCUS_BACK;this.backdrop=It.BACKDROP;this.isBackdropInvisible=It.IS_BACKDROP_INVISIBLE;this.disableFlip=It.DISABLE_FLIP;this.size=It.SIZE;this.closeButtonAriaLabel=null;this.strategy=It.STRATEGY;this.role=It.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=It.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=It.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=It.ANIMATION_FRAME;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.popoverDepth=0;this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(Cr).includes(m)).length>0?this.trigger:It.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ne.peek()!==this)return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),mi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),mi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var r,s,d,m;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(m=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&m.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[qf({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],m=this.offset;if(this.disableFlip||d.push(Xf({boundary:r,rootBoundary:s})),this.size){let g=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},x=this.renderRoot.querySelector('[part="popover-content"]');d.push(Zf({boundary:r,rootBoundary:s,apply({availableHeight:L}){x&&(Object.assign(x.style,{maxHeight:`${L}px`,overflowY:"auto"}),g(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let g=this.arrowElement.offsetHeight,x=Math.sqrt(2*g**2)/2;m+=x,d.push(Qf({element:this.arrowElement,padding:12}))}d.push(Kf(m)),this.floatingUICleanupFunction=jf(t,this,async()=>{let{triggerElement:g}=this;if(!g)return;let x=this.adjustPlacementForRtl(this.placement),{x:L,y:B,middlewareData:K,placement:Q}=await Jf(g,this,{placement:x,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,B),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.utils=new Yl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return this.internalZIndex===void 0||!Number.isInteger(this.internalZIndex)?It.Z_INDEX+this.popoverDepth*3:this.internalZIndex}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),mi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),mi.onDestroyedPopover(this),Ne.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Lt).includes(this.placement)?this.placement:It.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Oo).includes(this.color)?this.color:It.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,r){var d,m;let{triggerElement:s}=this;t===r||!s||(r&&!this.shouldSuppressOpening?(Ne.peek()!==this&&(this.popoverDepth=Ne.push(this),this.requestUpdate("zIndex")),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var g,x;this.interactive&&this.focusTrap&&((g=this.activateFocusTrap)==null||g.call(this),(x=this.setInitialFocus)==null||x.call(this))},0),mi.onShowPopover(this)):(Ne.peek()===this&&Ne.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),mi.onHidePopover(this)))}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Lt.LEFT:return Lt.RIGHT;case Lt.LEFT_START:return Lt.RIGHT_START;case Lt.LEFT_END:return Lt.RIGHT_END;case Lt.RIGHT:return Lt.LEFT;case Lt.RIGHT_START:return Lt.LEFT_START;case Lt.RIGHT_END:return Lt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,_`
2669
2676
  <div part="popover-hover-bridge"></div>
2670
2677
  ${this.closeButton?_` <mdc-button
2671
2678
  part="popover-close"
@@ -2679,7 +2686,7 @@
2679
2686
  <div part="popover-content">
2680
2687
  <slot></slot>
2681
2688
  </div>
2682
- `}};_t.styles=[...q.styles,...ev],p([u({type:String,reflect:!0})],_t.prototype,"id",2),p([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([u({type:String,reflect:!0})],_t.prototype,"trigger",2),p([u({type:String,reflect:!0})],_t.prototype,"placement",2),p([u({type:String,reflect:!0})],_t.prototype,"color",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([u({type:Number,reflect:!0})],_t.prototype,"offset",2),p([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([u({type:String,reflect:!0})],_t.prototype,"delay",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),p([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),p([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",2),p([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0})],_t.prototype,"strategy",2),p([u({type:String,reflect:!0})],_t.prototype,"role",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),p([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ue=_t;var rv=z.constructTagName("toggletip"),Ro={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Lt.TOP,CLICK:Cr.CLICK,SHOW_ARROW:!0};var BT=U`
2689
+ `}};_t.styles=[...q.styles,...ev],p([u({type:String,reflect:!0})],_t.prototype,"id",2),p([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([u({type:String,reflect:!0})],_t.prototype,"trigger",2),p([u({type:String,reflect:!0})],_t.prototype,"placement",2),p([u({type:String,reflect:!0})],_t.prototype,"color",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([u({type:Number,reflect:!0})],_t.prototype,"offset",2),p([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([u({type:String,reflect:!0})],_t.prototype,"delay",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),p([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),p([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),p([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),p([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0})],_t.prototype,"strategy",2),p([u({type:String,reflect:!0})],_t.prototype,"role",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),p([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ue=_t;var rv=z.constructTagName("toggletip"),Ro={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Lt.TOP,CLICK:Cr.CLICK,SHOW_ARROW:!0};var BT=U`
2683
2690
  :host {
2684
2691
  --mdc-toggletip-max-width: 400px;
2685
2692
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);