/*! For license information please see 56297.bd9b97e05cfb0e4d.js.LICENSE.txt */
export const __rspack_esm_id="56297";export const __rspack_esm_ids=["56297"];export const __webpack_modules__={50248(t,e,o){o.d(e,{n:()=>a});const a=(t=document)=>t.activeElement?.shadowRoot?.activeElement?a(t.activeElement.shadowRoot):t.activeElement},75248(t,e,o){o.a(t,async function(t,a){try{o.r(e),o.d(e,{HaIconOverflowMenu:()=>m});o(18111),o(61701);var r=o(62826),i=o(96196),n=o(44457),s=o(94333),l=o(14503),d=(o(67134),o(26300),o(67094),o(34127)),c=(o(16443),o(58491),t([d]));d=(c.then?(await c)():c)[0];const h="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z";class m extends i.WF{render(){return 0===this.items.length?i.s6:i.qy` ${this.narrow?i.qy` <ha-md-button-menu @click="${this._handleIconOverflowMenuOpened}" positioning="popover"> <ha-icon-button .label="${this.hass.localize("ui.common.overflow_menu")}" .path="${h}" slot="trigger"></ha-icon-button> ${this.items.map(t=>t.divider?i.qy`<ha-md-divider role="separator" tabindex="-1"></ha-md-divider>`:i.qy`<ha-md-menu-item ?disabled="${t.disabled}" .clickAction="${t.action}" class="${(0,s.H)({warning:Boolean(t.warning)})}"> <ha-svg-icon slot="start" class="${(0,s.H)({warning:Boolean(t.warning)})}" .path="${t.path}"></ha-svg-icon> ${t.label} </ha-md-menu-item>`)} </ha-md-button-menu>`:i.qy` ${this.items.map(t=>t.narrowOnly?i.s6:t.divider?i.qy`<div role="separator"></div>`:i.qy`<ha-tooltip .disabled="${!t.tooltip}" .for="icon-button-${t.label}">${t.tooltip??""} </ha-tooltip><ha-icon-button .id="icon-button-${t.label}" @click="${t.action}" .label="${t.label}" .path="${t.path}" ?disabled="${t.disabled}"></ha-icon-button> `)} `} `}_handleIconOverflowMenuOpened(t){t.stopPropagation()}static get styles(){return[l.RF,i.AH`:host{display:flex;justify-content:flex-end;cursor:initial}div[role=separator]{border-right:1px solid var(--divider-color);width:1px}`]}constructor(...t){super(...t),this.items=[],this.narrow=!1}}(0,r.Cg)([(0,n.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,r.Cg)([(0,n.MZ)({type:Array})],m.prototype,"items",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],m.prototype,"narrow",void 0),m=(0,r.Cg)([(0,n.EM)("ha-icon-overflow-menu")],m),a()}catch(t){a(t)}})},67134(t,e,o){var a=o(62826),r=o(96196),i=o(44457),n=o(1087);o(22444),o(69175);class s extends r.WF{get items(){return this._menu.items}focus(){this._menu.open?this._menu.focus():this._triggerButton?.focus()}render(){return r.qy` <div @click="${this._handleClick}"> <slot name="trigger" @slotchange="${this._setTriggerAria}"></slot> </div> <ha-md-menu .quick="${this.quick}" .positioning="${this.positioning}" .hasOverflow="${this.hasOverflow}" .anchorCorner="${this.anchorCorner}" .menuCorner="${this.menuCorner}" @opening="${this._handleOpening}" @closing="${this._handleClosing}"> <slot></slot> </ha-md-menu> `}_handleOpening(){(0,n.r)(this,"opening",void 0,{composed:!1})}_handleClosing(){(0,n.r)(this,"closing",void 0,{composed:!1})}_handleClick(){this.disabled||(this._menu.anchorElement=this,this._menu.open?this._menu.close():this._menu.show())}get _triggerButton(){return this.querySelector('ha-icon-button[slot="trigger"], ha-button[slot="trigger"], ha-assist-chip[slot="trigger"]')}_setTriggerAria(){this._triggerButton&&(this._triggerButton.ariaHasPopup="menu")}constructor(...t){super(...t),this.disabled=!1,this.anchorCorner="end-start",this.menuCorner="start-start",this.hasOverflow=!1,this.quick=!1}}s.styles=r.AH`:host{display:inline-block;position:relative}::slotted([disabled]){color:var(--disabled-text-color)}`,(0,a.Cg)([(0,i.MZ)({type:Boolean})],s.prototype,"disabled",void 0),(0,a.Cg)([(0,i.MZ)()],s.prototype,"positioning",void 0),(0,a.Cg)([(0,i.MZ)({attribute:"anchor-corner"})],s.prototype,"anchorCorner",void 0),(0,a.Cg)([(0,i.MZ)({attribute:"menu-corner"})],s.prototype,"menuCorner",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,attribute:"has-overflow"})],s.prototype,"hasOverflow",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean})],s.prototype,"quick",void 0),(0,a.Cg)([(0,i.P)("ha-md-menu",!0)],s.prototype,"_menu",void 0),s=(0,a.Cg)([(0,i.EM)("ha-md-button-menu")],s)},58491(t,e,o){var a=o(62826),r=o(10414),i=o(18989),n=o(96196),s=o(44457);class l extends r.c{}l.styles=[i.R,n.AH`:host{--md-divider-color:var(--divider-color)}`],l=(0,a.Cg)([(0,s.EM)("ha-md-divider")],l)},16443(t,e,o){var a=o(62826),r=o(54407),i=o(28522),n=o(96196),s=o(44457);class l extends r.K{}l.styles=[i.R,n.AH`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color);--md-sys-color-secondary-container:rgba(
          var(--rgb-primary-color),
          0.15
        );--md-sys-color-on-secondary-container:var(--text-primary-color);--mdc-icon-size:16px;--md-sys-color-on-primary-container:var(--primary-text-color);--md-sys-color-on-secondary-container:var(--primary-text-color);--md-menu-item-label-text-font:Roboto,sans-serif}:host(.warning){--md-menu-item-label-text-color:var(--error-color);--md-menu-item-leading-icon-color:var(--error-color)}::slotted([slot=headline]){text-wrap:nowrap}:host([disabled]){opacity:1;--md-menu-item-label-text-color:var(--disabled-text-color);--md-menu-item-leading-icon-color:var(--disabled-text-color)}`],(0,a.Cg)([(0,s.MZ)({attribute:!1})],l.prototype,"clickAction",void 0),l=(0,a.Cg)([(0,s.EM)("ha-md-menu-item")],l)},69175(t,e,o){var a=o(62826),r=o(26139),i=o(31270),n=o(40993),s=o(96196),l=o(44457);class d extends r.W1{connectedCallback(){super.connectedCallback(),this.addEventListener("close-menu",this._handleCloseMenu)}_handleCloseMenu(t){t.detail.reason.kind===n.fi.KEYDOWN&&t.detail.reason.key===n.NV.ESCAPE||t.detail.initiator.clickAction?.(t.detail.initiator)}}d.styles=[i.R,s.AH`:host{--md-sys-color-surface-container:var(--card-background-color)}`],d=(0,a.Cg)([(0,l.EM)("ha-md-menu")],d)},34127(t,e,o){o.a(t,async function(t,e){try{var a=o(62826),r=o(52630),i=o(96196),n=o(44457),s=t([r]);r=(s.then?(await s)():s)[0];class l extends r.A{static get styles(){return[r.A.styles,i.AH`:host{--wa-tooltip-background-color:var(--secondary-background-color);--wa-tooltip-content-color:var(--primary-text-color);--wa-tooltip-font-family:var(
            --ha-tooltip-font-family,
            var(--ha-font-family-body)
          );--wa-tooltip-font-size:var(
            --ha-tooltip-font-size,
            var(--ha-font-size-s)
          );--wa-tooltip-font-weight:var(
            --ha-tooltip-font-weight,
            var(--ha-font-weight-normal)
          );--wa-tooltip-line-height:var(
            --ha-tooltip-line-height,
            var(--ha-line-height-condensed)
          );--wa-tooltip-padding:8px;--wa-tooltip-border-radius:var(
            --ha-tooltip-border-radius,
            var(--ha-border-radius-sm)
          );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 8px);--wa-z-index-tooltip:var(--ha-tooltip-z-index, 1000)}`]}constructor(...t){super(...t),this.showDelay=150,this.hideDelay=150}}(0,a.Cg)([(0,n.MZ)({attribute:"show-delay",type:Number})],l.prototype,"showDelay",void 0),(0,a.Cg)([(0,n.MZ)({attribute:"hide-delay",type:Number})],l.prototype,"hideDelay",void 0),l=(0,a.Cg)([(0,n.EM)("ha-tooltip")],l),e()}catch(t){e(t)}})},22444(t,e,o){o.d(e,{oO:()=>g,t3:()=>m,zU:()=>h,Jh:()=>p,ui:()=>c});o(44114),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);const a=(t,e,o=true)=>{if(!t||t===document.body)return null;if((t=t.assignedSlot??t).parentElement)t=t.parentElement;else{const e=t.getRootNode();t=e instanceof ShadowRoot?e.host:null}return(o?Object.prototype.hasOwnProperty.call(t,e):t&&e in t)?t:a(t,e,o)};if(66649!=o.j)var r=o(50248);var i=o(63091);if(66649!=o.j)var n=o(12587);const s={},l=[],d=Symbol.for("HA focus target"),c=async(t,e,o,n,h,m=!0)=>{if(!(o in s)){if(!h)return!1;s[o]={element:h().then(()=>{const e=document.createElement(o);return t.provideHass(e),e.addEventListener("dialog-closed",u),e.addEventListener("dialog-closed",v),e})}}if(m){const{history:a}=i.G;if(a.state?.dialog&&!l.length)return await new Promise(t=>{setTimeout(t)}),c(t,e,o,n,h,m);const r=l.findIndex(t=>t.dialogTag===o);-1!==r&&l.splice(r,1),l.push({element:t,root:e,dialogTag:o,dialogParams:n,dialogImport:h,addHistory:m});const s={dialog:o};a.state?.dialog?a.replaceState(s,""):(a.replaceState({...a.state,opensDialog:!0},""),a.pushState(s,""))}s[o].closedFocusTargets=((t,e,o=!0)=>{const r=new Set;for(;t;)r.add(t),t=a(t,e,o);return r})((0,r.n)(),d);const p=await s[o].element;return e.appendChild(p),p.showDialog(n),!0},h=async(t,e)=>{if(!(t in s))return!0;const o=await s[t].element;return!o.closeDialog||!1!==o.closeDialog(e)},m=async t=>{if(l.length){const e=l.pop(),o=await h(e.dialogTag,t);return o?l.length&&i.G.history.state?.opensDialog&&i.G.history.pushState({dialog:l[l.length-1].dialogTag},""):l.push(e),o}return!0},p=async()=>{for(let t=l.length-1;t>=0;t--){if(!(!l[t]||await h(l[t].dialogTag)))return!1}return!0},u=t=>{const e=l.findIndex(e=>e.dialogTag===t.detail.dialog);-1!==e&&l.splice(e,1),i.G.history.state?.dialog===t.detail.dialog&&(l.length?i.G.history.replaceState({dialog:l[l.length-1].dialogTag},""):-1!==e&&i.G.history.back())},g=(t,e)=>{t.addEventListener("show-dialog",o=>{const{dialogTag:a,dialogImport:r,dialogParams:i,addHistory:n}=o.detail;c(t,e,a,i,r,n)})},v=async t=>{if(!s[t.detail.dialog])return;const e=s[t.detail.dialog].closedFocusTargets;if(delete s[t.detail.dialog].closedFocusTargets,!e)return;let o=(0,r.n)();o instanceof HTMLElement&&o.blur(),await(0,n.E)();for(const t of e)if(t instanceof HTMLElement&&(t.focus(),o=(0,r.n)(),o&&o!==document.body))return}},14503(t,e,o){o.d(e,{RF:()=>i,dp:()=>l,kO:()=>s,nA:()=>n,og:()=>r});var a=o(96196);const r=a.AH`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`,i=a.AH`:host{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}h1{font-family:var(--ha-font-family-heading);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal)}h3{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error{color:var(--error-color)}.warning{color:var(--error-color)}${r} .card-actions a{text-decoration:none}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`,n=a.AH`ha-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:600px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between;--dialog-container-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--dialog-surface-padding:0px}ha-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media all and (max-width:450px),all and (max-height:500px){ha-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--dialog-container-padding:0px;--dialog-surface-padding:var(--safe-area-inset-top, 0) var(--safe-area-inset-right, 0) var(--safe-area-inset-bottom, 0) var(--safe-area-inset-left, 0);--vertical-align-dialog:flex-end;--ha-dialog-border-radius:var(--ha-border-radius-square)}}.error{color:var(--error-color)}`,s=a.AH`ha-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--mdc-dialog-max-height:calc(
      100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    )}@media all and (max-width:450px),all and (max-height:500px){ha-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh}}`,l=a.AH`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`;a.AH`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`},18989(t,e,o){o.d(e,{R:()=>a});const a=o(96196).AH`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors:active){:host::before{background:CanvasText}}`},10414(t,e,o){o.d(e,{c:()=>n});var a=o(62826),r=o(96196),i=o(44457);class n extends r.WF{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],n.prototype,"inset",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0,attribute:"inset-start"})],n.prototype,"insetStart",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0,attribute:"inset-end"})],n.prototype,"insetEnd",void 0)},83461(t,e,o){var a=o(62826),r=o(44457),i=o(96196);class n extends i.WF{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return i.qy`<span class="shadow"></span>`}}const s=i.AH`.shadow,.shadow::after,.shadow::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::after,.shadow::before{content:"";transition-property:box-shadow,opacity;--_level:var(--md-elevation-level, 0);--_shadow-color:var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}`;let l=class extends n{};l.styles=[s],l=(0,a.Cg)([(0,r.EM)("md-elevation")],l)},4469(t,e,o){var a=o(62826),r=o(44457),i=o(96196),n=o(76482);const s=["focusin","focusout","pointerdown"];class l extends i.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[d]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[d]=!0}}onControlChange(t,e){if(!i.S$)for(const o of s)t?.removeEventListener(o,this),e?.addEventListener(o,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new n.i(this,this.onControlChange.bind(this))}}(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing"),c=i.AH`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`;let h=class extends l{};h.styles=[c],h=(0,a.Cg)([(0,r.EM)("md-focus-ring")],h)},20618(t,e,o){o.d(e,{n:()=>d});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var a=o(96196);const r=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],i=r.map(s);function n(t){return i.includes(t)}function s(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(a.S$)return t;class o extends t{attributeChangedCallback(t,e,o){if(!n(t))return void super.attributeChangedCallback(t,e,o);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const a=h(t);null===o?delete this.dataset[a]:this.dataset[a]=o,this.requestUpdate(h(t),e)}getAttribute(t){return n(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),n(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}constructor(){super(...arguments),this[e]=new Set}}return e=l,function(t){for(const e of r){const o=s(e),a=c(o),r=h(o);t.createProperty(e,{attribute:o,noAccessor:!0}),t.createProperty(Symbol(a),{attribute:a,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[r]??null},set(t){const o=this.dataset[r]??null;t!==o&&(null===t?delete this.dataset[r]:this.dataset[r]=t,this.requestUpdate(e,o))}})}}(o),o}function c(t){return`data-${t}`}function h(t){return t.replace(/-\w/,t=>t[1].toUpperCase())}},20903(t,e,o){var a=o(62826),r=o(44457),i=o(96196);class n extends i.WF{render(){return i.qy` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${this.handleTextSlotChange}"></slot> <slot class="default-slot" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="headline" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="supporting-text" @slotchange="${this.handleTextSlotChange}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `}handleTextSlotChange(){let t=!1,e=0;for(const o of this.textSlots)if(s(o)&&(e+=1),e>1){t=!0;break}this.multiline=t}constructor(){super(...arguments),this.multiline=!1}}function s(t){for(const e of t.assignedNodes({flatten:!0})){const t=e.nodeType===Node.ELEMENT_NODE,o=e.nodeType===Node.TEXT_NODE&&e.textContent?.match(/\S/);if(t||o)return!0}return!1}(0,a.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],n.prototype,"multiline",void 0),(0,a.Cg)([(0,r.YG)(".text slot")],n.prototype,"textSlots",void 0);const l=i.AH`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`;let d=class extends n{};d.styles=[l],d=(0,a.Cg)([(0,r.EM)("md-item")],d)},25423(t,e,o){o.d(e,{U:()=>r,Z:()=>i});o(44114);var a=o(27525);const r={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class i{get items(){const t=this.getPossibleItems(),e=[];for(const o of t){if(this.isItem(o)){e.push(o);continue}const t=o.item;t&&this.isItem(t)&&e.push(t)}return e}activateNextItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.wm)(t,e,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const t=this.items,e=(0,a.A6)(t,this.isActivatable);return e&&(e.item.tabIndex=-1),(0,a.u9)(t,e,this.isActivatable,this.wrapNavigation())}constructor(t){this.handleKeydown=t=>{const e=t.key;if(t.defaultPrevented||!this.isNavigableKey(e))return;const o=this.items;if(!o.length)return;const i=(0,a.A6)(o,this.isActivatable);t.preventDefault();const n=this.isRtl(),s=n?r.ArrowRight:r.ArrowLeft,l=n?r.ArrowLeft:r.ArrowRight;let d=null;switch(e){case r.ArrowDown:case l:d=(0,a.wm)(o,i,this.isActivatable,this.wrapNavigation());break;case r.ArrowUp:case s:d=(0,a.u9)(o,i,this.isActivatable,this.wrapNavigation());break;case r.Home:d=(0,a.zT)(o,this.isActivatable);break;case r.End:d=(0,a.RZ)(o,this.isActivatable)}d&&i&&i.item!==d&&(i.item.tabIndex=-1)},this.onDeactivateItems=()=>{const t=this.items;for(const e of t)this.deactivateItem(e)},this.onRequestActivation=t=>{this.onDeactivateItems();const e=t.target;this.activateItem(e),e.focus()},this.onSlotchange=()=>{const t=this.items;let e=!1;for(const o of t){!(!o.disabled&&o.tabIndex>-1)||e?o.tabIndex=-1:(e=!0,o.tabIndex=0)}if(e)return;const o=(0,a.c7)(t,this.isActivatable);o&&(o.tabIndex=0)};const{isItem:e,getPossibleItems:o,isRtl:i,deactivateItem:n,activateItem:s,isNavigableKey:l,isActivatable:d,wrapNavigation:c}=t;this.isItem=e,this.getPossibleItems=o,this.isRtl=i,this.deactivateItem=n,this.activateItem=s,this.isNavigableKey=l,this.isActivatable=d,this.wrapNavigation=c??(()=>!0)}}},27525(t,e,o){function a(t,e=p){const o=s(t,e);return o&&(o.tabIndex=0,o.focus()),o}function r(t,e=p){const o=l(t,e);return o&&(o.tabIndex=0,o.focus()),o}function i(t,e=p){const o=n(t,e);return o&&(o.item.tabIndex=-1),o}function n(t,e=p){for(let o=0;o<t.length;o++){const a=t[o];if(0===a.tabIndex&&e(a))return{item:a,index:o}}return null}function s(t,e=p){for(const o of t)if(e(o))return o;return null}function l(t,e=p){for(let o=t.length-1;o>=0;o--){const a=t[o];if(e(a))return a}return null}function d(t,e,o=p,r=!0){if(e){const a=function(t,e,o=p,a=!0){for(let r=1;r<t.length;r++){const i=(r+e)%t.length;if(i<e&&!a)return null;const n=t[i];if(o(n))return n}return t[e]?t[e]:null}(t,e.index,o,r);return a&&(a.tabIndex=0,a.focus()),a}return a(t,o)}function c(t,e,o=p,a=!0){if(e){const r=function(t,e,o=p,a=!0){for(let r=1;r<t.length;r++){const i=(e-r+t.length)%t.length;if(i>e&&!a)return null;const n=t[i];if(o(n))return n}return t[e]?t[e]:null}(t,e.index,o,a);return r&&(r.tabIndex=0,r.focus()),r}return r(t,o)}function h(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function m(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(t){return!t.disabled}o.d(e,{A6:()=>n,Ex:()=>l,RN:()=>h,RZ:()=>r,c7:()=>s,cG:()=>m,u9:()=>c,ub:()=>i,wm:()=>d,zT:()=>a})},58791(t,e,o){o.d(e,{X:()=>r});o(44114),o(18111),o(7588);var a=o(40993);class r{get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;const t=this.getHeadlineElements(),e=[];return t.forEach(t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())}),0===e.length&&this.getDefaultElements().forEach(t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())}),0===e.length&&this.getSupportingTextElements().forEach(t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())}),e.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:return"li"}}get role(){return"option"===this.host.type?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(t){this.internalTypeaheadText=t}constructor(t,e){this.host=t,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,a.xr)(this.host,{kind:a.fi.CLICK_SELECTION}))},this.onKeydown=t=>{if(this.host.href&&"Enter"===t.code){const t=this.getInteractiveElement();t instanceof HTMLAnchorElement&&t.click()}if(t.defaultPrevented)return;const e=t.code;this.host.keepOpen&&"Escape"!==e||(0,a.Rb)(e)&&(t.preventDefault(),this.host.dispatchEvent((0,a.xr)(this.host,{kind:a.fi.KEYDOWN,key:e})))},this.getHeadlineElements=e.getHeadlineElements,this.getSupportingTextElements=e.getSupportingTextElements,this.getDefaultElements=e.getDefaultElements,this.getInteractiveElement=e.getInteractiveElement,this.host.addController(this)}}},28522(t,e,o){o.d(e,{R:()=>a});const a=o(96196).AH`:host{display:flex;--md-ripple-hover-color:var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, .3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-menu-item-one-line-container-height,56px);padding-top:var(--md-menu-item-top-space,12px);padding-bottom:var(--md-menu-item-bottom-space,12px);padding-inline-start:var(--md-menu-item-leading-space,16px);padding-inline-end:var(--md-menu-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}.list-item{background-color:var(--md-menu-item-container-color,transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color,var(--md-sys-color-secondary-container,#e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color,var(--md-sys-color-on-secondary-container,#1d192b))}@media(forced-colors:active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}`},54407(t,e,o){o.d(e,{K:()=>h});var a=o(62826),r=(o(4469),o(20903),o(71970),o(96196)),i=o(44457),n=o(94333),s=o(28345),l=o(20618),d=o(58791);const c=(0,l.n)(r.WF);class h extends c{get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(t){this.menuItemController.setTypeaheadText(t)}render(){return this.renderListItem(r.qy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(t){const e="link"===this.type;let o;switch(this.menuItemController.tagName){case"a":o=s.eu`a`;break;case"button":o=s.eu`button`;break;default:o=s.eu`li`}const a=e&&this.target?this.target:r.s6;return s.qy`
      <${o}
        id="item"
        tabindex=${this.disabled&&!e?-1:0}
        role=${this.menuItemController.role}
        aria-label=${this.ariaLabel||r.s6}
        aria-selected=${this.ariaSelected||r.s6}
        aria-checked=${this.ariaChecked||r.s6}
        aria-expanded=${this.ariaExpanded||r.s6}
        aria-haspopup=${this.ariaHasPopup||r.s6}
        class="list-item ${(0,n.H)(this.getRenderClasses())}"
        href=${this.href||r.s6}
        target=${a}
        @click=${this.menuItemController.onClick}
        @keydown=${this.menuItemController.onKeydown}
      >${t}</${o}>
    `}renderRipple(){return r.qy` <md-ripple part="ripple" for="item" ?disabled="${this.disabled}"></md-ripple>`}renderFocusRing(){return r.qy` <md-focus-ring part="focus-ring" for="item" inward></md-focus-ring>`}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return r.qy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}focus(){this.listItemRoot?.focus()}constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new d.X(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}}h.shadowRootOptions={...r.WF.shadowRootOptions,delegatesFocus:!0},(0,a.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],h.prototype,"disabled",void 0),(0,a.Cg)([(0,i.MZ)()],h.prototype,"type",void 0),(0,a.Cg)([(0,i.MZ)()],h.prototype,"href",void 0),(0,a.Cg)([(0,i.MZ)()],h.prototype,"target",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean,attribute:"keep-open"})],h.prototype,"keepOpen",void 0),(0,a.Cg)([(0,i.MZ)({type:Boolean})],h.prototype,"selected",void 0),(0,a.Cg)([(0,i.P)(".list-item")],h.prototype,"listItemRoot",void 0),(0,a.Cg)([(0,i.KN)({slot:"headline"})],h.prototype,"headlineElements",void 0),(0,a.Cg)([(0,i.KN)({slot:"supporting-text"})],h.prototype,"supportingTextElements",void 0),(0,a.Cg)([(0,i.gZ)({slot:""})],h.prototype,"defaultElements",void 0),(0,a.Cg)([(0,i.MZ)({attribute:"typeahead-text"})],h.prototype,"typeaheadText",null)},71970(t,e,o){var a=o(62826),r=o(44457),i=o(91382),n=o(96245);let s=class extends i.n{};s.styles=[n.R],s=(0,a.Cg)([(0,r.EM)("md-ripple")],s)}};
//# sourceMappingURL=56297.bd9b97e05cfb0e4d.js.map