@momentum-design/components 0.4.15 → 0.4.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Me=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var d=(o,t,e,r)=>{for(var s=r>1?void 0:r?ke(t,e):t,n=o.length-1,i;n>=0;n--)(i=o[n])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&Me(t,e,s),s};var it=globalThis,nt=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),Wt=new WeakMap,B=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==St)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(nt&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Wt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Wt.set(e,t))}return t}toString(){return this.cssText}},Yt=o=>new B(typeof o=="string"?o:o+"",void 0,St),g=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,s,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[n+1],o[0]);return new B(e,o,St)},Tt=(o,t)=>{if(nt)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=it.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,o.appendChild(r)}},at=nt?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Yt(e)})(o):o;var{is:He,defineProperty:De,getOwnPropertyDescriptor:qe,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ge,getPrototypeOf:Ve}=Object,w=globalThis,Zt=w.trustedTypes,je=Zt?Zt.emptyScript:"",Ct=w.reactiveElementPolyfillSupport,X=(o,t)=>o,W={toAttribute(o,t){switch(t){case Boolean:o=o?je: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}},lt=(o,t)=>!He(o,t),Kt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:lt},Jt,Qt;(Jt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qt=w.litPropertyMetadata)!=null||(w.litPropertyMetadata=new WeakMap);var _=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=Kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&De(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){var i;let{get:s,set:n}=(i=qe(this.prototype,t))!=null?i:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){let l=s==null?void 0:s.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Kt}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=Ve(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){let e=this.properties,r=[...Fe(e),...Ge(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(at(s))}else t!==void 0&&e.push(at(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 Tt(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 s;return(s=r.hostConnected)==null?void 0:s.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 n;let r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let i=r.getPropertyOptions(s),a=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:W;this._$Em=s,this[s]=a.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,r){var s;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((s=r.hasChanged)!=null?s:lt)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var s;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s: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,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.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){}},te;_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[X("elementProperties")]=new Map,_[X("finalized")]=new Map,Ct==null||Ct({ReactiveElement:_}),((te=w.reactiveElementVersions)!=null?te:w.reactiveElementVersions=[]).push("2.0.4");var Be={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:lt},Xe=(o=Be,t,e)=>{let{kind:r,metadata:s}=e,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,o)},init(a){return a!==void 0&&this.P(i,void 0,o),a}}}if(r==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?Xe(o,t,e):((r,s,n)=>{let i=s.hasOwnProperty(n);return s.constructor.createProperty(n,i?{...r,wrapped:!0}:r),i?Object.getOwnPropertyDescriptor(s,n):void 0})(o,t,e)}function k(o){return c({...o,state:!0,attribute:!1})}var We={PREFIX:"mdc",SEPARATOR:"-"},Ye={NAMESPACE:We},$t=Ye;var Ze=o=>[$t.NAMESPACE.PREFIX,o].join($t.NAMESPACE.SEPARATOR),x={constructTagName:Ze};var ct=x.constructTagName("themeprovider"),Nt={THEMECLASS:"mds-theme-stable-darkWebex"};var Z=globalThis,mt=Z.trustedTypes,ee=mt?mt.createPolicy("lit-html",{createHTML:o=>o}):void 0,le="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,de="?"+R,Ke=`<${de}>`,L=document,K=()=>L.createComment(""),J=o=>o===null||typeof o!="object"&&typeof o!="function",Lt=Array.isArray,Je=o=>Lt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
2
- \f\r]`,Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,se=/>/g,U=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),oe=/'/g,ie=/"/g,ce=/^(?:script|style|textarea|title)$/i,Mt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Mt(1),Kr=Mt(2),Jr=Mt(3),S=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),ne=new WeakMap,I=L.createTreeWalker(L,129);function me(o,t){if(!Lt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ee!==void 0?ee.createHTML(t):t}var Qe=(o,t)=>{let e=o.length-1,r=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=Y;for(let a=0;a<e;a++){let l=o[a],u,p,m=-1,A=0;for(;A<l.length&&(i.lastIndex=A,p=i.exec(l),p!==null);)A=i.lastIndex,i===Y?p[1]==="!--"?i=re:p[1]!==void 0?i=se:p[2]!==void 0?(ce.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=U):p[3]!==void 0&&(i=U):i===U?p[0]===">"?(i=s!=null?s:Y,m=-1):p[1]===void 0?m=-2:(m=i.lastIndex-p[2].length,u=p[1],i=p[3]===void 0?U:p[3]==='"'?ie:oe):i===ie||i===oe?i=U:i===re||i===se?i=Y:(i=U,s=void 0);let N=i===U&&o[a+1].startsWith("/>")?" ":"";n+=i===Y?l+Ke:m>=0?(r.push(u),l.slice(0,m)+le+l.slice(m)+R+N):l+R+(m===-2?a:N)}return[me(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Q=class o{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[u,p]=Qe(t,e);if(this.el=o.createElement(u,r),I.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=I.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let m of s.getAttributeNames())if(m.endsWith(le)){let A=p[i++],N=s.getAttribute(m).split(R),ot=/([.?@])?(.*)/.exec(A);l.push({type:1,index:n,name:ot[2],strings:N,ctor:ot[1]==="."?Ot:ot[1]==="?"?Pt:ot[1]==="@"?Ut:D}),s.removeAttribute(m)}else m.startsWith(R)&&(l.push({type:6,index:n}),s.removeAttribute(m));if(ce.test(s.tagName)){let m=s.textContent.split(R),A=m.length-1;if(A>0){s.textContent=mt?mt.emptyScript:"";for(let N=0;N<A;N++)s.append(m[N],K()),I.nextNode(),l.push({type:2,index:++n});s.append(m[A],K())}}}else if(s.nodeType===8)if(s.data===de)l.push({type:2,index:n});else{let m=-1;for(;(m=s.data.indexOf(R,m+1))!==-1;)l.push({type:7,index:n}),m+=R.length-1}n++}}static createElement(t,e){let r=L.createElement("template");return r.innerHTML=t,r}};function H(o,t,e=o,r){var i,a,l;if(t===S)return t;let s=r!==void 0?(i=e.o)==null?void 0:i[r]:e.l,n=J(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(o),s._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=s:e.l=s),s!==void 0&&(t=H(o,s._$AS(o,t.values),s,r)),t}var zt=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 u;let{el:{content:e},parts:r}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:L).importNode(e,!0);I.currentNode=s;let n=I.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new tt(n,n.nextSibling,this,t):l.type===1?p=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(p=new It(n,this,t)),this._$AV.push(p),l=r[++a]}i!==(l==null?void 0:l.index)&&(n=I.nextNode(),i++)}return I.currentNode=L,s}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++}},tt=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,s){var n;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this.v=(n=s==null?void 0:s.isConnected)!=null?n:!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=H(this,t,e),J(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==S&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Je(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!==f&&J(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Q.createElement(me(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{let i=new zt(s,this),a=i.u(this.options);i.p(e),this.T(a),this._$AH=i}}_$AC(t){let e=ne.get(t.strings);return e===void 0&&ne.set(t.strings,e=new Q(t)),e}k(t){Lt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let n of t)s===e.length?e.push(r=new o(this.O(K()),this.O(K()),this,this.options)):r=e[s],r._$AI(n),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=f}_$AI(t,e=this,r,s){let n=this.strings,i=!1;if(n===void 0)t=H(this,t,e,0),i=!J(t)||t!==this._$AH&&t!==S,i&&(this._$AH=t);else{let a=t,l,u;for(t=n[0],l=0;l<n.length-1;l++)u=H(this,a[r+l],e,l),u===S&&(u=this._$AH[l]),i||(i=!J(u)||u!==this._$AH[l]),u===f?t=f:t!==f&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}i&&!s&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Ot=class extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},Pt=class extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},Ut=class extends D{constructor(t,e,r,s,n){super(t,e,r,s,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=H(this,t,e,0))!=null?i:f)===S)return;let r=this._$AH,s=t===f&&r!==f||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==f&&(r===f||s);s&&this.element.removeEventListener(this.name,this,r),n&&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)}},It=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){H(this,t)}};var Rt=Z.litHtmlPolyfillSupport,ae;Rt==null||Rt(Q,tt),((ae=Z.litHtmlVersions)!=null?ae:Z.litHtmlVersions=[]).push("3.2.0");var he=(o,t,e)=>{var n,i;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,s=r._$litPart$;if(s===void 0){let a=(i=e==null?void 0:e.renderBefore)!=null?i:null;r._$litPart$=s=new tt(t.insertBefore(K(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};var z=class extends _{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=he(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 S}},pe;z._$litElement$=!0,z.finalized=!0,(pe=globalThis.litElementHydrateSupport)==null||pe.call(globalThis,{LitElement:z});var kt=globalThis.litElementPolyfillSupport;kt==null||kt({LitElement:z});var ue;((ue=globalThis.litElementVersions)!=null?ue:globalThis.litElementVersions=[]).push("4.1.0");var ge=g`
1
+ "use strict";(()=>{var He=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var d=(o,t,e,r)=>{for(var s=r>1?void 0:r?ke(t,e):t,n=o.length-1,i;n>=0;n--)(i=o[n])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&He(t,e,s),s};var nt=globalThis,at=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),Zt=new WeakMap,X=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Ct)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(at&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Zt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Zt.set(e,t))}return t}toString(){return this.cssText}},Kt=o=>new X(typeof o=="string"?o:o+"",void 0,Ct),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,s,n)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[n+1],o[0]);return new X(e,o,Ct)},Tt=(o,t)=>{if(at)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=nt.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,o.appendChild(r)}},lt=at?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Kt(e)})(o):o;var{is:Ge,defineProperty:Be,getOwnPropertyDescriptor:qe,getOwnPropertyNames:Ve,getOwnPropertySymbols:Fe,getPrototypeOf:je}=Object,w=globalThis,Jt=w.trustedTypes,Xe=Jt?Jt.emptyScript:"",$t=w.reactiveElementPolyfillSupport,Y=(o,t)=>o,W={toAttribute(o,t){switch(t){case Boolean:o=o?Xe: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}},dt=(o,t)=>!Ge(o,t),Qt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:dt},te,ee;(te=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ee=w.litPropertyMetadata)!=null||(w.litPropertyMetadata=new WeakMap);var S=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=Qt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Be(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){var i;let{get:s,set:n}=(i=qe(this.prototype,t))!=null?i:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){let l=s==null?void 0:s.call(this);n.call(this,a),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Qt}static _$Ei(){if(this.hasOwnProperty(Y("elementProperties")))return;let t=je(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Y("properties"))){let e=this.properties,r=[...Ve(e),...Fe(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(lt(s))}else t!==void 0&&e.push(lt(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 Tt(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 s;return(s=r.hostConnected)==null?void 0:s.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 n;let r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let i=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,e){var n;let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let i=r.getPropertyOptions(s),a=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:W;this._$Em=s,this[s]=a.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,r){var s;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((s=r.hasChanged)!=null?s:dt)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var s;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s: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,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.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){}},re;S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[Y("elementProperties")]=new Map,S[Y("finalized")]=new Map,$t==null||$t({ReactiveElement:S}),((re=w.reactiveElementVersions)!=null?re:w.reactiveElementVersions=[]).push("2.0.4");var Ye={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:dt},We=(o=Ye,t,e)=>{let{kind:r,metadata:s}=e,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,o),r==="accessor"){let{name:i}=e;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,l,o)},init(a){return a!==void 0&&this.P(i,void 0,o),a}}}if(r==="setter"){let{name:i}=e;return function(a){let l=this[i];t.call(this,a),this.requestUpdate(i,l,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?We(o,t,e):((r,s,n)=>{let i=s.hasOwnProperty(n);return s.constructor.createProperty(n,i?{...r,wrapped:!0}:r),i?Object.getOwnPropertyDescriptor(s,n):void 0})(o,t,e)}function H(o){return c({...o,state:!0,attribute:!1})}var Ze={PREFIX:"mdc",SEPARATOR:"-"},Ke={NAMESPACE:Ze},Nt=Ke;var Je=o=>[Nt.NAMESPACE.PREFIX,o].join(Nt.NAMESPACE.SEPARATOR),y={constructTagName:Je};var mt=y.constructTagName("themeprovider"),Rt={THEMECLASS:"mds-theme-stable-darkWebex"};var K=globalThis,ht=K.trustedTypes,se=ht?ht.createPolicy("lit-html",{createHTML:o=>o}):void 0,ce="$lit$",L=`lit$${Math.random().toFixed(9).slice(2)}$`,me="?"+L,Qe=`<${me}>`,D=document,J=()=>D.createComment(""),Q=o=>o===null||typeof o!="object"&&typeof o!="function",Dt=Array.isArray,tr=o=>Dt(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",wt=`[
2
+ \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oe=/-->/g,ie=/>/g,O=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ne=/'/g,ae=/"/g,he=/^(?:script|style|textarea|title)$/i,Pt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Pt(1),Qr=Pt(2),ts=Pt(3),C=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),le=new WeakMap,U=D.createTreeWalker(D,129);function pe(o,t){if(!Dt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var er=(o,t)=>{let e=o.length-1,r=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=Z;for(let a=0;a<e;a++){let l=o[a],u,p,m=-1,A=0;for(;A<l.length&&(i.lastIndex=A,p=i.exec(l),p!==null);)A=i.lastIndex,i===Z?p[1]==="!--"?i=oe:p[1]!==void 0?i=ie:p[2]!==void 0?(he.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=O):p[3]!==void 0&&(i=O):i===O?p[0]===">"?(i=s!=null?s:Z,m=-1):p[1]===void 0?m=-2:(m=i.lastIndex-p[2].length,u=p[1],i=p[3]===void 0?O:p[3]==='"'?ae:ne):i===ae||i===ne?i=O:i===oe||i===ie?i=Z:(i=O,s=void 0);let R=i===O&&o[a+1].startsWith("/>")?" ":"";n+=i===Z?l+Qe:m>=0?(r.push(u),l.slice(0,m)+ce+l.slice(m)+L+R):l+L+(m===-2?a:R)}return[pe(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},tt=class o{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[u,p]=er(t,e);if(this.el=o.createElement(u,r),U.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=U.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let m of s.getAttributeNames())if(m.endsWith(ce)){let A=p[i++],R=s.getAttribute(m).split(L),it=/([.?@])?(.*)/.exec(A);l.push({type:1,index:n,name:it[2],strings:R,ctor:it[1]==="."?zt:it[1]==="?"?Mt:it[1]==="@"?Ot:G}),s.removeAttribute(m)}else m.startsWith(L)&&(l.push({type:6,index:n}),s.removeAttribute(m));if(he.test(s.tagName)){let m=s.textContent.split(L),A=m.length-1;if(A>0){s.textContent=ht?ht.emptyScript:"";for(let R=0;R<A;R++)s.append(m[R],J()),U.nextNode(),l.push({type:2,index:++n});s.append(m[A],J())}}}else if(s.nodeType===8)if(s.data===me)l.push({type:2,index:n});else{let m=-1;for(;(m=s.data.indexOf(L,m+1))!==-1;)l.push({type:7,index:n}),m+=L.length-1}n++}}static createElement(t,e){let r=D.createElement("template");return r.innerHTML=t,r}};function k(o,t,e=o,r){var i,a,l;if(t===C)return t;let s=r!==void 0?(i=e.o)==null?void 0:i[r]:e.l,n=Q(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(o),s._$AT(o,e,r)),r!==void 0?((l=e.o)!=null?l:e.o=[])[r]=s:e.l=s),s!==void 0&&(t=k(o,s._$AS(o,t.values),s,r)),t}var It=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 u;let{el:{content:e},parts:r}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:D).importNode(e,!0);U.currentNode=s;let n=U.nextNode(),i=0,a=0,l=r[0];for(;l!==void 0;){if(i===l.index){let p;l.type===2?p=new et(n,n.nextSibling,this,t):l.type===1?p=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(p=new Ut(n,this,t)),this._$AV.push(p),l=r[++a]}i!==(l==null?void 0:l.index)&&(n=U.nextNode(),i++)}return U.currentNode=D,s}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++}},et=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,s){var n;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this.v=(n=s==null?void 0:s.isConnected)!=null?n:!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=k(this,t,e),Q(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):tr(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!==g&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=tt.createElement(pe(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{let i=new It(s,this),a=i.u(this.options);i.p(e),this.T(a),this._$AH=i}}_$AC(t){let e=le.get(t.strings);return e===void 0&&le.set(t.strings,e=new tt(t)),e}k(t){Dt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let n of t)s===e.length?e.push(r=new o(this.O(J()),this.O(J()),this,this.options)):r=e[s],r._$AI(n),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},G=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,n){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,s){let n=this.strings,i=!1;if(n===void 0)t=k(this,t,e,0),i=!Q(t)||t!==this._$AH&&t!==C,i&&(this._$AH=t);else{let a=t,l,u;for(t=n[0],l=0;l<n.length-1;l++)u=k(this,a[r+l],e,l),u===C&&(u=this._$AH[l]),i||(i=!Q(u)||u!==this._$AH[l]),u===g?t=g:t!==g&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}i&&!s&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},zt=class extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},Mt=class extends G{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ot=class extends G{constructor(t,e,r,s,n){super(t,e,r,s,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=k(this,t,e,0))!=null?i:g)===C)return;let r=this._$AH,s=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==g&&(r===g||s);s&&this.element.removeEventListener(this.name,this,r),n&&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)}},Ut=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){k(this,t)}};var Lt=K.litHtmlPolyfillSupport,de;Lt==null||Lt(tt,et),((de=K.litHtmlVersions)!=null?de:K.litHtmlVersions=[]).push("3.2.0");var ue=(o,t,e)=>{var n,i;let r=(n=e==null?void 0:e.renderBefore)!=null?n:t,s=r._$litPart$;if(s===void 0){let a=(i=e==null?void 0:e.renderBefore)!=null?i:null;r._$litPart$=s=new et(t.insertBefore(J(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};var I=class extends S{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=ue(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 C}},fe;I._$litElement$=!0,I.finalized=!0,(fe=globalThis.litElementHydrateSupport)==null||fe.call(globalThis,{LitElement:I});var Ht=globalThis.litElementPolyfillSupport;Ht==null||Ht({LitElement:I});var ge;((ge=globalThis.litElementVersions)!=null?ge:globalThis.litElementVersions=[]).push("4.1.0");var be=f`
4
4
  :host {
5
5
  box-sizing: border-box;
6
6
  }
@@ -10,11 +10,11 @@
10
10
  :host *::after {
11
11
  box-sizing: inherit;
12
12
  }
13
- `;var ht=class extends z{static register(t){customElements.get(t)||customElements.define(t,this)}};ht.styles=[ge];var fe=ht;var b=fe;var O=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 q=class{constructor(t,e,r,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let i=e;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new O(this.context,this.t,this.subscribe))}};var pt=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:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Ht=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},F=class extends pt{constructor(t,e,r){var s,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=i=>{let a=i.composedPath()[0];i.context===this.context&&a!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,a,i.subscribe))},this.onProviderRequest=i=>{let a=i.composedPath()[0];if(i.context!==this.context||a===this.host)return;let l=new Set;for(let[u,{consumerHost:p}]of this.subscriptions)l.has(u)||(l.add(u),p.dispatchEvent(new O(this.context,u,!0)));i.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(s=this.host).addController)==null||n.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ht(this.context))}};var tr=g`
13
+ `;var pt=class extends I{static register(t){customElements.get(t)||customElements.define(t,this)}};pt.styles=[be];var ve=pt;var b=ve;var z=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 B=class{constructor(t,e,r,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let i=e;this.context=i.context,this.callback=i.callback,this.subscribe=(n=i.subscribe)!=null?n:!1}else this.context=e,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new z(this.context,this.t,this.subscribe))}};var ut=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:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var kt=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},q=class extends ut{constructor(t,e,r){var s,n;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=i=>{let a=i.composedPath()[0];i.context===this.context&&a!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,a,i.subscribe))},this.onProviderRequest=i=>{let a=i.composedPath()[0];if(i.context!==this.context||a===this.host)return;let l=new Set;for(let[u,{consumerHost:p}]of this.subscriptions)l.has(u)||(l.add(u),p.dispatchEvent(new z(this.context,u,!0)));i.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(s=this.host).addController)==null||n.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new kt(this.context))}};var rr=f`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,ve=tr;var ut=class extends b{constructor({context:t,initialValue:e}){super(),this.context=new F(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};ut.styles=[...b.styles,ve];var xe=ut;var G=xe;var gt=class{constructor(t){this.themeclass=t}};gt.context=ct;var ft=gt;var er=g`
17
+ `,ye=rr;var ft=class extends b{constructor({context:t,initialValue:e}){super(),this.context=new q(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};ft.styles=[...b.styles,ye];var Ee=ft;var V=Ee;var gt=class{constructor(t){this.themeclass=t}};gt.context=mt;var bt=gt;var sr=f`
18
18
  :host {
19
19
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
20
20
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -27,7 +27,7 @@
27
27
  font-weight: var(--mdc-themeprovider-font-weight);
28
28
  letter-spacing: var(--mdc-themeprovider-letter-spacing-adjustment);
29
29
  }
30
- `,ye=[er];var V=class extends G{constructor(){super({context:ft.context,initialValue:new ft(Nt.THEMECLASS)});this.themeclass=Nt.THEMECLASS}static get Context(){return ft.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(" "))}};V.styles=[...G.styles,...ye],d([k()],V.prototype,"currentThemeClass",2),d([c({type:String})],V.prototype,"themeclass",2);var Dt=V;Dt.register(ct);var rr=Dt;var bt=g`
30
+ `,_e=[sr];var F=class extends V{constructor(){super({context:bt.context,initialValue:new bt(Rt.THEMECLASS)});this.themeclass=Rt.THEMECLASS}static get Context(){return bt.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(" "))}};F.styles=[...V.styles,..._e],d([H()],F.prototype,"currentThemeClass",2),d([c({type:String})],F.prototype,"themeclass",2);var Gt=F;Gt.register(mt);var or=Gt;var vt=f`
31
31
  :host {
32
32
  align-items: center;
33
33
  display: flex;
@@ -35,7 +35,7 @@
35
35
  justify-content: center;
36
36
  width: fit-content;
37
37
  }
38
- `,yo=g`
38
+ `,_o=f`
39
39
  :host {
40
40
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-0);
41
41
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-1);
@@ -56,7 +56,7 @@
56
56
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
57
57
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color);
58
58
  }
59
- `;var sr=[bt,g`
59
+ `;var ir=[vt,f`
60
60
  :host {
61
61
  --mdc-icon-fill-color: currentColor;
62
62
  }
@@ -65,7 +65,7 @@
65
65
  width: 100%;
66
66
  fill: var(--mdc-icon-fill-color);
67
67
  }
68
- `],Ee=sr;var or=o=>{let{host:t,context:e,subscribe:r}=o;return new q(t,{context:e,subscribe:r!=null?r:!0})},ir={consume:or},Ae=ir;var vt=x.constructTagName("iconprovider"),_e=["svg"],Se=["em","rem","px"],T={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",LENGTH_UNIT_SIZE:{px:16,em:1,rem:1}};var xt=class{};xt.context=vt;var yt=xt;var M=class extends G{constructor(){super({context:yt.context,initialValue:new yt});this.fileExtension=T.FILE_EXTENSION;this.lengthUnit=T.LENGTH_UNIT;this.size=T.LENGTH_UNIT_SIZE[T.LENGTH_UNIT]}static get Context(){return yt.context}updateValuesInContext(){this.fileExtension&&_e.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=T.FILE_EXTENSION,this.context.value.fileExtension=T.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&Se.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=T.LENGTH_UNIT,this.context.value.lengthUnit=T.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};d([c({type:String})],M.prototype,"url",2),d([c({type:String,attribute:"file-extension",reflect:!0})],M.prototype,"fileExtension",2),d([c({type:String,attribute:"length-unit",reflect:!0})],M.prototype,"lengthUnit",2),d([c({type:Number,reflect:!0})],M.prototype,"size",2);var et=M;var Te=async(o,t,e)=>{let r=await fetch(`${o}/${t}.${e}`);if(!r.ok)throw new Error("There was a problem while fetching the icon!");let s=await r.text();return new DOMParser().parseFromString(s,"text/html").body.children[0]};var Ce=x.constructTagName("icon"),qt={NAME:void 0,SIZE:1};var y=class extends b{constructor(){super(...arguments);this.name=qt.NAME;this.ariaLabel=null;this.iconProviderContext=Ae.consume({host:this,context:et.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:r}=this.iconProviderContext.value;if(r&&e&&this.name){let s=await Te(r,this.name,e);this.iconData=s,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var e;(e=this.iconData)==null||e.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var e,r;this.ariaLabel?(e=this.iconData)==null||e.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:qt.SIZE}updated(e){var r,s,n,i;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{console.error(a)}),e.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(i=this.iconProviderContext.value)==null?void 0:i.size,this.updateSize())}render(){return h` ${this.iconData} `}};y.styles=[...b.styles,...Ee],d([k()],y.prototype,"iconData",2),d([k()],y.prototype,"lengthUnitFromContext",2),d([k()],y.prototype,"sizeFromContext",2),d([c({type:String,reflect:!0})],y.prototype,"name",2),d([c({type:Number})],y.prototype,"size",2),d([c({type:String,attribute:"length-unit"})],y.prototype,"lengthUnit",2),d([c({type:String,attribute:"aria-label"})],y.prototype,"ariaLabel",2);var Ft=y;Ft.register(Ce);var nr=Ft;et.register(vt);var ar=et;var rt=o=>o!=null?o:f;var lr=g`
68
+ `],Ae=ir;var nr=o=>{let{host:t,context:e,subscribe:r}=o;return new B(t,{context:e,subscribe:r!=null?r:!0})},ar={consume:nr},Se=ar;var xt=y.constructTagName("iconprovider"),Ce=["svg"],Te=["em","rem","px"],T={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",LENGTH_UNIT_SIZE:{px:16,em:1,rem:1}};var yt=class{};yt.context=xt;var Et=yt;var P=class extends V{constructor(){super({context:Et.context,initialValue:new Et});this.fileExtension=T.FILE_EXTENSION;this.lengthUnit=T.LENGTH_UNIT;this.size=T.LENGTH_UNIT_SIZE[T.LENGTH_UNIT]}static get Context(){return Et.context}updateValuesInContext(){this.fileExtension&&Ce.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=T.FILE_EXTENSION,this.context.value.fileExtension=T.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&Te.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=T.LENGTH_UNIT,this.context.value.lengthUnit=T.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};d([c({type:String})],P.prototype,"url",2),d([c({type:String,attribute:"file-extension",reflect:!0})],P.prototype,"fileExtension",2),d([c({type:String,attribute:"length-unit",reflect:!0})],P.prototype,"lengthUnit",2),d([c({type:Number,reflect:!0})],P.prototype,"size",2);var rt=P;var $e=async(o,t,e)=>{let r=await fetch(`${o}/${t}.${e}`);if(!r.ok)throw new Error("There was a problem while fetching the icon!");let s=await r.text();return new DOMParser().parseFromString(s,"text/html").body.children[0]};var Ne=y.constructTagName("icon"),Bt={NAME:void 0,SIZE:1};var E=class extends b{constructor(){super(...arguments);this.name=Bt.NAME;this.ariaLabel=null;this.iconProviderContext=Se.consume({host:this,context:rt.Context})}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:r}=this.iconProviderContext.value;if(r&&e&&this.name){let s=await $e(r,this.name,e);this.iconData=s,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var e;(e=this.iconData)==null||e.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var e,r;this.ariaLabel?(e=this.iconData)==null||e.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Bt.SIZE}updated(e){var r,s,n,i;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{console.error(a)}),e.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(i=this.iconProviderContext.value)==null?void 0:i.size,this.updateSize())}render(){return h` ${this.iconData} `}};E.styles=[...b.styles,...Ae],d([H()],E.prototype,"iconData",2),d([H()],E.prototype,"lengthUnitFromContext",2),d([H()],E.prototype,"sizeFromContext",2),d([c({type:String,reflect:!0})],E.prototype,"name",2),d([c({type:Number})],E.prototype,"size",2),d([c({type:String,attribute:"length-unit"})],E.prototype,"lengthUnit",2),d([c({type:String,attribute:"aria-label"})],E.prototype,"ariaLabel",2);var qt=E;qt.register(Ne);var lr=qt;rt.register(xt);var dr=rt;var st=o=>o!=null?o:g;var cr=f`
69
69
  :host {
70
70
  display: flex;
71
71
  justify-content: center;
@@ -80,12 +80,12 @@
80
80
  width: inherit;
81
81
  object-fit: cover;
82
82
  }
83
- `,$e=[lr];var Ne=x.constructTagName("avatar"),we="rem",Gt={TYPE:"photo",SIZE:1.5};var P=class extends b{constructor(){super(...arguments);this.type=Gt.TYPE;this.size=Gt.SIZE}updateSize(){if(this.size){let e=`${this.size}${we}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("size")&&this.updateSize()}photoTemplate(){return h`
83
+ `,Re=[cr];var we=y.constructTagName("avatar"),Le="rem",Vt={TYPE:"photo",SIZE:1.5};var M=class extends b{constructor(){super(...arguments);this.type=Vt.TYPE;this.size=Vt.SIZE}updateSize(){if(this.size){let e=`${this.size}${Le}`;this.style.width=e,this.style.height=e}}updated(e){super.updated(e),e.has("size")&&this.updateSize()}photoTemplate(){return h`
84
84
  <img
85
- src="${rt(this.src)}"
86
- alt="${rt(this.alt)}"
85
+ src="${st(this.src)}"
86
+ alt="${st(this.alt)}"
87
87
  />
88
- `}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=h``,h`${e}`}};P.styles=[...b.styles,...$e],d([c({type:String,reflect:!0})],P.prototype,"type",2),d([c({type:String})],P.prototype,"alt",2),d([c({type:String})],P.prototype,"src",2),d([c({type:Number})],P.prototype,"size",2);var Vt=P;Vt.register(Ne);var dr=Vt;var Re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ze=o=>(...t)=>({_$litDirective$:o,values:t}),Et=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 At=ze(class extends Et{constructor(o){var t;if(super(o),o.type!==Re.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,s;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||(s=this.nt)!=null&&s.has(n)||(i?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return S}});var Oe=x.constructTagName("badge"),C={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},_t={SUCCESS_ICON_NAME:"check-circle-filled",WARNING_ICON_NAME:"warning-filled",ERROR_ICON_NAME:"error-legacy-filled"},jt={PRIMARY:"primary",SECONDARY:"secondary"},st={SUCCESS:"success",WARNING:"warning",ERROR:"error"},$={TYPE:C.DOT,LENGTH_UNIT:"rem",MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:jt.PRIMARY,ICON_SIZE:1};var cr=[bt,g`
88
+ `}render(){let e;return this.type==="photo"?e=this.photoTemplate():e=h``,h`${e}`}};M.styles=[...b.styles,...Re],d([c({type:String,reflect:!0})],M.prototype,"type",2),d([c({type:String})],M.prototype,"alt",2),d([c({type:String})],M.prototype,"src",2),d([c({type:Number})],M.prototype,"size",2);var Ft=M;Ft.register(we);var mr=Ft;var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ze=o=>(...t)=>({_$litDirective$:o,values:t}),_t=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 At=ze(class extends _t{constructor(o){var t;if(super(o),o.type!==Ie.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,s;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(t)}let e=o.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||(s=this.nt)!=null&&s.has(n)||(i?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return C}});var Me=y.constructTagName("text"),jt={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"},v={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},x={TYPE:jt.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:v.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Oe=y.constructTagName("badge"),$={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},St={SUCCESS_ICON_NAME:"check-circle-filled",WARNING_ICON_NAME:"warning-filled",ERROR_ICON_NAME:"error-legacy-filled"},Xt={PRIMARY:"primary",SECONDARY:"secondary"},ot={SUCCESS:"success",WARNING:"warning",ERROR:"error"},N={TYPE:$.DOT,LENGTH_UNIT:"rem",MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Xt.PRIMARY,ICON_SIZE:1};var hr=[vt,f`
89
89
  :host {
90
90
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
91
91
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -146,22 +146,22 @@
146
146
  background-color: var(--mdc-badge-secondary-background-color);
147
147
  color: var(--mdc-badge-secondary-foreground-color);
148
148
  }
149
- `],Pe=cr;var E=class extends b{constructor(){super(...arguments);this.type=$.TYPE;this.variant=$.VARIANT;this.maxCounter=$.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"?"":r>$.MAX_COUNTER_LIMIT?`${$.MAX_COUNTER_LIMIT}+`:r>e?`${e}+`:r.toString()}getBadgeIcon(e,r,s,n){return h`
149
+ `],Ue=hr;var _=class extends b{constructor(){super(...arguments);this.type=N.TYPE;this.variant=N.VARIANT;this.maxCounter=N.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"?"":r>N.MAX_COUNTER_LIMIT?`${N.MAX_COUNTER_LIMIT}+`:r>e?`${e}+`:r.toString()}getBadgeIcon(e,r,s,n){return h`
150
150
  <mdc-icon
151
151
  class="mdc-badge-icon ${At(this.getIconClasses(r,s,n))}"
152
- name="${rt(e)}"
153
- length-unit="${$.LENGTH_UNIT}"
154
- size="${$.ICON_SIZE}"
152
+ name="${st(e)}"
153
+ length-unit="${N.LENGTH_UNIT}"
154
+ size="${N.ICON_SIZE}"
155
155
  ></mdc-icon>
156
- `}getBadgeDot(e){return h`<div class="mdc-badge-dot ${At({"mdc-badge-overlay":e})}"></div>`}getIconClasses(e,r,s){let n={"mdc-badge-overlay":e},i=s===C.ICON?jt:st,l={[`mdc-badge-icon__${Object.values(i).includes(r)?r:$.VARIANT}`]:!0};return{...n,...l}}getBadgeCounterText(e,r,s){return h`
156
+ `}getBadgeDot(e){return h`<div class="mdc-badge-dot ${At({"mdc-badge-overlay":e})}"></div>`}getIconClasses(e,r,s){let n={"mdc-badge-overlay":e},i=s===$.ICON?Xt:ot,l={[`mdc-badge-icon__${Object.values(i).includes(r)?r:N.VARIANT}`]:!0};return{...n,...l}}getBadgeCounterText(e,r,s){return h`
157
157
  <mdc-text
158
- type="body-small-medium"
159
- tagname="div"
158
+ type="${jt.BODY_SMALL_MEDIUM}"
159
+ tagname="${v.DIV}"
160
160
  class="mdc-badge-text ${At({"mdc-badge-overlay":r})}"
161
161
  >
162
162
  ${this.getCounterText(e,s)}
163
163
  </mdc-text>
164
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){let{counter:e,iconName:r,maxCounter:s,overlay:n,type:i,variant:a}=this;switch(i){case C.DOT:return this.getBadgeDot(n);case C.ICON:return this.getBadgeIcon(r||"",n,a,i);case C.COUNTER:return this.getBadgeCounterText(s,n,e);case C.SUCCESS:return this.getBadgeIcon(_t.SUCCESS_ICON_NAME,n,st.SUCCESS);case C.WARNING:return this.getBadgeIcon(_t.WARNING_ICON_NAME,n,st.WARNING);case C.ERROR:return this.getBadgeIcon(_t.ERROR_ICON_NAME,n,st.ERROR);default:return h``}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};E.styles=[...b.styles,...Pe],d([c({type:String,reflect:!0})],E.prototype,"type",2),d([c({type:String,attribute:"icon-name"})],E.prototype,"iconName",2),d([c({type:String})],E.prototype,"variant",2),d([c({type:Number})],E.prototype,"counter",2),d([c({type:Number,attribute:"max-counter"})],E.prototype,"maxCounter",2),d([c({type:Boolean})],E.prototype,"overlay",2),d([c({type:String,attribute:"aria-label"})],E.prototype,"ariaLabel",2);var Bt=E;var Ue=g`
164
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){let{counter:e,iconName:r,maxCounter:s,overlay:n,type:i,variant:a}=this;switch(i){case $.DOT:return this.getBadgeDot(n);case $.ICON:return this.getBadgeIcon(r||"",n,a,i);case $.COUNTER:return this.getBadgeCounterText(s,n,e);case $.SUCCESS:return this.getBadgeIcon(St.SUCCESS_ICON_NAME,n,ot.SUCCESS);case $.WARNING:return this.getBadgeIcon(St.WARNING_ICON_NAME,n,ot.WARNING);case $.ERROR:return this.getBadgeIcon(St.ERROR_ICON_NAME,n,ot.ERROR);default:return h``}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};_.styles=[...b.styles,...Ue],d([c({type:String,reflect:!0})],_.prototype,"type",2),d([c({type:String,attribute:"icon-name"})],_.prototype,"iconName",2),d([c({type:String})],_.prototype,"variant",2),d([c({type:Number})],_.prototype,"counter",2),d([c({type:Number,attribute:"max-counter"})],_.prototype,"maxCounter",2),d([c({type:Boolean})],_.prototype,"overlay",2),d([c({type:String,attribute:"aria-label"})],_.prototype,"ariaLabel",2);var Yt=_;var De=f`
165
165
  :host([type="headline-small-regular"])::part(text) {
166
166
  font-size: var(--mds-font-apps-headline-small-regular-font-size);
167
167
  font-weight: var(--mds-font-apps-headline-small-regular-font-weight);
@@ -393,14 +393,14 @@
393
393
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
394
394
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
395
395
  }
396
- `;var mr=[g`
396
+ `;var pr=[f`
397
397
  :host {
398
398
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
399
399
 
400
400
  display: block;
401
401
  font-family: var(--mdc-text-font-family);
402
402
  }
403
- `,Ue],Ie=mr;var Le=x.constructTagName("text");var v={TYPE:"body-midsize-regular",TEXT_ELEMENT_TAGNAME:"p",CSS_PART_TEXT:"text"};var j=class extends b{constructor(){super(...arguments);this.type=v.TYPE;this.tagname=v.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case"h1":return h`<h1 part=${v.CSS_PART_TEXT}><slot></slot></h1>`;case"h2":return h`<h2 part=${v.CSS_PART_TEXT}><slot></slot></h2>`;case"h3":return h`<h3 part=${v.CSS_PART_TEXT}><slot></slot></h3>`;case"h4":return h`<h4 part=${v.CSS_PART_TEXT}><slot></slot></h4>`;case"h5":return h`<h5 part=${v.CSS_PART_TEXT}><slot></slot></h5>`;case"h6":return h`<h6 part=${v.CSS_PART_TEXT}><slot></slot></h6>`;case"div":return h`<div part=${v.CSS_PART_TEXT}><slot></slot></div>`;case"span":return h`<span part=${v.CSS_PART_TEXT}><slot></slot></span>`;case"small":return h`<small part=${v.CSS_PART_TEXT}><slot></slot></small>`;case"p":default:return h`<p part=${v.CSS_PART_TEXT}><slot></slot></p>`}}};j.styles=[...b.styles,...Ie],d([c({attribute:"type",reflect:!0,type:String})],j.prototype,"type",2),d([c({attribute:"tagname",reflect:!0,type:String})],j.prototype,"tagname",2);var Xt=j;Xt.register(Le);var hr=Xt;Bt.register(Oe);var pr=Bt;})();
403
+ `,De],Pe=pr;var j=class extends b{constructor(){super(...arguments);this.type=x.TYPE;this.tagname=x.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case v.H1:return h`<h1 part=${x.CSS_PART_TEXT}><slot></slot></h1>`;case v.H2:return h`<h2 part=${x.CSS_PART_TEXT}><slot></slot></h2>`;case v.H3:return h`<h3 part=${x.CSS_PART_TEXT}><slot></slot></h3>`;case v.H4:return h`<h4 part=${x.CSS_PART_TEXT}><slot></slot></h4>`;case v.H5:return h`<h5 part=${x.CSS_PART_TEXT}><slot></slot></h5>`;case v.H6:return h`<h6 part=${x.CSS_PART_TEXT}><slot></slot></h6>`;case v.DIV:return h`<div part=${x.CSS_PART_TEXT}><slot></slot></div>`;case v.SPAN:return h`<span part=${x.CSS_PART_TEXT}><slot></slot></span>`;case v.SMALL:return h`<small part=${x.CSS_PART_TEXT}><slot></slot></small>`;case v.P:default:return h`<p part=${x.CSS_PART_TEXT}><slot></slot></p>`}}};j.styles=[...b.styles,...Pe],d([c({attribute:"type",reflect:!0,type:String})],j.prototype,"type",2),d([c({attribute:"tagname",reflect:!0,type:String})],j.prototype,"tagname",2);var Wt=j;Wt.register(Me);var ur=Wt;Yt.register(Oe);var fr=Yt;})();
404
404
  /*! Bundled license information:
405
405
 
406
406
  @lit/reactive-element/decorators/custom-element.js: