@momentum-design/components 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var cl=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?dl(t,e):t,s=o.length-1,a;s>=0;s--)(a=o[s])&&(i=(r?a(t,e,i):a(i))||i);return r&&i&&cl(t,e,i),i};var $r=globalThis,Pr=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Uo=Symbol(),ss=new WeakMap,or=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Uo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Pr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ss.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ss.set(e,t))}return t}toString(){return this.cssText}},as=o=>new or(typeof o=="string"?o:o+"",void 0,Uo),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new or(e,o,Uo)},Vo=(o,t)=>{if(Pr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=$r.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Ur=Pr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return as(e)})(o):o;var{is:ml,defineProperty:pl,getOwnPropertyDescriptor:hl,getOwnPropertyNames:ul,getOwnPropertySymbols:fl,getPrototypeOf:gl}=Object,Fe=globalThis,ns=Fe.trustedTypes,bl=ns?ns.emptyScript:"",Fo=Fe.reactiveElementPolyfillSupport,ir=(o,t)=>o,sr={toAttribute(o,t){switch(t){case Boolean:o=o?bl:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Vr=(o,t)=>!ml(o,t),ls={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},cs,ds;(cs=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ds=Fe.litPropertyMetadata)!=null||(Fe.litPropertyMetadata=new WeakMap);var Ie=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&pl(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=hl(this.prototype,t))!=null?a:{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){let d=i==null?void 0:i.call(this);s.call(this,n),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ls}static _$Ei(){if(this.hasOwnProperty(ir("elementProperties")))return;let t=gl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ir("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ir("properties"))){let e=this.properties,r=[...ul(e),...fl(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Ur(i))}else t!==void 0&&e.push(Ur(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Vo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:sr).toAttribute(e,r.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=r.getPropertyOptions(i),n=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:sr;this._$Em=i,this[i]=n.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Vr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},ms;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[ir("elementProperties")]=new Map,Ie[ir("finalized")]=new Map,Fo==null||Fo({ReactiveElement:Ie}),((ms=Fe.reactiveElementVersions)!=null?ms:Fe.reactiveElementVersions=[]).push("2.0.4");var nr=globalThis,Fr=nr.trustedTypes,ps=Fr?Fr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Go="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,Yo="?"+ke,vl=`<${Yo}>`,et=document,lr=()=>et.createComment(""),cr=o=>o===null||typeof o!="object"&&typeof o!="function",qo=Array.isArray,ys=o=>qo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ho=`[
2
- \f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hs=/-->/g,us=/>/g,Qe=RegExp(`>|${Ho}(?:([^\\s"'>=/]+)(${Ho}*=${Ho}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fs=/'/g,gs=/"/g,xs=/^(?:script|style|textarea|title)$/i,Wo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Wo(1),Rd=Wo(2),Od=Wo(3),Ce=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),bs=new WeakMap,Je=et.createTreeWalker(et,129);function Es(o,t){if(!qo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ps!==void 0?ps.createHTML(t):t}var Ts=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",a=ar;for(let n=0;n<e;n++){let d=o[n],m,p,u=-1,x=0;for(;x<d.length&&(a.lastIndex=x,p=a.exec(d),p!==null);)x=a.lastIndex,a===ar?p[1]==="!--"?a=hs:p[1]!==void 0?a=us:p[2]!==void 0?(xs.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=Qe):p[3]!==void 0&&(a=Qe):a===Qe?p[0]===">"?(a=i!=null?i:ar,u=-1):p[1]===void 0?u=-2:(u=a.lastIndex-p[2].length,m=p[1],a=p[3]===void 0?Qe:p[3]==='"'?gs:fs):a===gs||a===fs?a=Qe:a===hs||a===us?a=ar:(a=Qe,i=void 0);let b=a===Qe&&o[n+1].startsWith("/>")?" ":"";s+=a===ar?d+vl:u>=0?(r.push(m),d.slice(0,u)+Go+d.slice(u)+ke+b):d+ke+(u===-2?n:b)}return[Es(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},dr=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,a=0,n=t.length-1,d=this.parts,[m,p]=Ts(t,e);if(this.el=o.createElement(m,r),Je.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Je.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Go)){let x=p[a++],b=i.getAttribute(u).split(ke),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Br:E[1]==="?"?Gr:E[1]==="@"?Yr:rt}),i.removeAttribute(u)}else u.startsWith(ke)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(xs.test(i.tagName)){let u=i.textContent.split(ke),x=u.length-1;if(x>0){i.textContent=Fr?Fr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],lr()),Je.nextNode(),d.push({type:2,index:++s});i.append(u[x],lr())}}}else if(i.nodeType===8)if(i.data===Yo)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(ke,u+1))!==-1;)d.push({type:7,index:s}),u+=ke.length-1}s++}}static createElement(t,e){let r=et.createElement("template");return r.innerHTML=t,r}};function tt(o,t,e=o,r){var a,n,d;if(t===Ce)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=cr(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((n=i==null?void 0:i._$AO)==null||n.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=tt(o,i._$AS(o,t.values),i,r)),t}var Hr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:et).importNode(e,!0);Je.currentNode=i;let s=Je.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new qr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Je.nextNode(),a++)}return Je.currentNode=et,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),cr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ce&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ys(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&cr(this._$AH)?this._$AA.nextSibling.data=t:this.T(et.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=dr.createElement(Es(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let a=new Hr(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=bs.get(t.strings);return e===void 0&&bs.set(t.strings,e=new dr(t)),e}k(t){qo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let s of t)i===e.length?e.push(r=new o(this.O(lr()),this.O(lr()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}_$AI(t,e=this,r,i){let s=this.strings,a=!1;if(s===void 0)t=tt(this,t,e,0),a=!cr(t)||t!==this._$AH&&t!==Ce,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=tt(this,n[r+d],e,d),m===Ce&&(m=this._$AH[d]),a||(a=!cr(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+s[d+1]),this._$AH[d]=m}a&&!i&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Br=class extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Gr=class extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Yr=class extends rt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=tt(this,t,e,0))!=null?a:v)===Ce)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},qr=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}},As={M:Go,P:ke,A:Yo,C:1,L:Ts,R:Hr,D:ys,V:tt,I:wt,H:rt,N:Gr,U:Yr,B:Br,F:qr},Bo=nr.litHtmlPolyfillSupport,vs;Bo==null||Bo(dr,wt),((vs=nr.litHtmlVersions)!=null?vs:nr.litHtmlVersions=[]).push("3.2.0");var Ss=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(lr(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var He=class extends Ie{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ss(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ce}},_s;He._$litElement$=!0,He.finalized=!0,(_s=globalThis.litElementHydrateSupport)==null||_s.call(globalThis,{LitElement:He});var Xo=globalThis.litElementPolyfillSupport;Xo==null||Xo({LitElement:He});var Is;((Is=globalThis.litElementVersions)!=null?Is:globalThis.litElementVersions=[]).push("4.1.0");var yl={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},xl=(o=yl,t,e)=>{let{kind:r,metadata:i}=e,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(e.name,o),r==="accessor"){let{name:a}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,d,o)},init(n){return n!==void 0&&this.P(a,void 0,o),n}}}if(r==="setter"){let{name:a}=e;return function(n){let d=this[a];t.call(this,n),this.requestUpdate(a,d,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?xl(o,t,e):((r,i,s)=>{let a=i.hasOwnProperty(s);return i.constructor.createProperty(s,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function U(o){return c({...o,state:!0,attribute:!1})}var we=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Wr(o,t){return(e,r,i)=>{let s=a=>{var n,d;return(d=(n=a.renderRoot)==null?void 0:n.querySelector(o))!=null?d:null};if(t){let{get:a,set:n}=typeof r=="object"?e:i!=null?i:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return we(e,r,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return we(e,r,{get(){return s(this)}})}}function Le(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var d,m;let a=(d=this.renderRoot)==null?void 0:d.querySelector(s),n=(m=a==null?void 0:a.assignedElements(o))!=null?m:[];return i===void 0?n:n.filter(p=>p.matches(i))}})}}function ks(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var C=f`
1
+ "use strict";(()=>{var hl=Object.defineProperty;var ul=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?ul(t,e):t,s=o.length-1,a;s>=0;s--)(a=o[s])&&(i=(r?a(t,e,i):a(i))||i);return r&&i&&hl(t,e,i),i};var $r=globalThis,Pr=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vo=Symbol(),ns=new WeakMap,or=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Vo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Pr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ns.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ns.set(e,t))}return t}toString(){return this.cssText}},ls=o=>new or(typeof o=="string"?o:o+"",void 0,Vo),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new or(e,o,Vo)},Fo=(o,t)=>{if(Pr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=$r.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Ur=Pr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ls(e)})(o):o;var{is:fl,defineProperty:gl,getOwnPropertyDescriptor:bl,getOwnPropertyNames:vl,getOwnPropertySymbols:yl,getPrototypeOf:xl}=Object,Fe=globalThis,cs=Fe.trustedTypes,El=cs?cs.emptyScript:"",Ho=Fe.reactiveElementPolyfillSupport,ir=(o,t)=>o,sr={toAttribute(o,t){switch(t){case Boolean:o=o?El:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Vr=(o,t)=>!fl(o,t),ds={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},ms,ps;(ms=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ps=Fe.litPropertyMetadata)!=null||(Fe.litPropertyMetadata=new WeakMap);var Ie=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ds){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&gl(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=bl(this.prototype,t))!=null?a:{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){let d=i==null?void 0:i.call(this);s.call(this,n),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ds}static _$Ei(){if(this.hasOwnProperty(ir("elementProperties")))return;let t=xl(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ir("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ir("properties"))){let e=this.properties,r=[...vl(e),...yl(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Ur(i))}else t!==void 0&&e.push(Ur(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Fo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:sr).toAttribute(e,r.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=r.getPropertyOptions(i),n=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:sr;this._$Em=i,this[i]=n.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Vr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},hs;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[ir("elementProperties")]=new Map,Ie[ir("finalized")]=new Map,Ho==null||Ho({ReactiveElement:Ie}),((hs=Fe.reactiveElementVersions)!=null?hs:Fe.reactiveElementVersions=[]).push("2.0.4");var nr=globalThis,Fr=nr.trustedTypes,us=Fr?Fr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yo="$lit$",ke=`lit$${Math.random().toFixed(9).slice(2)}$`,qo="?"+ke,Tl=`<${qo}>`,et=document,lr=()=>et.createComment(""),cr=o=>o===null||typeof o!="object"&&typeof o!="function",Wo=Array.isArray,Es=o=>Wo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Bo=`[
2
+ \f\r]`,ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fs=/-->/g,gs=/>/g,Qe=RegExp(`>|${Bo}(?:([^\\s"'>=/]+)(${Bo}*=${Bo}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),bs=/'/g,vs=/"/g,Ts=/^(?:script|style|textarea|title)$/i,Xo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Xo(1),Pd=Xo(2),Ud=Xo(3),Ce=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ys=new WeakMap,Je=et.createTreeWalker(et,129);function As(o,t){if(!Wo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return us!==void 0?us.createHTML(t):t}var Ss=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",a=ar;for(let n=0;n<e;n++){let d=o[n],m,p,u=-1,x=0;for(;x<d.length&&(a.lastIndex=x,p=a.exec(d),p!==null);)x=a.lastIndex,a===ar?p[1]==="!--"?a=fs:p[1]!==void 0?a=gs:p[2]!==void 0?(Ts.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=Qe):p[3]!==void 0&&(a=Qe):a===Qe?p[0]===">"?(a=i!=null?i:ar,u=-1):p[1]===void 0?u=-2:(u=a.lastIndex-p[2].length,m=p[1],a=p[3]===void 0?Qe:p[3]==='"'?vs:bs):a===vs||a===bs?a=Qe:a===fs||a===gs?a=ar:(a=Qe,i=void 0);let b=a===Qe&&o[n+1].startsWith("/>")?" ":"";s+=a===ar?d+Tl:u>=0?(r.push(m),d.slice(0,u)+Yo+d.slice(u)+ke+b):d+ke+(u===-2?n:b)}return[As(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},dr=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,a=0,n=t.length-1,d=this.parts,[m,p]=Ss(t,e);if(this.el=o.createElement(m,r),Je.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Je.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(Yo)){let x=p[a++],b=i.getAttribute(u).split(ke),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Br:E[1]==="?"?Gr:E[1]==="@"?Yr:rt}),i.removeAttribute(u)}else u.startsWith(ke)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(Ts.test(i.tagName)){let u=i.textContent.split(ke),x=u.length-1;if(x>0){i.textContent=Fr?Fr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],lr()),Je.nextNode(),d.push({type:2,index:++s});i.append(u[x],lr())}}}else if(i.nodeType===8)if(i.data===qo)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(ke,u+1))!==-1;)d.push({type:7,index:s}),u+=ke.length-1}s++}}static createElement(t,e){let r=et.createElement("template");return r.innerHTML=t,r}};function tt(o,t,e=o,r){var a,n,d;if(t===Ce)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=cr(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((n=i==null?void 0:i._$AO)==null||n.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=tt(o,i._$AS(o,t.values),i,r)),t}var Hr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:et).importNode(e,!0);Je.currentNode=i;let s=Je.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new qr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Je.nextNode(),a++)}return Je.currentNode=et,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),cr(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ce&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Es(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&cr(this._$AH)?this._$AA.nextSibling.data=t:this.T(et.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=dr.createElement(As(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let a=new Hr(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=ys.get(t.strings);return e===void 0&&ys.set(t.strings,e=new dr(t)),e}k(t){Wo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let s of t)i===e.length?e.push(r=new o(this.O(lr()),this.O(lr()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}_$AI(t,e=this,r,i){let s=this.strings,a=!1;if(s===void 0)t=tt(this,t,e,0),a=!cr(t)||t!==this._$AH&&t!==Ce,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=tt(this,n[r+d],e,d),m===Ce&&(m=this._$AH[d]),a||(a=!cr(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+s[d+1]),this._$AH[d]=m}a&&!i&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Br=class extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Gr=class extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Yr=class extends rt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=tt(this,t,e,0))!=null?a:v)===Ce)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},qr=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}},_s={M:Yo,P:ke,A:qo,C:1,L:Ss,R:Hr,D:Es,V:tt,I:wt,H:rt,N:Gr,U:Yr,B:Br,F:qr},Go=nr.litHtmlPolyfillSupport,xs;Go==null||Go(dr,wt),((xs=nr.litHtmlVersions)!=null?xs:nr.litHtmlVersions=[]).push("3.2.0");var Is=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(lr(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var He=class extends Ie{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Is(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ce}},ks;He._$litElement$=!0,He.finalized=!0,(ks=globalThis.litElementHydrateSupport)==null||ks.call(globalThis,{LitElement:He});var Zo=globalThis.litElementPolyfillSupport;Zo==null||Zo({LitElement:He});var Cs;((Cs=globalThis.litElementVersions)!=null?Cs:globalThis.litElementVersions=[]).push("4.1.0");var Al={attribute:!0,type:String,converter:sr,reflect:!1,hasChanged:Vr},Sl=(o=Al,t,e)=>{let{kind:r,metadata:i}=e,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(e.name,o),r==="accessor"){let{name:a}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,d,o)},init(n){return n!==void 0&&this.P(a,void 0,o),n}}}if(r==="setter"){let{name:a}=e;return function(n){let d=this[a];t.call(this,n),this.requestUpdate(a,d,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?Sl(o,t,e):((r,i,s)=>{let a=i.hasOwnProperty(s);return i.constructor.createProperty(s,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function U(o){return c({...o,state:!0,attribute:!1})}var we=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Wr(o,t){return(e,r,i)=>{let s=a=>{var n,d;return(d=(n=a.renderRoot)==null?void 0:n.querySelector(o))!=null?d:null};if(t){let{get:a,set:n}=typeof r=="object"?e:i!=null?i:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return we(e,r,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return we(e,r,{get(){return s(this)}})}}function Le(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var d,m;let a=(d=this.renderRoot)==null?void 0:d.querySelector(s),n=(m=a==null?void 0:a.assignedElements(o))!=null?m:[];return i===void 0?n:n.filter(p=>p.matches(i))}})}}function ws(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var C=f`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -65,7 +65,7 @@
65
65
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
66
66
  }
67
67
  }
68
- `]};var El=f`
68
+ `]};var _l=f`
69
69
  :host {
70
70
  height: 1.5rem;
71
71
  gap: 0.25rem;
@@ -168,7 +168,7 @@
168
168
  :host([variant="informational"]:active){
169
169
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
170
170
  }
171
- `,Cs=[C,El,...O()];var ws=f`
171
+ `,Ls=[C,_l,...O()];var Ns=f`
172
172
  :host {
173
173
  box-sizing: border-box;
174
174
  }
@@ -178,11 +178,11 @@
178
178
  :host *::after {
179
179
  box-sizing: inherit;
180
180
  }
181
- `;var Xr=class extends He{static register(t){customElements.get(t)||customElements.define(t,this)}};Xr.styles=[ws];var Ls=Xr;var y=Ls;var Be=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Lt=class{constructor(t,e,r,i){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let a=e;this.context=a.context,this.callback=a.callback,this.subscribe=(s=a.subscribe)!=null?s:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Be(this.context,this.t,this.subscribe))}};var Zr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var Zo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=class extends Zr{constructor(t,e,r){var i,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=a=>{let n=a.composedPath()[0];a.context===this.context&&n!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,n,a.subscribe))},this.onProviderRequest=a=>{let n=a.composedPath()[0];if(a.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)d.has(m)||(d.add(m),p.dispatchEvent(new Be(this.context,m,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(i=this.host).addController)==null||s.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Zo(this.context))}};var Tl=f`
181
+ `;var Xr=class extends He{static register(t){customElements.get(t)||customElements.define(t,this)}};Xr.styles=[Ns];var Rs=Xr;var y=Rs;var Be=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Lt=class{constructor(t,e,r,i){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let a=e;this.context=a.context,this.callback=a.callback,this.subscribe=(s=a.subscribe)!=null?s:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Be(this.context,this.t,this.subscribe))}};var Zr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var jo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Nt=class extends Zr{constructor(t,e,r){var i,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=a=>{let n=a.composedPath()[0];a.context===this.context&&n!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,n,a.subscribe))},this.onProviderRequest=a=>{let n=a.composedPath()[0];if(a.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)d.has(m)||(d.add(m),p.dispatchEvent(new Be(this.context,m,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(i=this.host).addController)==null||s.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new jo(this.context))}};var Il=f`
182
182
  :host {
183
183
  display: contents;
184
184
  }
185
- `,Rs=Tl;var jr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};jr.styles=[...y.styles,Rs];var Os=jr;var Rt=Os;var Al={PREFIX:"mdc",SEPARATOR:"-"},Sl={NAMESPACE:Al},jo=Sl;var _l=o=>[jo.NAMESPACE.PREFIX,o].join(jo.NAMESPACE.SEPARATOR),g={constructTagName:_l};var xp=g.constructTagName("buttonsimple"),mr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ot={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Kr={SIZE:mr[32],TYPE:Ot.BUTTON,ROLE:"button"};var pr=g.constructTagName("text"),_={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ms=g.constructTagName("alertchip"),ot={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:ot.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var zs=o=>({[ot.ERROR]:"error-legacy-badge-filled",[ot.WARNING]:"warning-badge-filled",[ot.SUCCESS]:"check-circle-badge-filled",[ot.INFORMATIONAL]:"info-badge-filled",[ot.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Qr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Il=[C,f`
185
+ `,Ms=Il;var jr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Nt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};jr.styles=[...y.styles,Ms];var zs=jr;var Rt=zs;var kl={PREFIX:"mdc",SEPARATOR:"-"},Cl={NAMESPACE:kl},Ko=Cl;var wl=o=>[Ko.NAMESPACE.PREFIX,o].join(Ko.NAMESPACE.SEPARATOR),g={constructTagName:wl};var Ip=g.constructTagName("buttonsimple"),mr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ot={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Kr={SIZE:mr[32],TYPE:Ot.BUTTON,ROLE:"button"};var pr=g.constructTagName("text"),_={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},w={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},K={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ds=g.constructTagName("alertchip"),ot={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Mt={VARIANT:ot.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var $s=o=>({[ot.ERROR]:"error-legacy-badge-filled",[ot.WARNING]:"warning-badge-filled",[ot.SUCCESS]:"check-circle-badge-filled",[ot.INFORMATIONAL]:"info-badge-filled",[ot.NEUTRAL]:"dnd-presence-badge-filled"})[o];var te=o=>{class t extends o{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Qr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Ll=[C,f`
186
186
  :host {
187
187
  border: 0.0625rem solid transparent;
188
188
  cursor: pointer;
@@ -238,12 +238,12 @@
238
238
  :host([size="20"]){
239
239
  height: var(--mdc-button-height-size-20);
240
240
  }
241
- `,...O()],Ds=Il;var ve=class extends Qr(te(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Kr.SIZE;this.role=Kr.ROLE;this.type=Kr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===Ot.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ot.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
241
+ `,...O()],Ps=Ll;var ve=class extends Qr(te(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Kr.SIZE;this.role=Kr.ROLE;this.type=Kr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===Ot.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ot.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
242
242
  <slot></slot>
243
- `}};ve.formAssociated=!0,ve.styles=[...y.styles,...Ds],l([c({type:Boolean,reflect:!0})],ve.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],ve.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,reflect:!0})],ve.prototype,"role",2),l([c({reflect:!0})],ve.prototype,"type",2);var re=ve;var zt=class extends re{constructor(){super(...arguments);this.variant=Mt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Mt.SIZE,this.role=Mt.ROLE}render(){return h`
244
- <mdc-icon part="icon" name="${zs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
243
+ `}};ve.formAssociated=!0,ve.styles=[...y.styles,...Ps],l([c({type:Boolean,reflect:!0})],ve.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],ve.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,reflect:!0})],ve.prototype,"role",2),l([c({reflect:!0})],ve.prototype,"type",2);var re=ve;var zt=class extends re{constructor(){super(...arguments);this.variant=Mt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Mt.SIZE,this.role=Mt.ROLE}render(){return h`
244
+ <mdc-icon part="icon" name="${$s(this.variant)}" length-unit="rem" size="1"></mdc-icon>
245
245
  <mdc-text part="label" type="${Mt.TEXT_TYPE}" tagname="${Mt.TAG_NAME}">${this.label}</mdc-text>
246
- `}};zt.styles=[...y.styles,...Cs],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Ko=zt;var $s=f`
246
+ `}};zt.styles=[...y.styles,...Ls],l([c({type:String})],zt.prototype,"variant",2),l([c({type:String})],zt.prototype,"label",2);var Qo=zt;var Us=f`
247
247
  :host::part(text) {
248
248
  font-size: unset;
249
249
  font-weight: unset;
@@ -486,14 +486,14 @@
486
486
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
487
487
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
488
488
  }
489
- `;var kl=[f`
489
+ `;var Nl=[f`
490
490
  :host {
491
491
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
492
492
 
493
493
  display: block;
494
494
  font-family: var(--mdc-text-font-family);
495
495
  }
496
- `,$s],Ps=kl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Ps],l([c({attribute:"type",reflect:!0,type:String})],Dt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Dt.prototype,"tagname",2);var Qo=Dt;Qo.register(pr);var Cl=Qo;var wl=[C,f`
496
+ `,Us],Vs=Nl;var Dt=class extends y{constructor(){super(...arguments);this.type=K.TYPE;this.tagname=K.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return h`<h1 part=${K.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return h`<h2 part=${K.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return h`<h3 part=${K.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return h`<h4 part=${K.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return h`<h5 part=${K.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return h`<h6 part=${K.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return h`<div part=${K.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return h`<span part=${K.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return h`<small part=${K.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return h`<p part=${K.CSS_PART_TEXT}><slot></slot></p>`}}};Dt.styles=[...y.styles,...Vs],l([c({attribute:"type",reflect:!0,type:String})],Dt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Dt.prototype,"tagname",2);var Jo=Dt;Jo.register(pr);var Rl=Jo;var Ol=[C,f`
497
497
  :host {
498
498
  --mdc-icon-fill-color: currentColor;
499
499
  --mdc-icon-size: var(--computed-icon-size);
@@ -508,7 +508,7 @@
508
508
  width: 100%;
509
509
  fill: var(--mdc-icon-fill-color);
510
510
  }
511
- `,...O()],Us=wl;var Ll=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},Nl={consume:Ll},Vs=Nl;var Jr=g.constructTagName("iconprovider"),Fs=["svg"],Hs=["em","rem","px","%"],Rl={px:16,em:1,rem:1,"%":100},Ne={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Rl.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var eo=class{};eo.context=Jr;var to=eo;var ye=class extends Rt{constructor(){super({context:to.context,initialValue:new to});this.iconSet=Ne.ICON_SET;this.fileExtension=Ne.FILE_EXTENSION;this.lengthUnit=Ne.LENGTH_UNIT;this.size=Ne.SIZE}static get Context(){return to.context}updateValuesInContext(){this.fileExtension&&Fs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ne.FILE_EXTENSION,this.context.value.fileExtension=Ne.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Hs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ne.LENGTH_UNIT,this.context.value.lengthUnit=Ne.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],ye.prototype,"iconSet",2),l([c({type:String})],ye.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ye.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ye.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ye.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ye.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ye.prototype,"cacheName",2);var hr=ye;var ur={},Bs=async o=>(ur[o]===void 0&&(ur[o]=new Map),{async set(t,e){ur[o].set(t.url,await e.text())},async get(t){return ur[o].get(t.url)},async delete(t){ur[o].delete(t.url)}}),Gs=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Ys=async(o,t)=>t==="in-memory-cache"?Bs(o):Gs(o);var qs=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ws=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let a=s(),n=new Request(`${o}/${t}.${e}`,{signal:a});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?qs(n).then(d=>d.text()):Ys(i,r).then(d=>d.get(n).then(m=>m||qs(n.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Xs=g.constructTagName("icon"),Jo={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=Jo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Vs.consume({host:this,context:hr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:a,cacheStrategy:n}=this.iconProviderContext.value;if(a==="custom-icons"&&i&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ws({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:n,renewSignal:d}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(a==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Jo.SIZE}updated(e){var r,i,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return h` ${this.iconData} `}};Q.styles=[...y.styles,...Us],l([U()],Q.prototype,"iconData",2),l([U()],Q.prototype,"lengthUnitFromContext",2),l([U()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([U()],Q.prototype,"abortController",2);var ei=Q;ei.register(Xs);var Ol=ei;Ko.register(Ms);var Ml=Ko;var A=o=>o!=null?o:v;var Zs=g.constructTagName("avatar"),W={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ti=99,zl="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:W.PHOTO,SIZE:M[32],ICON_NAME:zl};var ro=o=>{class t extends o{constructor(){super(...arguments);this.size=$t.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Dl=[C,f`
511
+ `,...O()],Fs=Ol;var Ml=o=>{let{host:t,context:e,subscribe:r}=o;return new Lt(t,{context:e,subscribe:r!=null?r:!0})},zl={consume:Ml},Hs=zl;var Jr=g.constructTagName("iconprovider"),Bs=["svg"],Gs=["em","rem","px","%"],Dl={px:16,em:1,rem:1,"%":100},Ne={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Dl.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var eo=class{};eo.context=Jr;var to=eo;var ye=class extends Rt{constructor(){super({context:to.context,initialValue:new to});this.iconSet=Ne.ICON_SET;this.fileExtension=Ne.FILE_EXTENSION;this.lengthUnit=Ne.LENGTH_UNIT;this.size=Ne.SIZE}static get Context(){return to.context}updateValuesInContext(){this.fileExtension&&Bs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ne.FILE_EXTENSION,this.context.value.fileExtension=Ne.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Gs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ne.LENGTH_UNIT,this.context.value.lengthUnit=Ne.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],ye.prototype,"iconSet",2),l([c({type:String})],ye.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ye.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ye.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ye.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ye.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ye.prototype,"cacheName",2);var hr=ye;var ur={},Ys=async o=>(ur[o]===void 0&&(ur[o]=new Map),{async set(t,e){ur[o].set(t.url,await e.text())},async get(t){return ur[o].get(t.url)},async delete(t){ur[o].delete(t.url)}}),qs=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Ws=async(o,t)=>t==="in-memory-cache"?Ys(o):qs(o);var Xs=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Zs=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let a=s(),n=new Request(`${o}/${t}.${e}`,{signal:a});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Xs(n).then(d=>d.text()):Ws(i,r).then(d=>d.get(n).then(m=>m||Xs(n.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var js=g.constructTagName("icon"),ei={NAME:void 0,SIZE:1};var Q=class extends y{constructor(){super();this.name=ei.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Hs.consume({host:this,context:hr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:a,cacheStrategy:n}=this.iconProviderContext.value;if(a==="custom-icons"&&i&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Zs({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:n,renewSignal:d}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(a==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:ei.SIZE}updated(e){var r,i,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return h` ${this.iconData} `}};Q.styles=[...y.styles,...Fs],l([U()],Q.prototype,"iconData",2),l([U()],Q.prototype,"lengthUnitFromContext",2),l([U()],Q.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],Q.prototype,"name",2),l([c({type:Number})],Q.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],Q.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],Q.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],Q.prototype,"ariaLabelledBy",2),l([U()],Q.prototype,"abortController",2);var ti=Q;ti.register(js);var $l=ti;Qo.register(Ds);var Pl=Qo;var A=o=>o!=null?o:v;var Ks=g.constructTagName("avatar"),W={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ri=99,Ul="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},$t={TYPE:W.PHOTO,SIZE:M[32],ICON_NAME:Ul};var ro=o=>{class t extends o{constructor(){super(...arguments);this.size=$t.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var Z=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Vl=[C,f`
512
512
  :host {
513
513
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
514
514
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -631,8 +631,8 @@
631
631
  outline: 0.125rem solid;
632
632
  }
633
633
  }
634
- `],js=Dl;var Ks=g.constructTagName("presence"),Y={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"},V={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Pt={TYPE:Y.ACTIVE,SIZE:V.SMALL};var Qs=o=>({[M[124]]:V.XX_LARGE,[M[88]]:V.X_LARGE,[M[72]]:V.LARGE,[M[64]]:V.MIDSIZE,[M[48]]:V.SMALL,[M[32]]:V.X_SMALL,[M[24]]:V.XX_SMALL})[o]||V.X_SMALL,Js=o=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[o]||1.25,ea=o=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[o]||_.BODY_MIDSIZE_MEDIUM;var fr=class extends ro(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===W.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
635
- <mdc-presence part="presence" type="${this.presence}" size="${Qs(this.size)}"></mdc-presence>
634
+ `],Qs=Vl;var Js=g.constructTagName("presence"),Y={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"},V={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Pt={TYPE:Y.ACTIVE,SIZE:V.SMALL};var ea=o=>({[M[124]]:V.XX_LARGE,[M[88]]:V.X_LARGE,[M[72]]:V.LARGE,[M[64]]:V.MIDSIZE,[M[48]]:V.SMALL,[M[32]]:V.X_SMALL,[M[24]]:V.XX_SMALL})[o]||V.X_SMALL,ta=o=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[o]||1.25,ra=o=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[o]||_.BODY_MIDSIZE_MEDIUM;var fr=class extends ro(Z(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===W.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
635
+ <mdc-presence part="presence" type="${this.presence}" size="${ea(this.size)}"></mdc-presence>
636
636
  `: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 h`
637
637
  <img
638
638
  part="photo"
@@ -646,23 +646,23 @@
646
646
  <mdc-icon
647
647
  name="${A(e)}"
648
648
  length-unit="rem"
649
- size="${Js(this.size)}"
649
+ size="${ta(this.size)}"
650
650
  ></mdc-icon>
651
651
  `}textTemplate(e){return h`
652
652
  <mdc-text
653
- type="${ea(this.size)}"
653
+ type="${ra(this.size)}"
654
654
  tagname="span"
655
655
  >
656
656
  ${e}
657
657
  </mdc-text>
658
- `}generateCounterText(e){return e<0?"0":e>ti?`${ti}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===W.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===W.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?W.PHOTO:this.iconName?W.ICON:this.initials?W.TEXT:this.counter||this.counter===0?W.COUNTER:W.ICON}getTemplateBasedOnType(e){switch(e){case W.PHOTO:return this.photoTemplate();case W.TEXT:case W.COUNTER:return this.generateTextContent(e);case W.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:v}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?v:e===W.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():v}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return h`
658
+ `}generateCounterText(e){return e<0?"0":e>ri?`${ri}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===W.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===W.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?W.PHOTO:this.iconName?W.ICON:this.initials?W.TEXT:this.counter||this.counter===0?W.COUNTER:W.ICON}getTemplateBasedOnType(e){switch(e){case W.PHOTO:return this.photoTemplate();case W.TEXT:case W.COUNTER:return this.generateTextContent(e);case W.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:v}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?v:e===W.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():v}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return h`
659
659
  <div part="content" aria-hidden="true">
660
660
  ${this.getPhotoPlaceHolderContent(e)}
661
661
  ${this.getTemplateBasedOnType(e)}
662
662
  ${this.getLoadingContent()}
663
663
  ${this.getPresenceTemplateBasedOnType(e)}
664
664
  </div>
665
- `}};fr.styles=[...y.styles,...js],l([U()],fr.prototype,"isPhotoLoaded",2);var ri=fr;var $l=[C,f`
665
+ `}};fr.styles=[...y.styles,...Qs],l([U()],fr.prototype,"isPhotoLoaded",2);var oi=fr;var Fl=[C,f`
666
666
  :host {
667
667
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
668
668
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -756,7 +756,7 @@
756
756
  .mdc-presence-icon__scheduled {
757
757
  color: var(--mdc-presence-scheduled-background-color);
758
758
  }
759
- `],ta=$l;var ra=o=>{switch(o){case Y.AWAY:return"recents-presence-badge-filled";case Y.AWAY_CALLING:return"away-calling-presence-filled";case Y.BUSY:return"busy-presence-bold";case Y.DND:return"dnd-presence-badge-filled";case Y.MEETING:return"camera-filled";case Y.ON_CALL:return"handset-filled";case Y.ON_DEVICE:return"generic-device-video-badge-filled";case Y.ON_MOBILE:return"phone-badge-filled";case Y.PAUSE:return"pause-badge-filled";case Y.PTO:return"pto-presence-filled";case Y.PRESENTING:return"share-screen-badge-filled";case Y.QUIET:return"quiet-hours-presence-filled";case Y.SCHEDULED:return"meetings-presence-badge-filled";case Y.ACTIVE:default:return"active-presence-small-filled"}};var it=class extends y{constructor(){super(...arguments);this.type=Pt.TYPE;this.size=Pt.SIZE;this.currentIconType=Pt.TYPE}get iconSize(){switch(this.size){case V.MIDSIZE:return 1.16125;case V.LARGE:return 1.30625;case V.X_LARGE:return 1.596875;case V.XX_LARGE:return 2.25;case V.XX_SMALL:case V.X_SMALL:case V.SMALL:default:return this.size=Pt.SIZE,.875}}get icon(){let e=ra(this.type);return e==="active-presence-small-filled"&&(this.type=Pt.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return h`
759
+ `],oa=Fl;var ia=o=>{switch(o){case Y.AWAY:return"recents-presence-badge-filled";case Y.AWAY_CALLING:return"away-calling-presence-filled";case Y.BUSY:return"busy-presence-bold";case Y.DND:return"dnd-presence-badge-filled";case Y.MEETING:return"camera-filled";case Y.ON_CALL:return"handset-filled";case Y.ON_DEVICE:return"generic-device-video-badge-filled";case Y.ON_MOBILE:return"phone-badge-filled";case Y.PAUSE:return"pause-badge-filled";case Y.PTO:return"pto-presence-filled";case Y.PRESENTING:return"share-screen-badge-filled";case Y.QUIET:return"quiet-hours-presence-filled";case Y.SCHEDULED:return"meetings-presence-badge-filled";case Y.ACTIVE:default:return"active-presence-small-filled"}};var it=class extends y{constructor(){super(...arguments);this.type=Pt.TYPE;this.size=Pt.SIZE;this.currentIconType=Pt.TYPE}get iconSize(){switch(this.size){case V.MIDSIZE:return 1.16125;case V.LARGE:return 1.30625;case V.X_LARGE:return 1.596875;case V.XX_LARGE:return 2.25;case V.XX_SMALL:case V.X_SMALL:case V.SMALL:default:return this.size=Pt.SIZE,.875}}get icon(){let e=ia(this.type);return e==="active-presence-small-filled"&&(this.type=Pt.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return h`
760
760
  <div class="mdc-presence mdc-presence__${this.size}">
761
761
  <mdc-icon
762
762
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -766,14 +766,14 @@
766
766
  @error="${this.handleOnError}"
767
767
  ></mdc-icon>
768
768
  </div>
769
- `}};it.styles=[...y.styles,...ta],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([U()],it.prototype,"currentIconType",2);var oi=it;oi.register(Ks);var Pl=oi;ri.register(Zs);var Ul=ri;var gr=g.constructTagName("button"),Ge={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},br={40:40,32:32,28:28,24:24},xe={64:64,52:52,20:20,...br},oo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ee={VARIANT:Ge.PRIMARY,SIZE:br[32],COLOR:oo.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Vl=[C,f`
769
+ `}};it.styles=[...y.styles,...oa],l([c({type:String,reflect:!0})],it.prototype,"type",2),l([c({type:String,reflect:!0})],it.prototype,"size",2),l([U()],it.prototype,"currentIconType",2);var ii=it;ii.register(Js);var Hl=ii;oi.register(Ks);var Bl=oi;var gr=g.constructTagName("button"),Ge={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},br={40:40,32:32,28:28,24:24},xe={64:64,52:52,20:20,...br},oo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ut={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ee={VARIANT:Ge.PRIMARY,SIZE:br[32],COLOR:oo.DEFAULT,TYPE_INTERNAL:Ut.ICON,TYPE:Ot.BUTTON};var Gl=[C,f`
770
770
  :host {
771
771
  padding: unset;
772
772
  margin: unset;
773
773
  outline: none;
774
774
  border-radius: 0.25rem;
775
775
  }
776
- `,...O()],oa=Vl;var vr=class extends ro(Z(re)){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=Ee.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:$t.SIZE.toString())}render(){return h`
776
+ `,...O()],sa=Gl;var vr=class extends ro(Z(re)){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=Ee.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:$t.SIZE.toString())}render(){return h`
777
777
  <mdc-avatar
778
778
  slot="prefixIcon"
779
779
  ?is-typing="${this.isTyping}"
@@ -784,7 +784,7 @@
784
784
  size="${A(this.size)}"
785
785
  src="${A(this.src)}"
786
786
  ></mdc-avatar>
787
- `}};vr.styles=[...oa],l([c({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2);var ii=vr;var ia=g.constructTagName("avatarbutton");ii.register(ia);var Fl=ii;var io={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yr=o=>(...t)=>({_$litDirective$:o,values:t}),Vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Ft=yr(class extends Vt{constructor(o){var t;if(super(o),o.type!==io.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let a=!!t[s];a===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ce}});var sa=g.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},so={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},ao={PRIMARY:"primary",SECONDARY:"secondary"},xr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bf={...ao,...xr},Ye={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:ao.PRIMARY,ICON_SIZE:1};var Hl=[C,f`
787
+ `}};vr.styles=[...sa],l([c({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2);var si=vr;var aa=g.constructTagName("avatarbutton");si.register(aa);var Yl=si;var io={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yr=o=>(...t)=>({_$litDirective$:o,values:t}),Vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Ft=yr(class extends Vt{constructor(o){var t;if(super(o),o.type!==io.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let a=!!t[s];a===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ce}});var na=g.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},so={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},ao={PRIMARY:"primary",SECONDARY:"secondary"},xr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Zf={...ao,...xr},Ye={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:ao.PRIMARY,ICON_SIZE:1};var ql=[C,f`
788
788
  :host {
789
789
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
790
790
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -853,7 +853,7 @@
853
853
  outline: 0.125rem solid;
854
854
  }
855
855
  }
856
- `],aa=Hl;var Te=class extends Z(y){constructor(){super(...arguments);this.variant=Ye.VARIANT;this.maxCounter=Ye.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ye.MAX_COUNTER_LIMIT||r>Ye.MAX_COUNTER_LIMIT?`${Ye.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
856
+ `],la=ql;var Te=class extends Z(y){constructor(){super(...arguments);this.variant=Ye.VARIANT;this.maxCounter=Ye.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ye.MAX_COUNTER_LIMIT||r>Ye.MAX_COUNTER_LIMIT?`${Ye.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
857
857
  <mdc-icon
858
858
  class="mdc-badge-icon ${Ft({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
859
859
  name="${A(e)}"
@@ -867,7 +867,7 @@
867
867
  >
868
868
  ${this.getCounterText(this.maxCounter,this.counter)}
869
869
  </mdc-text>
870
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(ao).includes(this.variant)&&(this.variant=Ye.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Re.ICON:return this.getBadgeIcon(e||"",i);case Re.COUNTER:return this.getBadgeCounterText();case Re.SUCCESS:return this.getBadgeIcon(so.SUCCESS_ICON_NAME,xr.SUCCESS);case Re.WARNING:return this.getBadgeIcon(so.WARNING_ICON_NAME,xr.WARNING);case Re.ERROR:return this.getBadgeIcon(so.ERROR_ICON_NAME,xr.ERROR);case Re.DOT:default:return this.type=Re.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Te.styles=[...y.styles,...aa],l([c({type:String,reflect:!0})],Te.prototype,"type",2),l([c({type:String,reflect:!0})],Te.prototype,"variant",2),l([c({type:Number})],Te.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Te.prototype,"maxCounter",2),l([c({type:Boolean})],Te.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Te.prototype,"ariaLabel",2);var si=Te;si.register(sa);var Bl=si;var Gl=f`
870
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(ao).includes(this.variant)&&(this.variant=Ye.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Re.ICON:return this.getBadgeIcon(e||"",i);case Re.COUNTER:return this.getBadgeCounterText();case Re.SUCCESS:return this.getBadgeIcon(so.SUCCESS_ICON_NAME,xr.SUCCESS);case Re.WARNING:return this.getBadgeIcon(so.WARNING_ICON_NAME,xr.WARNING);case Re.ERROR:return this.getBadgeIcon(so.ERROR_ICON_NAME,xr.ERROR);case Re.DOT:default:return this.type=Re.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Te.styles=[...y.styles,...la],l([c({type:String,reflect:!0})],Te.prototype,"type",2),l([c({type:String,reflect:!0})],Te.prototype,"variant",2),l([c({type:Number})],Te.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Te.prototype,"maxCounter",2),l([c({type:Boolean})],Te.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Te.prototype,"ariaLabel",2);var ai=Te;ai.register(na);var Wl=ai;var Xl=f`
871
871
  :host {
872
872
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
873
873
  --mdc-bullet-size-small: 0.25rem;
@@ -888,7 +888,7 @@
888
888
  :host([size="large"]) {
889
889
  height: var(--mdc-bullet-size-large);
890
890
  }
891
- `,na=[Gl];var la=g.constructTagName("bullet"),ca={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Er=class extends y{constructor(){super(...arguments);this.size=ca.SMALL}};Er.styles=[...y.styles,...na],l([c({type:String,reflect:!0})],Er.prototype,"size",2);var ai=Er;ai.register(la);var Yl=ai;var ql=f`
891
+ `,ca=[Xl];var da=g.constructTagName("bullet"),ma={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Er=class extends y{constructor(){super(...arguments);this.size=ma.SMALL}};Er.styles=[...y.styles,...ca],l([c({type:String,reflect:!0})],Er.prototype,"size",2);var ni=Er;ni.register(da);var Zl=ni;var jl=f`
892
892
  :host {
893
893
  background-color: transparent;
894
894
  border-radius: 1.25rem;
@@ -1060,7 +1060,7 @@
1060
1060
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
1061
1061
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
1062
1062
  }
1063
- `,da=[ql];var ma=o=>{switch(o){case xe[64]:return 2;case xe[52]:return 1.75;case xe[40]:return 1.25;default:return 1}},Tr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var oe=class extends re{constructor(){super(...arguments);this.variant=Ee.VARIANT;this.size=Ee.SIZE;this.color=Ee.COLOR;this.role="button";this.typeInternal=Ee.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Tr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Tr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Ge).includes(e)?e:Ee.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(xe).includes(e)&&!(e===xe[20]&&this.variant!==Ge.TERTIARY):Object.values(br).includes(e);this.setAttribute("size",i?`${e}`:`${Ee.SIZE}`),this.iconSize=ma(e)}setColor(e){!Object.values(oo).includes(e)||this.variant===Ge.TERTIARY?this.setAttribute("color",`${Ee.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(s=>{var a;return s.nodeType!==Node.TEXT_NODE||((a=s.textContent)==null?void 0:a.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ut.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1063
+ `,pa=[jl];var ha=o=>{switch(o){case xe[64]:return 2;case xe[52]:return 1.75;case xe[40]:return 1.25;default:return 1}},Tr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var oe=class extends re{constructor(){super(...arguments);this.variant=Ee.VARIANT;this.size=Ee.SIZE;this.color=Ee.COLOR;this.role="button";this.typeInternal=Ee.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Tr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Tr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Ge).includes(e)?e:Ee.VARIANT)}setSize(e){let i=this.typeInternal===Ut.ICON?Object.values(xe).includes(e)&&!(e===xe[20]&&this.variant!==Ge.TERTIARY):Object.values(br).includes(e);this.setAttribute("size",i?`${e}`:`${Ee.SIZE}`),this.iconSize=ha(e)}setColor(e){!Object.values(oo).includes(e)||this.variant===Ge.TERTIARY?this.setAttribute("color",`${Ee.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(s=>{var a;return s.nodeType!==Node.TEXT_NODE||((a=s.textContent)==null?void 0:a.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ut.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ut.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
1064
1064
  ${this.prefixIcon?h` <mdc-icon
1065
1065
  name="${this.prefixIcon}"
1066
1066
  part="prefix-icon"
@@ -1076,7 +1076,7 @@
1076
1076
  length-unit="rem"
1077
1077
  >
1078
1078
  </mdc-icon>`:""}
1079
- `}};oe.styles=[...re.styles,...da],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([U()],oe.prototype,"typeInternal",2),l([U()],oe.prototype,"iconSize",2);var ni=oe;ni.register(gr);var Wl=ni;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var B=[];for(let o=0;o<256;++o)B.push((o+256).toString(16).slice(1));function pa(o,t=0){return(B[o[t+0]]+B[o[t+1]]+B[o[t+2]]+B[o[t+3]]+"-"+B[o[t+4]]+B[o[t+5]]+"-"+B[o[t+6]]+B[o[t+7]]+"-"+B[o[t+8]]+B[o[t+9]]+"-"+B[o[t+10]]+B[o[t+11]]+B[o[t+12]]+B[o[t+13]]+B[o[t+14]]+B[o[t+15]]).toLowerCase()}var li,Xl=new Uint8Array(16);function ci(){if(!li){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");li=crypto.getRandomValues.bind(crypto)}return li(Xl)}var Zl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),di={randomUUID:Zl};function jl(o,t,e){var i,s,a;if(di.randomUUID&&!t&&!o)return di.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:ci();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 n=0;n<16;++n)t[e+n]=r[n];return t}return pa(r)}var st=jl;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${st()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}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,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Wr("input")],t.prototype,"inputElement",2),t};var ha=g.constructTagName("formfieldwrapper"),F={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},H={VALIDATION:F.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},at={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Kl=[C,f`
1079
+ `}};oe.styles=[...re.styles,...pa],l([c({type:String,attribute:"prefix-icon",reflect:!0})],oe.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],oe.prototype,"postfixIcon",2),l([c({type:String})],oe.prototype,"variant",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String})],oe.prototype,"color",2),l([c({type:String,reflect:!0})],oe.prototype,"role",2),l([U()],oe.prototype,"typeInternal",2),l([U()],oe.prototype,"iconSize",2);var li=oe;li.register(gr);var Kl=li;var D=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var B=[];for(let o=0;o<256;++o)B.push((o+256).toString(16).slice(1));function ua(o,t=0){return(B[o[t+0]]+B[o[t+1]]+B[o[t+2]]+B[o[t+3]]+"-"+B[o[t+4]]+B[o[t+5]]+"-"+B[o[t+6]]+B[o[t+7]]+"-"+B[o[t+8]]+B[o[t+9]]+"-"+B[o[t+10]]+B[o[t+11]]+B[o[t+12]]+B[o[t+13]]+B[o[t+14]]+B[o[t+15]]).toLowerCase()}var ci,Ql=new Uint8Array(16);function di(){if(!ci){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ci=crypto.getRandomValues.bind(crypto)}return ci(Ql)}var Jl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mi={randomUUID:Jl};function ec(o,t,e){var i,s,a;if(mi.randomUUID&&!t&&!o)return mi.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:di();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 n=0;n<16;++n)t[e+n]=r[n];return t}return ua(r)}var st=ec;var ie=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${st()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}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,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Wr("input")],t.prototype,"inputElement",2),t};var fa=g.constructTagName("formfieldwrapper"),F={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},H={VALIDATION:F.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},at={TAGNAME:w.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var tc=[C,f`
1080
1080
  :host {
1081
1081
  flex-direction: column;
1082
1082
  align-items: flex-start;
@@ -1125,7 +1125,7 @@
1125
1125
  :host([help-text-type='priority']) .mdc-help-text {
1126
1126
  color: var(--mds-color-theme-text-accent-normal);
1127
1127
  }
1128
- `],ua=Kl;var fa=o=>({[F.ERROR]:"error-legacy-badge-filled",[F.WARNING]:"warning-badge-filled",[F.SUCCESS]:"check-circle-badge-filled",[F.PRIORITY]:"priority-badge-filled",[F.DEFAULT]:""})[o]||"";var Oe=class extends te(y){constructor(){super(...arguments);this.id="";this.helpTextType=H.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
1128
+ `],ga=tc;var ba=o=>({[F.ERROR]:"error-legacy-badge-filled",[F.WARNING]:"warning-badge-filled",[F.SUCCESS]:"check-circle-badge-filled",[F.PRIORITY]:"priority-badge-filled",[F.DEFAULT]:""})[o]||"";var Oe=class extends te(y){constructor(){super(...arguments);this.id="";this.helpTextType=H.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
1129
1129
  id="${H.HEADING_ID}"
1130
1130
  tagname="${at.TAGNAME}"
1131
1131
  type="${at.HEADER_TYPE}"
@@ -1135,7 +1135,7 @@
1135
1135
  <mdc-text part="required-label" tagname=${at.TAGNAME} type=${at.TYPE}>
1136
1136
  (${this.requiredLabel})
1137
1137
  </mdc-text>
1138
- `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=fa(this.helpTextType||H.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?h`
1138
+ `:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=ba(this.helpTextType||H.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?h`
1139
1139
  <mdc-text
1140
1140
  id="${H.HELPER_TEXT_ID}"
1141
1141
  part="help-text"
@@ -1151,7 +1151,7 @@
1151
1151
  </div>`:v}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
1152
1152
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1153
1153
  <slot name="help-text">${this.renderHelpText()}</slot>
1154
- </div>`:v}};Oe.styles=[...y.styles,...ua],l([c({reflect:!0,type:String})],Oe.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Oe.prototype,"requiredLabel",2),l([c({type:String})],Oe.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Oe.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Oe.prototype,"helpText",2);var se=Oe;var ga=g.constructTagName("checkbox"),mi={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Ql=[f`
1154
+ </div>`:v}};Oe.styles=[...y.styles,...ga],l([c({reflect:!0,type:String})],Oe.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Oe.prototype,"requiredLabel",2),l([c({type:String})],Oe.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Oe.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Oe.prototype,"helpText",2);var se=Oe;var va=g.constructTagName("checkbox"),pi={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var rc=[f`
1155
1155
  :host {
1156
1156
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1157
1157
  --mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1255,13 +1255,13 @@
1255
1255
  border: 0.0625rem solid var(--mdc-checkbox-border-color);
1256
1256
  }
1257
1257
  }
1258
- `,...O(!0)],ba=Ql;var nt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1258
+ `,...O(!0)],ya=rc;var nt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
1259
1259
  ${this.renderLabel()}
1260
1260
  ${this.renderHelperText()}
1261
1261
  </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 r;let e=this.checked||this.indeterminate?h`
1262
1262
  <mdc-icon
1263
1263
  class="icon"
1264
- name="${this.indeterminate?mi.INDETERMINATE:mi.CHECKED}"
1264
+ name="${this.indeterminate?pi.INDETERMINATE:pi.CHECKED}"
1265
1265
  size="1"
1266
1266
  length-unit="rem"
1267
1267
  ></mdc-icon>
@@ -1288,7 +1288,7 @@
1288
1288
  <div class="icon-container">${e}</div>
1289
1289
  </div>
1290
1290
  ${this.renderLabelAndHelperText()}
1291
- `}};nt.styles=[...se.styles,...ba],l([c({type:Boolean,reflect:!0})],nt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"autofocus",2);var pi=nt;pi.register(ga);var Jl=pi;var ec=f`
1291
+ `}};nt.styles=[...se.styles,...ya],l([c({type:Boolean,reflect:!0})],nt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],nt.prototype,"autofocus",2);var hi=nt;hi.register(va);var oc=hi;var ic=f`
1292
1292
  :host {
1293
1293
  height: 1.5rem;
1294
1294
  gap: 0.25rem;
@@ -1425,7 +1425,7 @@
1425
1425
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1426
1426
  cursor: auto;
1427
1427
  }
1428
- `,va=[C,ec,...O()];var ya=g.constructTagName("chip"),tc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ht={COLOR:tc.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var Bt=class extends Z(re){constructor(){super(...arguments);this.color=Ht.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Ht.ROLE,this.size=Ht.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
1428
+ `,xa=[C,ic,...O()];var Ea=g.constructTagName("chip"),sc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ht={COLOR:sc.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:mr[24],ROLE:"button"};var Bt=class extends Z(re){constructor(){super(...arguments);this.color=Ht.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Ht.ROLE,this.size=Ht.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
1429
1429
  <mdc-icon
1430
1430
  name="${this.iconName}"
1431
1431
  length-unit="rem"
@@ -1433,7 +1433,7 @@
1433
1433
  `:v}render(){return h`
1434
1434
  ${this.renderIcon()}
1435
1435
  <mdc-text type="${Ht.TEXT_TYPE}" tagname="${Ht.TAG_NAME}">${this.label}</mdc-text>
1436
- `}};Bt.styles=[...y.styles,...va],l([c({type:String,reflect:!0})],Bt.prototype,"color",2),l([c({type:String})],Bt.prototype,"label",2);var Gt=Bt;Gt.register(ya);var rc=Gt;var Ae=Math.min,X=Math.max,Sr=Math.round,_r=Math.floor,pe=o=>({x:o,y:o}),oc={left:"right",right:"left",bottom:"top",top:"bottom"},ic={start:"end",end:"start"};function lo(o,t,e){return X(o,Ae(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Me(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function hi(o){return o==="x"?"y":"x"}function co(o){return o==="y"?"height":"width"}function qe(o){return["top","bottom"].includes(Me(o))?"y":"x"}function mo(o){return hi(qe(o))}function xa(o,t,e){e===void 0&&(e=!1);let r=ct(o),i=mo(o),s=co(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ar(a)),[a,Ar(a)]}function Ea(o){let t=Ar(o);return[no(o),t,no(t)]}function no(o){return o.replace(/start|end/g,t=>ic[t])}function sc(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function Ta(o,t,e,r){let i=ct(o),s=sc(Me(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(no)))),s}function Ar(o){return o.replace(/left|right|bottom|top/g,t=>oc[t])}function ac(o){return{top:0,right:0,bottom:0,left:0,...o}}function ui(o){return typeof o!="number"?ac(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Aa(o,t,e){let{reference:r,floating:i}=o,s=qe(t),a=mo(t),n=co(a),d=Me(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(ct(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var Sa=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=e,n=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t)),m=await a.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=Aa(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=Aa(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function po(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=lt(t,o),E=ui(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var _a=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=ui(p),x={x:e,y:r},b=mo(i),E=co(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],ee=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(a.isElement==null?void 0:a.isElement(ee)))&&(de=n.floating[N]||s.floating[E]);let Se=P/2-z/2,fe=de/2-T[E]/2-1,me=Ae(u[S],fe),$e=Ae(u[k],fe),ge=me,Pe=de-T[E]-$e,q=de/2-T[E]/2+Se,Ct=lo(ge,q,Pe),_e=!d.arrow&&ct(i)!=null&&q!==Ct&&s.reference[E]/2-(q<ge?me:$e)-T[E]/2<0,be=_e?q<ge?q-ge:q-Pe:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:q-Ct-be,..._e&&{alignmentOffset:be}},reset:_e}}});var Ia=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Me(i),k=qe(n),N=Me(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[Ar(n)]:Ea(n)),ee=E!=="none";!x&&ee&&z.push(...Ta(n,T,E,P));let de=[n,...z],Se=await po(t,I),fe=[],me=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Se[S]),u){let q=xa(i,a,P);fe.push(Se[q[0]],Se[q[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(q=>q<=0)){var $e,ge;let q=((($e=s.flip)==null?void 0:$e.index)||0)+1,Ct=de[q];if(Ct)return{data:{index:q,overflows:me},reset:{placement:Ct}};let _e=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,Ue)=>be.overflows[1]-Ue.overflows[1])[0])==null?void 0:ge.placement;if(!_e)switch(b){case"bestFit":{var Pe;let be=(Pe=me.filter(Ue=>{if(ee){let Ve=qe(Ue.placement);return Ve===k||Ve==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(Ve=>Ve>0).reduce((Ve,ll)=>Ve+ll,0)]).sort((Ue,Ve)=>Ue[1]-Ve[1])[0])==null?void 0:Pe[0];be&&(_e=be);break}case"initialPlacement":_e=n;break}if(i!==_e)return{reset:{placement:_e}}}return{}}}};async function nc(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Me(e),n=ct(e),d=qe(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var ka=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:a,middlewareData:n}=t,d=await nc(t,o);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},Ca=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await po(t,d),u=qe(Me(i)),x=hi(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=lo(k,b,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=lo(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var wa=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await po(t,m),u=Me(i),x=ct(i),b=qe(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,N=E-p.left-p.right,P=Ae(T-p[I],k),z=Ae(E-p[S],N),ee=!t.middlewareData.shift,de=P,Se=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Se=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=X(p.left,0),$e=X(p.right,0),ge=X(p.top,0),Pe=X(p.bottom,0);b?Se=E-2*(me!==0||$e!==0?me+$e:X(p.left,p.right)):de=T-2*(ge!==0||Pe!==0?ge+Pe:X(p.top,p.bottom))}await d({...t,availableWidth:Se,availableHeight:de});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function ho(){return typeof window<"u"}function mt(o){return Na(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Na(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Na(o){return ho()?o instanceof Node||o instanceof j(o).Node:!1}function ae(o){return ho()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return ho()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function La(o){return!ho()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function qt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ra(o){return["table","td","th"].includes(mt(o))}function Ir(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function uo(o){let t=fo(),e=ae(o)?ne(o):o;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 Oa(o){let t=ze(o);for(;ue(t)&&!pt(t);){if(uo(t))return t;if(Ir(t))return null;t=ze(t)}return null}function fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function kr(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function ze(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||La(o)&&o.host||he(o);return La(t)?t.host:t}function Ma(o){let t=ze(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&qt(t)?t:Ma(t)}function Yt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Ma(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=j(i);if(s){let n=go(a);return t.concat(a,a.visualViewport||[],qt(i)?i:[],n&&e?Yt(n):[])}return t.concat(i,Yt(i,[],e))}function go(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function $a(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ue(o),s=i?o.offsetWidth:e,a=i?o.offsetHeight:r,n=Sr(e)!==s||Sr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function gi(o){return ae(o)?o:o.contextElement}function Wt(o){let t=gi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=$a(t),a=(s?Sr(e.width):e.width)/r,n=(s?Sr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var lc=pe(0);function Pa(o){let t=j(o);return!fo()||!t.visualViewport?lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cc(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=gi(o),a=pe(1);t&&(r?ae(r)&&(a=Wt(r)):a=Wt(o));let n=cc(s,e,r)?Pa(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=j(s),b=r&&ae(r)?j(r):r,E=x,T=go(E);for(;T&&r&&b!==E;){let I=Wt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=go(E)}}return dt({width:p,height:u,x:d,y:m})}function bi(o,t){let e=kr(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Ua(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:bi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function dc(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=he(r),n=t?Ir(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!s)&&((mt(r)!=="body"||qt(a))&&(d=kr(r)),ue(r))){let b=ht(r);m=Wt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ua(a,d,!0):pe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function mc(o){return Array.from(o.getClientRects())}function pc(o){let t=he(o),e=kr(o),r=o.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+bi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function hc(o,t){let e=j(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=fo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function uc(o,t){let e=ht(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ue(o)?Wt(o):pe(1),a=o.clientWidth*s.x,n=o.clientHeight*s.y,d=i*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function za(o,t,e){let r;if(t==="viewport")r=hc(o,e);else if(t==="document")r=pc(he(o));else if(ae(t))r=uc(t,e);else{let i=Pa(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function Va(o,t){let e=ze(o);return e===t||!ae(e)||pt(e)?!1:ne(e).position==="fixed"||Va(e,t)}function fc(o,t){let e=t.get(o);if(e)return e;let r=Yt(o,[],!1).filter(n=>ae(n)&&mt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?ze(o):o;for(;ae(a)&&!pt(a);){let n=ne(a),d=uo(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qt(a)&&!d&&Va(o,a))?r=r.filter(p=>p!==a):i=n,a=ze(a)}return t.set(o,r),r}function gc(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Ir(t)?[]:fc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=za(t,p,i);return m.top=X(u.top,m.top),m.right=Ae(u.right,m.right),m.bottom=Ae(u.bottom,m.bottom),m.left=X(u.left,m.left),m},za(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function bc(o){let{width:t,height:e}=$a(o);return{width:t,height:e}}function vc(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=ht(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((mt(t)!=="body"||qt(i))&&(n=kr(t)),r){let x=ht(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=bi(i));let m=i&&!r&&!s?Ua(i,n):pe(0),p=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:a.width,height:a.height}}function fi(o){return ne(o).position==="static"}function Da(o,t){if(!ue(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return he(o)===e&&(e=e.ownerDocument.body),e}function Fa(o,t){let e=j(o);if(Ir(o))return e;if(!ue(o)){let i=ze(o);for(;i&&!pt(i);){if(ae(i)&&!fi(i))return i;i=ze(i)}return e}let r=Da(o,t);for(;r&&Ra(r)&&fi(r);)r=Da(r,t);return r&&pt(r)&&fi(r)&&!uo(r)?e:r||Oa(o)||e}var yc=async function(o){let t=this.getOffsetParent||Fa,e=this.getDimensions,r=await e(o.floating);return{reference:vc(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xc(o){return ne(o).direction==="rtl"}var Ec={convertOffsetParentRelativeRectToViewportRelativeRect:dc,getDocumentElement:he,getClippingRect:gc,getOffsetParent:Fa,getElementRects:yc,getClientRects:mc,getDimensions:bc,getScale:Wt,isElement:ae,isRTL:xc};function Tc(o,t){let e=null,r,i=he(o);function s(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function a(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),s();let{left:m,top:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=_r(p),E=_r(i.clientWidth-(m+u)),T=_r(i.clientHeight-(p+x)),I=_r(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:X(0,Ae(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return a();ee?a(!1,ee):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function Ha(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=gi(o),p=i||s?[...m?Yt(m):[],...Yt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?Tc(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);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;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Ba=ka;var Ga=Ca,Ya=Ia,qa=wa;var Wa=_a;var Xa=(o,t,e)=>{let r=new Map,i={platform:Ec,...e},s={...i.platform,_c:r};return Sa(o,t,{...i,platform:s})};var Ac=f`
1436
+ `}};Bt.styles=[...y.styles,...xa],l([c({type:String,reflect:!0})],Bt.prototype,"color",2),l([c({type:String})],Bt.prototype,"label",2);var Gt=Bt;Gt.register(Ea);var ac=Gt;var Ae=Math.min,X=Math.max,Sr=Math.round,_r=Math.floor,pe=o=>({x:o,y:o}),nc={left:"right",right:"left",bottom:"top",top:"bottom"},lc={start:"end",end:"start"};function lo(o,t,e){return X(o,Ae(t,e))}function lt(o,t){return typeof o=="function"?o(t):o}function Me(o){return o.split("-")[0]}function ct(o){return o.split("-")[1]}function ui(o){return o==="x"?"y":"x"}function co(o){return o==="y"?"height":"width"}function qe(o){return["top","bottom"].includes(Me(o))?"y":"x"}function mo(o){return ui(qe(o))}function Ta(o,t,e){e===void 0&&(e=!1);let r=ct(o),i=mo(o),s=co(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ar(a)),[a,Ar(a)]}function Aa(o){let t=Ar(o);return[no(o),t,no(t)]}function no(o){return o.replace(/start|end/g,t=>lc[t])}function cc(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function Sa(o,t,e,r){let i=ct(o),s=cc(Me(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(no)))),s}function Ar(o){return o.replace(/left|right|bottom|top/g,t=>nc[t])}function dc(o){return{top:0,right:0,bottom:0,left:0,...o}}function fi(o){return typeof o!="number"?dc(o):{top:o,right:o,bottom:o,left:o}}function dt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function _a(o,t,e){let{reference:r,floating:i}=o,s=qe(t),a=mo(t),n=co(a),d=Me(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(ct(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var Ia=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=e,n=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t)),m=await a.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=_a(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:N,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=N!=null?N:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=_a(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function po(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=lt(t,o),E=fi(b),I=n[x?u==="floating"?"reference":"floating":u],S=dt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},z=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:N,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var ka=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=lt(o,t)||{};if(m==null)return{};let u=fi(p),x={x:e,y:r},b=mo(i),E=co(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",N=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],ee=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),de=ee?ee[N]:0;(!de||!await(a.isElement==null?void 0:a.isElement(ee)))&&(de=n.floating[N]||s.floating[E]);let Se=P/2-z/2,fe=de/2-T[E]/2-1,me=Ae(u[S],fe),$e=Ae(u[k],fe),ge=me,Pe=de-T[E]-$e,q=de/2-T[E]/2+Se,Ct=lo(ge,q,Pe),_e=!d.arrow&&ct(i)!=null&&q!==Ct&&s.reference[E]/2-(q<ge?me:$e)-T[E]/2<0,be=_e?q<ge?q-ge:q-Pe:0;return{[b]:x[b]+be,data:{[b]:Ct,centerOffset:q-Ct-be,..._e&&{alignmentOffset:be}},reset:_e}}});var Ca=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=lt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Me(i),k=qe(n),N=Me(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(N||!T?[Ar(n)]:Aa(n)),ee=E!=="none";!x&&ee&&z.push(...Sa(n,T,E,P));let de=[n,...z],Se=await po(t,I),fe=[],me=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Se[S]),u){let q=Ta(i,a,P);fe.push(Se[q[0]],Se[q[1]])}if(me=[...me,{placement:i,overflows:fe}],!fe.every(q=>q<=0)){var $e,ge;let q=((($e=s.flip)==null?void 0:$e.index)||0)+1,Ct=de[q];if(Ct)return{data:{index:q,overflows:me},reset:{placement:Ct}};let _e=(ge=me.filter(be=>be.overflows[0]<=0).sort((be,Ue)=>be.overflows[1]-Ue.overflows[1])[0])==null?void 0:ge.placement;if(!_e)switch(b){case"bestFit":{var Pe;let be=(Pe=me.filter(Ue=>{if(ee){let Ve=qe(Ue.placement);return Ve===k||Ve==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(Ve=>Ve>0).reduce((Ve,pl)=>Ve+pl,0)]).sort((Ue,Ve)=>Ue[1]-Ve[1])[0])==null?void 0:Pe[0];be&&(_e=be);break}case"initialPlacement":_e=n;break}if(i!==_e)return{reset:{placement:_e}}}return{}}}};async function mc(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Me(e),n=ct(e),d=qe(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=lt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var wa=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:a,middlewareData:n}=t,d=await mc(t,o);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},La=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=lt(o,t),m={x:e,y:r},p=await po(t,d),u=qe(Me(i)),x=ui(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],N=b-p[S];b=lo(k,b,N)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],N=E-p[S];E=lo(k,E,N)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var Na=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=lt(o,t),p=await po(t,m),u=Me(i),x=ct(i),b=qe(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,N=E-p.left-p.right,P=Ae(T-p[I],k),z=Ae(E-p[S],N),ee=!t.middlewareData.shift,de=P,Se=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Se=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=k),ee&&!x){let me=X(p.left,0),$e=X(p.right,0),ge=X(p.top,0),Pe=X(p.bottom,0);b?Se=E-2*(me!==0||$e!==0?me+$e:X(p.left,p.right)):de=T-2*(ge!==0||Pe!==0?ge+Pe:X(p.top,p.bottom))}await d({...t,availableWidth:Se,availableHeight:de});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function ho(){return typeof window<"u"}function mt(o){return Oa(o)?(o.nodeName||"").toLowerCase():"#document"}function j(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Oa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Oa(o){return ho()?o instanceof Node||o instanceof j(o).Node:!1}function ae(o){return ho()?o instanceof Element||o instanceof j(o).Element:!1}function ue(o){return ho()?o instanceof HTMLElement||o instanceof j(o).HTMLElement:!1}function Ra(o){return!ho()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof j(o).ShadowRoot}function qt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ma(o){return["table","td","th"].includes(mt(o))}function Ir(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function uo(o){let t=fo(),e=ae(o)?ne(o):o;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 za(o){let t=ze(o);for(;ue(t)&&!pt(t);){if(uo(t))return t;if(Ir(t))return null;t=ze(t)}return null}function fo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(o){return["html","body","#document"].includes(mt(o))}function ne(o){return j(o).getComputedStyle(o)}function kr(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function ze(o){if(mt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Ra(o)&&o.host||he(o);return Ra(t)?t.host:t}function Da(o){let t=ze(o);return pt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&qt(t)?t:Da(t)}function Yt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Da(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=j(i);if(s){let n=go(a);return t.concat(a,a.visualViewport||[],qt(i)?i:[],n&&e?Yt(n):[])}return t.concat(i,Yt(i,[],e))}function go(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Ua(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ue(o),s=i?o.offsetWidth:e,a=i?o.offsetHeight:r,n=Sr(e)!==s||Sr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function bi(o){return ae(o)?o:o.contextElement}function Wt(o){let t=bi(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=Ua(t),a=(s?Sr(e.width):e.width)/r,n=(s?Sr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var pc=pe(0);function Va(o){let t=j(o);return!fo()||!t.visualViewport?pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hc(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==j(o)?!1:t}function ht(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=bi(o),a=pe(1);t&&(r?ae(r)&&(a=Wt(r)):a=Wt(o));let n=hc(s,e,r)?Va(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=j(s),b=r&&ae(r)?j(r):r,E=x,T=go(E);for(;T&&r&&b!==E;){let I=Wt(T),S=T.getBoundingClientRect(),k=ne(T),N=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=N,m+=P,E=j(T),T=go(E)}}return dt({width:p,height:u,x:d,y:m})}function vi(o,t){let e=kr(o).scrollLeft;return t?t.left+e:ht(he(o)).left+e}function Fa(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:vi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function uc(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=he(r),n=t?Ir(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!s)&&((mt(r)!=="body"||qt(a))&&(d=kr(r)),ue(r))){let b=ht(r);m=Wt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Fa(a,d,!0):pe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function fc(o){return Array.from(o.getClientRects())}function gc(o){let t=he(o),e=kr(o),r=o.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+vi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function bc(o,t){let e=j(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=fo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function vc(o,t){let e=ht(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ue(o)?Wt(o):pe(1),a=o.clientWidth*s.x,n=o.clientHeight*s.y,d=i*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function $a(o,t,e){let r;if(t==="viewport")r=bc(o,e);else if(t==="document")r=gc(he(o));else if(ae(t))r=vc(t,e);else{let i=Va(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dt(r)}function Ha(o,t){let e=ze(o);return e===t||!ae(e)||pt(e)?!1:ne(e).position==="fixed"||Ha(e,t)}function yc(o,t){let e=t.get(o);if(e)return e;let r=Yt(o,[],!1).filter(n=>ae(n)&&mt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?ze(o):o;for(;ae(a)&&!pt(a);){let n=ne(a),d=uo(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||qt(a)&&!d&&Ha(o,a))?r=r.filter(p=>p!==a):i=n,a=ze(a)}return t.set(o,r),r}function xc(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Ir(t)?[]:yc(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=$a(t,p,i);return m.top=X(u.top,m.top),m.right=Ae(u.right,m.right),m.bottom=Ae(u.bottom,m.bottom),m.left=X(u.left,m.left),m},$a(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ec(o){let{width:t,height:e}=Ua(o);return{width:t,height:e}}function Tc(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=ht(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((mt(t)!=="body"||qt(i))&&(n=kr(t)),r){let x=ht(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=vi(i));let m=i&&!r&&!s?Fa(i,n):pe(0),p=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:a.width,height:a.height}}function gi(o){return ne(o).position==="static"}function Pa(o,t){if(!ue(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return he(o)===e&&(e=e.ownerDocument.body),e}function Ba(o,t){let e=j(o);if(Ir(o))return e;if(!ue(o)){let i=ze(o);for(;i&&!pt(i);){if(ae(i)&&!gi(i))return i;i=ze(i)}return e}let r=Pa(o,t);for(;r&&Ma(r)&&gi(r);)r=Pa(r,t);return r&&pt(r)&&gi(r)&&!uo(r)?e:r||za(o)||e}var Ac=async function(o){let t=this.getOffsetParent||Ba,e=this.getDimensions,r=await e(o.floating);return{reference:Tc(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sc(o){return ne(o).direction==="rtl"}var _c={convertOffsetParentRelativeRectToViewportRelativeRect:uc,getDocumentElement:he,getClippingRect:xc,getOffsetParent:Ba,getElementRects:Ac,getClientRects:fc,getDimensions:Ec,getScale:Wt,isElement:ae,isRTL:Sc};function Ic(o,t){let e=null,r,i=he(o);function s(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function a(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),s();let{left:m,top:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=_r(p),E=_r(i.clientWidth-(m+u)),T=_r(i.clientHeight-(p+x)),I=_r(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:X(0,Ae(1,d))||1},N=!0;function P(z){let ee=z[0].intersectionRatio;if(ee!==d){if(!N)return a();ee?a(!1,ee):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function Ga(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=bi(o),p=i||s?[...m?Yt(m):[],...Yt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?Ic(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?ht(o):null;d&&I();function I(){let S=ht(o);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;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Ya=wa;var qa=La,Wa=Ca,Xa=Na;var Za=ka;var ja=(o,t,e)=>{let r=new Map,i={platform:_c,...e},s={...i.platform,_c:r};return Ia(o,t,{...i,platform:s})};var kc=f`
1437
1437
  :host {
1438
1438
  --mdc-popover-arrow-border-radius: 0.1875rem;
1439
1439
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -1536,7 +1536,7 @@
1536
1536
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
1537
1537
  border-bottom-left-radius: 100%;
1538
1538
  }
1539
- `,Za=[Ac];var ja=g.constructTagName("popover"),ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Cr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},wr={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:Cr.CLICK,COLOR:wr.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 Ka=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.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(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var vi=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=[]}},ft=new vi;var gt=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 bo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});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)`,i=this.popover.offsetHeight||0,s=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=`${s}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}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=`${s}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.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 p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:a!=null?`${a}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}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=`
1539
+ `,Ka=[kc];var Qa=g.constructTagName("popover"),ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Cr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},wr={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:ut.BOTTOM,TRIGGER:Cr.CLICK,COLOR:wr.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 Ja=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.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(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var yi=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=[]}},ft=new yi;var gt=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 bo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});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)`,i=this.popover.offsetHeight||0,s=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=`${s}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}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=`${s}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.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 p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:a!=null?`${a}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}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=`
1540
1540
  .popover-backdrop {
1541
1541
  position: fixed;
1542
1542
  top: 0;
@@ -1546,7 +1546,7 @@
1546
1546
  background: transparent;
1547
1547
  z-index: ${this.popover.zIndex-1};
1548
1548
  }
1549
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Ka(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.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(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&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=()=>{ft.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 bo(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}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.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(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Cr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(wr).includes(this.color)?this.color:R.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 i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.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"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.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),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),gt.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=[Ga()],r=this.offset;if(this.flip&&e.push(Ya()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(qa({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Wa({element:this.arrowElement,padding:12}))}e.push(Ba(r)),Ha(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Xa(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
1549
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Ja(y){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.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(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&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=()=>{ft.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 bo(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}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.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(ut).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Cr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(wr).includes(this.color)?this.color:R.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 i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.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"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.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),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),gt.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=[qa()],r=this.offset;if(this.flip&&e.push(Wa()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Xa({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(Za({element:this.arrowElement,padding:12}))}e.push(Ya(r)),Ga(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await ja(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
1550
1550
  <div class="popover-hover-bridge"></div>
1551
1551
  ${this.closeButton?h` <mdc-button
1552
1552
  class="popover-close"
@@ -1560,7 +1560,7 @@
1560
1560
  <div part="popover-content">
1561
1561
  <slot></slot>
1562
1562
  </div>
1563
- `}};L.styles=[...y.styles,...Za],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var We=L;var Qa=g.constructTagName("coachmark"),bt={COLOR:wr.CONTRAST,TRIGGER:Cr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends We{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var yi=vt;yi.register(Qa);var Sc=yi;var Ja=g.constructTagName("divider"),Lr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},xi={SOLID:"solid",GRADIENT:"gradient"},Xe={POSITIVE:"positive",NEGATIVE:"negative"},Nr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:Lr.HORIZONTAL,VARIANT:xi.SOLID,ARROW_DIRECTION:Xe.NEGATIVE,BUTTON_DIRECTION:Xe.NEGATIVE};var _c=[C,f`
1563
+ `}};L.styles=[...y.styles,...Ka],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var We=L;var en=g.constructTagName("coachmark"),bt={COLOR:wr.CONTRAST,TRIGGER:Cr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends We{constructor(){super(...arguments);this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var xi=vt;xi.register(en);var Cc=xi;var tn=g.constructTagName("divider"),Lr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ei={SOLID:"solid",GRADIENT:"gradient"},Xe={POSITIVE:"positive",NEGATIVE:"negative"},Nr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:Lr.HORIZONTAL,VARIANT:Ei.SOLID,ARROW_DIRECTION:Xe.NEGATIVE,BUTTON_DIRECTION:Xe.NEGATIVE};var wc=[C,f`
1564
1564
  :host {
1565
1565
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
1566
1566
  --mdc-divider-width: 0.0625rem;
@@ -1771,11 +1771,11 @@
1771
1771
  font-size: var(--mdc-divider-text-size);
1772
1772
  line-height: var(--mdc-divider-text-line-height);
1773
1773
  }
1774
- `],en=_c;var Ze=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(xi).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Lr).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Lr.HORIZONTAL?Xe.NEGATIVE:Xe.POSITIVE;Object.values(Xe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Xe).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Lr.HORIZONTAL,r=this.arrowDirection===Xe.POSITIVE;return e?r?Nr.UP:Nr.DOWN:r?Nr.RIGHT:Nr.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var a;let e=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(n=>n.tagName===pr.toUpperCase()),s=r.some(n=>n.tagName===gr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1774
+ `],rn=wc;var Ze=class extends y{constructor(){super(...arguments);this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Ei).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Lr).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Lr.HORIZONTAL?Xe.NEGATIVE:Xe.POSITIVE;Object.values(Xe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Xe).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Lr.HORIZONTAL,r=this.arrowDirection===Xe.POSITIVE;return e?r?Nr.UP:Nr.DOWN:r?Nr.RIGHT:Nr.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var a;let e=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(n=>n.tagName===pr.toUpperCase()),s=r.some(n=>n.tagName===gr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return h`
1775
1775
  <div></div>
1776
1776
  <slot @slotchange=${this.inferDividerType}></slot>
1777
1777
  <div></div>
1778
- `}};Ze.styles=[...y.styles,...en],l([c({type:String,reflect:!0})],Ze.prototype,"orientation",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],Ze.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],Ze.prototype,"buttonPosition",2);var Ei=Ze;Ei.register(Ja);var Ic=Ei;var kc=f`
1778
+ `}};Ze.styles=[...y.styles,...rn],l([c({type:String,reflect:!0})],Ze.prototype,"orientation",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],Ze.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],Ze.prototype,"buttonPosition",2);var Ti=Ze;Ti.register(tn);var Lc=Ti;var Nc=f`
1779
1779
  :host([selected]){
1780
1780
  border: 2px solid;
1781
1781
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -1795,7 +1795,7 @@
1795
1795
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
1796
1796
  cursor: auto;
1797
1797
  }
1798
- `,tn=[kc];var rn=g.constructTagName("filterchip"),Ti={ICON_NAME:"check-bold",COLOR:"default"};var Rr=class extends Gt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ti.COLOR}setSelected(e){e?(this.iconName=Ti.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Rr.styles=[...Gt.styles,...tn],l([c({type:Boolean,reflect:!0})],Rr.prototype,"selected",2);var Ai=Rr;Ai.register(rn);var Cc=Ai;var on=g.constructTagName("formfieldgroup"),Si={RADIOGROUP:"radiogroup",GROUP:"group"};var wc=f`
1798
+ `,on=[Nc];var sn=g.constructTagName("filterchip"),Ai={ICON_NAME:"check-bold",COLOR:"default"};var Rr=class extends Gt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ai.COLOR}setSelected(e){e?(this.iconName=Ai.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Rr.styles=[...Gt.styles,...on],l([c({type:Boolean,reflect:!0})],Rr.prototype,"selected",2);var Si=Rr;Si.register(sn);var Rc=Si;var an=g.constructTagName("formfieldgroup"),_i={RADIOGROUP:"radiogroup",GROUP:"group"};var Oc=f`
1799
1799
 
1800
1800
  :host::part(container) {
1801
1801
  display: flex;
@@ -1812,10 +1812,10 @@
1812
1812
  :host::part(label-text){
1813
1813
  font-weight: bold;
1814
1814
  }
1815
- `,sn=[wc];var vo=class extends D(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1815
+ `,nn=[Oc];var vo=class extends D(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
1816
1816
  <div
1817
1817
  part="container"
1818
- role="${this.isRadio?Si.RADIOGROUP:Si.GROUP}"
1818
+ role="${this.isRadio?_i.RADIOGROUP:_i.GROUP}"
1819
1819
  aria-labelledby="${H.HEADING_ID}"
1820
1820
  aria-describedby="${A(this.helpText?H.HELPER_TEXT_ID:"")}"
1821
1821
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
@@ -1826,7 +1826,7 @@
1826
1826
  </div>
1827
1827
  <slot></slot>
1828
1828
  </div>
1829
- `}};vo.styles=[...se.styles,...sn];var _i=vo;_i.register(on);var yo=_i;hr.register(Jr);var Lc=hr;var Nc=[f`
1829
+ `}};vo.styles=[...se.styles,...nn];var Ii=vo;Ii.register(an);var yo=Ii;hr.register(Jr);var Mc=hr;var zc=[f`
1830
1830
  :host{
1831
1831
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
1832
1832
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -1942,7 +1942,7 @@
1942
1942
  opacity: 0;
1943
1943
  pointer-events: none;
1944
1944
  }
1945
- `,...O(!0)],an=Nc;se.register(ha);var le=se;var nn=g.constructTagName("input"),xo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ii={OFF:"off",ON:"on"},ki={TEXT:"text",SEARCH:"search"},ln={MAX_LENGTH:10,VALIDATION:F.ERROR},De={VALIDATION:F.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ge.TERTIARY,CLEAR_BUTTON_SIZE:xe[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:Ii.OFF,INPUT_TYPE:ki.TEXT};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=xo.OFF;this.autocomplete=Ii.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,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}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?h`
1945
+ `,...O(!0)],ln=zc;se.register(fa);var le=se;var cn=g.constructTagName("input"),xo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ki={OFF:"off",ON:"on"},Ci={TEXT:"text",SEARCH:"search"},dn={MAX_LENGTH:10,VALIDATION:F.ERROR},De={VALIDATION:F.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ge.TERTIARY,CLEAR_BUTTON_SIZE:xe[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:ki.OFF,INPUT_TYPE:Ci.TEXT};var $=class extends ie(D(le)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=xo.OFF;this.autocomplete=ki.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,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}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?h`
1946
1946
  <mdc-icon
1947
1947
  class="leading-icon"
1948
1948
  part="leading-icon"
@@ -1957,7 +1957,7 @@
1957
1957
  type="${De.PREFIX_TEXT_TYPE}"
1958
1958
  aria-hidden="true"
1959
1959
  >
1960
- ${this.prefixText.slice(0,ln.MAX_LENGTH)}
1960
+ ${this.prefixText.slice(0,dn.MAX_LENGTH)}
1961
1961
  </mdc-text>
1962
1962
  `:v}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?v:h`
1963
1963
  <mdc-button
@@ -2007,7 +2007,7 @@
2007
2007
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2008
2008
  </div>
2009
2009
  ${this.helpText?this.renderHelperText():v}
2010
- `}};$.styles=[...le.styles,...an],l([c({type:String})],$.prototype,"placeholder",2),l([c({type:Boolean})],$.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],$.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],$.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],$.prototype,"trailingButton",2),l([c({type:Number})],$.prototype,"maxlength",2),l([c({type:Number})],$.prototype,"minlength",2),l([c({type:String})],$.prototype,"autocapitalize",2),l([c({type:String})],$.prototype,"autocomplete",2),l([c({type:Boolean})],$.prototype,"autofocus",2),l([c({type:String})],$.prototype,"dirname",2),l([c({type:String})],$.prototype,"pattern",2),l([c({type:String})],$.prototype,"list",2),l([c({type:Number})],$.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2);var Xt=$;Xt.register(nn);var Rc=Xt;var Oc=f`
2010
+ `}};$.styles=[...le.styles,...ln],l([c({type:String})],$.prototype,"placeholder",2),l([c({type:Boolean})],$.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],$.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],$.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],$.prototype,"trailingButton",2),l([c({type:Number})],$.prototype,"maxlength",2),l([c({type:Number})],$.prototype,"minlength",2),l([c({type:String})],$.prototype,"autocapitalize",2),l([c({type:String})],$.prototype,"autocomplete",2),l([c({type:Boolean})],$.prototype,"autofocus",2),l([c({type:String})],$.prototype,"dirname",2),l([c({type:String})],$.prototype,"pattern",2),l([c({type:String})],$.prototype,"list",2),l([c({type:Number})],$.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2);var Xt=$;Xt.register(cn);var Dc=Xt;var $c=f`
2011
2011
  :host {
2012
2012
  height: 1.5rem;
2013
2013
  gap: 0.25rem;
@@ -2036,7 +2036,7 @@
2036
2036
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2037
2037
  cursor: auto;
2038
2038
  }
2039
- `,cn=[C,Oc];var dn=g.constructTagName("inputchip"),Eo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2039
+ `,mn=[C,$c];var pn=g.constructTagName("inputchip"),Eo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends Z(te(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
2040
2040
  <mdc-icon
2041
2041
  name="${this.iconName}"
2042
2042
  length-unit="rem"
@@ -2053,7 +2053,7 @@
2053
2053
  size="20"
2054
2054
  @click="${this.handleClose}"
2055
2055
  ></mdc-button>
2056
- `}};xt.styles=[...y.styles,...cn],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var Ci=xt;Ci.register(dn);var Mc=Ci;var mn=g.constructTagName("link"),To={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ao={LARGE:1,MIDSIZE:.875,SMALL:.75},So={INLINE:!1,INVERTED:!1,LINK_SIZE:To.LARGE};var zc=[C,f`
2056
+ `}};xt.styles=[...y.styles,...mn],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var wi=xt;wi.register(pn);var Pc=wi;var hn=g.constructTagName("link"),To={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ao={LARGE:1,MIDSIZE:.875,SMALL:.75},So={INLINE:!1,INVERTED:!1,LINK_SIZE:To.LARGE};var Uc=[C,f`
2057
2057
 
2058
2058
  :host {
2059
2059
 
@@ -2176,17 +2176,17 @@
2176
2176
  :host(:active)::part(link-container) {
2177
2177
  box-shadow: none;
2178
2178
  }
2179
- `],pn=zc;var Et=class extends te(Z(y)){constructor(){super(...arguments);this.inline=So.INLINE;this.inverted=So.INVERTED;this.size=So.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case To.SMALL:return Ao.SMALL;case To.MIDSIZE:return Ao.MIDSIZE;default:return Ao.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(a=>a.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let a=document.createElement("mdc-icon");a.setAttribute("name",this.iconName),a.setAttribute("size",`${r}`),a.setAttribute("length-unit","rem"),e.appendChild(a)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
2179
+ `],un=Uc;var Et=class extends te(Z(y)){constructor(){super(...arguments);this.inline=So.INLINE;this.inverted=So.INVERTED;this.size=So.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case To.SMALL:return Ao.SMALL;case To.MIDSIZE:return Ao.MIDSIZE;default:return Ao.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(a=>a.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let a=document.createElement("mdc-icon");a.setAttribute("name",this.iconName),a.setAttribute("size",`${r}`),a.setAttribute("length-unit","rem"),e.appendChild(a)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
2180
2180
  <div part='link-container' class='mdc-focus-ring'>
2181
2181
  <slot @slotchange=${this.updateTrailingIcon}></slot>
2182
2182
  </div>
2183
- `}};Et.styles=[...y.styles,...pn],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var wi=Et;wi.register(mn);var Dc=wi;var _o=g.constructTagName("listitem"),Li={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},hn={VARIANT:Li.FULL_WIDTH};var un=g.constructTagName("list"),Or={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Ni="header-id";var $c=f`
2183
+ `}};Et.styles=[...y.styles,...un],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var Li=Et;Li.register(hn);var Vc=Li;var _o=g.constructTagName("listitem"),Ni={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},fn={VARIANT:Ni.FULL_WIDTH};var gn=g.constructTagName("list"),Or={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Ri="header-id";var Fc=f`
2184
2184
  :host::part(header-text) {
2185
2185
  padding: 0.5rem 0.75rem;
2186
2186
  }
2187
- `,fn=[$c];var Zt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case Or.ARROW_DOWN:return(e+1)%r;case Or.ARROW_UP:return(e-1+r)%r;case Or.HOME:return 0;case Or.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
2187
+ `,bn=[Fc];var Zt=class extends D(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case Or.ARROW_DOWN:return(e+1)%r;case Or.ARROW_UP:return(e-1+r)%r;case Or.HOME:return 0;case Or.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
2188
2188
  <mdc-text
2189
- id="${Ni}"
2189
+ id="${Ri}"
2190
2190
  part="header-text"
2191
2191
  type="${_.BODY_MIDSIZE_BOLD}"
2192
2192
  tagname="${w.SPAN}"
@@ -2194,13 +2194,13 @@
2194
2194
  `:v;return h`
2195
2195
  <div
2196
2196
  role="list"
2197
- aria-labelledby="${this.headerText?Ni:""}"
2197
+ aria-labelledby="${this.headerText?Ri:""}"
2198
2198
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2199
2199
  >
2200
2200
  ${t}
2201
2201
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2202
2202
  </div>
2203
- `}};Zt.styles=[...y.styles,...fn],l([Le({selector:_o})],Zt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Zt.prototype,"headerText",2);var Ri=Zt;Ri.register(un);var Pc=Ri;var Uc=f`
2203
+ `}};Zt.styles=[...y.styles,...bn],l([Le({selector:_o})],Zt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],Zt.prototype,"headerText",2);var Oi=Zt;Oi.register(gn);var Hc=Oi;var Bc=f`
2204
2204
  :host {
2205
2205
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2206
2206
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2269,7 +2269,7 @@
2269
2269
  display: flex;
2270
2270
  flex-direction: row;
2271
2271
  }
2272
- `,gn=[Uc,...O()];var ce=class extends D(te(Qr(y))){constructor(){super(...arguments);this.variant=hn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2272
+ `,vn=[Bc,...O()];var ce=class extends D(te(Qr(y))){constructor(){super(...arguments);this.variant=fn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,i){return i?h`
2273
2273
  <slot name="${e}">
2274
2274
  <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${i}</mdc-text>
2275
2275
  </slot>
@@ -2289,7 +2289,7 @@
2289
2289
  </div>
2290
2290
  <slot name="trailing-controls"></slot>
2291
2291
  </div>
2292
- `}};ce.styles=[...y.styles,...gn],l([Le({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([Le({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var jt=ce;jt.register(_o);var Vc=jt;var Fc=f`
2292
+ `}};ce.styles=[...y.styles,...vn],l([Le({slot:"leading-controls"})],ce.prototype,"leadingControlsSlot",2),l([Le({slot:"trailing-controls"})],ce.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ce.prototype,"variant",2),l([c({type:String,reflect:!0})],ce.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ce.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ce.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ce.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ce.prototype,"sublineText",2);var jt=ce;jt.register(_o);var Gc=jt;var Yc=f`
2293
2293
  :host {
2294
2294
  --mdc-marker-width: 0.25rem;
2295
2295
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2314,7 +2314,7 @@
2314
2314
  var(--mdc-marker-striped-background-color) 0.375rem
2315
2315
  );
2316
2316
  }
2317
- `,bn=[Fc];var vn=g.constructTagName("marker"),yn={SOLID:"solid",STRIPED:"striped"};var Mr=class extends y{constructor(){super(...arguments);this.variant=yn.SOLID}};Mr.styles=[...y.styles,...bn],l([c({type:String,reflect:!0})],Mr.prototype,"variant",2);var Oi=Mr;Oi.register(vn);var Hc=Oi;We.register(ja);var Bc=We;var Gc=[C,f`
2317
+ `,yn=[Yc];var xn=g.constructTagName("marker"),En={SOLID:"solid",STRIPED:"striped"};var Mr=class extends y{constructor(){super(...arguments);this.variant=En.SOLID}};Mr.styles=[...y.styles,...yn],l([c({type:String,reflect:!0})],Mr.prototype,"variant",2);var Mi=Mr;Mi.register(xn);var qc=Mi;We.register(Qa);var Wc=We;var Xc=[C,f`
2318
2318
  :host{
2319
2319
  --mdc-radio-inner-circle-size: 0.375rem;
2320
2320
  --mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
@@ -2476,7 +2476,7 @@
2476
2476
  display: none;
2477
2477
  }
2478
2478
 
2479
- `,...O(!0)],xn=Gc;var Tt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2479
+ `,...O(!0)],Tn=Xc;var Tt=class extends ie(D(se)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
2480
2480
  ${this.renderLabel()}
2481
2481
  ${this.renderHelperText()}
2482
2482
  </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(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}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 i=r.some(n=>n.requiredLabel),s=!!r.find(n=>n.checked),a=i&&!s;this.setGroupValidity(r,!a)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(a=>{var d;let n=(d=a.shadowRoot)==null?void 0:d.querySelector("input");n&&(a.checked=!1,n.checked=!1)}),this.checked=!0;let i=(s=this.shadowRoot)==null?void 0:s.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var s,a;(a=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||a.focus(),e[r].handleChange(i)}handleKeyDown(e){var a;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(s+1)%i.length;this.updateRadio(i,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(s-1+i.length)%i.length;this.updateRadio(i,n,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((a=this.form)==null||a.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=e.find(s=>!s.disabled);e.forEach(s=>{var n;let a=(n=s.shadowRoot)==null?void 0:n.querySelector("input");a&&(a.tabIndex=-1,(s===r||!r&&s===i)&&(a.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
@@ -2504,7 +2504,7 @@
2504
2504
  </div>
2505
2505
  ${this.renderLabelAndHelperText()}
2506
2506
  </div>
2507
- `}};Tt.styles=[...se.styles,...xn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var Mi=Tt;var Io=g.constructTagName("radio");Mi.register(Io);var Yc=Mi;var zr=class extends yo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,a;(a=(s=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:i.filter(n=>n.tagName.toLowerCase()===Io))==null?void 0:s.filter(n=>!n.hasAttribute("name")))==null||a.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};zr.styles=[...yo.styles],l([c({type:String})],zr.prototype,"name",2);var zi=zr;var En=g.constructTagName("radiogroup");zi.register(En);var qc=zi;var Wc=[C,f`
2507
+ `}};Tt.styles=[...se.styles,...Tn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var zi=Tt;var Io=g.constructTagName("radio");zi.register(Io);var Zc=zi;var zr=class extends yo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,a;(a=(s=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:i.filter(n=>n.tagName.toLowerCase()===Io))==null?void 0:s.filter(n=>!n.hasAttribute("name")))==null||a.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};zr.styles=[...yo.styles],l([c({type:String})],zr.prototype,"name",2);var Di=zr;var An=g.constructTagName("radiogroup");Di.register(An);var jc=Di;var Kc=[C,f`
2508
2508
  :host {
2509
2509
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
2510
2510
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -2566,11 +2566,11 @@
2566
2566
  stroke-dashoffset: -292;
2567
2567
  }
2568
2568
  }
2569
- `],Tn=Wc;var An=g.constructTagName("spinner"),Xc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Zc={STANDALONE:"standalone",BUTTON:"button"},ko={VARIANT:Zc.STANDALONE,SIZE:Xc.MIDSIZE,INVERTED:!1};var je=class extends y{constructor(){super(...arguments);this.inverted=ko.INVERTED;this.size=ko.SIZE;this.ariaLabel=null;this.variant=ko.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2569
+ `],Sn=Kc;var _n=g.constructTagName("spinner"),Qc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Jc={STANDALONE:"standalone",BUTTON:"button"},ko={VARIANT:Jc.STANDALONE,SIZE:Qc.MIDSIZE,INVERTED:!1};var je=class extends y{constructor(){super(...arguments);this.inverted=ko.INVERTED;this.size=ko.SIZE;this.ariaLabel=null;this.variant=ko.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
2570
2570
  <svg part="container" viewBox="0 0 100 100">
2571
2571
  <circle part="circle" cx="50" cy="50" r="46"></circle>
2572
2572
  </svg>
2573
- `}};je.styles=[...y.styles,...Tn],l([c({type:Boolean,reflect:!0})],je.prototype,"inverted",2),l([c({type:String,reflect:!0})],je.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],je.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],je.prototype,"variant",2);var Di=je;Di.register(An);var jc=Di;var Kc=[C,f`
2573
+ `}};je.styles=[...y.styles,...Sn],l([c({type:Boolean,reflect:!0})],je.prototype,"inverted",2),l([c({type:String,reflect:!0})],je.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],je.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],je.prototype,"variant",2);var $i=je;$i.register(_n);var ed=$i;var td=[C,f`
2574
2574
 
2575
2575
  :host {
2576
2576
  --mdc-tab-content-gap: 0.5rem;
@@ -2813,7 +2813,7 @@
2813
2813
  color: var(--mdc-tab-pill-active-color-disabled);
2814
2814
  }
2815
2815
 
2816
- `,...O()],Sn=Kc;var _n=g.constructTagName("tab"),$i={GLASS:"glass",LINE:"line",PILL:"pill"},Pi={VARIANT:$i.PILL};var Kt=class extends Z(re){constructor(){super(...arguments);this.variant=Pi.VARIANT}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Tr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values($i).includes(e)?e:Pi.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return h`
2816
+ `,...O()],In=td;var kn=g.constructTagName("tab"),Pi={GLASS:"glass",LINE:"line",PILL:"pill"},Ui={VARIANT:Pi.PILL};var Kt=class extends Z(re){constructor(){super(...arguments);this.variant=Ui.VARIANT}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Tr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Pi).includes(e)?e:Ui.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return h`
2817
2817
  <div part="container">
2818
2818
  ${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
2819
2819
  ${this.text?h` <mdc-text
@@ -2827,7 +2827,7 @@
2827
2827
  <slot name="chip"></slot>
2828
2828
  </div>
2829
2829
  <div part="indicator"></div>
2830
- `}};Kt.styles=[...re.styles,...Sn],l([c({type:String,reflect:!0})],Kt.prototype,"text",2),l([c({type:String,reflect:!0})],Kt.prototype,"variant",2);var Ui=Kt;Ui.register(_n);var Qc=Ui;var Co=g.constructTagName("themeprovider"),Vi={THEMECLASS:"mds-theme-stable-darkWebex"};var wo=class{constructor(t){this.themeclass=t}};wo.context=Co;var Lo=wo;var Jc=f`
2830
+ `}};Kt.styles=[...re.styles,...In],l([c({type:String,reflect:!0})],Kt.prototype,"text",2),l([c({type:String,reflect:!0})],Kt.prototype,"variant",2);var Vi=Kt;Vi.register(kn);var rd=Vi;var Co=g.constructTagName("themeprovider"),Fi={THEMECLASS:"mds-theme-stable-darkWebex"};var wo=class{constructor(t){this.themeclass=t}};wo.context=Co;var Lo=wo;var od=f`
2831
2831
  :host {
2832
2832
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
2833
2833
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -2856,7 +2856,7 @@
2856
2856
  * {
2857
2857
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
2858
2858
  }
2859
- `,In=[Jc];var Qt=class extends Rt{constructor(){super({context:Lo.context,initialValue:new Lo(Vi.THEMECLASS)});this.themeclass=Vi.THEMECLASS}static get Context(){return Lo.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Qt.styles=[...Rt.styles,...In],l([U()],Qt.prototype,"currentThemeClass",2),l([c({type:String})],Qt.prototype,"themeclass",2);var Fi=Qt;Fi.register(Co);var ed=Fi;var td=[C,f`
2859
+ `,Cn=[od];var Qt=class extends Rt{constructor(){super({context:Lo.context,initialValue:new Lo(Fi.THEMECLASS)});this.themeclass=Fi.THEMECLASS}static get Context(){return Lo.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Qt.styles=[...Rt.styles,...Cn],l([U()],Qt.prototype,"currentThemeClass",2),l([c({type:String})],Qt.prototype,"themeclass",2);var Hi=Qt;Hi.register(Co);var id=Hi;var sd=[C,f`
2860
2860
  :host {
2861
2861
  --mdc-toggle-width: 3rem;
2862
2862
  --mdc-toggle-height: 1.5rem;
@@ -3008,7 +3008,7 @@
3008
3008
  border: var(--mdc-toggle-border);
3009
3009
  }
3010
3010
  }
3011
- `,...O(!0)],kn=td;var Cn=g.constructTagName("toggle"),Hi={DEFAULT:"default",COMPACT:"compact"},Bi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},wn={compact:.75,default:1.25},Gi={SIZE:Hi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends ie(D(le)){constructor(){super(...arguments);this.checked=!1;this.size=Gi.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(Hi).includes(e)?e:Gi.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
3011
+ `,...O(!0)],wn=sd;var Ln=g.constructTagName("toggle"),Bi={DEFAULT:"default",COMPACT:"compact"},Gi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Nn={compact:.75,default:1.25},Yi={SIZE:Bi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends ie(D(le)){constructor(){super(...arguments);this.checked=!1;this.size=Yi.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(Bi).includes(e)?e:Yi.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
3012
3012
  <div class="mdc-toggle__container mdc-focus-ring">
3013
3013
  <input
3014
3014
  id="${this.id}"
@@ -3030,16 +3030,16 @@
3030
3030
  />
3031
3031
  <div class="mdc-toggle__slider">
3032
3032
  <mdc-icon
3033
- name="${this.checked?Bi.CHECKED:Bi.UNCHECKED}"
3033
+ name="${this.checked?Gi.CHECKED:Gi.UNCHECKED}"
3034
3034
  class="mdc-toggle__icon"
3035
3035
  length-unit="rem"
3036
- size="${wn[this.size]}"
3036
+ size="${Nn[this.size]}"
3037
3037
  ></mdc-icon>
3038
3038
  </div>
3039
3039
  </div>
3040
3040
  ${this.renderLabel()}
3041
3041
  ${this.renderHelperText()}
3042
- `}};At.styles=[...le.styles,...kn],l([c({type:Boolean,reflect:!0})],At.prototype,"checked",2),l([c({type:String,reflect:!0})],At.prototype,"size",2),l([c({type:Boolean,reflect:!0})],At.prototype,"autofocus",2);var Yi=At;Yi.register(Cn);var rd=Yi;var Ln=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ke={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var od=f`
3042
+ `}};At.styles=[...le.styles,...wn],l([c({type:Boolean,reflect:!0})],At.prototype,"checked",2),l([c({type:String,reflect:!0})],At.prototype,"size",2),l([c({type:Boolean,reflect:!0})],At.prototype,"autofocus",2);var qi=At;qi.register(Ln);var ad=qi;var Rn=g.constructTagName("tooltip"),J={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ke={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:J.DESCRIPTION};var nd=f`
3043
3043
 
3044
3044
  :host {
3045
3045
  --mdc-tooltip-max-width: 400px;
@@ -3064,10 +3064,10 @@
3064
3064
  :host([color='contrast'])::part(popover-content) {
3065
3065
  color: var(--mdc-tooltip-text-color-contrast);
3066
3066
  }
3067
- `,Nn=[od];var Jt=class extends We{constructor(){super(...arguments);this.tooltipType=Ke.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=Ke.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=Ke.OFFSET,this.placement=Ke.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:Ke.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${st()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=Ke.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(Ke.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==J.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Jt.styles=[...We.styles,...Nn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Jt.prototype,"tooltipType",2),l([ks()],Jt.prototype,"defaultSlotNodes",2);var qi=Jt;qi.register(Ln);var id=qi;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*100)/100,I=T/16,S=(k,N)=>{for(k=String(k);k.length<N;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3067
+ `,On=[nd];var Jt=class extends We{constructor(){super(...arguments);this.tooltipType=Ke.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=Ke.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=Ke.OFFSET,this.placement=Ke.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(J).includes(e)?e:Ke.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${st()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case J.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case J.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ut).includes(this.placement)||(this.placement=Ke.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(J).includes(this.tooltipType)||this.setTooltipType(Ke.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case J.DESCRIPTION:r===J.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case J.LABEL:r===J.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===J.DESCRIPTION?i.removeAttribute("aria-describedby"):r===J.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==J.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Jt.styles=[...We.styles,...On],l([c({type:String,attribute:"tooltip-type",reflect:!0})],Jt.prototype,"tooltipType",2),l([ws()],Jt.prototype,"defaultSlotNodes",2);var Wi=Jt;Wi.register(Rn);var ld=Wi;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*100)/100,I=T/16,S=(k,N)=>{for(k=String(k);k.length<N;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
3068
3068
  font-size: .6rem;
3069
3069
  font-weight: bold;
3070
- color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function No(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Rn=(o,t)=>Math.abs(o-t)<1,On=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var sd=o=>o,ad=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},zn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(a=>{let n=a[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Mn={passive:!0};var nd=typeof window>"u"?!0:"onscrollend"in window,Dn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&nd?()=>{}:On(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,Mn),e.addEventListener("scrollend",d,Mn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var ld=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var $n=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let a=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:e})},Ro=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sd,rangeExtractor:ad,onChange:()=>{},measureElement:ld,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(i.has(n.lane))continue;let d=s.get(n.lane);if(d==null||n.end>d.end?s.set(n.lane,n):n.end<d.end&&i.set(n.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,n)=>a.end===n.end?a.index-n.index:a.end-n.end)[0]:void 0},this.getMeasurementOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a},n)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=s(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?cd({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let a=s.key,n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let s=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return No(r[Pn(0,r.length-1,i=>No(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=No(this.getOffsetForIndex(e,n));Rn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Pn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function cd({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Pn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Wi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,i,s)}};this.virtualizer=new Ro(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Oo=class extends Wi{constructor(t,e){super(t,{observeElementRect:zn,observeElementOffset:Dn,scrollToFn:$n,...e})}};var{I:t_}=As;var Un=o=>o.strings===void 0;var Dr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Dr(i,t);return!0},Mo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Vn=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),pd(t)}};function dd(o){this._$AN!==void 0?(Mo(this),this._$AM=o,Vn(this)):this._$AM=o}function md(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Dr(r[s],!1),Mo(r[s]);else r!=null&&(Dr(r,!1),Mo(r));else Dr(this,o)}var pd=o=>{var t,e;o.type==io.CHILD&&((t=o._$AP)!=null||(o._$AP=md),(e=o._$AQ)!=null||(o._$AQ=dd))},zo=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Vn(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Dr(this,t),Mo(this))}setValue(t){if(Un(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Fn=()=>new Zi,Zi=class{},Xi=new WeakMap,Hn=yr(class extends zo{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Xi.get(e);r===void 0&&(r=new WeakMap,Xi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Xi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var hd=[f`
3070
+ color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function No(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Mn=(o,t)=>Math.abs(o-t)<1,zn=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var cd=o=>o,dd=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},$n=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(a=>{let n=a[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Dn={passive:!0};var md=typeof window>"u"?!0:"onscrollend"in window,Pn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&md?()=>{}:zn(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,Dn),e.addEventListener("scrollend",d,Dn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var pd=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Un=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let a=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:e})},Ro=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:cd,rangeExtractor:dd,onChange:()=>{},measureElement:pd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(i.has(n.lane))continue;let d=s.get(n.lane);if(d==null||n.end>d.end?s.set(n.lane,n):n.end<d.end&&i.set(n.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,n)=>a.end===n.end?a.index-n.index:a.end-n.end)[0]:void 0},this.getMeasurementOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a},n)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=s(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?hd({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let a=s.key,n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let s=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return No(r[Vn(0,r.length-1,i=>No(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=No(this.getOffsetForIndex(e,n));Mn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Vn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function hd({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Vn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Xi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,i,s)}};this.virtualizer=new Ro(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Oo=class extends Xi{constructor(t,e){super(t,{observeElementRect:$n,observeElementOffset:Pn,scrollToFn:Un,...e})}};var{I:n_}=_s;var Fn=o=>o.strings===void 0;var Dr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Dr(i,t);return!0},Mo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Hn=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),gd(t)}};function ud(o){this._$AN!==void 0?(Mo(this),this._$AM=o,Hn(this)):this._$AM=o}function fd(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Dr(r[s],!1),Mo(r[s]);else r!=null&&(Dr(r,!1),Mo(r));else Dr(this,o)}var gd=o=>{var t,e;o.type==io.CHILD&&((t=o._$AP)!=null||(o._$AP=fd),(e=o._$AQ)!=null||(o._$AQ=ud))},zo=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Hn(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Dr(this,t),Mo(this))}setValue(t){if(Fn(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Bn=()=>new ji,ji=class{},Zi=new WeakMap,Gn=yr(class extends zo{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Zi.get(e);r===void 0&&(r=new WeakMap,Zi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Zi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var bd=[f`
3071
3071
  :host::part(scroll) {
3072
3072
  height: 100%;
3073
3073
  width: 100%;
@@ -3077,19 +3077,19 @@
3077
3077
  position: relative;
3078
3078
  width: 100%;
3079
3079
  }
3080
- `],Bn=hd;var Gn=g.constructTagName("virtualizedlist"),b_=g.constructTagName("virtualizedwrapper"),Yn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Yn.VIRTUALIZER_PROPS;this.scrollElementRef=Fn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new Oo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,a=i();if(a!==this.virtualItems){this.virtualItems=a;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
3080
+ `],Yn=bd;var qn=g.constructTagName("virtualizedlist"),A_=g.constructTagName("virtualizedwrapper"),Wn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=Wn.VIRTUALIZER_PROPS;this.scrollElementRef=Bn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new Oo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,a=i();if(a!==this.virtualItems){this.virtualItems=a;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
3081
3081
  part="container"
3082
3082
  style="height: ${r()}px;"
3083
3083
  >
3084
3084
  <slot></slot>
3085
3085
  </div>`}render(){return h`<div
3086
- ${Hn(this.scrollElementRef)}
3086
+ ${Gn(this.scrollElementRef)}
3087
3087
  part="scroll"
3088
3088
  @scroll=${this.onscroll&&this.onscroll}
3089
3089
  >
3090
3090
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):h``}
3091
3091
  </div>
3092
- `}};_t.styles=[...y.styles,...Bn],l([c({type:Function,attribute:"onscroll"})],_t.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],_t.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],_t.prototype,"setlistdata",2);var ji=_t;ji.register(Gn);var ud=ji;var fd=[f`
3092
+ `}};_t.styles=[...y.styles,...Yn],l([c({type:Function,attribute:"onscroll"})],_t.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],_t.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],_t.prototype,"setlistdata",2);var Ki=_t;Ki.register(qn);var vd=Ki;var yd=[f`
3093
3093
  :host {
3094
3094
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
3095
3095
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -3172,7 +3172,7 @@
3172
3172
  :host::part(progress-container), :host::part(progress-bar) {
3173
3173
  border: var(--mdc-progressbar-border);
3174
3174
  }
3175
- `],qn=fd;var Wn=g.constructTagName("progressbar"),Do={DEFAULT:"default",INLINE:"inline"},Xn={VARIANT:Do.DEFAULT,VALIDATION:F.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=Xn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3175
+ `],Xn=yd;var Zn=g.constructTagName("progressbar"),Do={DEFAULT:"default",INLINE:"inline"},jn={VARIANT:Do.DEFAULT,VALIDATION:F.DEFAULT};var It=class extends D(le){constructor(){super(...arguments);this.variant=jn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var s;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,i=this.error?"100":`${this.clampedValue}`;return h`
3176
3176
  <div
3177
3177
  part="progress-container ${r?"gap":""}"
3178
3178
  role="progressbar"
@@ -3193,15 +3193,15 @@
3193
3193
  ${this.renderProgressbar()}
3194
3194
  ${this.renderHelperText()}
3195
3195
  `}
3196
- `}};It.styles=[...le.styles,...qn],l([c({type:String,reflect:!0})],It.prototype,"variant",2),l([c({type:String,reflect:!0})],It.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],It.prototype,"error",2);var Ki=It;Ki.register(Wn);var gd=Ki;var Zn="check-bold",jn=g.constructTagName("option");var bd=f`
3196
+ `}};It.styles=[...le.styles,...Xn],l([c({type:String,reflect:!0})],It.prototype,"variant",2),l([c({type:String,reflect:!0})],It.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],It.prototype,"error",2);var Qi=It;Qi.register(Zn);var xd=Qi;var Kn="check-bold",Qn=g.constructTagName("option");var Ed=f`
3197
3197
  :host::part(list-item) {
3198
3198
  height: 2.25rem;
3199
3199
  }
3200
3200
  :host::part(default-slot) {
3201
3201
  display: none;
3202
3202
  }
3203
- `,Kn=[bd];var kt=class extends ie(jt){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Li.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}handleDefaultSlotChange(){var r,i,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(i=e.assignedNodes()[0])==null?void 0:i.textContent)==null?void 0:s.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.selected?h`
3204
- <mdc-icon slot="trailing-controls" name="${Zn}"></mdc-icon>
3203
+ `,Jn=[Ed];var kt=class extends ie(jt){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Ni.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}handleDefaultSlotChange(){var r,i,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(i=e.assignedNodes()[0])==null?void 0:i.textContent)==null?void 0:s.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.selected?h`
3204
+ <mdc-icon slot="trailing-controls" name="${Kn}"></mdc-icon>
3205
3205
  `:v,r=this.prefixIcon?h`
3206
3206
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
3207
3207
  `:v;return h`
@@ -3215,7 +3215,7 @@
3215
3215
  ${e}
3216
3216
  </div>
3217
3217
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
3218
- `}};kt.styles=[...jt.styles,...Kn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var Qi=kt;Qi.register(jn);var vd=Qi;var Qn=g.constructTagName("optgroup"),Ji="header-id";var yd=f`
3218
+ `}};kt.styles=[...jt.styles,...Jn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var Ji=kt;Ji.register(Qn);var Td=Ji;var el=g.constructTagName("optgroup"),es="header-id";var Ad=f`
3219
3219
  :host {
3220
3220
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
3221
3221
  }
@@ -3228,9 +3228,9 @@
3228
3228
  color: var(--mdc-optgroup-disabled-color);
3229
3229
  cursor: default;
3230
3230
  }
3231
- `,Jn=[yd];var er=class extends D(te(y)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?h`
3231
+ `,tl=[Ad];var er=class extends D(te(y)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?h`
3232
3232
  <mdc-text
3233
- id="${Ji}"
3233
+ id="${es}"
3234
3234
  part="header-text"
3235
3235
  type="${_.BODY_MIDSIZE_BOLD}"
3236
3236
  tagname="${w.SPAN}"
@@ -3238,13 +3238,13 @@
3238
3238
  `:v;return h`
3239
3239
  <div
3240
3240
  role="group"
3241
- aria-labelledby="${this.label?Ji:""}"
3241
+ aria-labelledby="${this.label?es:""}"
3242
3242
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
3243
3243
  >
3244
3244
  ${t}
3245
3245
  <slot role="presentation"></slot>
3246
3246
  </div>
3247
- `}};er.styles=[...y.styles,...Jn],l([c({type:String,reflect:!0})],er.prototype,"label",2),l([Le({selector:"mdc-option"})],er.prototype,"options",2);var es=er;es.register(Qn);var xd=es;var Ed=[f`
3247
+ `}};er.styles=[...y.styles,...tl],l([c({type:String,reflect:!0})],er.prototype,"label",2),l([Le({selector:"mdc-option"})],er.prototype,"options",2);var ts=er;ts.register(el);var Sd=ts;var _d=[f`
3248
3248
  :host {
3249
3249
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3250
3250
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -3365,7 +3365,7 @@
3365
3365
  pointer-events: none;
3366
3366
  }
3367
3367
 
3368
- `,...O(!0)],el=Ed;var tl=g.constructTagName("textarea"),ts={HARD:"hard",SOFT:"soft"},rl={OFF:"off",ON:"on"},$o={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ts.SOFT};var G=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=$o.ROWS;this.cols=$o.COLS;this.wrap=ts.SOFT;this.autocapitalize=xo.OFF;this.autocomplete=rl.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===F.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,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}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?h`
3368
+ `,...O(!0)],rl=_d;var ol=g.constructTagName("textarea"),rs={HARD:"hard",SOFT:"soft"},il={OFF:"off",ON:"on"},$o={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:rs.SOFT};var G=class extends ie(D(le)){constructor(){super(...arguments);this.readonly=!1;this.rows=$o.ROWS;this.cols=$o.COLS;this.wrap=rs.SOFT;this.autocapitalize=xo.OFF;this.autocomplete=il.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===F.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,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}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?h`
3369
3369
  <mdc-text
3370
3370
  part="character-counter"
3371
3371
  tagname="span"
@@ -3407,7 +3407,7 @@
3407
3407
  ></textarea>
3408
3408
  </div>
3409
3409
  ${this.renderTextareaFooter()}
3410
- `}};G.styles=[...le.styles,...el],l([c({type:String})],G.prototype,"placeholder",2),l([c({type:Boolean})],G.prototype,"readonly",2),l([c({type:Number})],G.prototype,"rows",2),l([c({type:Number})],G.prototype,"cols",2),l([c({type:String})],G.prototype,"wrap",2),l([c({type:String})],G.prototype,"autocapitalize",2),l([c({type:String})],G.prototype,"autocomplete",2),l([c({type:Boolean})],G.prototype,"autofocus",2),l([c({type:String})],G.prototype,"dirname",2),l([c({type:Number})],G.prototype,"maxlength",2),l([c({type:Number})],G.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],G.prototype,"maxCharacterLimit",2),l([Wr("textarea")],G.prototype,"inputElement",2);var rs=G;rs.register(tl);var Td=rs;var Ad=f`
3410
+ `}};G.styles=[...le.styles,...rl],l([c({type:String})],G.prototype,"placeholder",2),l([c({type:Boolean})],G.prototype,"readonly",2),l([c({type:Number})],G.prototype,"rows",2),l([c({type:Number})],G.prototype,"cols",2),l([c({type:String})],G.prototype,"wrap",2),l([c({type:String})],G.prototype,"autocapitalize",2),l([c({type:String})],G.prototype,"autocomplete",2),l([c({type:Boolean})],G.prototype,"autofocus",2),l([c({type:String})],G.prototype,"dirname",2),l([c({type:Number})],G.prototype,"maxlength",2),l([c({type:Number})],G.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],G.prototype,"maxCharacterLimit",2),l([Wr("textarea")],G.prototype,"inputElement",2);var os=G;os.register(ol);var Id=os;var kd=f`
3411
3411
 
3412
3412
  :host::part(filters-container){
3413
3413
  display: flex;
@@ -3434,7 +3434,7 @@
3434
3434
  scrollbar-width: none;
3435
3435
  }
3436
3436
 
3437
- `,ol=[Ad];var il=g.constructTagName("searchfield"),Po={TYPE:ki.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var tr=class extends Xt{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Po.ICON,this.trailingButton=Po.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){this.inputChips&&this.inputChips.forEach(e=>{e.matches("mdc-inputchip")||e.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}render(){return h`
3437
+ `,sl=[kd];var al=g.constructTagName("searchfield"),Po={TYPE:Ci.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var tr=class extends Xt{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Po.ICON,this.trailingButton=Po.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){this.inputChips&&this.inputChips.forEach(e=>{e.matches("mdc-inputchip")||e.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}render(){return h`
3438
3438
  ${this.renderLabelElement()}
3439
3439
  <div class="${Ft({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3440
3440
  ${this.renderLeadingIcon()}
@@ -3444,15 +3444,61 @@
3444
3444
  </div>
3445
3445
  ${this.renderTrailingButton()}
3446
3446
  </div>
3447
- `}};tr.styles=[...Xt.styles,...ol],l([Le({slot:"filters"})],tr.prototype,"inputChips",2),l([U()],tr.prototype,"isInputFocused",2);var os=tr;os.register(il);var Sd=os;var _d=f`
3447
+ `}};tr.styles=[...Xt.styles,...sl],l([Le({slot:"filters"})],tr.prototype,"inputChips",2),l([U()],tr.prototype,"isInputFocused",2);var is=tr;is.register(al);var Cd=is;var wd=f`
3448
3448
  :host {
3449
3449
  display: block;
3450
+ height: 100%;
3450
3451
  }
3451
3452
  :host::part(brandvisual) {
3452
3453
  height: 100%;
3453
3454
  width: 100%;
3454
3455
  }
3455
- `,sl=[_d];var al=g.constructTagName("brandvisual"),nl={NAME:void 0};var rr=class extends y{constructor(){super(...arguments);this.name=nl.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return h` ${this.brandVisualData} `}};rr.styles=[...y.styles,...sl],l([U()],rr.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],rr.prototype,"name",2);var is=rr;is.register(al);var Id=is;})();
3456
+ `,nl=[wd];var ll=g.constructTagName("brandvisual"),cl={NAME:void 0};var rr=class extends y{constructor(){super(...arguments);this.name=cl.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return h` ${this.brandVisualData} `}};rr.styles=[...y.styles,...nl],l([U()],rr.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],rr.prototype,"name",2);var ss=rr;ss.register(ll);var Ld=ss;var Nd=f`
3457
+ :host {
3458
+ --mdc-appheader-height: 4rem;
3459
+ }
3460
+
3461
+ :host::part(container) {
3462
+ display: flex;
3463
+ align-items: center;
3464
+ width: 100%;
3465
+ height: var(--mdc-appheader-height);
3466
+ padding: 1rem;
3467
+ }
3468
+
3469
+ :host::part(leading-section),
3470
+ :host::part(center-section),
3471
+ :host::part(trailing-section) {
3472
+ flex: 1;
3473
+ display: flex;
3474
+ height: 100%;
3475
+ }
3476
+
3477
+ :host::part(leading-section) {
3478
+ justify-content: flex-start;
3479
+
3480
+ }
3481
+
3482
+ :host::part(center-section) {
3483
+ justify-content: center;
3484
+ align-items: center;
3485
+ }
3486
+
3487
+ :host::part(trailing-section) {
3488
+ justify-content: flex-end;
3489
+ }
3490
+ `,dl=[Nd];var Uo=class extends y{render(){return h`
3491
+ <header part="container">
3492
+ <div part="leading-section">
3493
+ <slot name="leading"></slot>
3494
+ </div>
3495
+ <div part="center-section">
3496
+ <slot name="center"></slot>
3497
+ </div>
3498
+ <div part="trailing-section">
3499
+ <slot name="trailing"></slot>
3500
+ </div>
3501
+ </header>`}};Uo.styles=[...y.styles,...dl];var as=Uo;var ml=g.constructTagName("appheader");as.register(ml);var Rd=as;})();
3456
3502
  /*! Bundled license information:
3457
3503
 
3458
3504
  @lit/reactive-element/css-tag.js: