@momentum-design/components 0.66.4 → 0.68.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.
Files changed (31) hide show
  1. package/dist/browser/index.js +369 -211
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/card/card.component.d.ts +4 -35
  4. package/dist/components/card/card.component.js +9 -79
  5. package/dist/components/dialog/dialog.component.d.ts +150 -0
  6. package/dist/components/dialog/dialog.component.js +340 -0
  7. package/dist/components/dialog/dialog.constants.d.ts +18 -0
  8. package/dist/components/dialog/dialog.constants.js +19 -0
  9. package/dist/components/dialog/dialog.events.d.ts +34 -0
  10. package/dist/components/dialog/dialog.events.js +47 -0
  11. package/dist/components/dialog/dialog.styles.d.ts +2 -0
  12. package/dist/components/dialog/dialog.styles.js +108 -0
  13. package/dist/components/dialog/dialog.types.d.ts +12 -0
  14. package/dist/components/dialog/dialog.types.js +1 -0
  15. package/dist/components/dialog/dialog.utils.d.ts +7 -0
  16. package/dist/components/dialog/dialog.utils.js +33 -0
  17. package/dist/components/dialog/index.d.ts +9 -0
  18. package/dist/components/dialog/index.js +6 -0
  19. package/dist/components/popover/popover.styles.js +5 -0
  20. package/dist/components/toggletip/toggletip.styles.js +8 -0
  21. package/dist/custom-elements.json +1211 -105
  22. package/dist/index.d.ts +4 -3
  23. package/dist/index.js +4 -3
  24. package/dist/react/dialog/index.d.ts +51 -0
  25. package/dist/react/dialog/index.js +59 -0
  26. package/dist/react/index.d.ts +1 -0
  27. package/dist/react/index.js +1 -0
  28. package/dist/utils/mixins/CardAndDialogFooterMixin.d.ts +11 -0
  29. package/dist/utils/mixins/CardAndDialogFooterMixin.js +102 -0
  30. package/dist/utils/mixins/FocusTrapMixin.js +4 -5
  31. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var rd=Object.defineProperty;var od=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?od(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&rd(t,e,o),o};var Eo=globalThis,To=Eo.ShadowRoot&&(Eo.ShadyCSS===void 0||Eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Di=Symbol(),xs=new WeakMap,Lr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Di)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(To&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xs.set(e,t))}return t}toString(){return this.cssText}},Es=i=>new Lr(typeof i=="string"?i:i+"",void 0,Di),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Lr(e,i,Di)},$i=(i,t)=>{if(To)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=Eo.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Ao=To?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Es(e)})(i):i;var{is:id,defineProperty:ad,getOwnPropertyDescriptor:sd,getOwnPropertyNames:nd,getOwnPropertySymbols:ld,getPrototypeOf:cd}=Object,it=globalThis,Ts=it.trustedTypes,dd=Ts?Ts.emptyScript:"",zi=it.reactiveElementPolyfillSupport,Or=(i,t)=>i,Mr={toAttribute(i,t){switch(t){case Boolean:i=i?dd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},So=(i,t)=>!id(i,t),As={attribute:!0,type:String,converter:Mr,reflect:!1,hasChanged:So},Ss,Is;(Ss=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Is=it.litPropertyMetadata)!=null||(it.litPropertyMetadata=new WeakMap);var ze=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=As){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&ad(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=sd(this.prototype,t))!=null?s:{get(){return this[e]},set(c){this[e]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let d=o==null?void 0:o.call(this);a.call(this,c),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:As}static _$Ei(){if(this.hasOwnProperty(Or("elementProperties")))return;let t=cd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Or("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Or("properties"))){let e=this.properties,r=[...nd(e),...ld(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(Ao(o))}else t!==void 0&&e.push(Ao(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 $i(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 o;return(o=r.hostConnected)==null?void 0:o.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 a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:Mr).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:Mr;this._$Em=o,this[o]=c.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:So)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o: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,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,c]of a)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.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){}},Cs;ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[Or("elementProperties")]=new Map,ze[Or("finalized")]=new Map,zi==null||zi({ReactiveElement:ze}),((Cs=it.reactiveElementVersions)!=null?Cs:it.reactiveElementVersions=[]).push("2.0.4");var $r=globalThis,Io=$r.trustedTypes,ks=Io?Io.createPolicy("lit-html",{createHTML:i=>i}):void 0,Vi="$lit$",Pe=`lit$${Math.random().toFixed(9).slice(2)}$`,Fi="?"+Pe,md=`<${Fi}>`,vt=document,zr=()=>vt.createComment(""),Pr=i=>i===null||typeof i!="object"&&typeof i!="function",Bi=Array.isArray,Ms=i=>Bi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Pi=`[
2
- \f\r]`,Dr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ws=/-->/g,Ns=/>/g,bt=RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_s=/'/g,Rs=/"/g,Ds=/^(?:script|style|textarea|title)$/i,Hi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Hi(1),nh=Hi(2),lh=Hi(3),Ue=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Ls=new WeakMap,gt=vt.createTreeWalker(vt,129);function $s(i,t){if(!Bi(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ks!==void 0?ks.createHTML(t):t}var zs=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Dr;for(let c=0;c<e;c++){let d=i[c],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Dr?h[1]==="!--"?s=ws:h[1]!==void 0?s=Ns:h[2]!==void 0?(Ds.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=bt):h[3]!==void 0&&(s=bt):s===bt?h[0]===">"?(s=o!=null?o:Dr,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?bt:h[3]==='"'?Rs:_s):s===Rs||s===_s?s=bt:s===ws||s===Ns?s=Dr:(s=bt,o=void 0);let y=s===bt&&i[c+1].startsWith("/>")?" ":"";a+=s===Dr?d+md:b>=0?(r.push(p),d.slice(0,b)+Vi+d.slice(b)+Pe+y):d+Pe+(b===-2?c:y)}return[$s(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Ur=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,c=t.length-1,d=this.parts,[p,h]=zs(t,e);if(this.el=i.createElement(p,r),gt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=gt.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Vi)){let x=h[s++],y=o.getAttribute(b).split(Pe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?ko:E[1]==="?"?wo:E[1]==="@"?No:xt}),o.removeAttribute(b)}else b.startsWith(Pe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(Ds.test(o.tagName)){let b=o.textContent.split(Pe),x=b.length-1;if(x>0){o.textContent=Io?Io.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],zr()),gt.nextNode(),d.push({type:2,index:++a});o.append(b[x],zr())}}}else if(o.nodeType===8)if(o.data===Fi)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Pe,b+1))!==-1;)d.push({type:7,index:a}),b+=Pe.length-1}a++}}static createElement(t,e){let r=vt.createElement("template");return r.innerHTML=t,r}};function yt(i,t,e=i,r){var s,c,d;if(t===Ue)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=Pr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=yt(i,o._$AS(i,t.values),o,r)),t}var Co=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 p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:vt).importNode(e,!0);gt.currentNode=o;let a=gt.nextNode(),s=0,c=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new jt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new _o(a,this,t)),this._$AV.push(h),d=r[++c]}s!==(d==null?void 0:d.index)&&(a=gt.nextNode(),s++)}return gt.currentNode=vt,o}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++}},jt=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!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=yt(this,t,e),Pr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ms(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&&Pr(this._$AH)?this._$AA.nextSibling.data=t:this.T(vt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ur.createElement($s(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new Co(o,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=Ls.get(t.strings);return e===void 0&&Ls.set(t.strings,e=new Ur(t)),e}k(t){Bi(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(zr()),this.O(zr()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},xt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,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,o){let a=this.strings,s=!1;if(a===void 0)t=yt(this,t,e,0),s=!Pr(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let c=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=yt(this,c[r+d],e,d),p===Ue&&(p=this._$AH[d]),s||(s=!Pr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ko=class extends xt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},wo=class extends xt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},No=class extends xt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=yt(this,t,e,0))!=null?s:g)===Ue)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&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)}},_o=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){yt(this,t)}},Ps={M:Vi,P:Pe,A:Fi,C:1,L:zs,R:Co,D:Ms,V:yt,I:jt,H:xt,N:wo,U:No,B:ko,F:_o},Ui=$r.litHtmlPolyfillSupport,Os;Ui==null||Ui(Ur,jt),((Os=$r.litHtmlVersions)!=null?Os:$r.litHtmlVersions=[]).push("3.2.0");var Us=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let c=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new jt(t.insertBefore(zr(),c),c,void 0,e!=null?e:{})}return o._$AI(i),o};var at=class extends ze{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=Us(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 Ue}},Vs;at._$litElement$=!0,at.finalized=!0,(Vs=globalThis.litElementHydrateSupport)==null||Vs.call(globalThis,{LitElement:at});var Gi=globalThis.litElementPolyfillSupport;Gi==null||Gi({LitElement:at});var Fs;((Fs=globalThis.litElementVersions)!=null?Fs:globalThis.litElementVersions=[]).push("4.1.0");var pd={attribute:!0,type:String,converter:Mr,reflect:!1,hasChanged:So},hd=(i=pd,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(c){let d=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,d,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=e;return function(c){let d=this[s];t.call(this,c),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function l(i){return(t,e)=>typeof e=="object"?hd(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function R(i){return l({...i,state:!0,attribute:!1})}var Ve=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Fe(i,t){return(e,r,o)=>{let a=s=>{var c,d;return(d=(c=s.renderRoot)==null?void 0:c.querySelector(i))!=null?d:null};if(t){let{get:s,set:c}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ve(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return Ve(e,r,{get(){return a(this)}})}}function G(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return Ve(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),c=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?c:c.filter(h=>h.matches(o))}})}}function Ro(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Ve(t,e,{get(){var s,c;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(c=a==null?void 0:a.assignedNodes(i))!=null?c:[]}})}}var N=u`
1
+ "use strict";(()=>{var dd=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?md(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&dd(t,e,o),o};var So=globalThis,Io=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),ks=new WeakMap,Mr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Fi)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(Io&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}},Ns=i=>new Mr(typeof i=="string"?i:i+"",void 0,Fi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Mr(e,i,Fi)},Bi=(i,t)=>{if(Io)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=So.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Co=Io?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ns(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,ws=st.trustedTypes,vd=ws?ws.emptyScript:"",Hi=st.reactiveElementPolyfillSupport,Dr=(i,t)=>i,$r={toAttribute(i,t){switch(t){case Boolean:i=i?vd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ko=(i,t)=>!pd(i,t),_s={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ls,Rs;(Ls=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Rs=st.litPropertyMetadata)!=null||(st.litPropertyMetadata=new WeakMap);var Pe=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=_s){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&hd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=ud(this.prototype,t))!=null?s:{get(){return this[e]},set(c){this[e]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let d=o==null?void 0:o.call(this);a.call(this,c),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:_s}static _$Ei(){if(this.hasOwnProperty(Dr("elementProperties")))return;let t=gd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Dr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dr("properties"))){let e=this.properties,r=[...fd(e),...bd(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(Co(o))}else t!==void 0&&e.push(Co(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 Bi(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 o;return(o=r.hostConnected)==null?void 0:o.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 a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:$r).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:$r;this._$Em=o,this[o]=c.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ko)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o: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,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,c]of a)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.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){}},Os;Pe.elementStyles=[],Pe.shadowRootOptions={mode:"open"},Pe[Dr("elementProperties")]=new Map,Pe[Dr("finalized")]=new Map,Hi==null||Hi({ReactiveElement:Pe}),((Os=st.reactiveElementVersions)!=null?Os:st.reactiveElementVersions=[]).push("2.0.4");var Pr=globalThis,No=Pr.trustedTypes,Ms=No?No.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wi="$lit$",Ue=`lit$${Math.random().toFixed(9).slice(2)}$`,qi="?"+Ue,yd=`<${qi}>`,xt=document,Ur=()=>xt.createComment(""),Vr=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Fs=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Gi=`[
2
+ \f\r]`,zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,$s=/>/g,vt=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ps=/"/g,Bs=/^(?:script|style|textarea|title)$/i,Zi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Zi(1),vh=Zi(2),yh=Zi(3),Ve=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Us=new WeakMap,yt=xt.createTreeWalker(xt,129);function Hs(i,t){if(!Ki(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=zr;for(let c=0;c<e;c++){let d=i[c],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===zr?h[1]==="!--"?s=Ds:h[1]!==void 0?s=$s:h[2]!==void 0?(Bs.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=vt):h[3]!==void 0&&(s=vt):s===vt?h[0]===">"?(s=o!=null?o:zr,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vt:h[3]==='"'?Ps:zs):s===Ps||s===zs?s=vt:s===Ds||s===$s?s=zr:(s=vt,o=void 0);let y=s===vt&&i[c+1].startsWith("/>")?" ":"";a+=s===zr?d+yd:b>=0?(r.push(p),d.slice(0,b)+Wi+d.slice(b)+Ue+y):d+Ue+(b===-2?c:y)}return[Hs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Fr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,c=t.length-1,d=this.parts,[p,h]=Gs(t,e);if(this.el=i.createElement(p,r),yt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=yt.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Wi)){let x=h[s++],y=o.getAttribute(b).split(Ue),T=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:T[2],strings:y,ctor:T[1]==="."?_o:T[1]==="?"?Lo:T[1]==="@"?Ro:Tt}),o.removeAttribute(b)}else b.startsWith(Ue)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(Bs.test(o.tagName)){let b=o.textContent.split(Ue),x=b.length-1;if(x>0){o.textContent=No?No.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Ur()),yt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Ur())}}}else if(o.nodeType===8)if(o.data===qi)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Ue,b+1))!==-1;)d.push({type:7,index:a}),b+=Ue.length-1}a++}}static createElement(t,e){let r=xt.createElement("template");return r.innerHTML=t,r}};function Et(i,t,e=i,r){var s,c,d;if(t===Ve)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=Vr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=Et(i,o._$AS(i,t.values),o,r)),t}var wo=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 p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:xt).importNode(e,!0);yt.currentNode=o;let a=yt.nextNode(),s=0,c=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new er(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new Oo(a,this,t)),this._$AV.push(h),d=r[++c]}s!==(d==null?void 0:d.index)&&(a=yt.nextNode(),s++)}return yt.currentNode=xt,o}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++}},er=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!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=Et(this,t,e),Vr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Ve&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fs(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&&Vr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Fr.createElement(Hs(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new wo(o,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=Us.get(t.strings);return e===void 0&&Us.set(t.strings,e=new Fr(t)),e}k(t){Ki(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Ur()),this.O(Ur()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},Tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,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,o){let a=this.strings,s=!1;if(a===void 0)t=Et(this,t,e,0),s=!Vr(t)||t!==this._$AH&&t!==Ve,s&&(this._$AH=t);else{let c=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=Et(this,c[r+d],e,d),p===Ve&&(p=this._$AH[d]),s||(s=!Vr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},_o=class extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},Lo=class extends Tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ro=class extends Tt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=Et(this,t,e,0))!=null?s:g)===Ve)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&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)}},Oo=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){Et(this,t)}},Ys={M:Wi,P:Ue,A:qi,C:1,L:Gs,R:wo,D:Fs,V:Et,I:er,H:Tt,N:Lo,U:Ro,B:_o,F:Oo},Yi=Pr.litHtmlPolyfillSupport,Vs;Yi==null||Yi(Fr,er),((Vs=Pr.litHtmlVersions)!=null?Vs:Pr.litHtmlVersions=[]).push("3.2.0");var Ws=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let c=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new er(t.insertBefore(Ur(),c),c,void 0,e!=null?e:{})}return o._$AI(i),o};var nt=class extends Pe{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=Ws(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 Ve}},qs;nt._$litElement$=!0,nt.finalized=!0,(qs=globalThis.litElementHydrateSupport)==null||qs.call(globalThis,{LitElement:nt});var Xi=globalThis.litElementPolyfillSupport;Xi==null||Xi({LitElement:nt});var Ks;((Ks=globalThis.litElementVersions)!=null?Ks:globalThis.litElementVersions=[]).push("4.1.0");var xd={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ed=(i=xd,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(c){let d=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,d,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=e;return function(c){let d=this[s];t.call(this,c),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function l(i){return(t,e)=>typeof e=="object"?Ed(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function L(i){return l({...i,state:!0,attribute:!1})}var Fe=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Be(i,t){return(e,r,o)=>{let a=s=>{var c,d;return(d=(c=s.renderRoot)==null?void 0:c.querySelector(i))!=null?d:null};if(t){let{get:s,set:c}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Fe(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return Fe(e,r,{get(){return a(this)}})}}function F(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),c=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?c:c.filter(h=>h.matches(o))}})}}function Mo(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var s,c;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(c=a==null?void 0:a.assignedNodes(i))!=null?c:[]}})}}var w=u`
4
4
  :host {
5
5
  align-items: center;
6
6
  display: flex;
@@ -8,7 +8,7 @@
8
8
  justify-content: center;
9
9
  width: fit-content;
10
10
  }
11
- `,Lo=u`
11
+ `,Do=u`
12
12
  :host {
13
13
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
14
14
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
@@ -24,7 +24,7 @@
24
24
  `,_=(i=!1)=>{let t=u`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
25
25
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
26
26
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
27
- `;return i?[Lo,u`
27
+ `;return i?[Do,u`
28
28
  .mdc-focus-ring:focus-visible {
29
29
  outline: none;
30
30
  }
@@ -48,7 +48,7 @@
48
48
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
49
49
  }
50
50
  }
51
- `]:[Lo,u`
51
+ `]:[Do,u`
52
52
  :host([disabled]:focus) {
53
53
  box-shadow: none;
54
54
  }
@@ -63,7 +63,7 @@
63
63
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
64
64
  }
65
65
  }
66
- `]};var ud=u`
66
+ `]};var Td=u`
67
67
  :host {
68
68
  height: 1.5rem;
69
69
  gap: 0.25rem;
@@ -166,7 +166,7 @@
166
166
  :host([variant="informational"]:active){
167
167
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
168
168
  }
169
- `,Bs=[N,ud,..._()];var Hs=u`
169
+ `,Zs=[w,Td,..._()];var Xs=u`
170
170
  :host {
171
171
  box-sizing: border-box;
172
172
  }
@@ -176,11 +176,11 @@
176
176
  :host *::after {
177
177
  box-sizing: inherit;
178
178
  }
179
- `;var Oo=class extends at{static register(t){customElements.get(t)||customElements.define(t,this)}};Oo.styles=[Hs];var Gs=Oo;var v=Gs;var st=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 Qt=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new st(this.context,this.t,this.subscribe))}};var Mo=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:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Yi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Jt=class extends Mo{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let c=s.composedPath()[0];s.context===this.context&&c!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,c,s.subscribe))},this.onProviderRequest=s=>{let c=s.composedPath()[0];if(s.context!==this.context||c===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new st(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Yi(this.context))}};var fd=u`
179
+ `;var $o=class extends nt{static register(t){customElements.get(t)||customElements.define(t,this)}};$o.styles=[Xs];var js=$o;var v=js;var lt=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 tr=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new lt(this.context,this.t,this.subscribe))}};var zo=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:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var ji=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},rr=class extends zo{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let c=s.composedPath()[0];s.context===this.context&&c!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,c,s.subscribe))},this.onProviderRequest=s=>{let c=s.composedPath()[0];if(s.context!==this.context||c===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new lt(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ji(this.context))}};var Ad=u`
180
180
  :host {
181
181
  display: contents;
182
182
  }
183
- `,Ws=fd;var Do=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Jt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Do.styles=[...v.styles,Ws];var qs=Do;var er=qs;var bd={PREFIX:"mdc",SEPARATOR:"-"},gd={NAMESPACE:bd},Wi=gd;var vd=i=>[Wi.NAMESPACE.PREFIX,i].join(Wi.NAMESPACE.SEPARATOR),f={constructTagName:vd};var Zu=f.constructTagName("buttonsimple"),Vr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},tr={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Fr={SIZE:Vr[32],TYPE:tr.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Br=f.constructTagName("text"),T={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"},me={TYPE:T.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:w.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ks=f.constructTagName("alertchip"),Et={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},rr={VARIANT:Et.NEUTRAL,TEXT_TYPE:T.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:Vr[24],ROLE:"button"};var Zs=i=>({[Et.ERROR]:"error-legacy-badge-filled",[Et.WARNING]:"warning-badge-filled",[Et.SUCCESS]:"check-circle-badge-filled",[Et.INFORMATIONAL]:"info-badge-filled",[Et.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([l({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Re=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([l({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var yd=[N,u`
183
+ `,Js=Ad;var Po=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new rr(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Po.styles=[...v.styles,Js];var en=Po;var or=en;var Sd={PREFIX:"mdc",SEPARATOR:"-"},Id={NAMESPACE:Sd},Qi=Id;var Cd=i=>[Qi.NAMESPACE.PREFIX,i].join(Qi.NAMESPACE.SEPARATOR),f={constructTagName:Cd};var nf=f.constructTagName("buttonsimple"),Br={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},ir={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Hr={SIZE:Br[32],TYPE:ir.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Gr=f.constructTagName("text"),E={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"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},pe={TYPE:E.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var tn=f.constructTagName("alertchip"),At={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},ar={VARIANT:At.NEUTRAL,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var rn=i=>({[At.ERROR]:"error-legacy-badge-filled",[At.WARNING]:"warning-badge-filled",[At.SUCCESS]:"check-circle-badge-filled",[At.INFORMATIONAL]:"info-badge-filled",[At.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([l({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Re=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([l({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var kd=[w,u`
184
184
  :host {
185
185
  border: 0.0625rem solid transparent;
186
186
  cursor: pointer;
@@ -237,10 +237,10 @@
237
237
  :host([size="20"]){
238
238
  height: var(--mdc-button-height-size-20);
239
239
  }
240
- `,..._()],Xs=yd;var Ee=class extends Re(P(v)){constructor(){super();this.size=Fr.SIZE;this.role=Fr.ROLE;this.type=Fr.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.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Fr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===tr.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===tr.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}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(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};Ee.formAssociated=!0,Ee.styles=[...v.styles,...Xs],n([l({type:Boolean,reflect:!0})],Ee.prototype,"active",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ee.prototype,"softDisabled",2),n([l({type:Number,reflect:!0})],Ee.prototype,"size",2),n([l({type:String,reflect:!0})],Ee.prototype,"role",2),n([l({type:String,reflect:!0})],Ee.prototype,"ariaStateKey",2),n([l({reflect:!0})],Ee.prototype,"type",2);var ie=Ee;var or=class extends ie{constructor(){super(...arguments);this.variant=rr.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=rr.SIZE,this.role=rr.ROLE}render(){return m`
241
- <mdc-icon part="icon" name="${Zs(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
- <mdc-text part="label" type="${rr.TEXT_TYPE}" tagname="${rr.TAG_NAME}">${this.label}</mdc-text>
243
- `}};or.styles=[...v.styles,...Bs],n([l({type:String})],or.prototype,"variant",2),n([l({type:String})],or.prototype,"label",2);var qi=or;var js=u`
240
+ `,..._()],on=kd;var Te=class extends Re(P(v)){constructor(){super();this.size=Hr.SIZE;this.role=Hr.ROLE;this.type=Hr.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.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Hr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ir.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ir.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}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(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};Te.formAssociated=!0,Te.styles=[...v.styles,...on],n([l({type:Boolean,reflect:!0})],Te.prototype,"active",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],Te.prototype,"softDisabled",2),n([l({type:Number,reflect:!0})],Te.prototype,"size",2),n([l({type:String,reflect:!0})],Te.prototype,"role",2),n([l({type:String,reflect:!0})],Te.prototype,"ariaStateKey",2),n([l({reflect:!0})],Te.prototype,"type",2);var se=Te;var sr=class extends se{constructor(){super(...arguments);this.variant=ar.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=ar.SIZE,this.role=ar.ROLE}render(){return m`
241
+ <mdc-icon part="icon" name="${rn(this.variant)}" length-unit="rem" size="1"></mdc-icon>
242
+ <mdc-text part="label" type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
243
+ `}};sr.styles=[...v.styles,...Zs],n([l({type:String})],sr.prototype,"variant",2),n([l({type:String})],sr.prototype,"label",2);var Ji=sr;var an=u`
244
244
  :host::part(text) {
245
245
  font-size: unset;
246
246
  font-weight: unset;
@@ -483,14 +483,14 @@
483
483
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
484
484
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
485
485
  }
486
- `;var xd=[u`
486
+ `;var Nd=[u`
487
487
  :host {
488
488
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
489
489
 
490
490
  display: block;
491
491
  font-family: var(--mdc-text-font-family);
492
492
  }
493
- `,js],Qs=xd;var ir=class extends v{constructor(){super(...arguments);this.type=me.TYPE;this.tagname=me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case w.H1:return m`<h1 part=${me.CSS_PART_TEXT}><slot></slot></h1>`;case w.H2:return m`<h2 part=${me.CSS_PART_TEXT}><slot></slot></h2>`;case w.H3:return m`<h3 part=${me.CSS_PART_TEXT}><slot></slot></h3>`;case w.H4:return m`<h4 part=${me.CSS_PART_TEXT}><slot></slot></h4>`;case w.H5:return m`<h5 part=${me.CSS_PART_TEXT}><slot></slot></h5>`;case w.H6:return m`<h6 part=${me.CSS_PART_TEXT}><slot></slot></h6>`;case w.DIV:return m`<div part=${me.CSS_PART_TEXT}><slot></slot></div>`;case w.SPAN:return m`<span part=${me.CSS_PART_TEXT}><slot></slot></span>`;case w.SMALL:return m`<small part=${me.CSS_PART_TEXT}><slot></slot></small>`;case w.P:default:return m`<p part=${me.CSS_PART_TEXT}><slot></slot></p>`}}};ir.styles=[...v.styles,...Qs],n([l({attribute:"type",reflect:!0,type:String})],ir.prototype,"type",2),n([l({attribute:"tagname",reflect:!0,type:String})],ir.prototype,"tagname",2);var Ki=ir;Ki.register(Br);var Ed=Ki;var Td=[N,u`
493
+ `,an],sn=Nd;var nr=class extends v{constructor(){super(...arguments);this.type=pe.TYPE;this.tagname=pe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return m`<h1 part=${pe.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return m`<h2 part=${pe.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return m`<h3 part=${pe.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return m`<h4 part=${pe.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return m`<h5 part=${pe.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return m`<h6 part=${pe.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return m`<div part=${pe.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return m`<span part=${pe.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return m`<small part=${pe.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return m`<p part=${pe.CSS_PART_TEXT}><slot></slot></p>`}}};nr.styles=[...v.styles,...sn],n([l({attribute:"type",reflect:!0,type:String})],nr.prototype,"type",2),n([l({attribute:"tagname",reflect:!0,type:String})],nr.prototype,"tagname",2);var ea=nr;ea.register(Gr);var wd=ea;var _d=[w,u`
494
494
  :host {
495
495
  --mdc-icon-fill-color: currentColor;
496
496
  --mdc-icon-size: var(--computed-icon-size);
@@ -505,7 +505,7 @@
505
505
  width: 100%;
506
506
  fill: var(--mdc-icon-fill-color);
507
507
  }
508
- `,..._()],Js=Td;var Ad=i=>{let{host:t,context:e,subscribe:r}=i;return new Qt(t,{context:e,subscribe:r!=null?r:!0})},Sd={consume:Ad},en=Sd;var $o=f.constructTagName("iconprovider"),tn=["svg"],rn=["em","rem","px","%"],Id={px:16,em:1,rem:1,"%":100},Be={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Id.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var zo=class{};zo.context=$o;var Po=zo;var Le=class extends er{constructor(){super({context:Po.context,initialValue:new Po});this.iconSet=Be.ICON_SET;this.fileExtension=Be.FILE_EXTENSION;this.lengthUnit=Be.LENGTH_UNIT;this.size=Be.SIZE}static get Context(){return Po.context}updateValuesInContext(){this.fileExtension&&tn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Be.FILE_EXTENSION,this.context.value.fileExtension=Be.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&&rn.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Be.LENGTH_UNIT,this.context.value.lengthUnit=Be.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())}};n([l({type:String,attribute:"icon-set",reflect:!0})],Le.prototype,"iconSet",2),n([l({type:String})],Le.prototype,"url",2),n([l({type:String,attribute:"file-extension",reflect:!0})],Le.prototype,"fileExtension",2),n([l({type:String,attribute:"length-unit",reflect:!0})],Le.prototype,"lengthUnit",2),n([l({type:Number,reflect:!0})],Le.prototype,"size",2),n([l({type:String,attribute:"cache-strategy"})],Le.prototype,"cacheStrategy",2),n([l({type:String,attribute:"cache-name"})],Le.prototype,"cacheName",2);var Hr=Le;var Gr={},on=async i=>(Gr[i]===void 0&&(Gr[i]=new Map),{async set(t,e){Gr[i].set(t.url,await e.text())},async get(t){return Gr[i].get(t.url)},async delete(t){Gr[i].delete(t.url)}}),an=async i=>{let t=await caches.open(i);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)}}},sn=async(i,t)=>t==="in-memory-cache"?on(i):an(i);var nn=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),ln=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),c=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?nn(c).then(d=>d.text()):sn(o,r).then(d=>d.get(c).then(p=>p||nn(c.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,c,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var cn=f.constructTagName("icon"),Zi={NAME:void 0,SIZE:1};var pe=class extends v{constructor(){super();this.name=Zi.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=en.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:o,cacheName:a,iconSet:s,cacheStrategy:c}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return ln({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:c,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="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:Zi.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),(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=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};pe.styles=[...v.styles,...Js],n([R()],pe.prototype,"iconData",2),n([R()],pe.prototype,"lengthUnitFromContext",2),n([R()],pe.prototype,"sizeFromContext",2),n([l({type:String,reflect:!0})],pe.prototype,"name",2),n([l({type:Number})],pe.prototype,"size",2),n([l({type:String,attribute:"length-unit"})],pe.prototype,"lengthUnit",2),n([l({type:String,attribute:"aria-label"})],pe.prototype,"ariaLabel",2),n([l({type:String,attribute:"aria-labelledby"})],pe.prototype,"ariaLabelledBy",2),n([R()],pe.prototype,"abortController",2);var Xi=pe;Xi.register(cn);var Cd=Xi;qi.register(Ks);var kd=qi;var wd=u`
508
+ `,..._()],nn=_d;var Ld=i=>{let{host:t,context:e,subscribe:r}=i;return new tr(t,{context:e,subscribe:r!=null?r:!0})},Rd={consume:Ld},ln=Rd;var Uo=f.constructTagName("iconprovider"),cn=["svg"],dn=["em","rem","px","%"],Od={px:16,em:1,rem:1,"%":100},He={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Od.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Vo=class{};Vo.context=Uo;var Fo=Vo;var Oe=class extends or{constructor(){super({context:Fo.context,initialValue:new Fo});this.iconSet=He.ICON_SET;this.fileExtension=He.FILE_EXTENSION;this.lengthUnit=He.LENGTH_UNIT;this.size=He.SIZE}static get Context(){return Fo.context}updateValuesInContext(){this.fileExtension&&cn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=He.FILE_EXTENSION,this.context.value.fileExtension=He.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&&dn.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=He.LENGTH_UNIT,this.context.value.lengthUnit=He.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())}};n([l({type:String,attribute:"icon-set",reflect:!0})],Oe.prototype,"iconSet",2),n([l({type:String})],Oe.prototype,"url",2),n([l({type:String,attribute:"file-extension",reflect:!0})],Oe.prototype,"fileExtension",2),n([l({type:String,attribute:"length-unit",reflect:!0})],Oe.prototype,"lengthUnit",2),n([l({type:Number,reflect:!0})],Oe.prototype,"size",2),n([l({type:String,attribute:"cache-strategy"})],Oe.prototype,"cacheStrategy",2),n([l({type:String,attribute:"cache-name"})],Oe.prototype,"cacheName",2);var Yr=Oe;var Wr={},mn=async i=>(Wr[i]===void 0&&(Wr[i]=new Map),{async set(t,e){Wr[i].set(t.url,await e.text())},async get(t){return Wr[i].get(t.url)},async delete(t){Wr[i].delete(t.url)}}),pn=async i=>{let t=await caches.open(i);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)}}},hn=async(i,t)=>t==="in-memory-cache"?mn(i):pn(i);var un=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),fn=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),c=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?un(c).then(d=>d.text()):hn(o,r).then(d=>d.get(c).then(p=>p||un(c.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,c,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var bn=f.constructTagName("icon"),ta={NAME:void 0,SIZE:1};var he=class extends v{constructor(){super();this.name=ta.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ln.consume({host:this,context:Yr.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:o,cacheName:a,iconSet:s,cacheStrategy:c}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return fn({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:c,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="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:ta.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),(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=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};he.styles=[...v.styles,...nn],n([L()],he.prototype,"iconData",2),n([L()],he.prototype,"lengthUnitFromContext",2),n([L()],he.prototype,"sizeFromContext",2),n([l({type:String,reflect:!0})],he.prototype,"name",2),n([l({type:Number})],he.prototype,"size",2),n([l({type:String,attribute:"length-unit"})],he.prototype,"lengthUnit",2),n([l({type:String,attribute:"aria-label"})],he.prototype,"ariaLabel",2),n([l({type:String,attribute:"aria-labelledby"})],he.prototype,"ariaLabelledBy",2),n([L()],he.prototype,"abortController",2);var ra=he;ra.register(bn);var Md=ra;Ji.register(tn);var Dd=Ji;var $d=u`
509
509
  :host {
510
510
  --mdc-appheader-height: 4rem;
511
511
  }
@@ -539,7 +539,7 @@
539
539
  :host::part(trailing-section) {
540
540
  justify-content: flex-end;
541
541
  }
542
- `,dn=[wd];var Uo=class extends v{render(){return m`
542
+ `,gn=[$d];var Bo=class extends v{render(){return m`
543
543
  <header part="container">
544
544
  <div part="leading-section">
545
545
  <slot name="leading"></slot>
@@ -550,7 +550,7 @@
550
550
  <div part="trailing-section">
551
551
  <slot name="trailing"></slot>
552
552
  </div>
553
- </header>`}};Uo.styles=[...v.styles,...dn];var ji=Uo;var mn=f.constructTagName("appheader");ji.register(mn);var Nd=ji;var A=i=>i!=null?i:g;var pn=f.constructTagName("avatar"),Q={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Qi=99,_d="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ar={TYPE:Q.PHOTO,SIZE:D[32],ICON_NAME:_d};var Vo=i=>{class t extends i{constructor(){super(...arguments);this.size=ar.SIZE;this.isTyping=!1}}return n([l({type:String})],t.prototype,"src",2),n([l({type:String})],t.prototype,"initials",2),n([l({type:String})],t.prototype,"presence",2),n([l({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([l({type:Number})],t.prototype,"counter",2),n([l({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ae=i=>{class t extends i{}return n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Rd=[N,u`
553
+ </header>`}};Bo.styles=[...v.styles,...gn];var oa=Bo;var vn=f.constructTagName("appheader");oa.register(vn);var zd=oa;var A=i=>i!=null?i:g;var yn=f.constructTagName("avatar"),ee={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ia=99,Pd="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},lr={TYPE:ee.PHOTO,SIZE:M[32],ICON_NAME:Pd};var Ho=i=>{class t extends i{constructor(){super(...arguments);this.size=lr.SIZE;this.isTyping=!1}}return n([l({type:String})],t.prototype,"src",2),n([l({type:String})],t.prototype,"initials",2),n([l({type:String})],t.prototype,"presence",2),n([l({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([l({type:Number})],t.prototype,"counter",2),n([l({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ne=i=>{class t extends i{}return n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Ud=[w,u`
554
554
  :host {
555
555
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
556
556
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -673,8 +673,8 @@
673
673
  outline: 0.125rem solid;
674
674
  }
675
675
  }
676
- `],hn=Rd;var un=f.constructTagName("presence"),X={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"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},sr={TYPE:X.ACTIVE,SIZE:Y.SMALL};var fn=i=>({[D[124]]:Y.XX_LARGE,[D[88]]:Y.X_LARGE,[D[72]]:Y.LARGE,[D[64]]:Y.MIDSIZE,[D[48]]:Y.SMALL,[D[32]]:Y.X_SMALL,[D[24]]:Y.XX_SMALL})[i]||Y.X_SMALL,bn=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,gn=i=>({[D[124]]:T.HEADING_XLARGE_MEDIUM,[D[88]]:T.HEADING_LARGE_MEDIUM,[D[72]]:T.HEADING_MIDSIZE_MEDIUM,[D[64]]:T.HEADING_SMALL_MEDIUM,[D[48]]:T.HEADING_SMALL_MEDIUM,[D[32]]:T.BODY_MIDSIZE_MEDIUM,[D[24]]:T.BODY_SMALL_MEDIUM})[i]||T.BODY_MIDSIZE_MEDIUM;var Yr=class extends Vo(ae(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Q.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
- <mdc-presence part="presence" type="${this.presence}" size="${fn(this.size)}"></mdc-presence>
676
+ `],xn=Ud;var En=f.constructTagName("presence"),Q={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"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},cr={TYPE:Q.ACTIVE,SIZE:Y.SMALL};var Tn=i=>({[M[124]]:Y.XX_LARGE,[M[88]]:Y.X_LARGE,[M[72]]:Y.LARGE,[M[64]]:Y.MIDSIZE,[M[48]]:Y.SMALL,[M[32]]:Y.X_SMALL,[M[24]]:Y.XX_SMALL})[i]||Y.X_SMALL,An=i=>({[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})[i]||1.25,Sn=i=>({[M[124]]:E.HEADING_XLARGE_MEDIUM,[M[88]]:E.HEADING_LARGE_MEDIUM,[M[72]]:E.HEADING_MIDSIZE_MEDIUM,[M[64]]:E.HEADING_SMALL_MEDIUM,[M[48]]:E.HEADING_SMALL_MEDIUM,[M[32]]:E.BODY_MIDSIZE_MEDIUM,[M[24]]:E.BODY_SMALL_MEDIUM})[i]||E.BODY_MIDSIZE_MEDIUM;var qr=class extends Ho(ne(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===ee.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
677
+ <mdc-presence part="presence" type="${this.presence}" size="${Tn(this.size)}"></mdc-presence>
678
678
  `:g}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
679
679
  <img
680
680
  part="photo"
@@ -684,27 +684,27 @@
684
684
  @load="${this.handleOnLoad}"
685
685
  @error="${this.handleOnError}"
686
686
  />
687
- `}iconTemplate(){let e=this.iconName||ar.ICON_NAME;return m`
687
+ `}iconTemplate(){let e=this.iconName||lr.ICON_NAME;return m`
688
688
  <mdc-icon
689
689
  name="${A(e)}"
690
690
  length-unit="rem"
691
- size="${bn(this.size)}"
691
+ size="${An(this.size)}"
692
692
  ></mdc-icon>
693
693
  `}textTemplate(e){return m`
694
694
  <mdc-text
695
- type="${gn(this.size)}"
695
+ type="${Sn(this.size)}"
696
696
  tagname="span"
697
697
  >
698
698
  ${e}
699
699
  </mdc-text>
700
- `}generateCounterText(e){return e<0?"0":e>Qi?`${Qi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===Q.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===Q.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Q.PHOTO:this.iconName?Q.ICON:this.initials?Q.TEXT:this.counter||this.counter===0?Q.COUNTER:Q.ICON}getTemplateBasedOnType(e){switch(e){case Q.PHOTO:return this.photoTemplate();case Q.TEXT:case Q.COUNTER:return this.generateTextContent(e);case Q.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===Q.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
700
+ `}generateCounterText(e){return e<0?"0":e>ia?`${ia}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===ee.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===ee.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?ee.PHOTO:this.iconName?ee.ICON:this.initials?ee.TEXT:this.counter||this.counter===0?ee.COUNTER:ee.ICON}getTemplateBasedOnType(e){switch(e){case ee.PHOTO:return this.photoTemplate();case ee.TEXT:case ee.COUNTER:return this.generateTextContent(e);case ee.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===ee.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
701
701
  <div part="content" aria-hidden="true">
702
702
  ${this.getPhotoPlaceHolderContent(e)}
703
703
  ${this.getTemplateBasedOnType(e)}
704
704
  ${this.getLoadingContent()}
705
705
  ${this.getPresenceTemplateBasedOnType(e)}
706
706
  </div>
707
- `}};Yr.styles=[...v.styles,...hn],n([R()],Yr.prototype,"isPhotoLoaded",2);var Ji=Yr;var Ld=[N,u`
707
+ `}};qr.styles=[...v.styles,...xn],n([L()],qr.prototype,"isPhotoLoaded",2);var aa=qr;var Vd=[w,u`
708
708
  :host {
709
709
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
710
710
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -798,7 +798,7 @@
798
798
  .mdc-presence-icon__scheduled {
799
799
  color: var(--mdc-presence-scheduled-background-color);
800
800
  }
801
- `],vn=Ld;var yn=i=>{switch(i){case X.AWAY:return"recents-presence-badge-filled";case X.AWAY_CALLING:return"away-calling-presence-filled";case X.BUSY:return"busy-presence-bold";case X.DND:return"dnd-presence-badge-filled";case X.MEETING:return"camera-filled";case X.ON_CALL:return"handset-filled";case X.ON_DEVICE:return"generic-device-video-badge-filled";case X.ON_MOBILE:return"phone-badge-filled";case X.PAUSE:return"pause-badge-filled";case X.PTO:return"pto-presence-filled";case X.PRESENTING:return"share-screen-badge-filled";case X.QUIET:return"quiet-hours-presence-filled";case X.SCHEDULED:return"meetings-presence-badge-filled";case X.ACTIVE:default:return"active-presence-small-filled"}};var Tt=class extends v{constructor(){super(...arguments);this.type=sr.TYPE;this.size=sr.SIZE;this.currentIconType=sr.TYPE}get iconSize(){switch(this.size){case Y.MIDSIZE:return 1.16125;case Y.LARGE:return 1.30625;case Y.X_LARGE:return 1.596875;case Y.XX_LARGE:return 2.25;case Y.XX_SMALL:case Y.X_SMALL:case Y.SMALL:default:return this.size=sr.SIZE,.875}}get icon(){let e=yn(this.type);return e==="active-presence-small-filled"&&(this.type=sr.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 m`
801
+ `],In=Vd;var Cn=i=>{switch(i){case Q.AWAY:return"recents-presence-badge-filled";case Q.AWAY_CALLING:return"away-calling-presence-filled";case Q.BUSY:return"busy-presence-bold";case Q.DND:return"dnd-presence-badge-filled";case Q.MEETING:return"camera-filled";case Q.ON_CALL:return"handset-filled";case Q.ON_DEVICE:return"generic-device-video-badge-filled";case Q.ON_MOBILE:return"phone-badge-filled";case Q.PAUSE:return"pause-badge-filled";case Q.PTO:return"pto-presence-filled";case Q.PRESENTING:return"share-screen-badge-filled";case Q.QUIET:return"quiet-hours-presence-filled";case Q.SCHEDULED:return"meetings-presence-badge-filled";case Q.ACTIVE:default:return"active-presence-small-filled"}};var St=class extends v{constructor(){super(...arguments);this.type=cr.TYPE;this.size=cr.SIZE;this.currentIconType=cr.TYPE}get iconSize(){switch(this.size){case Y.MIDSIZE:return 1.16125;case Y.LARGE:return 1.30625;case Y.X_LARGE:return 1.596875;case Y.XX_LARGE:return 2.25;case Y.XX_SMALL:case Y.X_SMALL:case Y.SMALL:default:return this.size=cr.SIZE,.875}}get icon(){let e=Cn(this.type);return e==="active-presence-small-filled"&&(this.type=cr.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 m`
802
802
  <div class="mdc-presence mdc-presence__${this.size}">
803
803
  <mdc-icon
804
804
  class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
@@ -808,7 +808,7 @@
808
808
  @error="${this.handleOnError}"
809
809
  ></mdc-icon>
810
810
  </div>
811
- `}};Tt.styles=[...v.styles,...vn],n([l({type:String,reflect:!0})],Tt.prototype,"type",2),n([l({type:String,reflect:!0})],Tt.prototype,"size",2),n([R()],Tt.prototype,"currentIconType",2);var ea=Tt;ea.register(un);var Od=ea;Ji.register(pn);var Md=Ji;var At=f.constructTagName("button"),se={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Wr={40:40,32:32,28:28,24:24},nr={64:64,52:52,20:20,...Wr},St={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},lr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},ne={VARIANT:se.PRIMARY,SIZE:Wr[32],COLOR:St.DEFAULT,TYPE_INTERNAL:lr.ICON,TYPE:tr.BUTTON,INVERTED:!1};var Dd=[N,u`
811
+ `}};St.styles=[...v.styles,...In],n([l({type:String,reflect:!0})],St.prototype,"type",2),n([l({type:String,reflect:!0})],St.prototype,"size",2),n([L()],St.prototype,"currentIconType",2);var sa=St;sa.register(En);var Fd=sa;aa.register(yn);var Bd=aa;var It=f.constructTagName("button"),Z={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Kr={40:40,32:32,28:28,24:24},ct={64:64,52:52,20:20,...Kr},Ct={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},dr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},le={VARIANT:Z.PRIMARY,SIZE:Kr[32],COLOR:Ct.DEFAULT,TYPE_INTERNAL:dr.ICON,TYPE:ir.BUTTON,INVERTED:!1};var Hd=[w,u`
812
812
  :host {
813
813
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
814
814
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -837,7 +837,7 @@
837
837
  :host::part(presence) {
838
838
  z-index: 2;
839
839
  }
840
- `,..._()],xn=Dd;var qr=class extends Vo(ae(ie)){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=ne.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:ar.SIZE.toString())}render(){return m`
840
+ `,..._()],kn=Hd;var Zr=class extends Ho(ne(se)){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=le.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:lr.SIZE.toString())}render(){return m`
841
841
  <div part="overlay" aria-hidden="true"></div>
842
842
  <mdc-avatar
843
843
  ?is-typing="${this.isTyping}"
@@ -848,7 +848,7 @@
848
848
  size="${A(this.size)}"
849
849
  src="${A(this.src)}"
850
850
  ></mdc-avatar>
851
- `}};qr.styles=[...xn],n([l({type:String,attribute:"aria-label"})],qr.prototype,"ariaLabel",2);var ta=qr;var En=f.constructTagName("avatarbutton");ta.register(En);var $d=ta;var Fo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Kr=i=>(...t)=>({_$litDirective$:i,values:t}),cr=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 dr=Kr(class extends cr{constructor(i){var t;if(super(i),i.type!==Fo.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Ue}});var Tn=f.constructTagName("badge"),He={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Ho={PRIMARY:"primary",SECONDARY:"secondary"},Zr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},_v={...Ho,...Zr},nt={TYPE:He.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Ho.PRIMARY,ICON_SIZE:1};var zd=[N,u`
851
+ `}};Zr.styles=[...kn],n([l({type:String,attribute:"aria-label"})],Zr.prototype,"ariaLabel",2);var na=Zr;var Nn=f.constructTagName("avatarbutton");na.register(Nn);var Gd=na;var Go={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xr=i=>(...t)=>({_$litDirective$:i,values:t}),mr=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 pr=Xr(class extends mr{constructor(i){var t;if(super(i),i.type!==Go.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Ve}});var wn=f.constructTagName("badge"),Ge={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Yo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wo={PRIMARY:"primary",SECONDARY:"secondary"},jr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fv={...Wo,...jr},dt={TYPE:Ge.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wo.PRIMARY,ICON_SIZE:1};var Yd=[w,u`
852
852
  :host {
853
853
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
854
854
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -917,21 +917,21 @@
917
917
  outline: 0.125rem solid;
918
918
  }
919
919
  }
920
- `],An=zd;var Oe=class extends ae(v){constructor(){super(...arguments);this.variant=nt.VARIANT;this.maxCounter=nt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>nt.MAX_COUNTER_LIMIT||r>nt.MAX_COUNTER_LIMIT?`${nt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
920
+ `],_n=Yd;var Me=class extends ne(v){constructor(){super(...arguments);this.variant=dt.VARIANT;this.maxCounter=dt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>dt.MAX_COUNTER_LIMIT||r>dt.MAX_COUNTER_LIMIT?`${dt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
921
921
  <mdc-icon
922
- class="mdc-badge-icon ${dr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
922
+ class="mdc-badge-icon ${pr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
923
923
  name="${A(e)}"
924
- size="${nt.ICON_SIZE}"
924
+ size="${dt.ICON_SIZE}"
925
925
  ></mdc-icon>
926
- `}getBadgeDot(){return m`<div class="mdc-badge-dot ${dr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
926
+ `}getBadgeDot(){return m`<div class="mdc-badge-dot ${pr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
927
927
  <mdc-text
928
- type="${T.BODY_SMALL_MEDIUM}"
929
- tagname="${w.DIV}"
930
- class="mdc-badge-text ${dr({"mdc-badge-overlay":this.overlay})}"
928
+ type="${E.BODY_SMALL_MEDIUM}"
929
+ tagname="${C.DIV}"
930
+ class="mdc-badge-text ${pr({"mdc-badge-overlay":this.overlay})}"
931
931
  >
932
932
  ${this.getCounterText(this.maxCounter,this.counter)}
933
933
  </mdc-text>
934
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Ho).includes(this.variant)&&(this.variant=nt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case He.ICON:return this.getBadgeIcon(e||"",o);case He.COUNTER:return this.getBadgeCounterText();case He.SUCCESS:return this.getBadgeIcon(Bo.SUCCESS_ICON_NAME,Zr.SUCCESS);case He.WARNING:return this.getBadgeIcon(Bo.WARNING_ICON_NAME,Zr.WARNING);case He.ERROR:return this.getBadgeIcon(Bo.ERROR_ICON_NAME,Zr.ERROR);case He.DOT:default:return this.type=He.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Oe.styles=[...v.styles,...An],n([l({type:String,reflect:!0})],Oe.prototype,"type",2),n([l({type:String,reflect:!0})],Oe.prototype,"variant",2),n([l({type:Number})],Oe.prototype,"counter",2),n([l({type:Number,attribute:"max-counter",reflect:!0})],Oe.prototype,"maxCounter",2),n([l({type:Boolean})],Oe.prototype,"overlay",2),n([l({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2);var ra=Oe;ra.register(Tn);var Pd=ra;var Ud=u`
934
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wo).includes(this.variant)&&(this.variant=dt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Ge.ICON:return this.getBadgeIcon(e||"",o);case Ge.COUNTER:return this.getBadgeCounterText();case Ge.SUCCESS:return this.getBadgeIcon(Yo.SUCCESS_ICON_NAME,jr.SUCCESS);case Ge.WARNING:return this.getBadgeIcon(Yo.WARNING_ICON_NAME,jr.WARNING);case Ge.ERROR:return this.getBadgeIcon(Yo.ERROR_ICON_NAME,jr.ERROR);case Ge.DOT:default:return this.type=Ge.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Me.styles=[...v.styles,..._n],n([l({type:String,reflect:!0})],Me.prototype,"type",2),n([l({type:String,reflect:!0})],Me.prototype,"variant",2),n([l({type:Number})],Me.prototype,"counter",2),n([l({type:Number,attribute:"max-counter",reflect:!0})],Me.prototype,"maxCounter",2),n([l({type:Boolean})],Me.prototype,"overlay",2),n([l({type:String,attribute:"aria-label"})],Me.prototype,"ariaLabel",2);var la=Me;la.register(wn);var Wd=la;var qd=u`
935
935
  :host {
936
936
  display: block;
937
937
  height: 100%;
@@ -940,7 +940,7 @@
940
940
  height: 100%;
941
941
  width: 100%;
942
942
  }
943
- `,Sn=[Ud];var In=f.constructTagName("brandvisual"),Cn={NAME:void 0};var mr=class extends v{constructor(){super(...arguments);this.name=Cn.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 m` ${this.brandVisualData} `}};mr.styles=[...v.styles,...Sn],n([R()],mr.prototype,"brandVisualData",2),n([l({type:String,reflect:!0})],mr.prototype,"name",2);var oa=mr;oa.register(In);var Vd=oa;var Fd=u`
943
+ `,Ln=[qd];var Rn=f.constructTagName("brandvisual"),On={NAME:void 0};var hr=class extends v{constructor(){super(...arguments);this.name=On.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 m` ${this.brandVisualData} `}};hr.styles=[...v.styles,...Ln],n([L()],hr.prototype,"brandVisualData",2),n([l({type:String,reflect:!0})],hr.prototype,"name",2);var ca=hr;ca.register(Rn);var Kd=ca;var Zd=u`
944
944
  :host {
945
945
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
946
946
  --mdc-bullet-size-small: 0.25rem;
@@ -961,7 +961,7 @@
961
961
  :host([size="large"]) {
962
962
  height: var(--mdc-bullet-size-large);
963
963
  }
964
- `,kn=[Fd];var wn=f.constructTagName("bullet"),Nn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Xr=class extends v{constructor(){super(...arguments);this.size=Nn.SMALL}};Xr.styles=[...v.styles,...kn],n([l({type:String,reflect:!0})],Xr.prototype,"size",2);var ia=Xr;ia.register(wn);var Bd=ia;var Go=i=>{class t extends i{constructor(){super(...arguments);this.variant=ne.VARIANT;this.color=ne.COLOR;this.typeInternal=ne.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(se).includes(o)?o:ne.VARIANT)}setColor(o){!Object.values(St).includes(o)||this.variant===se.TERTIARY?this.setAttribute("color",`${ne.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===lr.ICON?Object.values(nr).includes(o)&&!(o===nr[20]&&this.variant!==se.TERTIARY):Object.values(Wr).includes(o);this.setAttribute("size",s?`${o}`:`${ne.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(c=>{var d;return c.nodeType!==Node.TEXT_NODE||((d=c.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=lr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=lr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=lr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([l({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([l({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String})],t.prototype,"color",2),n([R()],t.prototype,"typeInternal",2),t};var Hd=u`
964
+ `,Mn=[Zd];var Dn=f.constructTagName("bullet"),$n={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Qr=class extends v{constructor(){super(...arguments);this.size=$n.SMALL}};Qr.styles=[...v.styles,...Mn],n([l({type:String,reflect:!0})],Qr.prototype,"size",2);var da=Qr;da.register(Dn);var Xd=da;var qo=i=>{class t extends i{constructor(){super(...arguments);this.variant=le.VARIANT;this.color=le.COLOR;this.typeInternal=le.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(Z).includes(o)?o:le.VARIANT)}setColor(o){!Object.values(Ct).includes(o)||this.variant===Z.TERTIARY?this.setAttribute("color",`${le.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===dr.ICON?Object.values(ct).includes(o)&&!(o===ct[20]&&this.variant!==Z.TERTIARY):Object.values(Kr).includes(o);this.setAttribute("size",s?`${o}`:`${le.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(c=>{var d;return c.nodeType!==Node.TEXT_NODE||((d=c.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=dr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([l({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([l({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String})],t.prototype,"color",2),n([L()],t.prototype,"typeInternal",2),t};var jd=u`
965
965
  :host {
966
966
  background-color: transparent;
967
967
  border-radius: 1.25rem;
@@ -1197,11 +1197,11 @@
1197
1197
  --mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
1198
1198
  --mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
1199
1199
  }
1200
- `,_n=[Hd];var jr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ge=class extends Go(ie){constructor(){super(...arguments);this.size=ne.SIZE;this.inverted=ne.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${jr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${jr(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1200
+ `,zn=[jd];var Jr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ye=class extends qo(se){constructor(){super(...arguments);this.size=le.SIZE;this.inverted=le.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(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.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Jr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Jr(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
1201
1201
  ${this.prefixFilledIconName?m` <mdc-icon name="${this.prefixFilledIconName}" part="prefix-icon"></mdc-icon>`:""}
1202
1202
  <slot @slotchange=${this.inferButtonType}></slot>
1203
1203
  ${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}" part="postfix-icon"></mdc-icon>`:""}
1204
- `}};Ge.styles=[...ie.styles,..._n],n([l({type:Number})],Ge.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Ge.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ge.prototype,"role",2),n([R()],Ge.prototype,"prefixFilledIconName",2),n([R()],Ge.prototype,"postfixFilledIconName",2);var It=Ge;It.register(At);var Gd=It;var Rn=f.constructTagName("linksimple"),aa={INLINE:!1,INVERTED:!1};var Yd=[N,u`
1204
+ `}};Ye.styles=[...se.styles,...zn],n([l({type:Number})],Ye.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ye.prototype,"role",2),n([L()],Ye.prototype,"prefixFilledIconName",2),n([L()],Ye.prototype,"postfixFilledIconName",2);var kt=Ye;kt.register(It);var Qd=kt;var Pn=f.constructTagName("linksimple"),ma={INLINE:!1,INVERTED:!1};var Jd=[w,u`
1205
1205
  :host {
1206
1206
  --mdc-link-border-radius: 0.25rem;
1207
1207
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -1268,13 +1268,13 @@
1268
1268
  text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
1269
1269
  }
1270
1270
 
1271
- `,..._()],Ln=Yd;var Ye=class extends P(Re(v)){constructor(){super(...arguments);this.inline=aa.INLINE;this.inverted=aa.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
1271
+ `,..._()],Un=Jd;var We=class extends P(Re(v)){constructor(){super(...arguments);this.inline=ma.INLINE;this.inverted=ma.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
1272
1272
  <slot></slot>
1273
- `}};Ye.styles=[...v.styles,...Ln],n([l({type:Boolean,reflect:!0})],Ye.prototype,"inline",2),n([l({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ye.prototype,"href",2),n([l({type:String,reflect:!0})],Ye.prototype,"target",2),n([l({type:String,reflect:!0})],Ye.prototype,"rel",2);var lt=Ye;var pr=class extends Go(lt){constructor(){super(...arguments);this.size=ne.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),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()}render(){return m`
1273
+ `}};We.styles=[...v.styles,...Un],n([l({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([l({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([l({type:String,reflect:!0})],We.prototype,"href",2),n([l({type:String,reflect:!0})],We.prototype,"target",2),n([l({type:String,reflect:!0})],We.prototype,"rel",2);var mt=We;var ur=class extends qo(mt){constructor(){super(...arguments);this.size=le.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),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()}render(){return m`
1274
1274
  ${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}" part="prefix-icon"></mdc-icon>`:""}
1275
1275
  <slot @slotchange=${this.inferButtonType}></slot>
1276
1276
  ${this.postfixIcon?m` <mdc-icon name="${this.postfixIcon}" part="postfix-icon"></mdc-icon>`:""}
1277
- `}};pr.styles=[...It.styles],n([l({type:Number,reflect:!0})],pr.prototype,"size",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],pr.prototype,"softDisabled",2);var sa=pr;var On=f.constructTagName("buttonlink");sa.register(On);var Wd=sa;var qd=u`
1277
+ `}};ur.styles=[...kt.styles],n([l({type:Number,reflect:!0})],ur.prototype,"size",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],ur.prototype,"softDisabled",2);var pa=ur;var Vn=f.constructTagName("buttonlink");pa.register(Vn);var em=pa;var tm=u`
1278
1278
  :host {
1279
1279
  align-items: flex-start;
1280
1280
  border-radius: 0.5rem;
@@ -1349,17 +1349,23 @@
1349
1349
  margin-bottom: 0.5rem;
1350
1350
  }
1351
1351
 
1352
- `,Mn=[N,qd];var Yo=f.constructTagName("link"),Wo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},qo={LARGE:1,MIDSIZE:.875,SMALL:.75},Dn={LINK_SIZE:Wo.LARGE};var $n=f.constructTagName("card"),na={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Kd={HORIZONTAL:"horizontal",VERTICAL:"vertical"},q={VARIANT:na.BORDER,ORIENTATION:Kd.VERTICAL,TITLE_TYPE:T.HEADING_SMALL_BOLD,SUBTITLE_TYPE:T.BODY_MIDSIZE_MEDIUM,TAGNAME:w.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Yo,BUTTON:At};var Ko=i=>{class t extends i{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=q.VARIANT;this.orientation=q.ORIENTATION;this.titleTagName=q.TAGNAME;this.subtitleTagName=q.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
1352
+ `,Fn=[w,tm];var Ko=f.constructTagName("link"),Zo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xo={LARGE:1,MIDSIZE:.875,SMALL:.75},Bn={LINK_SIZE:Zo.LARGE};var Hn=f.constructTagName("card"),ha={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},rm={HORIZONTAL:"horizontal",VERTICAL:"vertical"},W={VARIANT:ha.BORDER,ORIENTATION:rm.VERTICAL,TITLE_TYPE:E.HEADING_SMALL_BOLD,SUBTITLE_TYPE:E.BODY_MIDSIZE_MEDIUM,TAGNAME:C.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Ko,BUTTON:It};var jo=i=>{class t extends i{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=W.VARIANT;this.orientation=W.ORIENTATION;this.titleTagName=W.TAGNAME;this.subtitleTagName=W.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
1353
1353
  part="icon"
1354
- size="${q.ICON_SIZE}"
1355
- length-unit="${q.ICON_LENGTH_UNIT}"
1354
+ size="${W.ICON_SIZE}"
1355
+ length-unit="${W.ICON_LENGTH_UNIT}"
1356
1356
  name="${this.iconName}"
1357
1357
  ></mdc-icon>`:g}renderTitle(){return m`<div part="title-container">
1358
- <mdc-text part="title" type="${q.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
1359
- ${this.subtitle?m`<mdc-text part="subtitle" type="${q.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
1358
+ <mdc-text part="title" type="${W.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
1359
+ ${this.subtitle?m`<mdc-text part="subtitle" type="${W.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
1360
1360
  >${this.subtitle}</mdc-text
1361
1361
  >`:g}
1362
- </div>`}}return n([l({type:String,attribute:"card-title"})],t.prototype,"cardTitle",2),n([l({type:String})],t.prototype,"subtitle",2),n([l({type:String,attribute:"image-src"})],t.prototype,"imageSrc",2),n([l({type:String,attribute:"image-alt"})],t.prototype,"imageAlt",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String,reflect:!0})],t.prototype,"orientation",2),n([l({type:String,attribute:"title-tag-name"})],t.prototype,"titleTagName",2),n([l({type:String,attribute:"subtitle-tag-name"})],t.prototype,"subtitleTagName",2),n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var ct=class extends Ko(v){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(q.BUTTON)&&r.getAttribute("data-btn-type")!=="icon"?r.remove():(r.setAttribute("variant",se.TERTIARY),r.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let r=3;r<this.iconButtons.length;r+=1)this.iconButtons[r].remove()};this.handleFooterSlot=(e,r="")=>{var a,s,c;let o=[];e===q.LINK&&((a=this.footerLink)!=null&&a.length)?o=this.footerLink:e===q.BUTTON&&r===se.PRIMARY&&((s=this.footerButtonPrimary)!=null&&s.length)?o=this.footerButtonPrimary:e===q.BUTTON&&r===se.SECONDARY&&((c=this.footerButtonSecondary)!=null&&c.length)&&(o=this.footerButtonSecondary);for(let d=1;d<o.length;d+=1)o[d].remove();o.forEach(d=>{d.matches(e)||d.remove(),r&&d.setAttribute("variant",r)})};this.updateFooterButtonColors=()=>{let e=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];e==null||e.forEach(r=>{this.variant===na.PROMOTIONAL?r.setAttribute("color",St.PROMOTIONAL):r.setAttribute("color",St.DEFAULT)})}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors()}renderHeader(){return this.cardTitle?m`<div part="header">
1362
+ </div>`}}return n([l({type:String,attribute:"card-title"})],t.prototype,"cardTitle",2),n([l({type:String})],t.prototype,"subtitle",2),n([l({type:String,attribute:"image-src"})],t.prototype,"imageSrc",2),n([l({type:String,attribute:"image-alt"})],t.prototype,"imageAlt",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String,reflect:!0})],t.prototype,"orientation",2),n([l({type:String,attribute:"title-tag-name"})],t.prototype,"titleTagName",2),n([l({type:String,attribute:"subtitle-tag-name"})],t.prototype,"subtitleTagName",2),n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Qo=i=>{class t extends i{updateFooterButtonColors(r){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(a=>{r===ha.PROMOTIONAL?a.setAttribute("color",Ct.PROMOTIONAL):a.setAttribute("color",Ct.DEFAULT)})}handleFooterSlot(r,o){var s,c,d;let a=[];r===W.LINK&&((s=this.footerLink)!=null&&s.length)?a=this.footerLink:r===W.BUTTON&&o===Z.PRIMARY&&((c=this.footerButtonPrimary)!=null&&c.length)?a=this.footerButtonPrimary:r===W.BUTTON&&o===Z.SECONDARY&&((d=this.footerButtonSecondary)!=null&&d.length)&&(a=this.footerButtonSecondary);for(let p=1;p<a.length;p+=1)a[p].remove();a.forEach(p=>{p.matches(r)||p.remove(),o&&p.setAttribute("variant",o)})}renderFooter(){return m`<div part="footer">
1363
+ <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(W.LINK)}></slot>
1364
+ <slot name="footer-button-secondary"
1365
+ @slotchange=${()=>this.handleFooterSlot(W.BUTTON,Z.SECONDARY)}></slot>
1366
+ <slot name="footer-button-primary"
1367
+ @slotchange=${()=>this.handleFooterSlot(W.BUTTON,Z.PRIMARY)}></slot>
1368
+ </div>`}}return n([F({slot:"footer-link"})],t.prototype,"footerLink",2),n([F({slot:"footer-button-primary"})],t.prototype,"footerButtonPrimary",2),n([F({slot:"footer-button-secondary"})],t.prototype,"footerButtonSecondary",2),t};var eo=class extends jo(Qo(v)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(W.BUTTON)&&r.getAttribute("data-btn-type")!=="icon"?r.remove():(r.setAttribute("variant",Z.TERTIARY),r.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let r=3;r<this.iconButtons.length;r+=1)this.iconButtons[r].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?m`<div part="header">
1363
1369
  ${this.renderIcon()}
1364
1370
  ${this.renderTitle()}
1365
1371
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
@@ -1370,15 +1376,9 @@
1370
1376
  <slot name="before-body"></slot>
1371
1377
  <slot name="body"></slot>
1372
1378
  <slot name="after-body"></slot>
1373
- <div part="footer">
1374
- <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(q.LINK)}></slot>
1375
- <slot name="footer-button-secondary"
1376
- @slotchange=${()=>this.handleFooterSlot(q.BUTTON,se.SECONDARY)}></slot>
1377
- <slot name="footer-button-primary"
1378
- @slotchange=${()=>this.handleFooterSlot(q.BUTTON,se.PRIMARY)}></slot>
1379
- </div>
1379
+ ${this.renderFooter()}
1380
1380
  </div>
1381
- `}};ct.styles=[...v.styles,...Mn],n([G({slot:"icon-button"})],ct.prototype,"iconButtons",2),n([G({slot:"footer-link"})],ct.prototype,"footerLink",2),n([G({slot:"footer-button-primary"})],ct.prototype,"footerButtonPrimary",2),n([G({slot:"footer-button-secondary"})],ct.prototype,"footerButtonSecondary",2);var Te=ct;Te.register($n);var Zd=Te;var Xd=u`
1381
+ `}};eo.styles=[...v.styles,...Fn],n([F({slot:"icon-button"})],eo.prototype,"iconButtons",2);var Ae=eo;Ae.register(Hn);var om=Ae;var im=u`
1382
1382
  :host {
1383
1383
  cursor: pointer;
1384
1384
  user-select: none;
@@ -1400,7 +1400,7 @@
1400
1400
  :host([disabled])::part(image){
1401
1401
  opacity: 0.5;
1402
1402
  }
1403
- `,zn=[Xd,..._()];var Zo=class extends Ko(ie){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?m`<div part="header">
1403
+ `,Gn=[im,..._()];var Jo=class extends jo(se){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?m`<div part="header">
1404
1404
  ${this.renderIcon()}
1405
1405
  ${this.renderTitle()}
1406
1406
  </div>`:g}render(){return m`
@@ -1411,7 +1411,7 @@
1411
1411
  <slot name="body"></slot>
1412
1412
  <slot name="after-body"></slot>
1413
1413
  </div>
1414
- `}};Zo.styles=[...Te.styles,...zn];var la=Zo;var Pn=f.constructTagName("cardbutton");la.register(Pn);var jd=la;var Qd=u`
1414
+ `}};Jo.styles=[...Ae.styles,...Gn];var ua=Jo;var Yn=f.constructTagName("cardbutton");ua.register(Yn);var am=ua;var sm=u`
1415
1415
  :host {
1416
1416
  cursor: pointer;
1417
1417
  user-select: none;
@@ -1464,10 +1464,10 @@
1464
1464
  :host([disabled])::part(check-icon){
1465
1465
  color: var(--mds-color-theme-text-primary-disabled);
1466
1466
  }
1467
- `,Un=[Qd,..._()];var Vn=f.constructTagName("cardcheckbox"),ca={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Xo={CHECK:"check",CHECKBOX:"checkbox"},jo={SELECTION_TYPE:Xo.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var hr=class extends P(Re(Te)){constructor(){super();this.checked=!1;this.selectionType=jo.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="checkbox"}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?ca.CHECKED:ca.DEFAULT;switch(this.selectionType){case Xo.CHECK:return m`<mdc-icon part="check check-icon"
1468
- size="${jo.ICON_SIZE}"
1469
- length-unit="${jo.ICON_LENGTH_UNIT}"
1470
- name="${e}"></mdc-icon>`;case Xo.CHECKBOX:return m`<mdc-staticcheckbox part="check"
1467
+ `,Wn=[sm,..._()];var qn=f.constructTagName("cardcheckbox"),fa={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},ei={CHECK:"check",CHECKBOX:"checkbox"},ti={SELECTION_TYPE:ei.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var fr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.selectionType=ti.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="checkbox"}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?fa.CHECKED:fa.DEFAULT;switch(this.selectionType){case ei.CHECK:return m`<mdc-icon part="check check-icon"
1468
+ size="${ti.ICON_SIZE}"
1469
+ length-unit="${ti.ICON_LENGTH_UNIT}"
1470
+ name="${e}"></mdc-icon>`;case ei.CHECKBOX:return m`<mdc-staticcheckbox part="check"
1471
1471
  ?checked="${this.checked}"
1472
1472
  ?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return g}}renderHeader(){return this.cardTitle?m`<div part="header">
1473
1473
  ${this.renderIcon()}
@@ -1481,7 +1481,7 @@
1481
1481
  <slot name="body"></slot>
1482
1482
  <slot name="after-body"></slot>
1483
1483
  </div>
1484
- `}};hr.styles=[...Te.styles,...Un],n([l({type:Boolean,reflect:!0})],hr.prototype,"checked",2),n([l({type:String,attribute:"selection-type"})],hr.prototype,"selectionType",2);var da=hr;var Jd=[u`
1484
+ `}};fr.styles=[...Ae.styles,...Wn],n([l({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([l({type:String,attribute:"selection-type"})],fr.prototype,"selectionType",2);var ba=fr;var nm=[u`
1485
1485
  :host{
1486
1486
  margin: 0.125rem 0;
1487
1487
  border-radius: 0.125rem;
@@ -1538,15 +1538,15 @@
1538
1538
  border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
1539
1539
  }
1540
1540
  }
1541
- `],Fn=Jd;var Bn=f.constructTagName("checkbox"),Qo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Hn=f.constructTagName("staticcheckbox");var ur=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1541
+ `],Kn=nm;var Zn=f.constructTagName("checkbox"),ri={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Xn=f.constructTagName("staticcheckbox");var br=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?m`
1542
1542
  <mdc-icon
1543
1543
  class="icon"
1544
- name="${this.indeterminate?Qo.INDETERMINATE:Qo.CHECKED}"
1544
+ name="${this.indeterminate?ri.INDETERMINATE:ri.CHECKED}"
1545
1545
  size="1"
1546
1546
  length-unit="rem"
1547
1547
  ></mdc-icon>
1548
1548
  `:g;return m`<slot></slot>
1549
- <div part="icon-container">${e}</div>`}};ur.styles=[...v.styles,...Fn],n([l({type:Boolean,reflect:!0})],ur.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],ur.prototype,"indeterminate",2);var ma=ur;ma.register(Hn);var em=ma;da.register(Vn);var tm=da;var rm=u`
1549
+ <div part="icon-container">${e}</div>`}};br.styles=[...v.styles,...Kn],n([l({type:Boolean,reflect:!0})],br.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],br.prototype,"indeterminate",2);var ga=br;ga.register(Xn);var lm=ga;ba.register(qn);var cm=ba;var dm=u`
1550
1550
  :host {
1551
1551
  cursor: pointer;
1552
1552
  user-select: none;
@@ -1595,7 +1595,7 @@
1595
1595
  :host([disabled])::part(image){
1596
1596
  opacity: 0.5;
1597
1597
  }
1598
- `,Gn=[rm,..._()];var fr=class extends P(Re(Te)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="radio"}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
1598
+ `,jn=[dm,..._()];var gr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role="radio"}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
1599
1599
  ${this.renderIcon()}
1600
1600
  ${this.renderTitle()}
1601
1601
  <mdc-staticradio part="check"
@@ -1609,7 +1609,7 @@
1609
1609
  <slot name="body"></slot>
1610
1610
  <slot name="after-body"></slot>
1611
1611
  </div>
1612
- `}};fr.styles=[...Te.styles,...Gn],n([l({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([l({type:String})],fr.prototype,"name",2);var pa=fr;var Jo=f.constructTagName("cardradio");var om=[u`
1612
+ `}};gr.styles=[...Ae.styles,...jn],n([l({type:Boolean,reflect:!0})],gr.prototype,"checked",2),n([l({type:String})],gr.prototype,"name",2);var va=gr;var oi=f.constructTagName("cardradio");var mm=[u`
1613
1613
  :host{
1614
1614
  display: block;
1615
1615
  position: relative;
@@ -1692,9 +1692,9 @@
1692
1692
  :host([readonly][checked]) .icon:after{
1693
1693
  background-color: var(--mdc-staticradio-text-disabled-color);
1694
1694
  }
1695
- `],Yn=om;var br=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1695
+ `],Qn=mm;var vr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
1696
1696
  <slot></slot>
1697
- <span part="radio-icon" class="icon"></span>`}};br.styles=[...v.styles,...Yn],n([l({type:Boolean,reflect:!0})],br.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],br.prototype,"readonly",2);var ha=br;var Wn=f.constructTagName("staticradio");ha.register(Wn);var im=ha;pa.register(Jo);var am=pa;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([l({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var K=[];for(let i=0;i<256;++i)K.push((i+256).toString(16).slice(1));function qn(i,t=0){return(K[i[t+0]]+K[i[t+1]]+K[i[t+2]]+K[i[t+3]]+"-"+K[i[t+4]]+K[i[t+5]]+"-"+K[i[t+6]]+K[i[t+7]]+"-"+K[i[t+8]]+K[i[t+9]]+"-"+K[i[t+10]]+K[i[t+11]]+K[i[t+12]]+K[i[t+13]]+K[i[t+14]]+K[i[t+15]]).toLowerCase()}var ua,sm=new Uint8Array(16);function fa(){if(!ua){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ua=crypto.getRandomValues.bind(crypto)}return ua(sm)}var nm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ba={randomUUID:nm};function lm(i,t,e){var o,a,s;if(ba.randomUUID&&!t&&!i)return ba.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:fa();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 c=0;c<16;++c)t[e+c]=r[c];return t}return qn(r)}var We=lm;var le=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${We()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([l({reflect:!0,type:String})],t.prototype,"name",2),n([l({reflect:!0,type:String})],t.prototype,"value",2),n([l({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([Fe("input")],t.prototype,"inputElement",2),t};var Kn=f.constructTagName("formfieldwrapper"),W={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:W.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Ct={TAGNAME:w.SPAN,TYPE:T.BODY_MIDSIZE_REGULAR,HEADER_TYPE:T.BODY_MIDSIZE_BOLD};var cm=[N,u`
1697
+ <span part="radio-icon" class="icon"></span>`}};vr.styles=[...v.styles,...Qn],n([l({type:Boolean,reflect:!0})],vr.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],vr.prototype,"readonly",2);var ya=vr;var Jn=f.constructTagName("staticradio");ya.register(Jn);var pm=ya;va.register(oi);var hm=va;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([l({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var X=[];for(let i=0;i<256;++i)X.push((i+256).toString(16).slice(1));function el(i,t=0){return(X[i[t+0]]+X[i[t+1]]+X[i[t+2]]+X[i[t+3]]+"-"+X[i[t+4]]+X[i[t+5]]+"-"+X[i[t+6]]+X[i[t+7]]+"-"+X[i[t+8]]+X[i[t+9]]+"-"+X[i[t+10]]+X[i[t+11]]+X[i[t+12]]+X[i[t+13]]+X[i[t+14]]+X[i[t+15]]).toLowerCase()}var xa,um=new Uint8Array(16);function Ea(){if(!xa){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xa=crypto.getRandomValues.bind(crypto)}return xa(um)}var fm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ta={randomUUID:fm};function bm(i,t,e){var o,a,s;if(Ta.randomUUID&&!t&&!i)return Ta.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Ea();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 c=0;c<16;++c)t[e+c]=r[c];return t}return el(r)}var qe=bm;var ce=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${qe()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,n([l({reflect:!0,type:String})],t.prototype,"name",2),n([l({reflect:!0,type:String})],t.prototype,"value",2),n([l({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([Be("input")],t.prototype,"inputElement",2),t};var tl=f.constructTagName("formfieldwrapper"),q={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:q.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Nt={TAGNAME:C.SPAN,TYPE:E.BODY_MIDSIZE_REGULAR,HEADER_TYPE:E.BODY_MIDSIZE_BOLD};var gm=[w,u`
1698
1698
  :host {
1699
1699
  flex-direction: column;
1700
1700
  align-items: flex-start;
@@ -1747,22 +1747,22 @@
1747
1747
  :host([help-text-type='priority']) .mdc-help-text {
1748
1748
  color: var(--mds-color-theme-text-accent-normal);
1749
1749
  }
1750
- `],Zn=cm;var Xn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var qe=class extends P(v){constructor(){super(...arguments);this.id="";this.helpTextType=U.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${U.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1750
+ `],rl=gm;var ol=i=>({[q.ERROR]:"error-legacy-badge-filled",[q.WARNING]:"warning-badge-filled",[q.SUCCESS]:"check-circle-badge-filled",[q.PRIORITY]:"priority-badge-filled",[q.DEFAULT]:""})[i]||"";var Ke=class extends P(v){constructor(){super(...arguments);this.id="";this.helpTextType=U.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${U.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
1751
1751
  id="${U.HEADING_ID}"
1752
- tagname="${Ct.TAGNAME}"
1753
- type="${Ct.HEADER_TYPE}"
1752
+ tagname="${Nt.TAGNAME}"
1753
+ type="${Nt.HEADER_TYPE}"
1754
1754
  part="label"
1755
1755
  >${this.label}</mdc-text
1756
1756
  >`:g}renderRequiredLabel(){return this.requiredLabel?m`
1757
- <mdc-text part="required-label" tagname=${Ct.TAGNAME} type=${Ct.TYPE}>
1757
+ <mdc-text part="required-label" tagname=${Nt.TAGNAME} type=${Nt.TYPE}>
1758
1758
  (${this.requiredLabel})
1759
1759
  </mdc-text>
1760
- `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=Xn(this.helpTextType||U.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1760
+ `:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=ol(this.helpTextType||U.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
1761
1761
  <mdc-text
1762
1762
  id="${U.HELPER_TEXT_ID}"
1763
1763
  part="help-text"
1764
- tagname=${Ct.TAGNAME}
1765
- type=${Ct.TYPE}
1764
+ tagname=${Nt.TAGNAME}
1765
+ type=${Nt.TYPE}
1766
1766
  >
1767
1767
  ${this.helpText}
1768
1768
  </mdc-text>
@@ -1773,7 +1773,7 @@
1773
1773
  </div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
1774
1774
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1775
1775
  <slot name="help-text">${this.renderHelpText()}</slot>
1776
- </div>`:g}};qe.styles=[...v.styles,...Zn],n([l({reflect:!0,type:String})],qe.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"required-label"})],qe.prototype,"requiredLabel",2),n([l({type:String})],qe.prototype,"id",2),n([l({reflect:!0,attribute:"help-text-type"})],qe.prototype,"helpTextType",2),n([l({type:String,reflect:!0,attribute:"help-text"})],qe.prototype,"helpText",2);var J=qe;var dm=[u`
1776
+ </div>`:g}};Ke.styles=[...v.styles,...rl],n([l({reflect:!0,type:String})],Ke.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"required-label"})],Ke.prototype,"requiredLabel",2),n([l({type:String})],Ke.prototype,"id",2),n([l({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),n([l({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2);var te=Ke;var vm=[u`
1777
1777
  :host {
1778
1778
  --mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
1779
1779
  --mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
@@ -1840,7 +1840,7 @@
1840
1840
  }
1841
1841
 
1842
1842
 
1843
- `,..._(!0)],jn=dm;var kt=class extends le(V(J)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1843
+ `,..._(!0)],il=vm;var wt=class extends ce(V(te)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
1844
1844
  ${this.renderLabel()}
1845
1845
  ${this.renderHelperText()}
1846
1846
  </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return m`
@@ -1869,7 +1869,7 @@
1869
1869
  />
1870
1870
  </mdc-staticcheckbox>
1871
1871
  ${this.renderLabelAndHelperText()}
1872
- `}};kt.styles=[...J.styles,...jn],n([l({type:Boolean,reflect:!0})],kt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],kt.prototype,"indeterminate",2),n([l({type:Boolean,reflect:!0})],kt.prototype,"autofocus",2);var ga=kt;ga.register(Bn);var mm=ga;var pm=u`
1872
+ `}};wt.styles=[...te.styles,...il],n([l({type:Boolean,reflect:!0})],wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"indeterminate",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"autofocus",2);var Aa=wt;Aa.register(Zn);var ym=Aa;var xm=u`
1873
1873
  :host {
1874
1874
  height: 1.5rem;
1875
1875
  gap: 0.25rem;
@@ -2006,15 +2006,15 @@
2006
2006
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2007
2007
  cursor: auto;
2008
2008
  }
2009
- `,Qn=[N,pm,..._()];var Jn=f.constructTagName("chip"),hm={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},gr={COLOR:hm.DEFAULT,TEXT_TYPE:T.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,SIZE:Vr[24],ROLE:"button"};var vr=class extends ae(ie){constructor(){super(...arguments);this.color=gr.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=gr.ROLE,this.size=gr.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
2009
+ `,al=[w,xm,..._()];var sl=f.constructTagName("chip"),Em={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},yr={COLOR:Em.DEFAULT,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var xr=class extends ne(se){constructor(){super(...arguments);this.color=yr.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=yr.ROLE,this.size=yr.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
2010
2010
  <mdc-icon
2011
2011
  name="${this.iconName}"
2012
2012
  length-unit="rem"
2013
2013
  size="1"></mdc-icon>
2014
2014
  `:g}render(){return m`
2015
2015
  ${this.renderIcon()}
2016
- <mdc-text type="${gr.TEXT_TYPE}" tagname="${gr.TAG_NAME}">${this.label}</mdc-text>
2017
- `}};vr.styles=[...v.styles,...Qn],n([l({type:String,reflect:!0})],vr.prototype,"color",2),n([l({type:String})],vr.prototype,"label",2);var yr=vr;yr.register(Jn);var um=yr;var Me=Math.min,ee=Math.max,Jr=Math.round,eo=Math.floor,Ae=i=>({x:i,y:i}),fm={left:"right",right:"left",bottom:"top",top:"bottom"},bm={start:"end",end:"start"};function ti(i,t,e){return ee(i,Me(t,e))}function wt(i,t){return typeof i=="function"?i(t):i}function Ke(i){return i.split("-")[0]}function Nt(i){return i.split("-")[1]}function va(i){return i==="x"?"y":"x"}function ri(i){return i==="y"?"height":"width"}function dt(i){return["top","bottom"].includes(Ke(i))?"y":"x"}function oi(i){return va(dt(i))}function el(i,t,e){e===void 0&&(e=!1);let r=Nt(i),o=oi(i),a=ri(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Qr(s)),[s,Qr(s)]}function tl(i){let t=Qr(i);return[ei(i),t,ei(t)]}function ei(i){return i.replace(/start|end/g,t=>bm[t])}function gm(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function rl(i,t,e,r){let o=Nt(i),a=gm(Ke(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ei)))),a}function Qr(i){return i.replace(/left|right|bottom|top/g,t=>fm[t])}function vm(i){return{top:0,right:0,bottom:0,left:0,...i}}function ya(i){return typeof i!="number"?vm(i):{top:i,right:i,bottom:i,left:i}}function _t(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function ol(i,t,e){let{reference:r,floating:o}=i,a=dt(t),s=oi(t),c=ri(s),d=Ke(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(Nt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var il=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=ol(p,r,d),x=r,y={},E=0;for(let S=0;S<c.length;S++){let{name:C,fn:I}=c[S],{x:k,y:O,data:H,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=k!=null?k:h,b=O!=null?O:b,y={...y,[C]:{...y[C],...H}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=ol(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function ii(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=wt(t,i),E=ya(y),C=c[x?b==="floating"?"reference":"floating":b],I=_t(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(C)))==null||e?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),k=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=_t(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:O,strategy:d}):k);return{top:(I.top-z.top+E.top)/H.y,bottom:(z.bottom-I.bottom+E.bottom)/H.y,left:(I.left-z.left+E.left)/H.x,right:(z.right-I.right+E.right)/H.x}}var al=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=wt(i,t)||{};if(p==null)return{};let b=ya(h),x={x:e,y:r},y=oi(o),E=ri(y),S=await s.getDimensions(p),C=y==="y",I=C?"top":"left",k=C?"bottom":"right",O=C?"clientHeight":"clientWidth",H=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],fe=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),ye=fe?fe[O]:0;(!ye||!await(s.isElement==null?void 0:s.isElement(fe)))&&(ye=c.floating[O]||a.floating[E]);let De=H/2-z/2,we=ye/2-S[E]/2-1,xe=Me(b[I],we),et=Me(b[k],we),Ne=xe,tt=ye-S[E]-et,j=ye/2-S[E]/2+De,Xt=ti(Ne,j,tt),$e=!d.arrow&&Nt(o)!=null&&j!==Xt&&a.reference[E]/2-(j<Ne?xe:et)-S[E]/2<0,_e=$e?j<Ne?j-Ne:j-tt:0;return{[y]:x[y]+_e,data:{[y]:Xt,centerOffset:j-Xt-_e,...$e&&{alignmentOffset:_e}},reset:$e}}});var sl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=wt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ke(o),k=dt(c),O=Ke(c)===c,H=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[Qr(c)]:tl(c)),fe=E!=="none";!x&&fe&&z.push(...rl(c,S,E,H));let ye=[c,...z],De=await ii(t,C),we=[],xe=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&we.push(De[I]),b){let j=el(o,s,H);we.push(De[j[0]],De[j[1]])}if(xe=[...xe,{placement:o,overflows:we}],!we.every(j=>j<=0)){var et,Ne;let j=(((et=a.flip)==null?void 0:et.index)||0)+1,Xt=ye[j];if(Xt)return{data:{index:j,overflows:xe},reset:{placement:Xt}};let $e=(Ne=xe.filter(_e=>_e.overflows[0]<=0).sort((_e,rt)=>_e.overflows[1]-rt.overflows[1])[0])==null?void 0:Ne.placement;if(!$e)switch(y){case"bestFit":{var tt;let _e=(tt=xe.filter(rt=>{if(fe){let ot=dt(rt.placement);return ot===k||ot==="y"}return!0}).map(rt=>[rt.placement,rt.overflows.filter(ot=>ot>0).reduce((ot,td)=>ot+td,0)]).sort((rt,ot)=>rt[1]-ot[1])[0])==null?void 0:tt[0];_e&&($e=_e);break}case"initialPlacement":$e=c;break}if(o!==$e)return{reset:{placement:$e}}}return{}}}};async function ym(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ke(e),c=Nt(e),d=dt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=wt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof E=="number"&&(y=c==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var nl=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await ym(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},ll=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:C=>{let{x:I,y:k}=C;return{x:I,y:k}}},...d}=wt(i,t),p={x:e,y:r},h=await ii(t,d),b=dt(Ke(o)),x=va(b),y=p[x],E=p[b];if(a){let C=x==="y"?"top":"left",I=x==="y"?"bottom":"right",k=y+h[C],O=y-h[I];y=ti(k,y,O)}if(s){let C=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+h[C],O=E-h[I];E=ti(k,E,O)}let S=c.fn({...t,[x]:y,[b]:E});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var cl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=wt(i,t),h=await ii(t,p),b=Ke(o),x=Nt(o),y=dt(o)==="y",{width:E,height:S}=a.floating,C,I;b==="top"||b==="bottom"?(C=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,C=x==="end"?"top":"bottom");let k=S-h.top-h.bottom,O=E-h.left-h.right,H=Me(S-h[C],k),z=Me(E-h[I],O),fe=!t.middlewareData.shift,ye=H,De=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(De=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ye=k),fe&&!x){let xe=ee(h.left,0),et=ee(h.right,0),Ne=ee(h.top,0),tt=ee(h.bottom,0);y?De=E-2*(xe!==0||et!==0?xe+et:ee(h.left,h.right)):ye=S-2*(Ne!==0||tt!==0?Ne+tt:ee(h.top,h.bottom))}await d({...t,availableWidth:De,availableHeight:ye});let we=await s.getDimensions(c.floating);return E!==we.width||S!==we.height?{reset:{rects:!0}}:{}}}};function ai(){return typeof window<"u"}function Rt(i){return ml(i)?(i.nodeName||"").toLowerCase():"#document"}function ce(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Se(i){var t;return(t=(ml(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function ml(i){return ai()?i instanceof Node||i instanceof ce(i).Node:!1}function be(i){return ai()?i instanceof Element||i instanceof ce(i).Element:!1}function Ie(i){return ai()?i instanceof HTMLElement||i instanceof ce(i).HTMLElement:!1}function dl(i){return!ai()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof ce(i).ShadowRoot}function Er(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ge(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function pl(i){return["table","td","th"].includes(Rt(i))}function to(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function si(i){let t=ni(),e=be(i)?ge(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function hl(i){let t=Ze(i);for(;Ie(t)&&!Lt(t);){if(si(t))return t;if(to(t))return null;t=Ze(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lt(i){return["html","body","#document"].includes(Rt(i))}function ge(i){return ce(i).getComputedStyle(i)}function ro(i){return be(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Ze(i){if(Rt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||dl(i)&&i.host||Se(i);return dl(t)?t.host:t}function ul(i){let t=Ze(i);return Lt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ie(t)&&Er(t)?t:ul(t)}function xr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=ul(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=ce(o);if(a){let c=li(s);return t.concat(s,s.visualViewport||[],Er(o)?o:[],c&&e?xr(c):[])}return t.concat(o,xr(o,[],e))}function li(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function gl(i){let t=ge(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ie(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=Jr(e)!==a||Jr(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function Ea(i){return be(i)?i:i.contextElement}function Tr(i){let t=Ea(i);if(!Ie(t))return Ae(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=gl(t),s=(a?Jr(e.width):e.width)/r,c=(a?Jr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var xm=Ae(0);function vl(i){let t=ce(i);return!ni()||!t.visualViewport?xm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Em(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==ce(i)?!1:t}function Ot(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ea(i),s=Ae(1);t&&(r?be(r)&&(s=Tr(r)):s=Tr(i));let c=Em(a,e,r)?vl(a):Ae(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=ce(a),y=r&&be(r)?ce(r):r,E=x,S=li(E);for(;S&&r&&y!==E;){let C=Tr(S),I=S.getBoundingClientRect(),k=ge(S),O=I.left+(S.clientLeft+parseFloat(k.paddingLeft))*C.x,H=I.top+(S.clientTop+parseFloat(k.paddingTop))*C.y;d*=C.x,p*=C.y,h*=C.x,b*=C.y,d+=O,p+=H,E=ce(S),S=li(E)}}return _t({width:h,height:b,x:d,y:p})}function Ta(i,t){let e=ro(i).scrollLeft;return t?t.left+e:Ot(Se(i)).left+e}function yl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Ta(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Tm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Se(r),c=t?to(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Ae(1),h=Ae(0),b=Ie(r);if((b||!b&&!a)&&((Rt(r)!=="body"||Er(s))&&(d=ro(r)),Ie(r))){let y=Ot(r);p=Tr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?yl(s,d,!0):Ae(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Am(i){return Array.from(i.getClientRects())}function Sm(i){let t=Se(i),e=ro(i),r=i.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Ta(i),c=-e.scrollTop;return ge(r).direction==="rtl"&&(s+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Im(i,t){let e=ce(i),r=Se(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=ni();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Cm(i,t){let e=Ot(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ie(i)?Tr(i):Ae(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function fl(i,t,e){let r;if(t==="viewport")r=Im(i,e);else if(t==="document")r=Sm(Se(i));else if(be(t))r=Cm(t,e);else{let o=vl(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(r)}function xl(i,t){let e=Ze(i);return e===t||!be(e)||Lt(e)?!1:ge(e).position==="fixed"||xl(e,t)}function km(i,t){let e=t.get(i);if(e)return e;let r=xr(i,[],!1).filter(c=>be(c)&&Rt(c)!=="body"),o=null,a=ge(i).position==="fixed",s=a?Ze(i):i;for(;be(s)&&!Lt(s);){let c=ge(s),d=si(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Er(s)&&!d&&xl(i,s))?r=r.filter(h=>h!==s):o=c,s=Ze(s)}return t.set(i,r),r}function wm(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?to(t)?[]:km(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=fl(t,h,o);return p.top=ee(b.top,p.top),p.right=Me(b.right,p.right),p.bottom=Me(b.bottom,p.bottom),p.left=ee(b.left,p.left),p},fl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Nm(i){let{width:t,height:e}=gl(i);return{width:t,height:e}}function _m(i,t,e){let r=Ie(t),o=Se(t),a=e==="fixed",s=Ot(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Ae(0);if(r||!r&&!a)if((Rt(t)!=="body"||Er(o))&&(c=ro(t)),r){let x=Ot(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Ta(o));let p=o&&!r&&!a?yl(o,c):Ae(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function xa(i){return ge(i).position==="static"}function bl(i,t){if(!Ie(i)||ge(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Se(i)===e&&(e=e.ownerDocument.body),e}function El(i,t){let e=ce(i);if(to(i))return e;if(!Ie(i)){let o=Ze(i);for(;o&&!Lt(o);){if(be(o)&&!xa(o))return o;o=Ze(o)}return e}let r=bl(i,t);for(;r&&pl(r)&&xa(r);)r=bl(r,t);return r&&Lt(r)&&xa(r)&&!si(r)?e:r||hl(i)||e}var Rm=async function(i){let t=this.getOffsetParent||El,e=this.getDimensions,r=await e(i.floating);return{reference:_m(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Lm(i){return ge(i).direction==="rtl"}var Om={convertOffsetParentRelativeRectToViewportRelativeRect:Tm,getDocumentElement:Se,getClippingRect:wm,getOffsetParent:El,getElementRects:Rm,getClientRects:Am,getDimensions:Nm,getScale:Tr,isElement:be,isRTL:Lm};function Mm(i,t){let e=null,r,o=Se(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=eo(h),E=eo(o.clientWidth-(p+b)),S=eo(o.clientHeight-(h+x)),C=eo(p),k={rootMargin:-y+"px "+-E+"px "+-S+"px "+-C+"px",threshold:ee(0,Me(1,d))||1},O=!0;function H(z){let fe=z[0].intersectionRatio;if(fe!==d){if(!O)return s();fe?s(!1,fe):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(H,{...k,root:o.ownerDocument})}catch{e=new IntersectionObserver(H,k)}e.observe(i)}return s(!0),a}function Tl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Ea(i),h=o||a?[...p?xr(p):[],...xr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Mm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[k]=I;k&&k.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,S=d?Ot(i):null;d&&C();function C(){let I=Ot(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,E=requestAnimationFrame(C)}return e(),()=>{var I;h.forEach(k=>{o&&k.removeEventListener("scroll",e),a&&k.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var Al=nl;var Sl=ll,Il=sl,Cl=cl;var kl=al;var wl=(i,t,e)=>{let r=new Map,o={platform:Om,...e},a={...o.platform,_c:r};return il(i,t,{...o,platform:a})};var Nl=f.constructTagName("popover"),te={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"},Mt={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},oo={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:te.BOTTOM,TRIGGER:Mt.CLICK,COLOR:oo.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 _l=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var Dt=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 Aa=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=[]}},$t=new Aa;var Dm=u`
2016
+ <mdc-text type="${yr.TEXT_TYPE}" tagname="${yr.TAG_NAME}">${this.label}</mdc-text>
2017
+ `}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,re=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return re(i,De(t,e))}function _t(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function Lt(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=Lt(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=Lt(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(Lt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:N,y:O,data:G,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=N!=null?N:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...G}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=_t(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),N=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),G=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:O,strategy:d}):N);return{top:(I.top-z.top+T.top)/G.y,bottom:(z.bottom-I.bottom+T.bottom)/G.y,left:(I.left-z.left+T.left)/G.x,right:(z.right-I.right+T.right)/G.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=_t(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",N=k?"bottom":"right",O=k?"clientHeight":"clientWidth",G=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],be=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=be?be[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(be)))&&(xe=c.floating[O]||a.floating[T]);let $e=G/2-z/2,we=xe/2-S[T]/2-1,Ee=De(b[I],we),rt=De(b[N],we),_e=Ee,ot=xe-S[T]-rt,J=xe/2-S[T]/2+$e,Jt=ai(_e,J,ot),ze=!d.arrow&&Lt(o)!=null&&J!==Jt&&a.reference[T]/2-(J<_e?Ee:rt)-S[T]/2<0,Le=ze?J<_e?J-_e:J-ot:0;return{[y]:x[y]+Le,data:{[y]:Jt,centerOffset:J-Jt-Le,...ze&&{alignmentOffset:Le}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=_t(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),N=pt(c),O=Ze(c)===c,G=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),be=T!=="none";!x&&be&&z.push(...cl(c,S,T,G));let xe=[c,...z],$e=await li(t,k),we=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&we.push($e[I]),b){let J=nl(o,s,G);we.push($e[J[0]],$e[J[1]])}if(Ee=[...Ee,{placement:o,overflows:we}],!we.every(J=>J<=0)){var rt,_e;let J=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[J];if(Jt)return{data:{index:J,overflows:Ee},reset:{placement:Jt}};let ze=(_e=Ee.filter(Le=>Le.overflows[0]<=0).sort((Le,it)=>Le.overflows[1]-it.overflows[1])[0])==null?void 0:_e.placement;if(!ze)switch(y){case"bestFit":{var ot;let Le=(ot=Ee.filter(it=>{if(be){let at=pt(it.placement);return at===N||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];Le&&(ze=Le);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=Lt(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=_t(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:N}=k;return{x:I,y:N}}},...d}=_t(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",N=y+h[k],O=y-h[I];y=ai(N,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=T+h[k],O=T-h[I];T=ai(N,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=_t(i,t),h=await li(t,p),b=Ze(o),x=Lt(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let N=S-h.top-h.bottom,O=T-h.left-h.right,G=De(S-h[k],N),z=De(T-h[I],O),be=!t.middlewareData.shift,xe=G,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=N),be&&!x){let Ee=re(h.left,0),rt=re(h.right,0),_e=re(h.top,0),ot=re(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:re(h.left,h.right)):xe=S-2*(_e!==0||ot!==0?_e+ot:re(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let we=await s.getDimensions(c.floating);return T!==we.width||S!==we.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function ge(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ve(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=ge(i)?ve(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ve(i){return de(i).getComputedStyle(i)}function ao(i){return ge(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ve(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return ge(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Nm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?Nm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?ge(r)&&(s=Sr(r)):s=Sr(i));let c=wm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&ge(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),N=ve(S),O=I.left+(S.clientLeft+parseFloat(N.paddingLeft))*k.x,G=I.top+(S.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=G,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function Na(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Na(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function _m(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Lm(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Na(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=re(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(ge(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!ge(e)||Mt(e)?!1:ve(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>ge(c)&&Ot(c)!=="body"),o=null,a=ve(i).position==="fixed",s=a?Xe(i):i;for(;ge(s)&&!Mt(s);){let c=ve(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=re(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=re(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Na(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ve(i).position==="static"}function Al(i,t){if(!Ce(i)||ve(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function Nl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(ge(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||Nl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ve(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:_m,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:Nl,getElementRects:Um,getClientRects:Lm,getDimensions:zm,getScale:Sr,isElement:ge,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),N={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:re(0,De(1,d))||1},O=!0;function G(z){let be=z[0].intersectionRatio;if(be!==d){if(!O)return s();be?s(!1,be):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(G,{...N,root:o.ownerDocument})}catch{e=new IntersectionObserver(G,N)}e.observe(i)}return s(!0),a}function wl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[N]=I;N&&N.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(N=>{o&&N.removeEventListener("scroll",e),a&&N.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var _l=ul;var Ll=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),oe={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"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:oe.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.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 zt=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 wa=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=[]}},Pt=new wa;var Hm=u`
2018
2018
  :host {
2019
2019
  --mdc-popover-arrow-border-radius: 0.1875rem;
2020
2020
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2096,6 +2096,11 @@
2096
2096
  z-index: 9999;
2097
2097
  }
2098
2098
 
2099
+ :host(:dir(rtl)) .popover-close {
2100
+ right: auto;
2101
+ left: 0.75rem;
2102
+ }
2103
+
2099
2104
  .popover-arrow[data-side='top'] {
2100
2105
  border-top: none;
2101
2106
  border-left: none;
@@ -2123,7 +2128,7 @@
2123
2128
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2124
2129
  border-bottom-left-radius: 100%;
2125
2130
  }
2126
- `,Rl=[Dm];var ci=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),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)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,c=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(c[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
2131
+ `,zl=[Hm];var ui=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),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)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var t,e,r;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog"):(r=this.popover.triggerElement)==null||r.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var t,e;this.popover.disableAriaExpanded?(t=this.popover.triggerElement)==null||t.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(t,e){var h;if(!this.popover.arrowElement)return;let r=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,c=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let b=d!=null&&d[o]?12-Math.abs(c[o]-d[o]):0;Math.round(b)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
2127
2132
  .popover-backdrop {
2128
2133
  position: fixed;
2129
2134
  top: 0;
@@ -2133,7 +2138,7 @@
2133
2138
  background: transparent;
2134
2139
  z-index: ${this.popover.zIndex-1};
2135
2140
  }
2136
- `,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends _l(v){constructor(){super();this.id="";this.triggerID="";this.trigger=M.TRIGGER;this.placement=M.PLACEMENT;this.color=M.COLOR;this.visible=M.VISIBLE;this.offset=M.OFFSET;this.focusTrap=M.FOCUS_TRAP;this.preventScroll=M.PREVENT_SCROLL;this.showArrow=M.ARROW;this.closeButton=M.CLOSE_BUTTON;this.interactive=M.INTERACTIVE;this.delay=M.DELAY;this.hideOnEscape=M.HIDE_ON_ESCAPE;this.hideOnBlur=M.HIDE_ON_BLUR;this.hideOnOutsideClick=M.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=M.FOCUS_BACK;this.backdrop=M.BACKDROP;this.flip=M.FLIP;this.size=M.SIZE;this.zIndex=M.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=M.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=M.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if($t.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{$t.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 ci(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}`,Dt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Dt.onDestroyedPopover(this),$t.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),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(te).includes(this.placement)?this.placement:M.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(Mt).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:M.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(oo).includes(this.color)?this.color:M.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)$t.peek()!==this&&$t.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),Dt.onShowPopover(this);else{if($t.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let c=this.triggerElement.getAttribute("aria-haspopup");(c==="dialog"||c==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),Dt.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=[Sl()],r=this.offset;if(this.flip&&e.push(Il()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Cl({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(kl({element:this.arrowElement,padding:12}))}e.push(Al(r)),Tl(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:c}=await wl(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,c),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(c)})}render(){return m`
2141
+ `,e.appendChild(r),this.popover.backdropElement=e}}};var R=class extends hi(v){constructor(){super();this.id="";this.triggerID="";this.trigger=D.TRIGGER;this.placement=D.PLACEMENT;this.color=D.COLOR;this.visible=D.VISIBLE;this.offset=D.OFFSET;this.focusTrap=D.FOCUS_TRAP;this.preventScroll=D.PREVENT_SCROLL;this.showArrow=D.ARROW;this.closeButton=D.CLOSE_BUTTON;this.interactive=D.INTERACTIVE;this.delay=D.DELAY;this.hideOnEscape=D.HIDE_ON_ESCAPE;this.hideOnBlur=D.HIDE_ON_BLUR;this.hideOnOutsideClick=D.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=D.FOCUS_BACK;this.backdrop=D.BACKDROP;this.flip=D.FLIP;this.size=D.SIZE;this.zIndex=D.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=D.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=D.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(Pt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Pt.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 ui(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}`,zt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),zt.onDestroyedPopover(this),Pt.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),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(oe).includes(this.placement)?this.placement:D.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values($t).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:D.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(so).includes(this.color)?this.color:D.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(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)Pt.peek()!==this&&Pt.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),zt.onShowPopover(this);else{if(Pt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let c=this.triggerElement.getAttribute("aria-haspopup");(c==="dialog"||c==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),zt.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=[Ll()],r=this.offset;if(this.flip&&e.push(Rl()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Ol({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Ml({element:this.arrowElement,padding:12}))}e.push(_l(r)),wl(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:c}=await Dl(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,c),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(c)})}render(){return m`
2137
2142
  <div class="popover-hover-bridge"></div>
2138
2143
  ${this.closeButton?m` <mdc-button
2139
2144
  class="popover-close"
@@ -2147,7 +2152,152 @@
2147
2152
  <div part="popover-content">
2148
2153
  <slot></slot>
2149
2154
  </div>
2150
- `}};L.styles=[...v.styles,...Rl],n([l({type:String,reflect:!0})],L.prototype,"id",2),n([l({type:String,reflect:!0})],L.prototype,"triggerID",2),n([l({type:String,reflect:!0})],L.prototype,"trigger",2),n([l({type:String,reflect:!0})],L.prototype,"placement",2),n([l({type:String,reflect:!0})],L.prototype,"color",2),n([l({type:Boolean,reflect:!0})],L.prototype,"visible",2),n([l({type:Number,reflect:!0})],L.prototype,"offset",2),n([l({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),n([l({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),n([l({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0})],L.prototype,"interactive",2),n([l({type:String,reflect:!0})],L.prototype,"delay",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),n([l({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),n([l({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),n([l({type:Boolean,reflect:!0})],L.prototype,"flip",2),n([l({type:Boolean,reflect:!0})],L.prototype,"size",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),n([l({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),n([l({type:String,attribute:"close-button-aria-label",reflect:!0})],L.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0})],L.prototype,"role",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Ce=L;var Ll=f.constructTagName("coachmark"),zt={COLOR:oo.CONTRAST,TRIGGER:Mt.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Pt=class extends Ce{constructor(){super(...arguments);this.trigger=zt.TRIGGER;this.showArrow=zt.ARROW;this.closeButton=zt.CLOSE_BUTTON;this.disableAriaExpanded=zt.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=zt.COLOR,this.showArrow=zt.ARROW}};n([l({type:String,reflect:!0})],Pt.prototype,"trigger",2),n([l({type:Boolean,attribute:"show-arrow"})],Pt.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],Pt.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Pt.prototype,"disableAriaExpanded",2);var Sa=Pt;Sa.register(Ll);var $m=Sa;var Ol=f.constructTagName("divider"),io={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ia={SOLID:"solid",GRADIENT:"gradient"},mt={POSITIVE:"positive",NEGATIVE:"negative"},ao={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Ut={ORIENTATION:io.HORIZONTAL,VARIANT:Ia.SOLID,ARROW_DIRECTION:mt.NEGATIVE,BUTTON_DIRECTION:mt.NEGATIVE};var zm=[N,u`
2155
+ `}};R.styles=[...v.styles,...zl],n([l({type:String,reflect:!0})],R.prototype,"id",2),n([l({type:String,reflect:!0})],R.prototype,"triggerID",2),n([l({type:String,reflect:!0})],R.prototype,"trigger",2),n([l({type:String,reflect:!0})],R.prototype,"placement",2),n([l({type:String,reflect:!0})],R.prototype,"color",2),n([l({type:Boolean,reflect:!0})],R.prototype,"visible",2),n([l({type:Number,reflect:!0})],R.prototype,"offset",2),n([l({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),n([l({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),n([l({type:Boolean,reflect:!0,attribute:"show-arrow"})],R.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0})],R.prototype,"interactive",2),n([l({type:String,reflect:!0})],R.prototype,"delay",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),n([l({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),n([l({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),n([l({type:Boolean,reflect:!0})],R.prototype,"flip",2),n([l({type:Boolean,reflect:!0})],R.prototype,"size",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),n([l({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),n([l({type:String,attribute:"close-button-aria-label",reflect:!0})],R.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0})],R.prototype,"role",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],R.prototype,"disableAriaExpanded",2);var ke=R;var Pl=f.constructTagName("coachmark"),Ut={COLOR:so.CONTRAST,TRIGGER:$t.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Vt=class extends ke{constructor(){super(...arguments);this.trigger=Ut.TRIGGER;this.showArrow=Ut.ARROW;this.closeButton=Ut.CLOSE_BUTTON;this.disableAriaExpanded=Ut.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ut.COLOR,this.showArrow=Ut.ARROW}};n([l({type:String,reflect:!0})],Vt.prototype,"trigger",2),n([l({type:Boolean,attribute:"show-arrow"})],Vt.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],Vt.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Vt.prototype,"disableAriaExpanded",2);var _a=Vt;_a.register(Pl);var Gm=_a;var Ym=u`
2156
+ :host {
2157
+ --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
2158
+ --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
2159
+ --mdc-dialog-header-text-color: var(--mds-color-theme-text-primary-normal);
2160
+ --mdc-dialog-description-text-color: var(--mds-color-theme-text-secondary-normal);
2161
+ --mdc-dialog-elevation-3: var(--mds-elevation-3);
2162
+ --mdc-dialog-width: 27rem; /* Default to small */
2163
+
2164
+ background-color: var(--mdc-dialog-primary-background-color);
2165
+ border: 0.0625rem solid var(--mdc-dialog-border-color);
2166
+ border-radius: 0.5rem;
2167
+ filter: var(--mdc-dialog-elevation-3);
2168
+ display: none;
2169
+ padding: 1rem;
2170
+ flex-direction: column;
2171
+ justify-content: center;
2172
+ align-items: center;
2173
+ gap: 1rem;
2174
+ position: absolute;
2175
+ right: 50%;
2176
+ bottom: 50%;
2177
+ transform: translate(50%,50%);
2178
+ }
2179
+
2180
+
2181
+ :host([variant='promotional']){
2182
+ --mdc-dialog-border-color: var(--mds-color-theme-outline-promotion-normal);
2183
+ }
2184
+
2185
+ :host([visible]) {
2186
+ display: flex;
2187
+
2188
+ }
2189
+
2190
+ :host([size='medium']) {
2191
+ --mdc-dialog-width: 41rem;
2192
+ }
2193
+
2194
+ :host([size='large']) {
2195
+ --mdc-dialog-width: 62rem;
2196
+ }
2197
+
2198
+ :host {
2199
+ width: var(--mdc-dialog-width);
2200
+ max-width: 100%;
2201
+ }
2202
+
2203
+ :host::part(header),
2204
+ :host::part(body),
2205
+ :host::part(footer) {
2206
+ display: flex;
2207
+ align-self: stretch;
2208
+ }
2209
+
2210
+ :host::part(header) {
2211
+ flex-direction: column;
2212
+ align-items: flex-start;
2213
+ gap: 0.5rem;
2214
+ }
2215
+
2216
+ :host::part(header-text) {
2217
+ width: 23.625rem;
2218
+ color: var(--mdc-dialog-header-text-color);
2219
+ }
2220
+
2221
+ :host::part(description-text) {
2222
+ color: var(--mdc-dialog-description-text-color);
2223
+ }
2224
+
2225
+ :host::part(body) {
2226
+ flex-direction: column;
2227
+ justify-content: center;
2228
+ align-items: center;
2229
+ height: 100%
2230
+ }
2231
+
2232
+ :host::part(footer) {
2233
+ display: flex;
2234
+ gap: 0.5rem;
2235
+ align-items: center;
2236
+ justify-content: flex-end;
2237
+ }
2238
+
2239
+ ::slotted([slot='footer-link']),
2240
+ ::slotted([slot='footer-button-primary']),
2241
+ ::slotted([slot='footer-button-secondary']){
2242
+ margin-bottom: 0.5rem;
2243
+ }
2244
+
2245
+ :host::part(dialog-close-btn) {
2246
+ position: absolute;
2247
+ top: 1rem;
2248
+ right: 1rem;
2249
+ cursor: pointer;
2250
+ }
2251
+
2252
+ :host(:dir(rtl))::part(dialog-close-btn) {
2253
+ right: auto;
2254
+ left: 1rem;
2255
+ }
2256
+
2257
+ mdc-text::part(text) {
2258
+ margin: 0;
2259
+ }
2260
+ `,Ul=[Ym];var Vl=f.constructTagName("dialog"),Wm={DEFAULT:"default",PROMOTIONAL:"promotional"},je={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Wm.DEFAULT};var fi=class{constructor(t){this.dialog=t}setupAriaAttributes(){this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby?this.dialog.setAttribute("aria-labelledby",this.dialog.headerText):!this.dialog.headerText&&!this.dialog.ariaLabel&&!this.dialog.ariaLabelledby&&this.dialog.setAttribute("aria-labelledby",this.dialog.triggerId)}createBackdrop(){var r;let t=document.createElement("div");t.classList.add("dialog-backdrop");let e=document.createElement("style");e.textContent=`
2261
+ .dialog-backdrop {
2262
+ position: fixed;
2263
+ top: 0;
2264
+ left: 0;
2265
+ width: 100%;
2266
+ height: 100%;
2267
+ background: var(--mds-color-theme-common-overlays-secondary-normal);
2268
+ z-index: ${this.dialog.zIndex-1};
2269
+ }
2270
+ `,t.appendChild(e),(r=this.dialog.parentElement)==null||r.appendChild(t),this.dialog.backdropElement=t}};var Ft=class{static dispatchDialogEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(t){this.dispatchDialogEvent("shown",t)}static onHideDialog(t){this.dispatchDialogEvent("hidden",t)}static onCreatedDialog(t){this.dispatchDialogEvent("created",t)}static onDestroyedDialog(t){this.dispatchDialogEvent("destroyed",t)}};var K=class extends hi(Qo(v)){constructor(){super();this.id="";this.triggerId="";this.visible=je.VISIBLE;this.zIndex=je.Z_INDEX;this.size=je.SIZE;this.variant=je.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerText="";this.descriptionText="";this.headerTagName=je.HEADER_TAG_NAME;this.descriptionTagName=je.DESCRIPTION_TAG_NAME;this.role=je.ROLE;this.triggerElement=null;this.backdropElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.utils=new fi(this),document.addEventListener("keydown",this.onEscapeKeydown)}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.utils.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Ft.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Ft.onDestroyedDialog(this)}setupTriggerListener(){this.triggerId&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog))}removeEventListeners(){this.triggerElement&&this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAriaAttributes()}async isOpenUpdated(e,r){var o,a,s;e===r||!this.triggerElement||(r?(this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.utils.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Ft.onShowDialog(this)):((o=this.backdropElement)==null||o.remove(),this.backdropElement=null,(a=this.deactivateFocusTrap)==null||a.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),(s=this.triggerElement)==null||s.focus(),Ft.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,r;this.visible&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}render(){var e;return m`
2271
+ ${this.headerText?m`
2272
+ <div part="header">
2273
+ <mdc-text
2274
+ part="header-text"
2275
+ tagname="${C[this.headerTagName.toUpperCase()]}"
2276
+ type="${E.BODY_LARGE_BOLD}"
2277
+ >
2278
+ ${this.headerText}
2279
+ </mdc-text>
2280
+ <mdc-text
2281
+ part="description-text"
2282
+ tagname="${C[this.descriptionTagName.toUpperCase()]}"
2283
+ type="${E.BODY_MIDSIZE_REGULAR}"
2284
+ >
2285
+ ${(e=this.descriptionText)!=null?e:g}
2286
+ </mdc-text>
2287
+ </div>`:g}
2288
+ <mdc-button
2289
+ part="dialog-close-btn"
2290
+ prefix-icon="${je.CANCEL_ICON}"
2291
+ variant="${Z.TERTIARY}"
2292
+ size="${ct[20]}"
2293
+ aria-label="${A(this.closeButtonAriaLabel)||""}"
2294
+ @click="${this.hideDialog}"
2295
+ ></mdc-button>
2296
+ <div part="body">
2297
+ <slot name="dialog-body"></slot>
2298
+ </div>
2299
+ ${this.renderFooter()}
2300
+ `}};K.styles=[...v.styles,...Ul],n([l({type:String,reflect:!0})],K.prototype,"id",2),n([l({type:String,reflect:!0})],K.prototype,"triggerId",2),n([l({type:Boolean,reflect:!0})],K.prototype,"visible",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],K.prototype,"zIndex",2),n([l({type:String,reflect:!0})],K.prototype,"size",2),n([l({type:String,reflect:!0})],K.prototype,"variant",2),n([l({type:String,attribute:"close-button-aria-label"})],K.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],K.prototype,"ariaLabel",2),n([l({type:String,reflect:!0,attribute:"header-text"})],K.prototype,"headerText",2),n([l({type:String,reflect:!0,attribute:"description-text"})],K.prototype,"descriptionText",2),n([l({type:String,reflect:!0,attribute:"header-tag-name"})],K.prototype,"headerTagName",2),n([l({type:String,reflect:!0,attribute:"description-tag-name"})],K.prototype,"descriptionTagName",2),n([l({type:String,reflect:!0})],K.prototype,"role",2);var La=K;La.register(Vl);var qm=La;var Fl=f.constructTagName("divider"),no={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ra={SOLID:"solid",GRADIENT:"gradient"},ht={POSITIVE:"positive",NEGATIVE:"negative"},lo={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Bt={ORIENTATION:no.HORIZONTAL,VARIANT:Ra.SOLID,ARROW_DIRECTION:ht.NEGATIVE,BUTTON_DIRECTION:ht.NEGATIVE};var Km=[w,u`
2151
2301
  :host {
2152
2302
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
2153
2303
  --mdc-divider-width: 0.0625rem;
@@ -2358,11 +2508,11 @@
2358
2508
  font-size: var(--mdc-divider-text-size);
2359
2509
  line-height: var(--mdc-divider-text-line-height);
2360
2510
  }
2361
- `],Ml=zm;var pt=class extends v{constructor(){super(...arguments);this.orientation=Ut.ORIENTATION;this.variant=Ut.VARIANT;this.arrowDirection=Ut.ARROW_DIRECTION;this.buttonPosition=Ut.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Ia).includes(e)?e:Ut.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(io).includes(e)?e:Ut.ORIENTATION)}ensureValidDirections(){let e=this.orientation===io.HORIZONTAL?mt.NEGATIVE:mt.POSITIVE;Object.values(mt).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(mt).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===io.HORIZONTAL,r=this.arrowDirection===mt.POSITIVE;return e?r?ao.UP:ao.DOWN:r?ao.RIGHT:ao.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 s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(c=>c.tagName===Br.toUpperCase()),a=r.some(c=>c.tagName===At.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2511
+ `],Bl=Km;var ut=class extends v{constructor(){super(...arguments);this.orientation=Bt.ORIENTATION;this.variant=Bt.VARIANT;this.arrowDirection=Bt.ARROW_DIRECTION;this.buttonPosition=Bt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Ra).includes(e)?e:Bt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(no).includes(e)?e:Bt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===no.HORIZONTAL?ht.NEGATIVE:ht.POSITIVE;Object.values(ht).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ht).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===no.HORIZONTAL,r=this.arrowDirection===ht.POSITIVE;return e?r?lo.UP:lo.DOWN:r?lo.RIGHT:lo.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 s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(c=>c.tagName===Gr.toUpperCase()),a=r.some(c=>c.tagName===It.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
2362
2512
  <div></div>
2363
2513
  <slot @slotchange=${this.inferDividerType}></slot>
2364
2514
  <div></div>
2365
- `}};pt.styles=[...v.styles,...Ml],n([l({type:String,reflect:!0})],pt.prototype,"orientation",2),n([l({type:String,reflect:!0})],pt.prototype,"variant",2),n([l({type:String,attribute:"arrow-direction",reflect:!0})],pt.prototype,"arrowDirection",2),n([l({type:String,attribute:"button-position",reflect:!0})],pt.prototype,"buttonPosition",2);var Ca=pt;Ca.register(Ol);var Pm=Ca;var Um=u`
2515
+ `}};ut.styles=[...v.styles,...Bl],n([l({type:String,reflect:!0})],ut.prototype,"orientation",2),n([l({type:String,reflect:!0})],ut.prototype,"variant",2),n([l({type:String,attribute:"arrow-direction",reflect:!0})],ut.prototype,"arrowDirection",2),n([l({type:String,attribute:"button-position",reflect:!0})],ut.prototype,"buttonPosition",2);var Oa=ut;Oa.register(Fl);var Zm=Oa;var Xm=u`
2366
2516
  :host([selected]){
2367
2517
  border: 2px solid;
2368
2518
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -2382,7 +2532,7 @@
2382
2532
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2383
2533
  cursor: auto;
2384
2534
  }
2385
- `,Dl=[Um];var $l=f.constructTagName("filterchip"),ka={ICON_NAME:"check-bold",COLOR:"default"};var so=class extends yr{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=ka.COLOR}setSelected(e){e?(this.iconName=ka.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)}};so.styles=[...yr.styles,...Dl],n([l({type:Boolean,reflect:!0})],so.prototype,"selected",2);var wa=so;wa.register($l);var Vm=wa;var re={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var Fm=u`
2535
+ `,Hl=[Xm];var Gl=f.constructTagName("filterchip"),Ma={ICON_NAME:"check-bold",COLOR:"default"};var co=class extends Er{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ma.COLOR}setSelected(e){e?(this.iconName=Ma.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)}};co.styles=[...Er.styles,...Hl],n([l({type:Boolean,reflect:!0})],co.prototype,"selected",2);var Da=co;Da.register(Gl);var jm=Da;var ie={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var Qm=u`
2386
2536
 
2387
2537
  :host::part(container) {
2388
2538
  display: flex;
@@ -2399,10 +2549,10 @@
2399
2549
  :host::part(label-text){
2400
2550
  font-weight: bold;
2401
2551
  }
2402
- `,zl=[Fm];var di=class extends V(J){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 m`
2552
+ `,Yl=[Qm];var bi=class extends V(te){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 m`
2403
2553
  <div
2404
2554
  part="container"
2405
- role="${this.isRadio?re.RADIOGROUP:re.GROUP}"
2555
+ role="${this.isRadio?ie.RADIOGROUP:ie.GROUP}"
2406
2556
  aria-labelledby="${U.HEADING_ID}"
2407
2557
  aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
2408
2558
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
@@ -2413,7 +2563,7 @@
2413
2563
  </div>
2414
2564
  <slot></slot>
2415
2565
  </div>
2416
- `}};di.styles=[...J.styles,...zl];var Na=di;var Pl=f.constructTagName("formfieldgroup");Na.register(Pl);var mi=Na;Hr.register($o);var Bm=Hr;var Hm=[u`
2566
+ `}};bi.styles=[...te.styles,...Yl];var $a=bi;var Wl=f.constructTagName("formfieldgroup");$a.register(Wl);var gi=$a;Yr.register(Uo);var Jm=Yr;var ep=[u`
2417
2567
  :host{
2418
2568
  --mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
2419
2569
  --mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -2529,30 +2679,30 @@
2529
2679
  opacity: 0;
2530
2680
  pointer-events: none;
2531
2681
  }
2532
- `,..._(!0)],Ul=Hm;J.register(Kn);var ve=J;var Vl=f.constructTagName("input"),pi={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},_a={OFF:"off",ON:"on"},Ra={TEXT:"text",SEARCH:"search"},Fl={MAX_LENGTH:10,VALIDATION:W.ERROR},Xe={VALIDATION:W.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:se.TERTIARY,CLEAR_BUTTON_SIZE:nr[20],PREFIX_TEXT_TYPE:T.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:w.SPAN,AUTO_COMPLETE:_a.OFF,INPUT_TYPE:Ra.TEXT};var F=class extends le(V(ve)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=pi.OFF;this.autocomplete=_a.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2682
+ `,..._(!0)],ql=ep;te.register(tl);var ye=te;var Kl=f.constructTagName("input"),vi={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},za={OFF:"off",ON:"on"},Pa={TEXT:"text",SEARCH:"search"},Zl={MAX_LENGTH:10,VALIDATION:q.ERROR},Qe={VALIDATION:q.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Z.TERTIARY,CLEAR_BUTTON_SIZE:ct[20],PREFIX_TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:za.OFF,INPUT_TYPE:Pa.TEXT};var B=class extends ce(V(ye)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=vi.OFF;this.autocomplete=za.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
2533
2683
  <mdc-icon
2534
2684
  class="leading-icon"
2535
2685
  part="leading-icon"
2536
2686
  name=${this.leadingIcon}
2537
- size="${Xe.ICON_SIZE_VALUE}"
2538
- length-unit="${Xe.ICON_SIZE_UNIT}">
2687
+ size="${Qe.ICON_SIZE_VALUE}"
2688
+ length-unit="${Qe.ICON_SIZE_UNIT}">
2539
2689
  </mdc-icon>
2540
2690
  `:g}renderPrefixText(){return this.prefixText?m`
2541
2691
  <mdc-text
2542
2692
  class="prefix-text"
2543
- tagname="${Xe.PREFIX_TEXT_TAG}"
2544
- type="${Xe.PREFIX_TEXT_TYPE}"
2693
+ tagname="${Qe.PREFIX_TEXT_TAG}"
2694
+ type="${Qe.PREFIX_TEXT_TYPE}"
2545
2695
  aria-hidden="true"
2546
2696
  >
2547
- ${this.prefixText.slice(0,Fl.MAX_LENGTH)}
2697
+ ${this.prefixText.slice(0,Zl.MAX_LENGTH)}
2548
2698
  </mdc-text>
2549
2699
  `:g}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let r=e||this.value&&this.trailingButton;return r?m`
2550
2700
  <mdc-button
2551
2701
  part='trailing-button'
2552
2702
  class='own-focus-ring ${r?"":"hidden"}'
2553
- prefix-icon='${Xe.CLEAR_BUTTON_ICON}'
2554
- variant='${Xe.CLEAR_BUTTON_VARIANT}'
2555
- size="${Xe.CLEAR_BUTTON_SIZE}"
2703
+ prefix-icon='${Qe.CLEAR_BUTTON_ICON}'
2704
+ variant='${Qe.CLEAR_BUTTON_VARIANT}'
2705
+ size="${Qe.CLEAR_BUTTON_SIZE}"
2556
2706
  aria-label="${this.clearAriaLabel}"
2557
2707
  @click=${this.clearInputText}
2558
2708
  ?disabled=${this.disabled||this.readonly||!r}
@@ -2589,12 +2739,12 @@
2589
2739
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
2590
2740
  <div class="input-section" part="input-section">
2591
2741
  <slot name="input-prefix-text">${this.renderPrefixText()}</slot>
2592
- <slot name="input">${this.renderInputElement(Xe.INPUT_TYPE)}</slot>
2742
+ <slot name="input">${this.renderInputElement(Qe.INPUT_TYPE)}</slot>
2593
2743
  </div>
2594
2744
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
2595
2745
  </div>
2596
2746
  ${this.helpText?this.renderHelperText():g}
2597
- `}};F.styles=[...ve.styles,...Ul],n([l({type:String})],F.prototype,"placeholder",2),n([l({type:Boolean})],F.prototype,"readonly",2),n([l({type:String,attribute:"prefix-text"})],F.prototype,"prefixText",2),n([l({type:String,attribute:"leading-icon"})],F.prototype,"leadingIcon",2),n([l({type:Boolean,attribute:"trailing-button"})],F.prototype,"trailingButton",2),n([l({type:Number})],F.prototype,"maxlength",2),n([l({type:Number})],F.prototype,"minlength",2),n([l({type:String})],F.prototype,"autocapitalize",2),n([l({type:String})],F.prototype,"autocomplete",2),n([l({type:Boolean})],F.prototype,"autofocus",2),n([l({type:String})],F.prototype,"dirname",2),n([l({type:String})],F.prototype,"pattern",2),n([l({type:String})],F.prototype,"list",2),n([l({type:Number})],F.prototype,"size",2),n([l({type:String,attribute:"clear-aria-label"})],F.prototype,"clearAriaLabel",2);var Ar=F;Ar.register(Vl);var Gm=Ar;var Ym=u`
2747
+ `}};B.styles=[...ye.styles,...ql],n([l({type:String})],B.prototype,"placeholder",2),n([l({type:Boolean})],B.prototype,"readonly",2),n([l({type:String,attribute:"prefix-text"})],B.prototype,"prefixText",2),n([l({type:String,attribute:"leading-icon"})],B.prototype,"leadingIcon",2),n([l({type:Boolean,attribute:"trailing-button"})],B.prototype,"trailingButton",2),n([l({type:Number})],B.prototype,"maxlength",2),n([l({type:Number})],B.prototype,"minlength",2),n([l({type:String})],B.prototype,"autocapitalize",2),n([l({type:String})],B.prototype,"autocomplete",2),n([l({type:Boolean})],B.prototype,"autofocus",2),n([l({type:String})],B.prototype,"dirname",2),n([l({type:String})],B.prototype,"pattern",2),n([l({type:String})],B.prototype,"list",2),n([l({type:Number})],B.prototype,"size",2),n([l({type:String,attribute:"clear-aria-label"})],B.prototype,"clearAriaLabel",2);var Ir=B;Ir.register(Kl);var tp=Ir;var rp=u`
2598
2748
  :host {
2599
2749
  height: 1.5rem;
2600
2750
  gap: 0.25rem;
@@ -2623,24 +2773,24 @@
2623
2773
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
2624
2774
  cursor: auto;
2625
2775
  }
2626
- `,Bl=[N,Ym];var hi=f.constructTagName("inputchip"),ui={TEXT_TYPE:T.BODY_MIDSIZE_REGULAR,TAG_NAME:w.SPAN,CLOSE_ICON:"cancel-bold"};var Vt=class extends ae(P(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2776
+ `,Xl=[w,rp];var yi=f.constructTagName("inputchip"),xi={TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var Ht=class extends ne(P(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
2627
2777
  <mdc-icon
2628
2778
  name="${this.iconName}"
2629
2779
  length-unit="rem"
2630
2780
  size="1"></mdc-icon>
2631
2781
  `:g}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return m`
2632
2782
  ${this.renderIcon()}
2633
- <mdc-text part="label" type="${ui.TEXT_TYPE}" tagname="${ui.TAG_NAME}">${this.label}</mdc-text>
2783
+ <mdc-text part="label" type="${xi.TEXT_TYPE}" tagname="${xi.TAG_NAME}">${this.label}</mdc-text>
2634
2784
  <mdc-button
2635
2785
  ?disabled="${this.disabled}"
2636
2786
  variant="tertiary"
2637
2787
  part="close-icon"
2638
2788
  aria-label="${this.clearAriaLabel}"
2639
- prefix-icon="${ui.CLOSE_ICON}"
2789
+ prefix-icon="${xi.CLOSE_ICON}"
2640
2790
  size="20"
2641
2791
  @click="${this.handleClose}"
2642
2792
  ></mdc-button>
2643
- `}};Vt.styles=[...v.styles,...Bl],n([l({type:String})],Vt.prototype,"label",2),n([l({type:Boolean})],Vt.prototype,"error",2),n([l({type:String,attribute:"clear-aria-label"})],Vt.prototype,"clearAriaLabel",2);var La=Vt;La.register(hi);var Wm=La;var qm=u`
2793
+ `}};Ht.styles=[...v.styles,...Xl],n([l({type:String})],Ht.prototype,"label",2),n([l({type:Boolean})],Ht.prototype,"error",2),n([l({type:String,attribute:"clear-aria-label"})],Ht.prototype,"clearAriaLabel",2);var Ua=Ht;Ua.register(yi);var op=Ua;var ip=u`
2644
2794
  :host {
2645
2795
  gap: 0.25rem;
2646
2796
  }
@@ -2698,7 +2848,7 @@
2698
2848
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
2699
2849
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
2700
2850
  }
2701
- `,Hl=[qm];var no=class extends ae(lt){constructor(){super(...arguments);this.size=Dn.LINK_SIZE}getIconSize(){switch(this.size){case Wo.SMALL:return qo.SMALL;case Wo.MIDSIZE:return qo.MIDSIZE;default:return qo.LARGE}}render(){return m`
2851
+ `,jl=[ip];var mo=class extends ne(mt){constructor(){super(...arguments);this.size=Bn.LINK_SIZE}getIconSize(){switch(this.size){case Zo.SMALL:return Xo.SMALL;case Zo.MIDSIZE:return Xo.MIDSIZE;default:return Xo.LARGE}}render(){return m`
2702
2852
  <slot></slot>
2703
2853
  ${this.iconName?m`
2704
2854
  <mdc-icon
@@ -2707,27 +2857,27 @@
2707
2857
  length-unit="rem"
2708
2858
  ></mdc-icon>
2709
2859
  `:g}
2710
- `}};no.styles=[...lt.styles,...Hl],n([l({type:String,reflect:!0})],no.prototype,"size",2);var Oa=no;Oa.register(Yo);var Km=Oa;lt.register(Rn);var Zm=lt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var fi=f.constructTagName("listitem"),Ma="dynamic-listitem-tooltip-popover",Da="dynamic-listitem-tooltip-triggerid",lo={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},$a={VARIANT:lo.FULL_WIDTH,TOOLTIP_PLACEMENT:te.TOP};var Gl=f.constructTagName("list"),za="header-id";var Xm=u`
2860
+ `}};mo.styles=[...mt.styles,...jl],n([l({type:String,reflect:!0})],mo.prototype,"size",2);var Va=mo;Va.register(Ko);var ap=Va;mt.register(Pn);var sp=mt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var Ei=f.constructTagName("listitem"),Fa="dynamic-listitem-tooltip-popover",Ba="dynamic-listitem-tooltip-triggerid",po={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ha={VARIANT:po.FULL_WIDTH,TOOLTIP_PLACEMENT:oe.TOP};var Ql=f.constructTagName("list"),Ga="header-id";var np=u`
2711
2861
  :host::part(header-text) {
2712
2862
  padding: 0.5rem 0.75rem;
2713
2863
  }
2714
- `,Yl=[Xm];var Sr=class extends V(v){constructor(){super();this.dataRole=re.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var a;let r=this.getCurrentIndex(e.target),o=this.getNewIndexBasedOnKey(e.key,r,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(e){return this.listItems.findIndex(r=>r===e||r===e.parentElement)}getNewIndexBasedOnKey(e,r,o){switch(e){case $.ARROW_DOWN:return(r+1)%o;case $.ARROW_UP:return(r-1+o)%o;case $.HOME:return 0;case $.END:return o-1;default:return}}handleMouseClick(e){let r=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(r)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((r,o)=>{let a=e===o?"0":"-1";r==null||r.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var r;let e=this.headerText?m`
2864
+ `,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=ie.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var a;let r=this.getCurrentIndex(e.target),o=this.getNewIndexBasedOnKey(e.key,r,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(e){return this.listItems.findIndex(r=>r===e||r===e.parentElement)}getNewIndexBasedOnKey(e,r,o){switch(e){case $.ARROW_DOWN:return(r+1)%o;case $.ARROW_UP:return(r-1+o)%o;case $.HOME:return 0;case $.END:return o-1;default:return}}handleMouseClick(e){let r=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(r)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((r,o)=>{let a=e===o?"0":"-1";r==null||r.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var r;let e=this.headerText?m`
2715
2865
  <mdc-text
2716
- id="${za}"
2866
+ id="${Ga}"
2717
2867
  part="header-text"
2718
- type="${T.BODY_MIDSIZE_BOLD}"
2719
- tagname="${w.SPAN}"
2868
+ type="${E.BODY_MIDSIZE_BOLD}"
2869
+ tagname="${C.SPAN}"
2720
2870
  >${this.headerText}</mdc-text>
2721
2871
  `:g;return m`
2722
2872
  <div
2723
2873
  role="${this.dataRole}"
2724
- aria-labelledby="${this.headerText?za:""}"
2874
+ aria-labelledby="${this.headerText?Ga:""}"
2725
2875
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
2726
2876
  >
2727
2877
  ${e}
2728
2878
  <slot role="presentation" @click="${this.handleMouseClick}"></slot>
2729
2879
  </div>
2730
- `}};Sr.styles=[...v.styles,...Yl],n([G({selector:`${fi}:not([disabled])`})],Sr.prototype,"listItems",2),n([l({type:String,attribute:"header-text",reflect:!0})],Sr.prototype,"headerText",2);var Pa=Sr;Pa.register(Gl);var jm=Pa;var bi=f.constructTagName("tooltip"),he={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ht={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:te.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:he.DESCRIPTION};var Qm=u`
2880
+ `}};Cr.styles=[...v.styles,...Jl],n([F({selector:`${Ei}:not([disabled])`})],Cr.prototype,"listItems",2),n([l({type:String,attribute:"header-text",reflect:!0})],Cr.prototype,"headerText",2);var Ya=Cr;Ya.register(Ql);var lp=Ya;var Ti=f.constructTagName("tooltip"),ue={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ft={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:oe.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ue.DESCRIPTION};var cp=u`
2731
2881
 
2732
2882
  :host {
2733
2883
  --mdc-tooltip-max-width: 400px;
@@ -2752,7 +2902,7 @@
2752
2902
  :host([color='contrast'])::part(popover-content) {
2753
2903
  color: var(--mdc-tooltip-text-color-contrast);
2754
2904
  }
2755
- `,Wl=[Qm];var Ir=class extends Ce{constructor(){super(...arguments);this.tooltipType=ht.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ht.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ht.OFFSET,this.placement=this.placement||ht.PLACEMENT,this.role=re.TOOLTIP,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(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(he).includes(e)?e:ht.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${We()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case he.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case he.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(te).includes(this.placement)||(this.placement=ht.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(he).includes(this.tooltipType)||this.setTooltipType(ht.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case he.DESCRIPTION:r===he.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case he.LABEL:r===he.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===he.DESCRIPTION?o.removeAttribute("aria-describedby"):r===he.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==he.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Ir.styles=[...Ce.styles,...Wl],n([l({type:String,attribute:"tooltip-type",reflect:!0})],Ir.prototype,"tooltipType",2),n([Ro()],Ir.prototype,"defaultSlotNodes",2);var Ua=Ir;Ua.register(bi);var Jm=Ua;var ep=u`
2905
+ `,ec=[cp];var kr=class extends ke{constructor(){super(...arguments);this.tooltipType=ft.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ft.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ft.OFFSET,this.placement=this.placement||ft.PLACEMENT,this.role=ie.TOOLTIP,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(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(ue).includes(e)?e:ft.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${qe()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ue.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ue.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(oe).includes(this.placement)||(this.placement=ft.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(ue).includes(this.tooltipType)||this.setTooltipType(ft.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ue.DESCRIPTION:r===ue.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ue.LABEL:r===ue.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===ue.DESCRIPTION?o.removeAttribute("aria-describedby"):r===ue.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ue.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};kr.styles=[...ke.styles,...ec],n([l({type:String,attribute:"tooltip-type",reflect:!0})],kr.prototype,"tooltipType",2),n([Mo()],kr.prototype,"defaultSlotNodes",2);var Wa=kr;Wa.register(Ti);var dp=Wa;var mp=u`
2756
2906
  :host {
2757
2907
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
2758
2908
  --mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
@@ -2834,27 +2984,27 @@
2834
2984
  display: flex;
2835
2985
  flex-direction: row;
2836
2986
  }
2837
- `,ql=[ep,..._()];var de=class extends P(Re(v)){constructor(){super();this.variant=$a.VARIANT;this.tooltipPlacement=$a.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||re.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var r;if(!this.tooltipText)return;this.id=this.id||Da;let e=document.createElement(bi);e.id=Ma,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(r=this.parentElement)==null||r.after(e)}hideTooltipOnLeave(){this.id=this.id===Da?"":this.id;let e=document.querySelector(`#${Ma}`);e==null||e.remove()}getText(e,r,o){return o?m`
2987
+ `,tc=[mp,..._()];var me=class extends P(Re(v)){constructor(){super();this.variant=Ha.VARIANT;this.tooltipPlacement=Ha.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||ie.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var r;if(!this.tooltipText)return;this.id=this.id||Ba;let e=document.createElement(Ti);e.id=Fa,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(r=this.parentElement)==null||r.after(e)}hideTooltipOnLeave(){this.id=this.id===Ba?"":this.id;let e=document.querySelector(`#${Fa}`);e==null||e.remove()}getText(e,r,o){return o?m`
2838
2988
  <slot name="${e}">
2839
- <mdc-text part="${e}" type="${r}" tagname="${w.SPAN}">${o}</mdc-text>
2989
+ <mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${o}</mdc-text>
2840
2990
  </slot>
2841
2991
  `:g}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}render(){return m`
2842
2992
  <div part="leading">
2843
2993
  <slot name="leading-controls"></slot>
2844
2994
  <div part="leading-text">
2845
- ${this.getText("leading-text-primary-label",T.BODY_MIDSIZE_REGULAR,this.label)}
2846
- ${this.getText("leading-text-secondary-label",T.BODY_SMALL_REGULAR,this.secondaryLabel)}
2847
- ${this.getText("leading-text-tertiary-label",T.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2995
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
2996
+ ${this.getText("leading-text-secondary-label",E.BODY_SMALL_REGULAR,this.secondaryLabel)}
2997
+ ${this.getText("leading-text-tertiary-label",E.BODY_SMALL_REGULAR,this.tertiaryLabel)}
2848
2998
  </div>
2849
2999
  </div>
2850
3000
  <div part="trailing">
2851
3001
  <div part="trailing-text">
2852
- ${this.getText("trailing-text-side-header",T.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
2853
- ${this.getText("trailing-text-subline",T.BODY_SMALL_REGULAR,this.sublineText)}
3002
+ ${this.getText("trailing-text-side-header",E.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
3003
+ ${this.getText("trailing-text-subline",E.BODY_SMALL_REGULAR,this.sublineText)}
2854
3004
  </div>
2855
3005
  <slot name="trailing-controls"></slot>
2856
3006
  </div>
2857
- `}};de.styles=[...v.styles,...ql],n([G({slot:"leading-controls"})],de.prototype,"leadingControlsSlot",2),n([G({slot:"trailing-controls"})],de.prototype,"trailingControlsSlot",2),n([l({type:String,reflect:!0})],de.prototype,"variant",2),n([l({type:String,reflect:!0})],de.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"secondary-label"})],de.prototype,"secondaryLabel",2),n([l({type:String,reflect:!0,attribute:"tertiary-label"})],de.prototype,"tertiaryLabel",2),n([l({type:String,reflect:!0,attribute:"side-header-text"})],de.prototype,"sideHeaderText",2),n([l({type:String,reflect:!0,attribute:"subline-text"})],de.prototype,"sublineText",2),n([l({type:String,reflect:!0,attribute:"tooltip-text"})],de.prototype,"tooltipText",2),n([l({type:String,reflect:!0,attribute:"tooltip-placement"})],de.prototype,"tooltipPlacement",2);var je=de;je.register(fi);var tp=je;var rp=u`
3007
+ `}};me.styles=[...v.styles,...tc],n([F({slot:"leading-controls"})],me.prototype,"leadingControlsSlot",2),n([F({slot:"trailing-controls"})],me.prototype,"trailingControlsSlot",2),n([l({type:String,reflect:!0})],me.prototype,"variant",2),n([l({type:String,reflect:!0})],me.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"secondary-label"})],me.prototype,"secondaryLabel",2),n([l({type:String,reflect:!0,attribute:"tertiary-label"})],me.prototype,"tertiaryLabel",2),n([l({type:String,reflect:!0,attribute:"side-header-text"})],me.prototype,"sideHeaderText",2),n([l({type:String,reflect:!0,attribute:"subline-text"})],me.prototype,"sublineText",2),n([l({type:String,reflect:!0,attribute:"tooltip-text"})],me.prototype,"tooltipText",2),n([l({type:String,reflect:!0,attribute:"tooltip-placement"})],me.prototype,"tooltipPlacement",2);var Je=me;Je.register(Ei);var pp=Je;var hp=u`
2858
3008
  :host {
2859
3009
  --mdc-marker-width: 0.25rem;
2860
3010
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -2879,7 +3029,7 @@
2879
3029
  var(--mdc-marker-striped-background-color) 0.375rem
2880
3030
  );
2881
3031
  }
2882
- `,Kl=[rp];var Zl=f.constructTagName("marker"),Xl={SOLID:"solid",STRIPED:"striped"};var co=class extends v{constructor(){super(...arguments);this.variant=Xl.SOLID}};co.styles=[...v.styles,...Kl],n([l({type:String,reflect:!0})],co.prototype,"variant",2);var Va=co;Va.register(Zl);var op=Va;var gi=f.constructTagName("optgroup"),Fa="header-id";var ip=u`
3032
+ `,rc=[hp];var oc=f.constructTagName("marker"),ic={SOLID:"solid",STRIPED:"striped"};var ho=class extends v{constructor(){super(...arguments);this.variant=ic.SOLID}};ho.styles=[...v.styles,...rc],n([l({type:String,reflect:!0})],ho.prototype,"variant",2);var qa=ho;qa.register(oc);var up=qa;var Ai=class extends Je{connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEM,this.variant=po.INSET_RECTANGLE}};Ai.styles=[...Je.styles];var et=Ai;var ac=f.constructTagName("menuitem");et.register(ac);var fp=et;var Si=f.constructTagName("optgroup"),Ka="header-id";var bp=u`
2883
3033
  :host {
2884
3034
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
2885
3035
  }
@@ -2892,23 +3042,23 @@
2892
3042
  color: var(--mdc-optgroup-disabled-color);
2893
3043
  cursor: default;
2894
3044
  }
2895
- `,jl=[ip];var Cr=class extends V(P(v)){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?m`
3045
+ `,sc=[bp];var Nr=class extends V(P(v)){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?m`
2896
3046
  <mdc-text
2897
- id="${Fa}"
3047
+ id="${Ka}"
2898
3048
  part="header-text"
2899
- type="${T.BODY_MIDSIZE_BOLD}"
2900
- tagname="${w.SPAN}"
3049
+ type="${E.BODY_MIDSIZE_BOLD}"
3050
+ tagname="${C.SPAN}"
2901
3051
  >${this.label}</mdc-text>
2902
3052
  `:g;return m`
2903
3053
  <div
2904
3054
  role="group"
2905
- aria-labelledby="${this.label?Fa:""}"
3055
+ aria-labelledby="${this.label?Ka:""}"
2906
3056
  aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
2907
3057
  >
2908
3058
  ${t}
2909
3059
  <slot role="presentation"></slot>
2910
3060
  </div>
2911
- `}};Cr.styles=[...v.styles,...jl],n([l({type:String,reflect:!0})],Cr.prototype,"label",2),n([G({selector:"mdc-option"})],Cr.prototype,"options",2);var Ba=Cr;Ba.register(gi);var ap=Ba;var Ql="check-bold",mo=f.constructTagName("option");var sp=u`
3061
+ `}};Nr.styles=[...v.styles,...sc],n([l({type:String,reflect:!0})],Nr.prototype,"label",2),n([F({selector:"mdc-option"})],Nr.prototype,"options",2);var Za=Nr;Za.register(Si);var gp=Za;var nc="check-bold",uo=f.constructTagName("option");var vp=u`
2912
3062
  :host {
2913
3063
  --mdc-option-icon-width: 1rem;
2914
3064
 
@@ -2932,22 +3082,22 @@
2932
3082
  /** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
2933
3083
  width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
2934
3084
  }
2935
- `,Jl=[sp];var Ft=class extends le(je){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=lo.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}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
3085
+ `,lc=[vp];var Gt=class extends ce(Je){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=po.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}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
2936
3086
  <div part="leading-icon">
2937
3087
  <mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
2938
3088
  </div>
2939
3089
  `:g,r=this.selected?m`
2940
- <mdc-icon slot="trailing-controls" name="${Ql}"></mdc-icon>
3090
+ <mdc-icon slot="trailing-controls" name="${nc}"></mdc-icon>
2941
3091
  `:g;return m`
2942
3092
  ${e}
2943
3093
  <div part="leading-text">
2944
- ${this.getText("leading-text-primary-label",T.BODY_MIDSIZE_REGULAR,this.label)}
3094
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
2945
3095
  </div>
2946
3096
  <div part="trailing">
2947
3097
  ${r}
2948
3098
  </div>
2949
3099
  <slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
2950
- `}};Ft.styles=[...je.styles,...Jl],n([l({type:Boolean,reflect:!0})],Ft.prototype,"selected",2),n([l({type:String,reflect:!0,attribute:"prefix-icon"})],Ft.prototype,"prefixIcon",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Ft.prototype,"ariaLabel",2);var Ha=Ft;Ha.register(mo);var np=Ha;Ce.register(Nl);var lp=Ce;var cp=[u`
3100
+ `}};Gt.styles=[...Je.styles,...lc],n([l({type:Boolean,reflect:!0})],Gt.prototype,"selected",2),n([l({type:String,reflect:!0,attribute:"prefix-icon"})],Gt.prototype,"prefixIcon",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Gt.prototype,"ariaLabel",2);var Xa=Gt;Xa.register(uo);var yp=Xa;ke.register($l);var xp=ke;var Ep=[u`
2951
3101
  :host {
2952
3102
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
2953
3103
  --mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
@@ -3031,7 +3181,7 @@
3031
3181
  border: var(--mdc-progressbar-border);
3032
3182
  }
3033
3183
  }
3034
- `],ec=cp;var tc=f.constructTagName("progressbar"),vi={DEFAULT:"default",INLINE:"inline"},rc={VARIANT:vi.DEFAULT,VALIDATION:W.DEFAULT};var Bt=class extends V(ve){constructor(){super(...arguments);this.variant=rc.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
3184
+ `],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:q.DEFAULT};var Yt=class extends V(ye){constructor(){super(...arguments);this.variant=mc.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
3035
3185
  <div
3036
3186
  part="progress-container ${r?"gap":""}"
3037
3187
  role="progressbar"
@@ -3043,16 +3193,16 @@
3043
3193
  <div part="progress-bar ${e}" style="width: ${o}%"></div>
3044
3194
  <div part="remaining"></div>
3045
3195
  </div>
3046
- `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${We()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=W.ERROR:this.clampedValue===100?this.helpTextType=W.SUCCESS:this.helpTextType=W.DEFAULT,this.helpTextType}render(){let e=this.variant===vi.INLINE;return m`
3196
+ `}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${qe()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=q.ERROR:this.clampedValue===100?this.helpTextType=q.SUCCESS:this.helpTextType=q.DEFAULT,this.helpTextType}render(){let e=this.variant===Ii.INLINE;return m`
3047
3197
  ${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
3048
3198
  <div part="label-container">
3049
3199
  ${this.renderLabelElement()}
3050
- ${this.variant===vi.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
3200
+ ${this.variant===Ii.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
3051
3201
  </div>
3052
3202
  ${this.renderProgressbar()}
3053
3203
  ${this.renderHelperText()}
3054
3204
  `}
3055
- `}};Bt.styles=[...ve.styles,...ec],n([l({type:String,reflect:!0})],Bt.prototype,"variant",2),n([l({type:String,reflect:!0})],Bt.prototype,"value",2),n([l({type:Boolean,attribute:"error"})],Bt.prototype,"error",2);var po=Bt;po.register(tc);var dp=po;var mp=u`
3205
+ `}};Yt.styles=[...ye.styles,...cc],n([l({type:String,reflect:!0})],Yt.prototype,"variant",2),n([l({type:String,reflect:!0})],Yt.prototype,"value",2),n([l({type:Boolean,attribute:"error"})],Yt.prototype,"error",2);var fo=Yt;fo.register(dc);var Tp=fo;var Ap=u`
3056
3206
  :host {
3057
3207
  --mdc-spinner-size: 3rem;
3058
3208
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -3096,7 +3246,7 @@
3096
3246
  color: var(--mdc-progress-error-color);
3097
3247
  margin: 0.5rem;
3098
3248
  }
3099
- `,oc=[mp];var ic=f.constructTagName("progressspinner"),B={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Ga={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Ya=i=>{if(i===0)return 0;let t=i/100*B.CIRCUMFERENCE-B.GAP_SIZE;return Math.max(t,.1*i)},ac=i=>{let t=B.CIRCUMFERENCE-Ya(i)-2*B.GAP_SIZE;return i===0?B.CIRCUMFERENCE:t<0?0:t},sc=i=>i===0?0:B.GAP_SIZE*.5,nc=(i,t)=>{let e=t+B.GAP_SIZE*1.5;return i===0?0:e};var yi=class extends po{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Ya(this.clampedValue),e=ac(this.clampedValue),r=sc(this.clampedValue),o=nc(this.clampedValue,t);return m`
3249
+ `,pc=[Ap];var hc=f.constructTagName("progressspinner"),H={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ja={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Qa=i=>{if(i===0)return 0;let t=i/100*H.CIRCUMFERENCE-H.GAP_SIZE;return Math.max(t,.1*i)},uc=i=>{let t=H.CIRCUMFERENCE-Qa(i)-2*H.GAP_SIZE;return i===0?H.CIRCUMFERENCE:t<0?0:t},fc=i=>i===0?0:H.GAP_SIZE*.5,bc=(i,t)=>{let e=t+H.GAP_SIZE*1.5;return i===0?0:e};var Ci=class extends fo{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Qa(this.clampedValue),e=uc(this.clampedValue),r=fc(this.clampedValue),o=bc(this.clampedValue,t);return m`
3100
3250
  <div
3101
3251
  part="spinner-container ${this.variant}"
3102
3252
  role="progressbar"
@@ -3110,18 +3260,18 @@
3110
3260
  part="spinner-track"
3111
3261
  cx="24"
3112
3262
  cy="24"
3113
- r="${B.RADIUS}"
3114
- stroke-width="${e===0?0:B.STROKE_WIDTH}"
3115
- stroke-dasharray="${e} ${B.CIRCUMFERENCE}"
3263
+ r="${H.RADIUS}"
3264
+ stroke-width="${e===0?0:H.STROKE_WIDTH}"
3265
+ stroke-dasharray="${e} ${H.CIRCUMFERENCE}"
3116
3266
  stroke-dashoffset="-${o}"
3117
3267
  />
3118
3268
  <circle
3119
3269
  part="spinner-progress"
3120
3270
  cx="24"
3121
3271
  cy="24"
3122
- r="${B.RADIUS}"
3123
- stroke-width="${t===0?0:B.STROKE_WIDTH}"
3124
- stroke-dasharray="${t} ${B.CIRCUMFERENCE}"
3272
+ r="${H.RADIUS}"
3273
+ stroke-width="${t===0?0:H.STROKE_WIDTH}"
3274
+ stroke-dasharray="${t} ${H.CIRCUMFERENCE}"
3125
3275
  stroke-dashoffset="-${r}"
3126
3276
  />
3127
3277
  </svg>
@@ -3130,18 +3280,18 @@
3130
3280
  <mdc-icon
3131
3281
  part="error-icon"
3132
3282
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
3133
- name="${Ga.ERROR_LEGACY_FILLED}"
3134
- size="${B.ERROR_ICON_SIZE}"
3135
- length-unit="${B.ICON_LENGTH_UNIT}"></mdc-icon>
3283
+ name="${ja.ERROR_LEGACY_FILLED}"
3284
+ size="${H.ERROR_ICON_SIZE}"
3285
+ length-unit="${H.ICON_LENGTH_UNIT}"></mdc-icon>
3136
3286
  `}renderSuccessState(){var t;return m`
3137
3287
  <mdc-icon
3138
3288
  part="success-icon"
3139
3289
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
3140
- name="${Ga.CHECK_CIRCLE_BOLD}"
3141
- size="${B.SUCCESS_ICON_SIZE}"
3142
- length-unit="${B.ICON_LENGTH_UNIT}"></mdc-icon>
3290
+ name="${ja.CHECK_CIRCLE_BOLD}"
3291
+ size="${H.SUCCESS_ICON_SIZE}"
3292
+ length-unit="${H.ICON_LENGTH_UNIT}"></mdc-icon>
3143
3293
  `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
3144
- ${this.renderProgressSpinner()}`}};yi.styles=[...v.styles,...oc];var Wa=yi;Wa.register(ic);var pp=Wa;var hp=[N,u`
3294
+ ${this.renderProgressSpinner()}`}};Ci.styles=[...v.styles,...pc];var Ja=Ci;Ja.register(hc);var Sp=Ja;var Ip=[w,u`
3145
3295
  :host{
3146
3296
  display: flex;
3147
3297
  flex-direction: row;
@@ -3228,7 +3378,7 @@
3228
3378
  display: none;
3229
3379
  }
3230
3380
 
3231
- `,..._(!0)],lc=hp;var Ht=class extends le(V(J)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3381
+ `,..._(!0)],gc=Ip;var Wt=class extends ce(V(te)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
3232
3382
  ${this.renderLabel()}
3233
3383
  ${this.renderHelperText()}
3234
3384
  </div>`:g}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(c=>c.requiredLabel),a=!!r.find(c=>c.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let c=(d=s.shadowRoot)==null?void 0:d.querySelector("input");c&&(s.checked=!1,c.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(c=>!c.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let c=(a+1)%o.length;this.updateRadio(o,c,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let c=(a-1+o.length)%o.length;this.updateRadio(o,c,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var c;let s=(c=a.shadowRoot)==null?void 0:c.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
@@ -3258,12 +3408,12 @@
3258
3408
  />
3259
3409
  </mdc-staticradio>
3260
3410
  ${this.renderLabelAndHelperText()}
3261
- `}};Ht.styles=[...J.styles,...lc],n([l({type:Boolean,reflect:!0})],Ht.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],Ht.prototype,"readonly",2),n([l({type:Boolean,reflect:!0})],Ht.prototype,"autofocus",2);var qa=Ht;var xi=f.constructTagName("radio");qa.register(xi);var up=qa;var ho=class extends mi{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(c=>c.assignedElements({flatten:!0})))==null?void 0:o.filter(c=>c.tagName.toLowerCase()===xi||c.tagName.toLowerCase()===Jo))==null?void 0:a.filter(c=>!c.hasAttribute("name")))==null||s.forEach(c=>{c.setAttribute("name",this.name),this.requiredLabel&&c.setAttribute("required-label",this.requiredLabel)})}};ho.styles=[...mi.styles],n([l({type:String})],ho.prototype,"name",2);var Ka=ho;var cc=f.constructTagName("radiogroup");Ka.register(cc);var fp=Ka;var dc=f.constructTagName("screenreaderannouncer"),bp={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},kr={ARIA_LIVE:bp.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var gp=[u`
3411
+ `}};Wt.styles=[...te.styles,...gc],n([l({type:Boolean,reflect:!0})],Wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"readonly",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"autofocus",2);var es=Wt;var ki=f.constructTagName("radio");es.register(ki);var Cp=es;var bo=class extends gi{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(c=>c.assignedElements({flatten:!0})))==null?void 0:o.filter(c=>c.tagName.toLowerCase()===ki||c.tagName.toLowerCase()===oi))==null?void 0:a.filter(c=>!c.hasAttribute("name")))==null||s.forEach(c=>{c.setAttribute("name",this.name),this.requiredLabel&&c.setAttribute("required-label",this.requiredLabel)})}};bo.styles=[...gi.styles],n([l({type:String})],bo.prototype,"name",2);var ts=bo;var vc=f.constructTagName("radiogroup");ts.register(vc);var kp=ts;var yc=f.constructTagName("screenreaderannouncer"),Np={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},wr={ARIA_LIVE:Np.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var wp=[u`
3262
3412
  :host {
3263
3413
  display: none;
3264
3414
  visibility: hidden;
3265
3415
  }
3266
- `],mc=gp;var Qe=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=kr.ARIA_LIVE;this.delay=kr.DELAY;this.timeout=kr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let c=`mdc-screenreaderannouncer-announcement-${We()}`,d=document.createElement("div");d.id=c,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(c);let b=window.setTimeout(()=>{var x;(x=document.getElementById(c))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3416
+ `],xc=wp;var tt=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=wr.ARIA_LIVE;this.delay=wr.DELAY;this.timeout=wr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let c=`mdc-screenreaderannouncer-announcement-${qe()}`,d=document.createElement("div");d.id=c,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(c);let b=window.setTimeout(()=>{var x;(x=document.getElementById(c))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
3267
3417
  .mdc-screenreaderannouncer__visually-hidden {
3268
3418
  clip: rect(0 0 0 0);
3269
3419
  clip-path: inset(50%);
@@ -3273,7 +3423,7 @@
3273
3423
  white-space: nowrap;
3274
3424
  width: 1px;
3275
3425
  }
3276
- `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=kr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=kr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Qe.styles=[...v.styles,...mc],n([l({type:String,reflect:!0})],Qe.prototype,"announcement",2),n([l({type:String,reflect:!0})],Qe.prototype,"identity",2),n([l({type:String,reflect:!0,attribute:"data-aria-live"})],Qe.prototype,"dataAriaLive",2),n([l({type:Number,reflect:!0})],Qe.prototype,"delay",2),n([l({type:Number,reflect:!0})],Qe.prototype,"timeout",2);var Za=Qe;Za.register(dc);var vp=Za;var yp=u`
3426
+ `,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=wr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=wr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};tt.styles=[...v.styles,...xc],n([l({type:String,reflect:!0})],tt.prototype,"announcement",2),n([l({type:String,reflect:!0})],tt.prototype,"identity",2),n([l({type:String,reflect:!0,attribute:"data-aria-live"})],tt.prototype,"dataAriaLive",2),n([l({type:Number,reflect:!0})],tt.prototype,"delay",2),n([l({type:Number,reflect:!0})],tt.prototype,"timeout",2);var rs=tt;rs.register(yc);var _p=rs;var Lp=u`
3277
3427
 
3278
3428
  :host::part(filters-container){
3279
3429
  display: flex;
@@ -3300,9 +3450,9 @@
3300
3450
  scrollbar-width: none;
3301
3451
  }
3302
3452
 
3303
- `,pc=[yp];var hc=f.constructTagName("searchfield"),uo={TYPE:Ra.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:hi};var Gt=class extends Ar{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=uo.ICON,this.trailingButton=uo.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(uo.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3453
+ `,Ec=[Lp];var Tc=f.constructTagName("searchfield"),go={TYPE:Pa.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:yi};var qt=class extends Ir{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=go.ICON,this.trailingButton=go.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(go.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
3304
3454
  ${this.renderLabelElement()}
3305
- <div class="${dr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3455
+ <div class="${pr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
3306
3456
  ${this.renderLeadingIcon()}
3307
3457
  <div part='scrollable-container' tabindex='-1'>
3308
3458
  <div part="filters-container"
@@ -3310,11 +3460,11 @@
3310
3460
  @keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
3311
3461
  @keyup=${e=>e.key===" "?this.inputElement.focus():null}>
3312
3462
  <slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
3313
- ${this.renderInputElement(uo.TYPE,this.hasInputChips)}
3463
+ ${this.renderInputElement(go.TYPE,this.hasInputChips)}
3314
3464
  </div>
3315
3465
  ${this.renderTrailingButton(this.hasInputChips)}
3316
3466
  </div>
3317
- `}};Gt.styles=[...Ar.styles,...pc],n([G({slot:"filters"})],Gt.prototype,"inputChips",2),n([R()],Gt.prototype,"isInputFocused",2),n([R()],Gt.prototype,"hasInputChips",2);var Xa=Gt;Xa.register(hc);var xp=Xa;var uc=f.constructTagName("select"),Ei={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Ep=u`
3467
+ `}};qt.styles=[...Ir.styles,...Ec],n([F({slot:"filters"})],qt.prototype,"inputChips",2),n([L()],qt.prototype,"isInputFocused",2),n([L()],qt.prototype,"hasInputChips",2);var os=qt;os.register(Tc);var Rp=os;var Ac=f.constructTagName("select"),Ni={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Op=u`
3318
3468
  :host {
3319
3469
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
3320
3470
  --mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
@@ -3416,7 +3566,7 @@
3416
3566
  :host([help-text-type="warning"])::part(base-container) {
3417
3567
  border-color: var(--mdc-select-warning-border-color);
3418
3568
  }
3419
- `,fc=[Ep,..._(!0)];var oe=class extends le(V(J)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Ei.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===mo?r:r.tagName.toLowerCase()===gi?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===mo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=Ei.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=Ei.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3569
+ `,Sc=[Op,..._(!0)];var ae=class extends ce(V(te)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Ni.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===uo?r:r.tagName.toLowerCase()===Si?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===uo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=Ni.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=Ni.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
3420
3570
  <select
3421
3571
  part="native-select"
3422
3572
  id="${this.id}"
@@ -3451,7 +3601,7 @@
3451
3601
  focus-back-to-trigger
3452
3602
  focus-trap
3453
3603
  role="listbox"
3454
- placement="${te.BOTTOM_START}"
3604
+ placement="${oe.BOTTOM_START}"
3455
3605
  @shown="${this.handlePopoverOpen}"
3456
3606
  @hidden="${this.handlePopoverClose}"
3457
3607
  style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
@@ -3475,8 +3625,8 @@
3475
3625
  >
3476
3626
  <mdc-text
3477
3627
  part="base-text ${this.selectedValueText?"selected":""}"
3478
- type="${T.BODY_MIDSIZE_REGULAR}"
3479
- tagname="${w.SPAN}"
3628
+ type="${E.BODY_MIDSIZE_REGULAR}"
3629
+ tagname="${C.SPAN}"
3480
3630
  >
3481
3631
  ${(r=this.selectedValueText)!=null?r:this.placeholder}
3482
3632
  </mdc-text>
@@ -3488,7 +3638,7 @@
3488
3638
  ${this.getPopoverContent()}
3489
3639
  </div>
3490
3640
  ${this.renderHelperText()}
3491
- `}};oe.styles=[...J.styles,...fc],n([l({type:String})],oe.prototype,"placeholder",2),n([l({type:Boolean})],oe.prototype,"readonly",2),n([l({type:String})],oe.prototype,"height",2),n([G()],oe.prototype,"optionsList",2),n([R()],oe.prototype,"baseIconName",2),n([R()],oe.prototype,"selectedValueText",2),n([R()],oe.prototype,"selectedValue",2),n([R()],oe.prototype,"displayPopover",2),n([R()],oe.prototype,"activeDescendant",2),n([R()],oe.prototype,"popoverWidth",2),n([Fe("select")],oe.prototype,"inputElement",2);var ja=oe;ja.register(uc);var Tp=ja;var Ap=[N,u`
3641
+ `}};ae.styles=[...te.styles,...Sc],n([l({type:String})],ae.prototype,"placeholder",2),n([l({type:Boolean})],ae.prototype,"readonly",2),n([l({type:String})],ae.prototype,"height",2),n([F()],ae.prototype,"optionsList",2),n([L()],ae.prototype,"baseIconName",2),n([L()],ae.prototype,"selectedValueText",2),n([L()],ae.prototype,"selectedValue",2),n([L()],ae.prototype,"displayPopover",2),n([L()],ae.prototype,"activeDescendant",2),n([L()],ae.prototype,"popoverWidth",2),n([Be("select")],ae.prototype,"inputElement",2);var is=ae;is.register(Ac);var Mp=is;var Dp=[w,u`
3492
3642
  :host {
3493
3643
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
3494
3644
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -3550,11 +3700,11 @@
3550
3700
  stroke-dashoffset: -292;
3551
3701
  }
3552
3702
  }
3553
- `],bc=Ap;var gc=f.constructTagName("spinner"),Sp={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Ip={STANDALONE:"standalone",BUTTON:"button"},Ti={VARIANT:Ip.STANDALONE,SIZE:Sp.MIDSIZE,INVERTED:!1};var ut=class extends v{constructor(){super(...arguments);this.inverted=Ti.INVERTED;this.size=Ti.SIZE;this.ariaLabel=null;this.variant=Ti.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3703
+ `],Ic=Dp;var Cc=f.constructTagName("spinner"),$p={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zp={STANDALONE:"standalone",BUTTON:"button"},wi={VARIANT:zp.STANDALONE,SIZE:$p.MIDSIZE,INVERTED:!1};var bt=class extends v{constructor(){super(...arguments);this.inverted=wi.INVERTED;this.size=wi.SIZE;this.ariaLabel=null;this.variant=wi.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
3554
3704
  <svg part="container" viewBox="0 0 100 100">
3555
3705
  <circle part="circle" cx="50" cy="50" r="46"></circle>
3556
3706
  </svg>
3557
- `}};ut.styles=[...v.styles,...bc],n([l({type:Boolean,reflect:!0})],ut.prototype,"inverted",2),n([l({type:String,reflect:!0})],ut.prototype,"size",2),n([l({type:String,attribute:"aria-label"})],ut.prototype,"ariaLabel",2),n([l({type:String,reflect:!0})],ut.prototype,"variant",2);var Qa=ut;Qa.register(gc);var Cp=Qa;var vc=f.constructTagName("statictoggle"),kp={DEFAULT:"default",COMPACT:"compact"},Ja={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},yc={compact:.75,default:1.25},xc={SIZE:kp.DEFAULT};var wp=[u`
3707
+ `}};bt.styles=[...v.styles,...Ic],n([l({type:Boolean,reflect:!0})],bt.prototype,"inverted",2),n([l({type:String,reflect:!0})],bt.prototype,"size",2),n([l({type:String,attribute:"aria-label"})],bt.prototype,"ariaLabel",2),n([l({type:String,reflect:!0})],bt.prototype,"variant",2);var as=bt;as.register(Cc);var Pp=as;var kc=f.constructTagName("statictoggle"),Up={DEFAULT:"default",COMPACT:"compact"},ss={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Nc={compact:.75,default:1.25},wc={SIZE:Up.DEFAULT};var Vp=[u`
3558
3708
  :host {
3559
3709
  --mdc-statictoggle-width: 3rem;
3560
3710
  --mdc-statictoggle-height: 1.5rem;
@@ -3633,17 +3783,17 @@
3633
3783
  border: var(--mdc-statictoggle-border);
3634
3784
  }
3635
3785
  }
3636
- `],Ec=wp;var wr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=xc.SIZE}render(){return m`
3786
+ `],_c=Vp;var _r=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=wc.SIZE}render(){return m`
3637
3787
  <slot></slot>
3638
3788
  <div part="slider">
3639
3789
  <mdc-icon
3640
- name="${this.checked?Ja.CHECKED:Ja.UNCHECKED}"
3790
+ name="${this.checked?ss.CHECKED:ss.UNCHECKED}"
3641
3791
  class="icon"
3642
3792
  length-unit="rem"
3643
- size="${yc[this.size]}"
3793
+ size="${Nc[this.size]}"
3644
3794
  ></mdc-icon>
3645
3795
  </div>
3646
- `}};wr.styles=[...v.styles,...Ec],n([l({type:Boolean,reflect:!0})],wr.prototype,"checked",2),n([l({type:String,reflect:!0})],wr.prototype,"size",2);var es=wr;es.register(vc);var Np=es;var _p=[N,u`
3796
+ `}};_r.styles=[...v.styles,..._c],n([l({type:Boolean,reflect:!0})],_r.prototype,"checked",2),n([l({type:String,reflect:!0})],_r.prototype,"size",2);var ns=_r;ns.register(kc);var Fp=ns;var Bp=[w,u`
3647
3797
 
3648
3798
  :host {
3649
3799
  --mdc-tab-content-gap: 0.5rem;
@@ -3887,12 +4037,12 @@
3887
4037
  color: var(--mdc-tab-pill-active-color-disabled);
3888
4038
  }
3889
4039
 
3890
- `,..._()],Tc=_p;var Ac=f.constructTagName("tab"),ts={GLASS:"glass",LINE:"line",PILL:"pill"},Ai={VARIANT:ts.PILL,ACTIVE:!1};var ft=class extends ae(ie){constructor(){super(...arguments);this.active=Ai.ACTIVE;this.variant=Ai.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${jr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ts).includes(e)?e:Ai.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
4040
+ `,..._()],Lc=Bp;var Rc=f.constructTagName("tab"),ls={GLASS:"glass",LINE:"line",PILL:"pill"},_i={VARIANT:ls.PILL,ACTIVE:!1};var gt=class extends ne(se){constructor(){super(...arguments);this.active=_i.ACTIVE;this.variant=_i.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Jr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ls).includes(e)?e:_i.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
3891
4041
  <div part="container">
3892
4042
  ${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:g}
3893
4043
  ${this.text?m` <mdc-text
3894
- type=${this.active?T.BODY_MIDSIZE_BOLD:T.BODY_MIDSIZE_MEDIUM}
3895
- tagname=${w.SPAN}
4044
+ type=${this.active?E.BODY_MIDSIZE_BOLD:E.BODY_MIDSIZE_MEDIUM}
4045
+ tagname=${C.SPAN}
3896
4046
  data-text=${this.text}
3897
4047
  part="text"
3898
4048
  >${this.text}</mdc-text
@@ -3901,7 +4051,7 @@
3901
4051
  <slot name="chip"></slot>
3902
4052
  </div>
3903
4053
  <div part="indicator"></div>
3904
- `}};ft.styles=[...ie.styles,...Tc],n([l({type:Boolean,reflect:!0})],ft.prototype,"active",2),n([l({type:String,reflect:!0})],ft.prototype,"text",2),n([l({type:String,reflect:!0})],ft.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],ft.prototype,"tabId",2);var ue=ft;ue.register(Ac);var Rp=ue;var Lp=[Lo,u`
4054
+ `}};gt.styles=[...se.styles,...Lc],n([l({type:Boolean,reflect:!0})],gt.prototype,"active",2),n([l({type:String,reflect:!0})],gt.prototype,"text",2),n([l({type:String,reflect:!0})],gt.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],gt.prototype,"tabId",2);var fe=gt;fe.register(Rc);var Hp=fe;var Gp=[Do,u`
3905
4055
  :host {
3906
4056
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
3907
4057
  --mdc-tablist-gap: 0.5rem;
@@ -3931,10 +4081,10 @@
3931
4081
  :host mdc-button[prefix-icon="arrow-right-regular"] {
3932
4082
  margin-left: var(--mdc-tablist-arrow-button-margin);
3933
4083
  }
3934
- `],Sc=[...Lp];var Ic=f.constructTagName("tablist"),fo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Nr={FORWARD:"forward",BACKWARD:"backward"};var Si=i=>i[0],rs=i=>i[i.length-1],Cc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},kc=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},wc=(i,t)=>i.find(e=>e.tabId===t),os=i=>i.find(t=>t.active);var ke=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ue||!(e.target instanceof ue))return;let r=os(this.tabs||[]);r instanceof ue&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof ue&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof ue&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof ue&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof ue)||!this.tabs)return;let o=Cc(this.tabs,r),a=kc(this.tabs,r),s=Si(this.tabs),c=rs(this.tabs);switch(e.code){case fo.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case fo.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case fo.HOME:await this.focusTab(s);break;case fo.END:await this.focusTab(c);break;default:}};this.shouldShowArrowButton=e=>e===Nr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=os(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof It&&(e=!0);let r=Si(this.tabs),o=rs(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,c=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,c>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===Nr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(c=>c.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:c}=document;c instanceof ue&&c.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=Si(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=wc(this.tabs,this.activeTabId);if(!(r instanceof ue))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
4084
+ `],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Lr={FORWARD:"forward",BACKWARD:"backward"};var Li=i=>i[0],cs=i=>i[i.length-1],Dc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},$c=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},zc=(i,t)=>i.find(e=>e.tabId===t),ds=i=>i.find(t=>t.active);var Ne=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof fe||!(e.target instanceof fe))return;let r=ds(this.tabs||[]);r instanceof fe&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof fe&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof fe&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof fe&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof fe)||!this.tabs)return;let o=Dc(this.tabs,r),a=$c(this.tabs,r),s=Li(this.tabs),c=cs(this.tabs);switch(e.code){case vo.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case vo.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case vo.HOME:await this.focusTab(s);break;case vo.END:await this.focusTab(c);break;default:}};this.shouldShowArrowButton=e=>e===Lr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=ds(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof kt&&(e=!0);let r=Li(this.tabs),o=cs(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,c=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,c>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===Lr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(c=>c.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:c}=document;c instanceof fe&&c.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=Li(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=zc(this.tabs,this.activeTabId);if(!(r instanceof fe))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
3935
4085
  variant="tertiary"
3936
- prefix-icon="arrow-${a===Nr.FORWARD?e:r}-regular"
3937
- aria-label="Scroll tabs ${a===Nr.FORWARD?e:r}"
4086
+ prefix-icon="arrow-${a===Lr.FORWARD?e:r}-regular"
4087
+ aria-label="Scroll tabs ${a===Lr.FORWARD?e:r}"
3938
4088
  @click="${()=>this.scrollTabs(a)}"
3939
4089
  ></mdc-button>`:g}`;return m` ${o("backward")}
3940
4090
  <div
@@ -3944,7 +4094,7 @@
3944
4094
  aria-label="${A(this.dataAriaLabel)}">
3945
4095
  <slot></slot>
3946
4096
  </div>
3947
- ${o(Nr.FORWARD)}`}};ke.styles=[...v.styles,...Sc],n([l({type:String,attribute:"active-tab-id",reflect:!0})],ke.prototype,"activeTabId",2),n([l({type:String,attribute:"data-aria-label"})],ke.prototype,"dataAriaLabel",2),n([Fe(".container")],ke.prototype,"tabsContainer",2),n([Fe("mdc-button:not(:focus-visible)")],ke.prototype,"notFocusedArrowButton",2),n([G({selector:"mdc-tab"})],ke.prototype,"tabs",2),n([R()],ke.prototype,"showForwardArrowButton",2),n([R()],ke.prototype,"showBackwardArrowButton",2);var is=ke;is.register(Ic);var Op=is;var Mp=[u`
4097
+ ${o(Lr.FORWARD)}`}};Ne.styles=[...v.styles,...Oc],n([l({type:String,attribute:"active-tab-id",reflect:!0})],Ne.prototype,"activeTabId",2),n([l({type:String,attribute:"data-aria-label"})],Ne.prototype,"dataAriaLabel",2),n([Be(".container")],Ne.prototype,"tabsContainer",2),n([Be("mdc-button:not(:focus-visible)")],Ne.prototype,"notFocusedArrowButton",2),n([F({selector:"mdc-tab"})],Ne.prototype,"tabs",2),n([L()],Ne.prototype,"showForwardArrowButton",2),n([L()],Ne.prototype,"showBackwardArrowButton",2);var ms=Ne;ms.register(Mc);var Yp=ms;var Wp=[u`
3948
4098
  :host {
3949
4099
  --mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
3950
4100
  --mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
@@ -4065,11 +4215,11 @@
4065
4215
  pointer-events: none;
4066
4216
  }
4067
4217
 
4068
- `,..._(!0)],Nc=Mp;var _c=f.constructTagName("textarea"),as={HARD:"hard",SOFT:"soft"},Rc={OFF:"off",ON:"on"},Ii={CHARACTER_COUNTER_TYPE:T.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:as.SOFT};var Z=class extends le(V(ve)){constructor(){super(...arguments);this.readonly=!1;this.rows=Ii.ROWS;this.cols=Ii.COLS;this.wrap=as.SOFT;this.autocapitalize=pi.OFF;this.autocomplete=Rc.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===W.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
4218
+ `,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var j=class extends ce(V(ye)){constructor(){super(...arguments);this.readonly=!1;this.rows=Ri.ROWS;this.cols=Ri.COLS;this.wrap=ps.SOFT;this.autocapitalize=vi.OFF;this.autocomplete=Vc.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===q.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
4069
4219
  <mdc-text
4070
4220
  part="character-counter"
4071
4221
  tagname="span"
4072
- type=${Ii.CHARACTER_COUNTER_TYPE}
4222
+ type=${Ri.CHARACTER_COUNTER_TYPE}
4073
4223
  >
4074
4224
  ${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
4075
4225
  </mdc-text>
@@ -4107,7 +4257,7 @@
4107
4257
  ></textarea>
4108
4258
  </div>
4109
4259
  ${this.renderTextareaFooter()}
4110
- `}};Z.styles=[...ve.styles,...Nc],n([l({type:String})],Z.prototype,"placeholder",2),n([l({type:Boolean})],Z.prototype,"readonly",2),n([l({type:Number})],Z.prototype,"rows",2),n([l({type:Number})],Z.prototype,"cols",2),n([l({type:String})],Z.prototype,"wrap",2),n([l({type:String})],Z.prototype,"autocapitalize",2),n([l({type:String})],Z.prototype,"autocomplete",2),n([l({type:Boolean})],Z.prototype,"autofocus",2),n([l({type:String})],Z.prototype,"dirname",2),n([l({type:Number})],Z.prototype,"maxlength",2),n([l({type:Number})],Z.prototype,"minlength",2),n([l({type:Number,attribute:"max-character-limit"})],Z.prototype,"maxCharacterLimit",2),n([Fe("textarea")],Z.prototype,"inputElement",2);var ss=Z;ss.register(_c);var Dp=ss;var Ci=f.constructTagName("themeprovider"),ns={THEMECLASS:"mds-theme-stable-darkWebex"};var ki=class{constructor(t){this.themeclass=t}};ki.context=Ci;var wi=ki;var $p=u`
4260
+ `}};j.styles=[...ye.styles,...Pc],n([l({type:String})],j.prototype,"placeholder",2),n([l({type:Boolean})],j.prototype,"readonly",2),n([l({type:Number})],j.prototype,"rows",2),n([l({type:Number})],j.prototype,"cols",2),n([l({type:String})],j.prototype,"wrap",2),n([l({type:String})],j.prototype,"autocapitalize",2),n([l({type:String})],j.prototype,"autocomplete",2),n([l({type:Boolean})],j.prototype,"autofocus",2),n([l({type:String})],j.prototype,"dirname",2),n([l({type:Number})],j.prototype,"maxlength",2),n([l({type:Number})],j.prototype,"minlength",2),n([l({type:Number,attribute:"max-character-limit"})],j.prototype,"maxCharacterLimit",2),n([Be("textarea")],j.prototype,"inputElement",2);var hs=j;hs.register(Uc);var qp=hs;var Oi=f.constructTagName("themeprovider"),us={THEMECLASS:"mds-theme-stable-darkWebex"};var Mi=class{constructor(t){this.themeclass=t}};Mi.context=Oi;var Di=Mi;var Kp=u`
4111
4261
  :host {
4112
4262
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
4113
4263
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -4136,7 +4286,7 @@
4136
4286
  * {
4137
4287
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
4138
4288
  }
4139
- `,Lc=[$p];var _r=class extends er{constructor(){super({context:wi.context,initialValue:new wi(ns.THEMECLASS)});this.themeclass=ns.THEMECLASS}static get Context(){return wi.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(" "))}};_r.styles=[...er.styles,...Lc],n([R()],_r.prototype,"currentThemeClass",2),n([l({type:String})],_r.prototype,"themeclass",2);var ls=_r;ls.register(Ci);var zp=ls;var Oc=f.constructTagName("toggle"),bo={DEFAULT:"default",COMPACT:"compact"};var cs={SIZE:bo.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Pp=[N,u`
4289
+ `,Fc=[Kp];var Rr=class extends or{constructor(){super({context:Di.context,initialValue:new Di(us.THEMECLASS)});this.themeclass=us.THEMECLASS}static get Context(){return Di.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(" "))}};Rr.styles=[...or.styles,...Fc],n([L()],Rr.prototype,"currentThemeClass",2),n([l({type:String})],Rr.prototype,"themeclass",2);var fs=Rr;fs.register(Oi);var Zp=fs;var Bc=f.constructTagName("toggle"),yo={DEFAULT:"default",COMPACT:"compact"};var bs={SIZE:yo.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Xp=[w,u`
4140
4290
  :host {
4141
4291
  --mdc-toggle-width: 3rem;
4142
4292
  --mdc-toggle-height: 1.5rem;
@@ -4218,7 +4368,7 @@
4218
4368
  :host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
4219
4369
  color: var(--mdc-toggle-label-color-disabled);
4220
4370
  }
4221
- `,..._(!0)],Mc=Pp;var Yt=class extends le(V(ve)){constructor(){super(...arguments);this.checked=!1;this.size=cs.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(bo).includes(e)?e:cs.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
4371
+ `,..._(!0)],Hc=Xp;var Kt=class extends ce(V(ye)){constructor(){super(...arguments);this.checked=!1;this.size=bs.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(yo).includes(e)?e:bs.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
4222
4372
  <mdc-statictoggle
4223
4373
  ?checked="${this.checked}"
4224
4374
  ?disabled="${this.disabled}"
@@ -4247,7 +4397,7 @@
4247
4397
  </mdc-statictoggle>
4248
4398
  ${this.renderLabel()}
4249
4399
  ${this.renderHelperText()}
4250
- `}};Yt.styles=[...ve.styles,...Mc],n([l({type:Boolean,reflect:!0})],Yt.prototype,"checked",2),n([l({type:String,reflect:!0})],Yt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Yt.prototype,"autofocus",2);var ds=Yt;ds.register(Oc);var Up=ds;var Dc=f.constructTagName("toggletip"),Wt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:te.TOP,CLICK:Mt.CLICK,SHOW_ARROW:!0};var Vp=u`
4400
+ `}};Kt.styles=[...ye.styles,...Hc],n([l({type:Boolean,reflect:!0})],Kt.prototype,"checked",2),n([l({type:String,reflect:!0})],Kt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Kt.prototype,"autofocus",2);var gs=Kt;gs.register(Bc);var jp=gs;var Gc=f.constructTagName("toggletip"),Zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:oe.TOP,CLICK:$t.CLICK,SHOW_ARROW:!0};var Qp=u`
4251
4401
  :host {
4252
4402
  --mdc-toggletip-max-width: 400px;
4253
4403
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -4269,17 +4419,25 @@
4269
4419
  :host([color='contrast'])::part(popover-content) {
4270
4420
  color: var(--mdc-toggletip-text-color-contrast);
4271
4421
  }
4272
- `,$c=[Vp];var qt=class extends Ce{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Wt.CLOSE_BUTTON,this.closeButtonAriaLabel=Wt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Wt.PLACEMENT,this.trigger=Wt.CLICK,this.showArrow=Wt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(te).includes(this.placement)||(this.placement=Wt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
4422
+
4423
+ :host(:dir(ltr))::part(popover-content) {
4424
+ margin-right: 2rem;
4425
+ }
4426
+
4427
+ :host(:dir(rtl))::part(popover-content) {
4428
+ margin-left: 2rem;
4429
+ }
4430
+ `,Yc=[Qp];var Xt=class extends ke{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Zt.CLOSE_BUTTON,this.closeButtonAriaLabel=Zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Zt.PLACEMENT,this.trigger=Zt.CLICK,this.showArrow=Zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(oe).includes(this.placement)||(this.placement=Zt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
4273
4431
  ${super.render()}
4274
4432
  <mdc-screenreaderannouncer
4275
4433
  identity="${this.screenreaderAnnouncerIdentity}"
4276
4434
  announcement="${this.currentAnnouncement}"
4277
4435
  delay="300">
4278
4436
  </mdc-screenreaderannouncer>
4279
- `}};qt.styles=[...Ce.styles,...$c],n([Ro()],qt.prototype,"defaultSlotNodes",2),n([R()],qt.prototype,"currentAnnouncement",2),n([l({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],qt.prototype,"screenreaderAnnouncerIdentity",2);var ms=qt;ms.register(Dc);var Fp=ms;function Kt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,c,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((E,S)=>r[S]!==E)))return o;r=b;let y;if(e.key&&((c=e.debug)!=null&&c.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,C=S/16,I=(k,O)=>{for(k=String(k);k.length<O;)k=" "+k;return k};console.info(`%c\u23F1 ${I(S,5)} /${I(E,5)} ms`,`
4437
+ `}};Xt.styles=[...ke.styles,...Yc],n([Mo()],Xt.prototype,"defaultSlotNodes",2),n([L()],Xt.prototype,"currentAnnouncement",2),n([l({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Xt.prototype,"screenreaderAnnouncerIdentity",2);var vs=Xt;vs.register(Gc);var Jp=vs;function jt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,c,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((T,S)=>r[S]!==T)))return o;r=b;let y;if(e.key&&((c=e.debug)!=null&&c.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let T=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,k=S/16,I=(N,O)=>{for(N=String(N);N.length<O;)N=" "+N;return N};console.info(`%c\u23F1 ${I(S,5)} /${I(T,5)} ms`,`
4280
4438
  font-size: .6rem;
4281
4439
  font-weight: bold;
4282
- color: hsl(${Math.max(0,Math.min(120-120*C,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function Ni(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var zc=(i,t)=>Math.abs(i-t)<1,Pc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var Bp=i=>i,Hp=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Vc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Uc={passive:!0};var Gp=typeof window>"u"?!0:"onscrollend"in window,Fc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&Gp?()=>{}:Pc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Uc),e.addEventListener("scrollend",d,Uc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var Yp=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Bc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},_i=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(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Bp,rangeExtractor:Hp,onChange:()=>{},measureElement:Yp,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Kt(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,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 o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=Kt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Kt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,E=c.get(b),S=typeof E=="number"?E:this.options.estimateSize(h),C=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:C,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Kt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?Wp({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Kt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Kt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Ni(r[Hc(0,r.length-1,o=>Ni(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;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 o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,c]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=Ni(this.getOffsetForIndex(e,c));zc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,behavior:o})}))},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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Hc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function Wp({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Hc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ps=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new _i(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ri=class extends ps{constructor(t,e){super(t,{observeElementRect:Vc,observeElementOffset:Fc,scrollToFn:Bc,...e})}};var{I:SM}=Ps;var Gc=i=>i.strings===void 0;var go=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),go(o,t);return!0},Li=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Yc=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),Zp(t)}};function qp(i){this._$AN!==void 0?(Li(this),this._$AM=i,Yc(this)):this._$AM=i}function Kp(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)go(r[a],!1),Li(r[a]);else r!=null&&(go(r,!1),Li(r));else go(this,i)}var Zp=i=>{var t,e;i.type==Fo.CHILD&&((t=i._$AP)!=null||(i._$AP=Kp),(e=i._$AQ)!=null||(i._$AQ=qp))},Oi=class extends cr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Yc(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(go(this,t),Li(this))}setValue(t){if(Gc(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 Wc=()=>new us,us=class{},hs=new WeakMap,qc=Kr(class extends Oi{render(i){return g}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=hs.get(e);r===void 0&&(r=new WeakMap,hs.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=hs.get((i=this.ht)!=null?i: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 Xp=[u`
4440
+ color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function $i(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Wc=(i,t)=>Math.abs(i-t)<1,qc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var eh=i=>i,th=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Zc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Kc={passive:!0};var rh=typeof window>"u"?!0:"onscrollend"in window,Xc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&rh?()=>{}:qc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Kc),e.addEventListener("scrollend",d,Kc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var oh=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var jc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},zi=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(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eh,rangeExtractor:th,onChange:()=>{},measureElement:oh,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=jt(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,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 o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=jt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=jt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,T=c.get(b),S=typeof T=="number"?T:this.options.estimateSize(h),k=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:k,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?ih({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=jt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=jt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return $i(r[Qc(0,r.length-1,o=>$i(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;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 o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,c]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=$i(this.getOffsetForIndex(e,c));Wc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,behavior:o})}))},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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Qc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function ih({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Qc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ys=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new zi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pi=class extends ys{constructor(t,e){super(t,{observeElementRect:Zc,observeElementOffset:Xc,scrollToFn:jc,...e})}};var{I:kD}=Ys;var Jc=i=>i.strings===void 0;var xo=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),xo(o,t);return!0},Ui=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},ed=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),nh(t)}};function ah(i){this._$AN!==void 0?(Ui(this),this._$AM=i,ed(this)):this._$AM=i}function sh(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)xo(r[a],!1),Ui(r[a]);else r!=null&&(xo(r,!1),Ui(r));else xo(this,i)}var nh=i=>{var t,e;i.type==Go.CHILD&&((t=i._$AP)!=null||(i._$AP=sh),(e=i._$AQ)!=null||(i._$AQ=ah))},Vi=class extends mr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ed(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(xo(this,t),Ui(this))}setValue(t){if(Jc(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 td=()=>new Es,Es=class{},xs=new WeakMap,rd=Xr(class extends Vi{render(i){return g}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=xs.get(e);r===void 0&&(r=new WeakMap,xs.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=xs.get((i=this.ht)!=null?i: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 lh=[u`
4283
4441
  :host::part(scroll) {
4284
4442
  height: 100%;
4285
4443
  width: 100%;
@@ -4289,31 +4447,31 @@
4289
4447
  position: relative;
4290
4448
  width: 100%;
4291
4449
  }
4292
- `],Kc=Xp;var Zc=f.constructTagName("virtualizedlist"),VM=f.constructTagName("virtualizedwrapper"),Xc={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Zt=class extends v{constructor(){super();this.virtualizerProps=Xc.VIRTUALIZER_PROPS;this.scrollElementRef=Wc();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 Ri(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 c,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(c=p[0])==null?void 0:c.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
4450
+ `],od=lh;var id=f.constructTagName("virtualizedlist"),HD=f.constructTagName("virtualizedwrapper"),ad={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Qt=class extends v{constructor(){super();this.virtualizerProps=ad.VIRTUALIZER_PROPS;this.scrollElementRef=td();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 Pi(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 c,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(c=p[0])==null?void 0:c.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
4293
4451
  part="container"
4294
4452
  style="height: ${r()}px;"
4295
4453
  >
4296
4454
  <slot></slot>
4297
4455
  </div>`}render(){return m`<div
4298
- ${qc(this.scrollElementRef)}
4456
+ ${rd(this.scrollElementRef)}
4299
4457
  part="scroll"
4300
4458
  @scroll=${this.onscroll&&this.onscroll}
4301
4459
  >
4302
4460
  ${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
4303
4461
  </div>
4304
- `}};Zt.styles=[...v.styles,...Kc],n([l({type:Function,attribute:"onscroll"})],Zt.prototype,"onscroll",2),n([l({type:Object,attribute:"virtualizerprops"})],Zt.prototype,"virtualizerProps",2),n([l({type:Function,attribute:"setlistdata"})],Zt.prototype,"setlistdata",2);var fs=Zt;fs.register(Zc);var jp=fs;var Mi=class extends je{connectedCallback(){super.connectedCallback(),this.role=re.MENUITEM,this.variant=lo.INSET_RECTANGLE}};Mi.styles=[...je.styles];var Je=Mi;var jc=f.constructTagName("menuitem");Je.register(jc);var Qp=Je;var Qc=f.constructTagName("menuitemradio"),bs={TRUE:"true",FALSE:"false"};var vo=class extends Je{constructor(){super(...arguments);this.ariaChecked=bs.FALSE}connectedCallback(){super.connectedCallback(),this.role=re.MENUITEMRADIO}render(){return m`
4462
+ `}};Qt.styles=[...v.styles,...od],n([l({type:Function,attribute:"onscroll"})],Qt.prototype,"onscroll",2),n([l({type:Object,attribute:"virtualizerprops"})],Qt.prototype,"virtualizerProps",2),n([l({type:Function,attribute:"setlistdata"})],Qt.prototype,"setlistdata",2);var Ts=Qt;Ts.register(id);var ch=Ts;var sd=f.constructTagName("menuitemradio"),As={TRUE:"true",FALSE:"false"};var Eo=class extends et{constructor(){super(...arguments);this.ariaChecked=As.FALSE}connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEMRADIO}render(){return m`
4305
4463
  <div part="leading-controls">
4306
4464
  <mdc-staticradio
4307
4465
  slot="leading-controls"
4308
- ?checked="${this.ariaChecked===bs.TRUE}"
4466
+ ?checked="${this.ariaChecked===As.TRUE}"
4309
4467
  ?disabled="${this.disabled}"
4310
4468
  ></mdc-staticradio>
4311
4469
  </div>
4312
4470
  <div part="leading-text">
4313
- ${this.getText("leading-text-primary-label",T.BODY_MIDSIZE_REGULAR,this.label)}
4314
- ${this.getText("leading-text-secondary-label",T.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
4471
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
4472
+ ${this.getText("leading-text-secondary-label",E.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
4315
4473
  </div>
4316
- `}};vo.styles=[...Je.styles],n([l({type:String,reflect:!0,attribute:"aria-checked"})],vo.prototype,"ariaChecked",2);var gs=vo;gs.register(Qc);var Jp=gs;var Jc=f.constructTagName("menuitemcheckbox"),yo={FALSE:"false",TRUE:"true"},xo={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},vs={ARIA_CHECKED:yo.FALSE,INDICATOR:xo.CHECKBOX};var eh=u`
4474
+ `}};Eo.styles=[...et.styles],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Eo.prototype,"ariaChecked",2);var Ss=Eo;Ss.register(sd);var dh=Ss;var nd=f.constructTagName("menuitemcheckbox"),To={FALSE:"false",TRUE:"true"},Ao={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Is={ARIA_CHECKED:To.FALSE,INDICATOR:Ao.CHECKBOX};var mh=u`
4317
4475
  :host {
4318
4476
  --mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
4319
4477
  }
@@ -4323,20 +4481,20 @@
4323
4481
  :host([disabled])::part(checkmark-icon) {
4324
4482
  --mdc-icon-fill-color: currentColor;
4325
4483
  }
4326
- `,ed=[eh];var Rr=class extends Je{constructor(){super(...arguments);this.ariaChecked=vs.ARIA_CHECKED;this.indicator=vs.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=re.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==xo.CHECKBOX?g:m`
4484
+ `,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=ie.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==Ao.CHECKBOX?g:m`
4327
4485
  <mdc-staticcheckbox
4328
4486
  slot="leading-controls"
4329
- ?checked="${this.ariaChecked===yo.TRUE}"
4487
+ ?checked="${this.ariaChecked===To.TRUE}"
4330
4488
  ?disabled="${this.disabled}"
4331
4489
  ></mdc-staticcheckbox>
4332
- `}staticToggle(){return this.indicator!==xo.TOGGLE?g:m`
4490
+ `}staticToggle(){return this.indicator!==Ao.TOGGLE?g:m`
4333
4491
  <mdc-statictoggle
4334
4492
  slot="trailing-controls"
4335
- ?checked="${this.ariaChecked===yo.TRUE}"
4493
+ ?checked="${this.ariaChecked===To.TRUE}"
4336
4494
  ?disabled="${this.disabled}"
4337
- size="${bo.COMPACT}"
4495
+ size="${yo.COMPACT}"
4338
4496
  ></mdc-statictoggle>
4339
- `}getCheckmarkIcon(){return this.indicator!==xo.CHECKMARK||this.ariaChecked===yo.FALSE?g:m`
4497
+ `}getCheckmarkIcon(){return this.indicator!==Ao.CHECKMARK||this.ariaChecked===To.FALSE?g:m`
4340
4498
  <mdc-icon
4341
4499
  slot="trailing-controls"
4342
4500
  name="check-bold"
@@ -4347,21 +4505,21 @@
4347
4505
  ${this.staticCheckbox()}
4348
4506
  <slot name="leading-controls"></slot>
4349
4507
  <div part="leading-text">
4350
- ${this.getText("leading-text-primary-label",T.BODY_MIDSIZE_REGULAR,this.label)}
4351
- ${this.getText("leading-text-secondary-label",T.BODY_SMALL_REGULAR,this.secondaryLabel)}
4352
- ${this.getText("leading-text-tertiary-label",T.BODY_SMALL_REGULAR,this.tertiaryLabel)}
4508
+ ${this.getText("leading-text-primary-label",E.BODY_MIDSIZE_REGULAR,this.label)}
4509
+ ${this.getText("leading-text-secondary-label",E.BODY_SMALL_REGULAR,this.secondaryLabel)}
4510
+ ${this.getText("leading-text-tertiary-label",E.BODY_SMALL_REGULAR,this.tertiaryLabel)}
4353
4511
  </div>
4354
4512
  </div>
4355
4513
  <div part="trailing">
4356
4514
  <div part="trailing-text">
4357
- ${this.getText("trailing-text-side-header",T.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
4358
- ${this.getText("trailing-text-subline",T.BODY_SMALL_REGULAR,this.sublineText)}
4515
+ ${this.getText("trailing-text-side-header",E.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
4516
+ ${this.getText("trailing-text-subline",E.BODY_SMALL_REGULAR,this.sublineText)}
4359
4517
  </div>
4360
4518
  <slot name="trailing-controls"></slot>
4361
4519
  ${this.staticToggle()}
4362
4520
  ${this.getCheckmarkIcon()}
4363
4521
  </div>
4364
- `}};Rr.styles=[...Je.styles,...ed],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Rr.prototype,"ariaChecked",2),n([l({type:String,reflect:!0})],Rr.prototype,"indicator",2);var ys=Rr;ys.register(Jc);var th=ys;})();
4522
+ `}};Or.styles=[...et.styles,...ld],n([l({type:String,reflect:!0,attribute:"aria-checked"})],Or.prototype,"ariaChecked",2),n([l({type:String,reflect:!0})],Or.prototype,"indicator",2);var Cs=Or;Cs.register(nd);var ph=Cs;})();
4365
4523
  /*! Bundled license information:
4366
4524
 
4367
4525
  @lit/reactive-element/css-tag.js: