@momentum-design/components 0.54.2 → 0.54.3

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.
@@ -550,7 +550,7 @@
550
550
  <div part="trailing-section">
551
551
  <slot name="trailing"></slot>
552
552
  </div>
553
- </header>`}};vo.styles=[...g.styles,...Is];var wi=vo;var Cs=b.constructTagName("appheader");wi.register(Cs);var Cc=wi;var A=i=>i!=null?i:v;var ks=b.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ii=99,kc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Yt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:kc};var yo=i=>{class t extends i{constructor(){super(...arguments);this.size=Yt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var J=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var _c=[_,f`
553
+ </header>`}};vo.styles=[...g.styles,...Is];var wi=vo;var Cs=b.constructTagName("appheader");wi.register(Cs);var Cc=wi;var A=i=>i!=null?i:v;var ks=b.constructTagName("avatar"),K={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ii=99,kc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Yt={TYPE:K.PHOTO,SIZE:D[32],ICON_NAME:kc};var yo=i=>{class t extends i{constructor(){super(...arguments);this.size=Yt.SIZE;this.isTyping=!1}}return n([c({type:String})],t.prototype,"src",2),n([c({type:String})],t.prototype,"initials",2),n([c({type:String})],t.prototype,"presence",2),n([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([c({type:Number})],t.prototype,"counter",2),n([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ee=i=>{class t extends i{}return n([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var _c=[_,f`
554
554
  :host {
555
555
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
556
556
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -673,7 +673,7 @@
673
673
  outline: 0.125rem solid;
674
674
  }
675
675
  }
676
- `],_s=_c;var Ns=b.constructTagName("presence"),Z={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},H={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},qt={TYPE:Z.ACTIVE,SIZE:H.SMALL};var Ls=i=>({[D[124]]:H.XX_LARGE,[D[88]]:H.X_LARGE,[D[72]]:H.LARGE,[D[64]]:H.MIDSIZE,[D[48]]:H.SMALL,[D[32]]:H.X_SMALL,[D[24]]:H.XX_SMALL})[i]||H.X_SMALL,Rs=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,Os=i=>({[D[124]]:w.HEADING_XLARGE_MEDIUM,[D[88]]:w.HEADING_LARGE_MEDIUM,[D[72]]:w.HEADING_MIDSIZE_MEDIUM,[D[64]]:w.HEADING_SMALL_MEDIUM,[D[48]]:w.HEADING_SMALL_MEDIUM,[D[32]]:w.BODY_MIDSIZE_MEDIUM,[D[24]]:w.BODY_SMALL_MEDIUM})[i]||w.BODY_MIDSIZE_MEDIUM;var kr=class extends yo(J(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===K.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?m`
676
+ `],_s=_c;var Ns=b.constructTagName("presence"),Z={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},H={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},qt={TYPE:Z.ACTIVE,SIZE:H.SMALL};var Ls=i=>({[D[124]]:H.XX_LARGE,[D[88]]:H.X_LARGE,[D[72]]:H.LARGE,[D[64]]:H.MIDSIZE,[D[48]]:H.SMALL,[D[32]]:H.X_SMALL,[D[24]]:H.XX_SMALL})[i]||H.X_SMALL,Rs=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,Os=i=>({[D[124]]:w.HEADING_XLARGE_MEDIUM,[D[88]]:w.HEADING_LARGE_MEDIUM,[D[72]]:w.HEADING_MIDSIZE_MEDIUM,[D[64]]:w.HEADING_SMALL_MEDIUM,[D[48]]:w.HEADING_SMALL_MEDIUM,[D[32]]:w.BODY_MIDSIZE_MEDIUM,[D[24]]:w.BODY_SMALL_MEDIUM})[i]||w.BODY_MIDSIZE_MEDIUM;var kr=class extends yo(ee(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===K.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?m`
677
677
  <mdc-presence part="presence" type="${this.presence}" size="${Ls(this.size)}"></mdc-presence>
678
678
  `:v}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
679
679
  <img
@@ -837,7 +837,7 @@
837
837
  :host::part(presence) {
838
838
  z-index: 2;
839
839
  }
840
- `,...O()],$s=Oc;var Lr=class extends yo(J(de)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=Ie.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Yt.SIZE.toString())}render(){return m`
840
+ `,...O()],$s=Oc;var Lr=class extends yo(ee(de)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=Ie.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Yt.SIZE.toString())}render(){return m`
841
841
  <div part="overlay" aria-hidden="true"></div>
842
842
  <mdc-avatar
843
843
  ?is-typing="${this.isTyping}"
@@ -917,7 +917,7 @@
917
917
  outline: 0.125rem solid;
918
918
  }
919
919
  }
920
- `],Vs=Dc;var Ce=class extends J(g){constructor(){super(...arguments);this.variant=et.VARIANT;this.maxCounter=et.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>et.MAX_COUNTER_LIMIT||r>et.MAX_COUNTER_LIMIT?`${et.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
920
+ `],Vs=Dc;var Ce=class extends ee(g){constructor(){super(...arguments);this.variant=et.VARIANT;this.maxCounter=et.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>et.MAX_COUNTER_LIMIT||r>et.MAX_COUNTER_LIMIT?`${et.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
921
921
  <mdc-icon
922
922
  class="mdc-badge-icon ${jt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
923
  name="${A(e)}"
@@ -1192,7 +1192,7 @@
1192
1192
  ${this.prefixFilledIconName?m` <mdc-icon name="${this.prefixFilledIconName}" part="prefix-icon"></mdc-icon>`:""}
1193
1193
  <slot @slotchange=${this.inferButtonType}></slot>
1194
1194
  ${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}" part="postfix-icon"></mdc-icon>`:""}
1195
- `}};se.styles=[...de.styles,...Ys],n([c({type:String,attribute:"prefix-icon",reflect:!0})],se.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],se.prototype,"postfixIcon",2),n([c({type:String})],se.prototype,"variant",2),n([c({type:Number})],se.prototype,"size",2),n([c({type:String})],se.prototype,"color",2),n([c({type:String,reflect:!0})],se.prototype,"role",2),n([L()],se.prototype,"typeInternal",2),n([L()],se.prototype,"prefixFilledIconName",2),n([L()],se.prototype,"postfixFilledIconName",2);var $r=se;$r.register(_r);var Bc=$r;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var W=[];for(let i=0;i<256;++i)W.push((i+256).toString(16).slice(1));function qs(i,t=0){return(W[i[t+0]]+W[i[t+1]]+W[i[t+2]]+W[i[t+3]]+"-"+W[i[t+4]]+W[i[t+5]]+"-"+W[i[t+6]]+W[i[t+7]]+"-"+W[i[t+8]]+W[i[t+9]]+"-"+W[i[t+10]]+W[i[t+11]]+W[i[t+12]]+W[i[t+13]]+W[i[t+14]]+W[i[t+15]]).toLowerCase()}var Oi,Hc=new Uint8Array(16);function Mi(){if(!Oi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Oi=crypto.getRandomValues.bind(crypto)}return Oi(Hc)}var Gc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Di={randomUUID:Gc};function Wc(i,t,e){var o,a,s;if(Di.randomUUID&&!t&&!i)return Di.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Mi();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let l=0;l<16;++l)t[e+l]=r[l];return t}return qs(r)}var Ve=Wc;var ee=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Ve()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([$e("input")],t.prototype,"inputElement",2),t};var Zs=b.constructTagName("formfieldwrapper"),G={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:G.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ft={TAGNAME:k.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var Yc=[_,f`
1195
+ `}};se.styles=[...de.styles,...Ys],n([c({type:String,attribute:"prefix-icon",reflect:!0})],se.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],se.prototype,"postfixIcon",2),n([c({type:String})],se.prototype,"variant",2),n([c({type:Number})],se.prototype,"size",2),n([c({type:String})],se.prototype,"color",2),n([c({type:String,reflect:!0})],se.prototype,"role",2),n([L()],se.prototype,"typeInternal",2),n([L()],se.prototype,"prefixFilledIconName",2),n([L()],se.prototype,"postfixFilledIconName",2);var $r=se;$r.register(_r);var Bc=$r;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var W=[];for(let i=0;i<256;++i)W.push((i+256).toString(16).slice(1));function qs(i,t=0){return(W[i[t+0]]+W[i[t+1]]+W[i[t+2]]+W[i[t+3]]+"-"+W[i[t+4]]+W[i[t+5]]+"-"+W[i[t+6]]+W[i[t+7]]+"-"+W[i[t+8]]+W[i[t+9]]+"-"+W[i[t+10]]+W[i[t+11]]+W[i[t+12]]+W[i[t+13]]+W[i[t+14]]+W[i[t+15]]).toLowerCase()}var Oi,Hc=new Uint8Array(16);function Mi(){if(!Oi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Oi=crypto.getRandomValues.bind(crypto)}return Oi(Hc)}var Gc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Di={randomUUID:Gc};function Wc(i,t,e){var o,a,s;if(Di.randomUUID&&!t&&!i)return Di.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Mi();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let l=0;l<16;++l)t[e+l]=r[l];return t}return qs(r)}var Ve=Wc;var te=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${Ve()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([$e("input")],t.prototype,"inputElement",2),t};var Zs=b.constructTagName("formfieldwrapper"),G={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:G.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ft={TAGNAME:k.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var Yc=[_,f`
1196
1196
  :host {
1197
1197
  flex-direction: column;
1198
1198
  align-items: flex-start;
@@ -1338,7 +1338,7 @@
1338
1338
  }
1339
1339
 
1340
1340
 
1341
- `,...O(!0)],js=qc;var bt=class extends ee(P(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1341
+ `,...O(!0)],js=qc;var bt=class extends te(P(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1342
1342
  ${this.renderLabel()}
1343
1343
  ${this.renderHelperText()}
1344
1344
  </div>`:v}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return m`
@@ -1569,7 +1569,7 @@
1569
1569
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1570
1570
  cursor: auto;
1571
1571
  }
1572
- `,tn=[_,jc,...O()];var rn=b.constructTagName("chip"),Qc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},er={COLOR:Qc.DEFAULT,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:Ar[24],ROLE:"button"};var tr=class extends J(de){constructor(){super(...arguments);this.color=er.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=er.ROLE,this.size=er.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
1572
+ `,tn=[_,jc,...O()];var rn=b.constructTagName("chip"),Qc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},er={COLOR:Qc.DEFAULT,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:Ar[24],ROLE:"button"};var tr=class extends ee(de){constructor(){super(...arguments);this.color=er.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=er.ROLE,this.size=er.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
1573
1573
  <mdc-icon
1574
1574
  name="${this.iconName}"
1575
1575
  length-unit="rem"
@@ -1577,7 +1577,7 @@
1577
1577
  `:v}render(){return m`
1578
1578
  ${this.renderIcon()}
1579
1579
  <mdc-text type="${er.TEXT_TYPE}" tagname="${er.TAG_NAME}">${this.label}</mdc-text>
1580
- `}};tr.styles=[...g.styles,...tn],n([c({type:String,reflect:!0})],tr.prototype,"color",2),n([c({type:String})],tr.prototype,"label",2);var rr=tr;rr.register(rn);var Jc=rr;var ke=Math.min,Q=Math.max,Pr=Math.round,Vr=Math.floor,ye=i=>({x:i,y:i}),ed={left:"right",right:"left",bottom:"top",top:"bottom"},td={start:"end",end:"start"};function Io(i,t,e){return Q(i,ke(t,e))}function gt(i,t){return typeof i=="function"?i(t):i}function Fe(i){return i.split("-")[0]}function vt(i){return i.split("-")[1]}function Pi(i){return i==="x"?"y":"x"}function Co(i){return i==="y"?"height":"width"}function tt(i){return["top","bottom"].includes(Fe(i))?"y":"x"}function ko(i){return Pi(tt(i))}function on(i,t,e){e===void 0&&(e=!1);let r=vt(i),o=ko(i),a=Co(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=zr(s)),[s,zr(s)]}function an(i){let t=zr(i);return[wo(i),t,wo(t)]}function wo(i){return i.replace(/start|end/g,t=>td[t])}function rd(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function sn(i,t,e,r){let o=vt(i),a=rd(Fe(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(wo)))),a}function zr(i){return i.replace(/left|right|bottom|top/g,t=>ed[t])}function od(i){return{top:0,right:0,bottom:0,left:0,...i}}function Vi(i){return typeof i!="number"?od(i):{top:i,right:i,bottom:i,left:i}}function yt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function nn(i,t,e){let{reference:r,floating:o}=i,a=tt(t),s=ko(t),l=Co(s),d=Fe(t),p=a==="y",h=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:u};break;case"left":y={x:r.x-o.width,y:u};break;default:y={x:r.x,y:r.y}}switch(vt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ln=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:u}=nn(p,r,d),x=r,y={},E=0;for(let T=0;T<l.length;T++){let{name:I,fn:S}=l[T],{x:C,y:R,data:B,reset:z}=await S({x:h,y:u,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,u=R!=null?R:u,y={...y,[I]:{...y[I],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:u}=nn(p,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:y}};async function _o(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:y=0}=gt(t,i),E=Vi(y),I=l[x?u==="floating"?"reference":"floating":u],S=yt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(I)))==null||e?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=yt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var cn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=gt(i,t)||{};if(p==null)return{};let u=Vi(h),x={x:e,y:r},y=ko(o),E=Co(y),T=await s.getDimensions(p),I=y==="y",S=I?"top":"left",C=I?"bottom":"right",R=I?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],ce=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=ce?ce[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(ce)))&&(be=l.floating[R]||a.floating[E]);let Ne=B/2-z/2,Te=be/2-T[E]/2-1,ge=ke(u[S],Te),Ye=ke(u[C],Te),Ae=ge,qe=be-T[E]-Ye,X=be/2-T[E]/2+Ne,$t=Io(Ae,X,qe),Le=!d.arrow&&vt(o)!=null&&X!==$t&&a.reference[E]/2-(X<Ae?ge:Ye)-T[E]/2<0,Se=Le?X<Ae?X-Ae:X-qe:0;return{[y]:x[y]+Se,data:{[y]:$t,centerOffset:X-$t-Se,...Le&&{alignmentOffset:Se}},reset:Le}}});var dn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=gt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Fe(o),C=tt(l),R=Fe(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[zr(l)]:an(l)),ce=E!=="none";!x&&ce&&z.push(...sn(l,T,E,B));let be=[l,...z],Ne=await _o(t,I),Te=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Te.push(Ne[S]),u){let X=on(o,s,B);Te.push(Ne[X[0]],Ne[X[1]])}if(ge=[...ge,{placement:o,overflows:Te}],!Te.every(X=>X<=0)){var Ye,Ae;let X=(((Ye=a.flip)==null?void 0:Ye.index)||0)+1,$t=be[X];if($t)return{data:{index:X,overflows:ge},reset:{placement:$t}};let Le=(Ae=ge.filter(Se=>Se.overflows[0]<=0).sort((Se,Ze)=>Se.overflows[1]-Ze.overflows[1])[0])==null?void 0:Ae.placement;if(!Le)switch(y){case"bestFit":{var qe;let Se=(qe=ge.filter(Ze=>{if(ce){let Xe=tt(Ze.placement);return Xe===C||Xe==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Xe=>Xe>0).reduce((Xe,Jl)=>Xe+Jl,0)]).sort((Ze,Xe)=>Ze[1]-Xe[1])[0])==null?void 0:qe[0];Se&&(Le=Se);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function id(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Fe(e),l=vt(e),d=tt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=gt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var mn=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await id(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},pn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:S,y:C}=I;return{x:S,y:C}}},...d}=gt(i,t),p={x:e,y:r},h=await _o(t,d),u=tt(Fe(o)),x=Pi(u),y=p[x],E=p[u];if(a){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[I],R=y-h[S];y=Io(C,y,R)}if(s){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",C=E+h[I],R=E-h[S];E=Io(C,E,R)}let T=l.fn({...t,[x]:y,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[u]:s}}}}}};var hn=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=gt(i,t),h=await _o(t,p),u=Fe(o),x=vt(o),y=tt(o)==="y",{width:E,height:T}=a.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let C=T-h.top-h.bottom,R=E-h.left-h.right,B=ke(T-h[I],C),z=ke(E-h[S],R),ce=!t.middlewareData.shift,be=B,Ne=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ne=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=C),ce&&!x){let ge=Q(h.left,0),Ye=Q(h.right,0),Ae=Q(h.top,0),qe=Q(h.bottom,0);y?Ne=E-2*(ge!==0||Ye!==0?ge+Ye:Q(h.left,h.right)):be=T-2*(Ae!==0||qe!==0?Ae+qe:Q(h.top,h.bottom))}await d({...t,availableWidth:Ne,availableHeight:be});let Te=await s.getDimensions(l.floating);return E!==Te.width||T!==Te.height?{reset:{rects:!0}}:{}}}};function No(){return typeof window<"u"}function xt(i){return fn(i)?(i.nodeName||"").toLowerCase():"#document"}function te(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function xe(i){var t;return(t=(fn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function fn(i){return No()?i instanceof Node||i instanceof te(i).Node:!1}function me(i){return No()?i instanceof Element||i instanceof te(i).Element:!1}function Ee(i){return No()?i instanceof HTMLElement||i instanceof te(i).HTMLElement:!1}function un(i){return!No()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof te(i).ShadowRoot}function ir(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=pe(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function bn(i){return["table","td","th"].includes(xt(i))}function Ur(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Lo(i){let t=Ro(),e=me(i)?pe(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function gn(i){let t=Be(i);for(;Ee(t)&&!Et(t);){if(Lo(t))return t;if(Ur(t))return null;t=Be(t)}return null}function Ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Et(i){return["html","body","#document"].includes(xt(i))}function pe(i){return te(i).getComputedStyle(i)}function Fr(i){return me(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Be(i){if(xt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||un(i)&&i.host||xe(i);return un(t)?t.host:t}function vn(i){let t=Be(i);return Et(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ee(t)&&ir(t)?t:vn(t)}function or(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=vn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=te(o);if(a){let l=Oo(s);return t.concat(s,s.visualViewport||[],ir(o)?o:[],l&&e?or(l):[])}return t.concat(o,or(o,[],e))}function Oo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function En(i){let t=pe(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ee(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Pr(e)!==a||Pr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Fi(i){return me(i)?i:i.contextElement}function ar(i){let t=Fi(i);if(!Ee(t))return ye(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=En(t),s=(a?Pr(e.width):e.width)/r,l=(a?Pr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var ad=ye(0);function Tn(i){let t=te(i);return!Ro()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sd(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==te(i)?!1:t}function Tt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Fi(i),s=ye(1);t&&(r?me(r)&&(s=ar(r)):s=ar(i));let l=sd(a,e,r)?Tn(a):ye(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=te(a),y=r&&me(r)?te(r):r,E=x,T=Oo(E);for(;T&&r&&y!==E;){let I=ar(T),S=T.getBoundingClientRect(),C=pe(T),R=S.left+(T.clientLeft+parseFloat(C.paddingLeft))*I.x,B=S.top+(T.clientTop+parseFloat(C.paddingTop))*I.y;d*=I.x,p*=I.y,h*=I.x,u*=I.y,d+=R,p+=B,E=te(T),T=Oo(E)}}return yt({width:h,height:u,x:d,y:p})}function Bi(i,t){let e=Fr(i).scrollLeft;return t?t.left+e:Tt(xe(i)).left+e}function An(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Bi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function nd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=xe(r),l=t?Ur(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ye(1),h=ye(0),u=Ee(r);if((u||!u&&!a)&&((xt(r)!=="body"||ir(s))&&(d=Fr(r)),Ee(r))){let y=Tt(r);p=ar(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!u&&!a?An(s,d,!0):ye(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function ld(i){return Array.from(i.getClientRects())}function cd(i){let t=xe(i),e=Fr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Bi(i),l=-e.scrollTop;return pe(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function dd(i,t){let e=te(i),r=xe(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Ro();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function md(i,t){let e=Tt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ee(i)?ar(i):ye(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function yn(i,t,e){let r;if(t==="viewport")r=dd(i,e);else if(t==="document")r=cd(xe(i));else if(me(t))r=md(t,e);else{let o=Tn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yt(r)}function Sn(i,t){let e=Be(i);return e===t||!me(e)||Et(e)?!1:pe(e).position==="fixed"||Sn(e,t)}function pd(i,t){let e=t.get(i);if(e)return e;let r=or(i,[],!1).filter(l=>me(l)&&xt(l)!=="body"),o=null,a=pe(i).position==="fixed",s=a?Be(i):i;for(;me(s)&&!Et(s);){let l=pe(s),d=Lo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ir(s)&&!d&&Sn(i,s))?r=r.filter(h=>h!==s):o=l,s=Be(s)}return t.set(i,r),r}function hd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Ur(t)?[]:pd(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let u=yn(t,h,o);return p.top=Q(u.top,p.top),p.right=ke(u.right,p.right),p.bottom=ke(u.bottom,p.bottom),p.left=Q(u.left,p.left),p},yn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ud(i){let{width:t,height:e}=En(i);return{width:t,height:e}}function fd(i,t,e){let r=Ee(t),o=xe(t),a=e==="fixed",s=Tt(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=ye(0);if(r||!r&&!a)if((xt(t)!=="body"||ir(o))&&(l=Fr(t)),r){let x=Tt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Bi(o));let p=o&&!r&&!a?An(o,l):ye(0),h=s.left+l.scrollLeft-d.x-p.x,u=s.top+l.scrollTop-d.y-p.y;return{x:h,y:u,width:s.width,height:s.height}}function Ui(i){return pe(i).position==="static"}function xn(i,t){if(!Ee(i)||pe(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return xe(i)===e&&(e=e.ownerDocument.body),e}function wn(i,t){let e=te(i);if(Ur(i))return e;if(!Ee(i)){let o=Be(i);for(;o&&!Et(o);){if(me(o)&&!Ui(o))return o;o=Be(o)}return e}let r=xn(i,t);for(;r&&bn(r)&&Ui(r);)r=xn(r,t);return r&&Et(r)&&Ui(r)&&!Lo(r)?e:r||gn(i)||e}var bd=async function(i){let t=this.getOffsetParent||wn,e=this.getDimensions,r=await e(i.floating);return{reference:fd(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gd(i){return pe(i).direction==="rtl"}var vd={convertOffsetParentRelativeRectToViewportRelativeRect:nd,getDocumentElement:xe,getClippingRect:hd,getOffsetParent:wn,getElementRects:bd,getClientRects:ld,getDimensions:ud,getScale:ar,isElement:me,isRTL:gd};function yd(i,t){let e=null,r,o=xe(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:u,height:x}=i.getBoundingClientRect();if(l||t(),!u||!x)return;let y=Vr(h),E=Vr(o.clientWidth-(p+u)),T=Vr(o.clientHeight-(h+x)),I=Vr(p),C={rootMargin:-y+"px "+-E+"px "+-T+"px "+-I+"px",threshold:Q(0,ke(1,d))||1},R=!0;function B(z){let ce=z[0].intersectionRatio;if(ce!==d){if(!R)return s();ce?s(!1,ce):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function In(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Fi(i),h=o||a?[...p?or(p):[],...or(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=p&&l?yd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,T=d?Tt(i):null;d&&I();function I(){let S=Tt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),u==null||u(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var Cn=mn;var kn=pn,_n=dn,Nn=hn;var Ln=cn;var Rn=(i,t,e)=>{let r=new Map,o={platform:vd,...e},a={...o.platform,_c:r};return ln(i,t,{...o,platform:a})};var xd=f`
1580
+ `}};tr.styles=[...g.styles,...tn],n([c({type:String,reflect:!0})],tr.prototype,"color",2),n([c({type:String})],tr.prototype,"label",2);var rr=tr;rr.register(rn);var Jc=rr;var ke=Math.min,Q=Math.max,Pr=Math.round,Vr=Math.floor,ye=i=>({x:i,y:i}),ed={left:"right",right:"left",bottom:"top",top:"bottom"},td={start:"end",end:"start"};function Io(i,t,e){return Q(i,ke(t,e))}function gt(i,t){return typeof i=="function"?i(t):i}function Fe(i){return i.split("-")[0]}function vt(i){return i.split("-")[1]}function Pi(i){return i==="x"?"y":"x"}function Co(i){return i==="y"?"height":"width"}function tt(i){return["top","bottom"].includes(Fe(i))?"y":"x"}function ko(i){return Pi(tt(i))}function on(i,t,e){e===void 0&&(e=!1);let r=vt(i),o=ko(i),a=Co(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=zr(s)),[s,zr(s)]}function an(i){let t=zr(i);return[wo(i),t,wo(t)]}function wo(i){return i.replace(/start|end/g,t=>td[t])}function rd(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function sn(i,t,e,r){let o=vt(i),a=rd(Fe(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(wo)))),a}function zr(i){return i.replace(/left|right|bottom|top/g,t=>ed[t])}function od(i){return{top:0,right:0,bottom:0,left:0,...i}}function Vi(i){return typeof i!="number"?od(i):{top:i,right:i,bottom:i,left:i}}function yt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function nn(i,t,e){let{reference:r,floating:o}=i,a=tt(t),s=ko(t),l=Co(s),d=Fe(t),p=a==="y",h=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:u};break;case"left":y={x:r.x-o.width,y:u};break;default:y={x:r.x,y:r.y}}switch(vt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ln=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:u}=nn(p,r,d),x=r,y={},E=0;for(let T=0;T<l.length;T++){let{name:I,fn:S}=l[T],{x:C,y:R,data:B,reset:z}=await S({x:h,y:u,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,u=R!=null?R:u,y={...y,[I]:{...y[I],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:u}=nn(p,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:y}};async function _o(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:y=0}=gt(t,i),E=Vi(y),I=l[x?u==="floating"?"reference":"floating":u],S=yt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(I)))==null||e?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=yt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var cn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=gt(i,t)||{};if(p==null)return{};let u=Vi(h),x={x:e,y:r},y=ko(o),E=Co(y),T=await s.getDimensions(p),I=y==="y",S=I?"top":"left",C=I?"bottom":"right",R=I?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],ce=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=ce?ce[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(ce)))&&(be=l.floating[R]||a.floating[E]);let Ne=B/2-z/2,Te=be/2-T[E]/2-1,ge=ke(u[S],Te),Ye=ke(u[C],Te),Ae=ge,qe=be-T[E]-Ye,X=be/2-T[E]/2+Ne,$t=Io(Ae,X,qe),Le=!d.arrow&&vt(o)!=null&&X!==$t&&a.reference[E]/2-(X<Ae?ge:Ye)-T[E]/2<0,Se=Le?X<Ae?X-Ae:X-qe:0;return{[y]:x[y]+Se,data:{[y]:$t,centerOffset:X-$t-Se,...Le&&{alignmentOffset:Se}},reset:Le}}});var dn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=gt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Fe(o),C=tt(l),R=Fe(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[zr(l)]:an(l)),ce=E!=="none";!x&&ce&&z.push(...sn(l,T,E,B));let be=[l,...z],Ne=await _o(t,I),Te=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Te.push(Ne[S]),u){let X=on(o,s,B);Te.push(Ne[X[0]],Ne[X[1]])}if(ge=[...ge,{placement:o,overflows:Te}],!Te.every(X=>X<=0)){var Ye,Ae;let X=(((Ye=a.flip)==null?void 0:Ye.index)||0)+1,$t=be[X];if($t)return{data:{index:X,overflows:ge},reset:{placement:$t}};let Le=(Ae=ge.filter(Se=>Se.overflows[0]<=0).sort((Se,Ze)=>Se.overflows[1]-Ze.overflows[1])[0])==null?void 0:Ae.placement;if(!Le)switch(y){case"bestFit":{var qe;let Se=(qe=ge.filter(Ze=>{if(ce){let Xe=tt(Ze.placement);return Xe===C||Xe==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Xe=>Xe>0).reduce((Xe,Jl)=>Xe+Jl,0)]).sort((Ze,Xe)=>Ze[1]-Xe[1])[0])==null?void 0:qe[0];Se&&(Le=Se);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function id(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Fe(e),l=vt(e),d=tt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=gt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var mn=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:l}=t,d=await id(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},pn=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:S,y:C}=I;return{x:S,y:C}}},...d}=gt(i,t),p={x:e,y:r},h=await _o(t,d),u=tt(Fe(o)),x=Pi(u),y=p[x],E=p[u];if(a){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[I],R=y-h[S];y=Io(C,y,R)}if(s){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",C=E+h[I],R=E-h[S];E=Io(C,E,R)}let T=l.fn({...t,[x]:y,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[u]:s}}}}}};var hn=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=gt(i,t),h=await _o(t,p),u=Fe(o),x=vt(o),y=tt(o)==="y",{width:E,height:T}=a.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let C=T-h.top-h.bottom,R=E-h.left-h.right,B=ke(T-h[I],C),z=ke(E-h[S],R),ce=!t.middlewareData.shift,be=B,Ne=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ne=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=C),ce&&!x){let ge=Q(h.left,0),Ye=Q(h.right,0),Ae=Q(h.top,0),qe=Q(h.bottom,0);y?Ne=E-2*(ge!==0||Ye!==0?ge+Ye:Q(h.left,h.right)):be=T-2*(Ae!==0||qe!==0?Ae+qe:Q(h.top,h.bottom))}await d({...t,availableWidth:Ne,availableHeight:be});let Te=await s.getDimensions(l.floating);return E!==Te.width||T!==Te.height?{reset:{rects:!0}}:{}}}};function No(){return typeof window<"u"}function xt(i){return fn(i)?(i.nodeName||"").toLowerCase():"#document"}function re(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function xe(i){var t;return(t=(fn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function fn(i){return No()?i instanceof Node||i instanceof re(i).Node:!1}function me(i){return No()?i instanceof Element||i instanceof re(i).Element:!1}function Ee(i){return No()?i instanceof HTMLElement||i instanceof re(i).HTMLElement:!1}function un(i){return!No()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof re(i).ShadowRoot}function ir(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=pe(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function bn(i){return["table","td","th"].includes(xt(i))}function Ur(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Lo(i){let t=Ro(),e=me(i)?pe(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function gn(i){let t=Be(i);for(;Ee(t)&&!Et(t);){if(Lo(t))return t;if(Ur(t))return null;t=Be(t)}return null}function Ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Et(i){return["html","body","#document"].includes(xt(i))}function pe(i){return re(i).getComputedStyle(i)}function Fr(i){return me(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Be(i){if(xt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||un(i)&&i.host||xe(i);return un(t)?t.host:t}function vn(i){let t=Be(i);return Et(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ee(t)&&ir(t)?t:vn(t)}function or(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=vn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=re(o);if(a){let l=Oo(s);return t.concat(s,s.visualViewport||[],ir(o)?o:[],l&&e?or(l):[])}return t.concat(o,or(o,[],e))}function Oo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function En(i){let t=pe(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ee(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Pr(e)!==a||Pr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Fi(i){return me(i)?i:i.contextElement}function ar(i){let t=Fi(i);if(!Ee(t))return ye(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=En(t),s=(a?Pr(e.width):e.width)/r,l=(a?Pr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var ad=ye(0);function Tn(i){let t=re(i);return!Ro()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sd(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==re(i)?!1:t}function Tt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Fi(i),s=ye(1);t&&(r?me(r)&&(s=ar(r)):s=ar(i));let l=sd(a,e,r)?Tn(a):ye(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=re(a),y=r&&me(r)?re(r):r,E=x,T=Oo(E);for(;T&&r&&y!==E;){let I=ar(T),S=T.getBoundingClientRect(),C=pe(T),R=S.left+(T.clientLeft+parseFloat(C.paddingLeft))*I.x,B=S.top+(T.clientTop+parseFloat(C.paddingTop))*I.y;d*=I.x,p*=I.y,h*=I.x,u*=I.y,d+=R,p+=B,E=re(T),T=Oo(E)}}return yt({width:h,height:u,x:d,y:p})}function Bi(i,t){let e=Fr(i).scrollLeft;return t?t.left+e:Tt(xe(i)).left+e}function An(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Bi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function nd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=xe(r),l=t?Ur(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ye(1),h=ye(0),u=Ee(r);if((u||!u&&!a)&&((xt(r)!=="body"||ir(s))&&(d=Fr(r)),Ee(r))){let y=Tt(r);p=ar(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!u&&!a?An(s,d,!0):ye(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function ld(i){return Array.from(i.getClientRects())}function cd(i){let t=xe(i),e=Fr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Bi(i),l=-e.scrollTop;return pe(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function dd(i,t){let e=re(i),r=xe(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Ro();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function md(i,t){let e=Tt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ee(i)?ar(i):ye(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function yn(i,t,e){let r;if(t==="viewport")r=dd(i,e);else if(t==="document")r=cd(xe(i));else if(me(t))r=md(t,e);else{let o=Tn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yt(r)}function Sn(i,t){let e=Be(i);return e===t||!me(e)||Et(e)?!1:pe(e).position==="fixed"||Sn(e,t)}function pd(i,t){let e=t.get(i);if(e)return e;let r=or(i,[],!1).filter(l=>me(l)&&xt(l)!=="body"),o=null,a=pe(i).position==="fixed",s=a?Be(i):i;for(;me(s)&&!Et(s);){let l=pe(s),d=Lo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ir(s)&&!d&&Sn(i,s))?r=r.filter(h=>h!==s):o=l,s=Be(s)}return t.set(i,r),r}function hd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Ur(t)?[]:pd(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let u=yn(t,h,o);return p.top=Q(u.top,p.top),p.right=ke(u.right,p.right),p.bottom=ke(u.bottom,p.bottom),p.left=Q(u.left,p.left),p},yn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ud(i){let{width:t,height:e}=En(i);return{width:t,height:e}}function fd(i,t,e){let r=Ee(t),o=xe(t),a=e==="fixed",s=Tt(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=ye(0);if(r||!r&&!a)if((xt(t)!=="body"||ir(o))&&(l=Fr(t)),r){let x=Tt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Bi(o));let p=o&&!r&&!a?An(o,l):ye(0),h=s.left+l.scrollLeft-d.x-p.x,u=s.top+l.scrollTop-d.y-p.y;return{x:h,y:u,width:s.width,height:s.height}}function Ui(i){return pe(i).position==="static"}function xn(i,t){if(!Ee(i)||pe(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return xe(i)===e&&(e=e.ownerDocument.body),e}function wn(i,t){let e=re(i);if(Ur(i))return e;if(!Ee(i)){let o=Be(i);for(;o&&!Et(o);){if(me(o)&&!Ui(o))return o;o=Be(o)}return e}let r=xn(i,t);for(;r&&bn(r)&&Ui(r);)r=xn(r,t);return r&&Et(r)&&Ui(r)&&!Lo(r)?e:r||gn(i)||e}var bd=async function(i){let t=this.getOffsetParent||wn,e=this.getDimensions,r=await e(i.floating);return{reference:fd(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gd(i){return pe(i).direction==="rtl"}var vd={convertOffsetParentRelativeRectToViewportRelativeRect:nd,getDocumentElement:xe,getClippingRect:hd,getOffsetParent:wn,getElementRects:bd,getClientRects:ld,getDimensions:ud,getScale:ar,isElement:me,isRTL:gd};function yd(i,t){let e=null,r,o=xe(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:u,height:x}=i.getBoundingClientRect();if(l||t(),!u||!x)return;let y=Vr(h),E=Vr(o.clientWidth-(p+u)),T=Vr(o.clientHeight-(h+x)),I=Vr(p),C={rootMargin:-y+"px "+-E+"px "+-T+"px "+-I+"px",threshold:Q(0,ke(1,d))||1},R=!0;function B(z){let ce=z[0].intersectionRatio;if(ce!==d){if(!R)return s();ce?s(!1,ce):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function In(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Fi(i),h=o||a?[...p?or(p):[],...or(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=p&&l?yd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,T=d?Tt(i):null;d&&I();function I(){let S=Tt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),u==null||u(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var Cn=mn;var kn=pn,_n=dn,Nn=hn;var Ln=cn;var Rn=(i,t,e)=>{let r=new Map,o={platform:vd,...e},a={...o.platform,_c:r};return ln(i,t,{...o,platform:a})};var On=b.constructTagName("popover"),He={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"},Br={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Hr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:He.BOTTOM,TRIGGER:Br.CLICK,COLOR:Hr.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Mn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var At=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Hi=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},St=new Hi;var xd=f`
1581
1581
  :host {
1582
1582
  --mdc-popover-arrow-border-radius: 0.1875rem;
1583
1583
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1626,7 +1626,6 @@
1626
1626
  :host::part(popover-content) {
1627
1627
  position: relative;
1628
1628
  padding: 0.75rem;
1629
- overflow-y: auto;
1630
1629
  min-width: max-content;
1631
1630
  z-index: 9998;
1632
1631
  max-height: var(--mdc-popover-max-height);
@@ -1684,7 +1683,7 @@
1684
1683
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1685
1684
  border-bottom-left-radius: 100%;
1686
1685
  }
1687
- `,On=[xd];var Mn=b.constructTagName("popover"),He={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"},Br={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Hr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:He.BOTTOM,TRIGGER:Br.CLICK,COLOR:Hr.TONAL,OFFSET:4,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,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Dn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(l=>{let d=l;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var Hi=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},At=new Hi;var St=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Mo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,l=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(l[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
1686
+ `,Dn=[xd];var Mo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,l=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(l[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
1688
1687
  .popover-backdrop {
1689
1688
  position: fixed;
1690
1689
  top: 0;
@@ -1694,7 +1693,7 @@
1694
1693
  background: transparent;
1695
1694
  z-index: ${this.popover.zIndex-1};
1696
1695
  }
1697
- `,e.appendChild(r),this.popover.backdropElement=e}}};var N=class extends Dn(g){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(At.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{At.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Mo(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,St.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),St.onDestroyedPopover(this),At.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(He).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(Br).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Hr).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)At.peek()!==this&&At.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),St.onShowPopover(this);else{if(At.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let l=this.triggerElement.getAttribute("aria-haspopup");(l==="dialog"||l==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),St.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[kn()],r=this.offset;if(this.flip&&e.push(_n()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Nn({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Ln({element:this.arrowElement,padding:12}))}e.push(Cn(r)),In(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:l}=await Rn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,l),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(l)})}render(){return m`
1696
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var N=class extends Mn(g){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(St.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{St.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Mo(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,At.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),At.onDestroyedPopover(this),St.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(He).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(Br).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Hr).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)St.peek()!==this&&St.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),At.onShowPopover(this);else{if(St.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let l=this.triggerElement.getAttribute("aria-haspopup");(l==="dialog"||l==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),At.onHidePopover(this)}}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[kn()],r=this.offset;if(this.flip&&e.push(_n()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Nn({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Ln({element:this.arrowElement,padding:12}))}e.push(Cn(r)),In(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:l}=await Rn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,l),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(l)})}render(){return m`
1698
1697
  <div class="popover-hover-bridge"></div>
1699
1698
  ${this.closeButton?m` <mdc-button
1700
1699
  class="popover-close"
@@ -1708,7 +1707,7 @@
1708
1707
  <div part="popover-content">
1709
1708
  <slot></slot>
1710
1709
  </div>
1711
- `}};N.styles=[...g.styles,...On],n([c({type:String,reflect:!0})],N.prototype,"id",2),n([c({type:String,reflect:!0})],N.prototype,"triggerID",2),n([c({type:String,reflect:!0})],N.prototype,"trigger",2),n([c({type:String,reflect:!0})],N.prototype,"placement",2),n([c({type:String,reflect:!0})],N.prototype,"color",2),n([c({type:Boolean,reflect:!0})],N.prototype,"visible",2),n([c({type:Number,reflect:!0})],N.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],N.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],N.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],N.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],N.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],N.prototype,"interactive",2),n([c({type:String,reflect:!0})],N.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],N.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],N.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],N.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],N.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],N.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],N.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],N.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],N.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],N.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label"})],N.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],N.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],N.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],N.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],N.prototype,"disableAriaExpanded",2);var rt=N;var $n=b.constructTagName("coachmark"),wt={COLOR:Hr.CONTRAST,TRIGGER:Br.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var It=class extends rt{constructor(){super(...arguments);this.trigger=wt.TRIGGER;this.showArrow=wt.ARROW;this.closeButton=wt.CLOSE_BUTTON;this.disableAriaExpanded=wt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=wt.COLOR,this.showArrow=wt.ARROW}};n([c({type:String,reflect:!0})],It.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],It.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2);var Gi=It;Gi.register($n);var Ed=Gi;var Td=[f`
1710
+ `}};N.styles=[...g.styles,...Dn],n([c({type:String,reflect:!0})],N.prototype,"id",2),n([c({type:String,reflect:!0})],N.prototype,"triggerID",2),n([c({type:String,reflect:!0})],N.prototype,"trigger",2),n([c({type:String,reflect:!0})],N.prototype,"placement",2),n([c({type:String,reflect:!0})],N.prototype,"color",2),n([c({type:Boolean,reflect:!0})],N.prototype,"visible",2),n([c({type:Number,reflect:!0})],N.prototype,"offset",2),n([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],N.prototype,"focusTrap",2),n([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],N.prototype,"preventScroll",2),n([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],N.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],N.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0})],N.prototype,"interactive",2),n([c({type:String,reflect:!0})],N.prototype,"delay",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],N.prototype,"hideOnEscape",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],N.prototype,"hideOnBlur",2),n([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],N.prototype,"hideOnOutsideClick",2),n([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],N.prototype,"focusBackToTrigger",2),n([c({type:Boolean,reflect:!0})],N.prototype,"backdrop",2),n([c({type:Boolean,reflect:!0})],N.prototype,"flip",2),n([c({type:Boolean,reflect:!0})],N.prototype,"size",2),n([c({type:Number,reflect:!0,attribute:"z-index"})],N.prototype,"zIndex",2),n([c({type:String,reflect:!0,attribute:"append-to"})],N.prototype,"appendTo",2),n([c({type:String,attribute:"close-button-aria-label"})],N.prototype,"closeButtonAriaLabel",2),n([c({type:String,reflect:!0})],N.prototype,"role",2),n([c({type:String,reflect:!0,attribute:"aria-labelledby"})],N.prototype,"ariaLabelledby",2),n([c({type:String,reflect:!0,attribute:"aria-describedby"})],N.prototype,"ariaDescribedby",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],N.prototype,"disableAriaExpanded",2);var rt=N;var $n=b.constructTagName("coachmark"),wt={COLOR:Hr.CONTRAST,TRIGGER:Br.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var It=class extends rt{constructor(){super(...arguments);this.trigger=wt.TRIGGER;this.showArrow=wt.ARROW;this.closeButton=wt.CLOSE_BUTTON;this.disableAriaExpanded=wt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=wt.COLOR,this.showArrow=wt.ARROW}};n([c({type:String,reflect:!0})],It.prototype,"trigger",2),n([c({type:Boolean,attribute:"show-arrow"})],It.prototype,"showArrow",2),n([c({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),n([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2);var Gi=It;Gi.register($n);var Ed=Gi;var Td=[f`
1712
1711
  :host{
1713
1712
  display: block;
1714
1713
  position: relative;
@@ -2175,7 +2174,7 @@
2175
2174
  opacity: 0;
2176
2175
  pointer-events: none;
2177
2176
  }
2178
- `,...O(!0)],Wn=Nd;j.register(Zs);var he=j;var Yn=b.constructTagName("input"),zo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Qi={OFF:"off",ON:"on"},Ji={TEXT:"text",SEARCH:"search"},qn={MAX_LENGTH:10,VALIDATION:G.ERROR},Ge={VALIDATION:G.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Je.TERTIARY,CLEAR_BUTTON_SIZE:Zt[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:Qi.OFF,INPUT_TYPE:Ji.TEXT};var U=class extends ee(P(he)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=zo.OFF;this.autocomplete=Qi.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2177
+ `,...O(!0)],Wn=Nd;j.register(Zs);var he=j;var Yn=b.constructTagName("input"),zo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Qi={OFF:"off",ON:"on"},Ji={TEXT:"text",SEARCH:"search"},qn={MAX_LENGTH:10,VALIDATION:G.ERROR},Ge={VALIDATION:G.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Je.TERTIARY,CLEAR_BUTTON_SIZE:Zt[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:Qi.OFF,INPUT_TYPE:Ji.TEXT};var U=class extends te(P(he)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=zo.OFF;this.autocomplete=Qi.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2179
2178
  <mdc-icon
2180
2179
  class="leading-icon"
2181
2180
  part="leading-icon"
@@ -2269,7 +2268,7 @@
2269
2268
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2270
2269
  cursor: auto;
2271
2270
  }
2272
- `,Zn=[_,Rd];var Po=b.constructTagName("inputchip"),Vo={TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,CLOSE_ICON:"cancel-bold"};var kt=class extends J(q(g)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2271
+ `,Zn=[_,Rd];var Po=b.constructTagName("inputchip"),Vo={TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,CLOSE_ICON:"cancel-bold"};var kt=class extends ee(q(g)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2273
2272
  <mdc-icon
2274
2273
  name="${this.iconName}"
2275
2274
  length-unit="rem"
@@ -2395,7 +2394,7 @@
2395
2394
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
2396
2395
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
2397
2396
  }
2398
- `,...O()],Kn=Md;var _e=class extends q(Ht(J(g))){constructor(){super(...arguments);this.inline=Bo.INLINE;this.inverted=Bo.INVERTED;this.size=Bo.LINK_SIZE;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}getIconSize(){switch(this.size){case Uo.SMALL:return Fo.SMALL;case Uo.MIDSIZE:return Fo.MIDSIZE;default:return Fo.LARGE}}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
2397
+ `,...O()],Kn=Md;var _e=class extends q(Ht(ee(g))){constructor(){super(...arguments);this.inline=Bo.INLINE;this.inverted=Bo.INVERTED;this.size=Bo.LINK_SIZE;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}getIconSize(){switch(this.size){case Uo.SMALL:return Fo.SMALL;case Uo.MIDSIZE:return Fo.MIDSIZE;default:return Fo.LARGE}}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
2399
2398
  <slot></slot>
2400
2399
  ${this.iconName?m`
2401
2400
  <mdc-icon
@@ -2622,7 +2621,7 @@
2622
2621
  text-overflow: ellipsis;
2623
2622
  white-space: nowrap;
2624
2623
  }
2625
- `,nl=[Yd];var _t=class extends ee(cr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ra.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Wo);o.id=ca,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(Yo)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ca}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2624
+ `,nl=[Yd];var _t=class extends te(cr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ra.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Wo);o.id=ca,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(Yo)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ca}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2626
2625
  <div part="leading-icon">
2627
2626
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2628
2627
  </div>
@@ -2637,7 +2636,7 @@
2637
2636
  ${r}
2638
2637
  </div>
2639
2638
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2640
- `}};_t.styles=[...cr.styles,...nl],n([c({type:Boolean,reflect:!0})],_t.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],_t.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],_t.prototype,"ariaLabel",2);var da=_t;da.register(Zr);var qd=da;rt.register(Mn);var Zd=rt;var Xd=[f`
2639
+ `}};_t.styles=[...cr.styles,...nl],n([c({type:Boolean,reflect:!0})],_t.prototype,"selected",2),n([c({type:String,reflect:!0,attribute:"prefix-icon"})],_t.prototype,"prefixIcon",2),n([c({type:String,reflect:!0,attribute:"aria-label"})],_t.prototype,"ariaLabel",2);var da=_t;da.register(Zr);var qd=da;rt.register(On);var Zd=rt;var Xd=[f`
2641
2640
  :host {
2642
2641
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2643
2642
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -2918,7 +2917,7 @@
2918
2917
  display: none;
2919
2918
  }
2920
2919
 
2921
- `,...O(!0)],bl=Jd;var Lt=class extends ee(P(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
2920
+ `,...O(!0)],bl=Jd;var Lt=class extends te(P(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
2922
2921
  ${this.renderLabel()}
2923
2922
  ${this.renderHelperText()}
2924
2923
  </div>`:v}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(l=>l.requiredLabel),a=!!r.find(l=>l.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let l=(d=s.shadowRoot)==null?void 0:d.querySelector("input");l&&(s.checked=!1,l.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(l=>!l.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let l=(a+1)%o.length;this.updateRadio(o,l,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let l=(a-1+o.length)%o.length;this.updateRadio(o,l,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var l;let s=(l=a.shadowRoot)==null?void 0:l.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
@@ -3105,7 +3104,7 @@
3105
3104
  :host([help-text-type="warning"])::part(base-container) {
3106
3105
  border-color: var(--mdc-select-warning-border-color);
3107
3106
  }
3108
- `,Tl=[nm,...O(!0)];var re=class extends ee(P(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=qo.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant=""}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===Zr?r:r.tagName.toLowerCase()===Go?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===Zr):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=qo.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=qo.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3107
+ `,Tl=[nm,...O(!0)];var J=class extends te(P(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=qo.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===Zr?r:r.tagName.toLowerCase()===Go?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===Zr):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=qo.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=qo.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3109
3108
  <select
3110
3109
  part="native-select"
3111
3110
  id="${this.id}"
@@ -3143,7 +3142,7 @@
3143
3142
  placement="${He.BOTTOM_START}"
3144
3143
  @shown="${this.handlePopoverOpen}"
3145
3144
  @hidden="${this.handlePopoverClose}"
3146
- style="--mdc-popover-max-width: 100%; --mdc-popover-max-height: ${this.height};"
3145
+ style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
3147
3146
  >
3148
3147
  <slot @click="${this.handleOptionsClick}"></slot>
3149
3148
  </mdc-popover>
@@ -3177,7 +3176,7 @@
3177
3176
  ${this.getPopoverContent()}
3178
3177
  </div>
3179
3178
  ${this.renderHelperText()}
3180
- `}};re.styles=[...j.styles,...Tl],n([c({type:String})],re.prototype,"placeholder",2),n([c({type:Boolean})],re.prototype,"readonly",2),n([c({type:String,attribute:"height"})],re.prototype,"height",2),n([oe()],re.prototype,"optionsList",2),n([L()],re.prototype,"baseIconName",2),n([L()],re.prototype,"selectedValueText",2),n([L()],re.prototype,"selectedValue",2),n([L()],re.prototype,"displayPopover",2),n([L()],re.prototype,"activeDescendant",2),n([$e("select")],re.prototype,"inputElement",2);var va=re;va.register(Yo);var lm=va;var cm=[_,f`
3179
+ `}};J.styles=[...j.styles,...Tl],n([c({type:String})],J.prototype,"placeholder",2),n([c({type:Boolean})],J.prototype,"readonly",2),n([c({type:String})],J.prototype,"height",2),n([oe()],J.prototype,"optionsList",2),n([L()],J.prototype,"baseIconName",2),n([L()],J.prototype,"selectedValueText",2),n([L()],J.prototype,"selectedValue",2),n([L()],J.prototype,"displayPopover",2),n([L()],J.prototype,"activeDescendant",2),n([L()],J.prototype,"popoverWidth",2),n([$e("select")],J.prototype,"inputElement",2);var va=J;va.register(Yo);var lm=va;var cm=[_,f`
3181
3180
  :host {
3182
3181
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
3183
3182
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -3487,7 +3486,7 @@
3487
3486
  color: var(--mdc-tab-pill-active-color-disabled);
3488
3487
  }
3489
3488
 
3490
- `,...O()],wl=hm;var Il=b.constructTagName("tab"),xa={GLASS:"glass",LINE:"line",PILL:"pill"},Qo={VARIANT:xa.PILL,ACTIVE:!1};var nt=class extends J(de){constructor(){super(...arguments);this.active=Qo.ACTIVE;this.variant=Qo.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Dr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(xa).includes(e)?e:Qo.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3489
+ `,...O()],wl=hm;var Il=b.constructTagName("tab"),xa={GLASS:"glass",LINE:"line",PILL:"pill"},Qo={VARIANT:xa.PILL,ACTIVE:!1};var nt=class extends ee(de){constructor(){super(...arguments);this.active=Qo.ACTIVE;this.variant=Qo.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Dr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(xa).includes(e)?e:Qo.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3491
3490
  <div part="container">
3492
3491
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
3493
3492
  ${this.text?m` <mdc-text
@@ -3622,7 +3621,7 @@
3622
3621
  pointer-events: none;
3623
3622
  }
3624
3623
 
3625
- `,...O(!0)],Cl=fm;var kl=b.constructTagName("textarea"),Ea={HARD:"hard",SOFT:"soft"},_l={OFF:"off",ON:"on"},Jo={CHARACTER_COUNTER_TYPE:w.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ea.SOFT};var Y=class extends ee(P(he)){constructor(){super(...arguments);this.readonly=!1;this.rows=Jo.ROWS;this.cols=Jo.COLS;this.wrap=Ea.SOFT;this.autocapitalize=zo.OFF;this.autocomplete=_l.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===G.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
3624
+ `,...O(!0)],Cl=fm;var kl=b.constructTagName("textarea"),Ea={HARD:"hard",SOFT:"soft"},_l={OFF:"off",ON:"on"},Jo={CHARACTER_COUNTER_TYPE:w.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ea.SOFT};var Y=class extends te(P(he)){constructor(){super(...arguments);this.readonly=!1;this.rows=Jo.ROWS;this.cols=Jo.COLS;this.wrap=Ea.SOFT;this.autocapitalize=zo.OFF;this.autocomplete=_l.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===G.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
3626
3625
  <mdc-text
3627
3626
  part="character-counter"
3628
3627
  tagname="span"
@@ -3845,7 +3844,7 @@
3845
3844
  border: var(--mdc-toggle-border);
3846
3845
  }
3847
3846
  }
3848
- `,...O(!0)],Ll=ym;var Rl=b.constructTagName("toggle"),wa={DEFAULT:"default",COMPACT:"compact"},Ia={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Ol={compact:.75,default:1.25},Ca={SIZE:wa.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Ot=class extends ee(P(he)){constructor(){super(...arguments);this.checked=!1;this.size=Ca.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(wa).includes(e)?e:Ca.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
3847
+ `,...O(!0)],Ll=ym;var Rl=b.constructTagName("toggle"),wa={DEFAULT:"default",COMPACT:"compact"},Ia={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Ol={compact:.75,default:1.25},Ca={SIZE:wa.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Ot=class extends te(P(he)){constructor(){super(...arguments);this.checked=!1;this.size=Ca.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(wa).includes(e)?e:Ca.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
3849
3848
  <div class="mdc-toggle__container mdc-focus-ring">
3850
3849
  <input
3851
3850
  id="${this.id}"