export const __rspack_esm_id="22849";export const __rspack_esm_ids=["22849"];export const __webpack_modules__={62384(a,t,o){o.d(t,{v:()=>e});const e=(a,t,o,e)=>{const[i,s,r]=a.split(".",3);return Number(i)>t||Number(i)===t&&(void 0===e?Number(s)>=o:Number(s)>o)||void 0!==e&&Number(i)===t&&Number(s)===o&&Number(r)>=e}},26218(a,t,o){o.d(t,{a:()=>i});const e=(0,o(77796).n)(a=>{history.replaceState({scrollPosition:a},"")},300);function i(a){return(t,o)=>{if("object"==typeof o)throw new Error("This decorator does not support this compilation type.");const i=t.connectedCallback;t.connectedCallback=function(){i.call(this);const t=this[o];t&&this.updateComplete.then(()=>{const o=this.renderRoot.querySelector(a);o&&setTimeout(()=>{o.scrollTop=t},0)})};const s=Object.getOwnPropertyDescriptor(t,o);let r;if(void 0===s)r={get(){return this[`__${String(o)}`]||history.state?.scrollPosition},set(a){e(a),this[`__${String(o)}`]=a},configurable:!0,enumerable:!0};else{const a=s.set;r={...s,set(t){e(t),this[`__${String(o)}`]=t,a?.call(this,t)}}}Object.defineProperty(t,o,r)}}},77796(a,t,o){o.d(t,{n:()=>e});const e=(a,t,o=!0,e=!0)=>{let i,s=0;const r=(...r)=>{const n=()=>{s=!1===o?0:Date.now(),i=void 0,a(...r)},l=Date.now();s||!1!==o||(s=l);const d=t-(l-s);d<=0||d>t?(i&&(clearTimeout(i),i=void 0),s=l,a(...r)):i||!1===e||(i=window.setTimeout(n,d))};return r.cancel=()=>{clearTimeout(i),i=void 0,s=0},r}},76776(a,t,o){var e=o(62826),i=o(96196),s=o(97735);class r extends i.WF{render(){return i.qy` ${this.header?i.qy`<h1 class="card-header">${this.header}</h1>`:i.s6} <slot></slot> `}constructor(...a){super(...a),this.raised=!1}}r.styles=i.AH`:host{background:var(--ha-card-background,var(--card-background-color,#fff));-webkit-backdrop-filter:var(--ha-card-backdrop-filter,none);backdrop-filter:var(--ha-card-backdrop-filter,none);box-shadow:var(--ha-card-box-shadow,none);box-sizing:border-box;border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-width:var(--ha-card-border-width,1px);border-style:solid;border-color:var(--ha-card-border-color,var(--divider-color,#e0e0e0));color:var(--primary-text-color);display:block;transition:all .3s ease-out;position:relative}:host([raised]){border:none;box-shadow:var(--ha-card-box-shadow,0px 2px 1px -1px rgba(0,0,0,.2),0px 1px 1px 0px rgba(0,0,0,.14),0px 1px 3px 0px rgba(0,0,0,.12))}.card-header,:host ::slotted(.card-header){color:var(--ha-card-header-color,var(--primary-text-color));font-family:var(--ha-card-header-font-family, inherit);font-size:var(--ha-card-header-font-size, var(--ha-font-size-2xl));letter-spacing:-.012em;line-height:var(--ha-line-height-expanded);padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);display:block;margin-block-start:0;margin-block-end:0;font-weight:var(--ha-font-weight-normal)}
    :host
      ::slotted(
        .card-content:not(:nth-child(1 of .card-content, .card-header))
      ),
    slot:not(:first-child)::slotted(.card-content) {
      padding-top: 0;
      margin-top: calc(var(--ha-space-2) * -1);
    }
    :host ::slotted(.card-content){padding:var(--ha-space-4)}:host ::slotted(.card-actions){border-top:1px solid var(--divider-color,#e8e8e8);padding:var(--ha-space-2)}`,(0,e.Cg)([(0,s.MZ)()],r.prototype,"header",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],r.prototype,"raised",void 0),r=(0,e.Cg)([(0,s.EM)("ha-card")],r)},90248(a,t,o){o.a(a,async function(a,e){try{o.r(t),o.d(t,{HaIconButtonArrowPrev:()=>p});var i=o(62826),s=o(96196),r=o(97735),n=o(63091),l=o(26300),d=a([l]);l=(d.then?(await d)():d)[0];const c="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",h="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class p extends s.WF{render(){return s.qy` <ha-icon-button .disabled="${this.disabled}" .label="${this.label||this.hass?.localize("ui.common.back")||"Back"}" .path="${this._icon}" .href="${this.href}" .target="${this.target}" .rel="${this.rel}" .download="${this.download}"></ha-icon-button> `}constructor(...a){super(...a),this.disabled=!1,this._icon="rtl"===n.G.document.dir?h:c}}(0,i.Cg)([(0,r.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean})],p.prototype,"disabled",void 0),(0,i.Cg)([(0,r.MZ)()],p.prototype,"label",void 0),(0,i.Cg)([(0,r.MZ)()],p.prototype,"href",void 0),(0,i.Cg)([(0,r.MZ)()],p.prototype,"target",void 0),(0,i.Cg)([(0,r.MZ)()],p.prototype,"rel",void 0),(0,i.Cg)([(0,r.MZ)()],p.prototype,"download",void 0),(0,i.Cg)([(0,r.wk)()],p.prototype,"_icon",void 0),p=(0,i.Cg)([(0,r.EM)("ha-icon-button-arrow-prev")],p),e()}catch(a){e(a)}})},26300(a,t,o){o.a(a,async function(a,e){try{o.r(t),o.d(t,{HaIconButton:()=>c});var i=o(62826),s=o(96196),r=o(97735),n=o(32288),l=o(18350),d=(o(67094),a([l]));l=(d.then?(await d)():d)[0];class c extends s.WF{render(){return s.qy` <ha-button appearance="plain" variant="neutral" aria-label="${(0,n.J)(this.label)}" title="${(0,n.J)(this.hideTitle?void 0:this.label)}" aria-haspopup="${(0,n.J)(this.ariaHasPopup)}" .disabled="${this.disabled}" .iconTag="${this.path?"ha-svg-icon":"span"}" .href="${this.href}" .target="${this.target}" .rel="${this.rel}" .download="${this.download}"> ${this.path?s.qy`<ha-svg-icon .path="${this.path}"></ha-svg-icon>`:s.qy`<span><slot></slot></span>`} </ha-button> `}constructor(...a){super(...a),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}c.shadowRootOptions={mode:"open",delegatesFocus:!0},c.styles=s.AH`:host{display:inline-block;outline:0;--ha-button-height:var(--ha-icon-button-size, 48px)}ha-button{position:relative;isolation:isolate;--wa-form-control-padding-inline:var(
        --ha-icon-button-padding-inline,
        --ha-space-2
      );--wa-color-on-normal:currentColor;--wa-color-fill-quiet:transparent;--ha-button-label-overflow:visible}ha-button::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background-color:currentColor;opacity:0;pointer-events:none}ha-button::part(base){width:var(--wa-form-control-height);aspect-ratio:1;outline-offset:-4px}ha-button::part(label){display:flex}:host([selected]) ha-button::after{opacity:.1}@media (hover:hover){:host(:hover:not([disabled])) ha-button::after{opacity:.1}}`,(0,i.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],c.prototype,"disabled",void 0),(0,i.Cg)([(0,r.MZ)({type:String})],c.prototype,"path",void 0),(0,i.Cg)([(0,r.MZ)({type:String})],c.prototype,"label",void 0),(0,i.Cg)([(0,r.MZ)({type:String,attribute:"aria-haspopup"})],c.prototype,"ariaHasPopup",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"hide-title",type:Boolean})],c.prototype,"hideTitle",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],c.prototype,"selected",void 0),(0,i.Cg)([(0,r.MZ)()],c.prototype,"href",void 0),(0,i.Cg)([(0,r.MZ)()],c.prototype,"target",void 0),(0,i.Cg)([(0,r.MZ)()],c.prototype,"rel",void 0),(0,i.Cg)([(0,r.MZ)()],c.prototype,"download",void 0),c=(0,i.Cg)([(0,r.EM)("ha-icon-button")],c),e()}catch(a){e(a)}})},43661(a,t,o){o.r(t),o.d(t,{HaIconNext:()=>n});var e=o(62826),i=o(97735),s=o(63091),r=o(67094);class n extends r.HaSvgIcon{constructor(...a){super(...a),this.path="rtl"===s.G.document.dir?"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z":"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}}(0,e.Cg)([(0,i.MZ)()],n.prototype,"path",void 0),n=(0,e.Cg)([(0,i.EM)("ha-icon-next")],n)},28732(a,t,o){var e=o(62826),i=o(27686),s=o(7731),r=o(96196),n=o(97735);class l extends i.J{renderRipple(){return this.noninteractive?"":super.renderRipple()}static get styles(){return[s.R,r.AH`:host{padding-left:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-inline-start:var(--mdc-list-side-padding-left,var(--mdc-list-side-padding,20px));padding-right:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px));padding-inline-end:var(--mdc-list-side-padding-right,var(--mdc-list-side-padding,20px))}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:48px}span.material-icons:first-of-type{margin-inline-start:0px!important;margin-inline-end:var(--mdc-list-item-graphic-margin,16px)!important;direction:var(--direction)!important}span.material-icons:last-of-type{margin-inline-start:auto!important;margin-inline-end:0px!important;direction:var(--direction)!important}.mdc-deprecated-list-item__meta{display:var(--mdc-list-item-meta-display);align-items:center;flex-shrink:0}:host([graphic=icon]:not([twoline])) .mdc-deprecated-list-item__graphic{margin-inline-end:var(--mdc-list-item-graphic-margin,20px)!important}:host([multiline-secondary]){height:auto}:host([multiline-secondary]) .mdc-deprecated-list-item__text{padding:8px 0}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text{text-overflow:initial;white-space:normal;overflow:auto;display:inline-block;margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text{margin-top:10px}:host([multiline-secondary]) .mdc-deprecated-list-item__secondary-text::before{display:none}:host([multiline-secondary]) .mdc-deprecated-list-item__primary-text::before{display:none}:host([disabled]){color:var(--disabled-text-color)}:host([noninteractive]){pointer-events:unset}`,"rtl"===document.dir?r.AH`span.material-icons:first-of-type,span.material-icons:last-of-type{direction:rtl!important;--direction:rtl}`:r.AH``]}}l=(0,e.Cg)([(0,n.EM)("ha-list-item")],l)},8630(a,t,o){var e=o(62826),i=o(70402),s=o(11081),r=o(97735);class n extends i.iY{}n.styles=s.R,n=(0,e.Cg)([(0,r.EM)("ha-list")],n)},68186(a,t,o){var e=o(62826),i=o(96196),s=o(97735);class r extends i.WF{render(){return i.qy`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"> <path fill="#18BCF2" d="M240 224.762a15 15 0 0 1-15 15H15a15 15 0 0 1-15-15v-90c0-8.25 4.77-19.769 10.61-25.609l98.78-98.7805c5.83-5.83 15.38-5.83 21.21 0l98.79 98.7895c5.83 5.83 10.61 17.36 10.61 25.61v90-.01Z"/> <path fill="#F2F4F9" d="m107.27 239.762-40.63-40.63c-2.09.72-4.32 1.13-6.64 1.13-11.3 0-20.5-9.2-20.5-20.5s9.2-20.5 20.5-20.5 20.5 9.2 20.5 20.5c0 2.33-.41 4.56-1.13 6.65l31.63 31.63v-115.88c-6.8-3.3395-11.5-10.3195-11.5-18.3895 0-11.3 9.2-20.5 20.5-20.5s20.5 9.2 20.5 20.5c0 8.07-4.7 15.05-11.5 18.3895v81.27l31.46-31.46c-.62-1.96-.96-4.04-.96-6.2 0-11.3 9.2-20.5 20.5-20.5s20.5 9.2 20.5 20.5-9.2 20.5-20.5 20.5c-2.5 0-4.88-.47-7.09-1.29L129 208.892v30.88z"/> </svg>`}}r.styles=i.AH`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:currentcolor;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}`,r=(0,e.Cg)([(0,s.EM)("ha-logo-svg")],r)},2846(a,t,o){o.d(t,{G:()=>d,J:()=>l});var e=o(62826),i=o(12415),s=o(82553),r=o(96196),n=o(97735);o(54276);const l=[s.R,r.AH`:host{--ha-icon-display:block;--md-sys-color-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-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`];class d extends i.n{renderRipple(){return"text"===this.type?r.s6:r.qy`<ha-ripple part="ripple" for="item" ?disabled="${this.disabled&&"link"!==this.type}"></ha-ripple>`}}d.styles=l,d=(0,e.Cg)([(0,n.EM)("ha-md-list-item")],d)},17308(a,t,o){var e=o(62826),i=o(49838),s=o(11245),r=o(96196),n=o(97735);class l extends i.B{}l.styles=[s.R,r.AH`:host{--md-sys-color-surface:var(--card-background-color)}`],l=(0,e.Cg)([(0,n.EM)("ha-md-list")],l)},2054(a,t,o){o.a(a,async function(a,t){try{var e=o(62826),i=o(96196),s=o(97735),r=o(1087),n=o(44249),l=o(26300),d=a([l]);l=(d.then?(await d)():d)[0];const c="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class h extends i.WF{connectedCallback(){super.connectedCallback(),this._attachNotifOnConnect&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}disconnectedCallback(){super.disconnectedCallback(),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}render(){if(!this._show)return i.s6;const a=this._hasNotifications&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);return i.qy` <ha-icon-button .label="${this.hass.localize("ui.sidebar.sidebar_toggle")}" .path="${c}" @click="${this._toggleMenu}"></ha-icon-button> ${a?i.qy`<div class="dot"></div>`:""} `}willUpdate(a){if(super.willUpdate(a),!a.has("narrow")&&!a.has("hass"))return;const t=a.has("hass")?a.get("hass"):this.hass,o=a.has("narrow")?a.get("narrow"):this.narrow,e=!1===t?.kioskMode&&(o||"always_hidden"===t?.dockedSidebar),i=!1===this.hass.kioskMode&&(this.narrow||"always_hidden"===this.hass.dockedSidebar);this.hasUpdated&&e===i||(this._show=i||this._alwaysVisible,i?this._subscribeNotifications():this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0))}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,n.V)(this.hass.connection,a=>{this._hasNotifications=a.length>0})}_toggleMenu(){(0,r.r)(this,"hass-toggle-menu")}constructor(...a){super(...a),this.narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}h.styles=i.AH`:host{position:relative}.dot{pointer-events:none;position:absolute;background-color:var(--accent-color);width:12px;height:12px;top:9px;right:7px;inset-inline-end:7px;inset-inline-start:initial;border-radius:var(--ha-border-radius-circle);border:2px solid var(--app-header-background-color)}`,(0,e.Cg)([(0,s.MZ)({type:Boolean})],h.prototype,"narrow",void 0),(0,e.Cg)([(0,s.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,e.Cg)([(0,s.wk)()],h.prototype,"_hasNotifications",void 0),(0,e.Cg)([(0,s.wk)()],h.prototype,"_show",void 0),h=(0,e.Cg)([(0,s.EM)("ha-menu-button")],h),t()}catch(a){t(a)}})},54276(a,t,o){var e=o(62826),i=o(76482),s=o(91382),r=o(96245),n=o(96196),l=o(97735);class d extends s.n{attach(a){super.attach(a),this.attachableTouchController.attach(a)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(a,t){a?.removeEventListener("touchend",this._handleTouchEnd),t?.addEventListener("touchend",this._handleTouchEnd)}constructor(...a){super(...a),this.attachableTouchController=new i.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}d.styles=[r.R,n.AH`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.12);--md-ripple-hover-color:var(
          --ha-ripple-hover-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        );--md-ripple-pressed-color:var(
          --ha-ripple-pressed-color,
          var(--ha-ripple-color, var(--secondary-text-color))
        )}`],d=(0,e.Cg)([(0,l.EM)("ha-ripple")],d)},67094(a,t,o){o.r(t),o.d(t,{HaSvgIcon:()=>r});var e=o(62826),i=o(96196),s=o(97735);class r extends i.WF{render(){return i.JW` <svg viewBox="${this.viewBox||"0 0 24 24"}" preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${this.path?i.JW`<path class="primary-path" d="${this.path}"></path>`:i.s6} ${this.secondaryPath?i.JW`<path class="secondary-path" d="${this.secondaryPath}"></path>`:i.s6} </g> </svg>`}}r.styles=i.AH`:host{display:var(--ha-icon-display,inline-flex);align-items:center;justify-content:center;position:relative;vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}svg{width:100%;height:100%;pointer-events:none;display:block}path.primary-path{opacity:var(--icon-primary-opactity, 1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity, .5)}`,(0,e.Cg)([(0,s.MZ)()],r.prototype,"path",void 0),(0,e.Cg)([(0,s.MZ)({attribute:!1})],r.prototype,"secondaryPath",void 0),(0,e.Cg)([(0,s.MZ)({attribute:!1})],r.prototype,"viewBox",void 0),r=(0,e.Cg)([(0,s.EM)("ha-svg-icon")],r)},47351(a,t,o){o.d(t,{PS:()=>i,Tv:()=>n,VR:()=>s,lE:()=>l});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698);var e=o(62384);const i=a=>a.data,s=a=>"object"==typeof a?"object"==typeof a.body?a.body.message||"Unknown error, see supervisor logs":a.body||a.message||"Unknown error, see supervisor logs":a,r=new Set([502,503,504]),n=a=>!!(a&&a.status_code&&r.has(a.status_code))||!(!a||!a.message||!a.message.includes("ERR_CONNECTION_CLOSED")&&!a.message.includes("ERR_CONNECTION_RESET")),l=async(a,t)=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:`/${t}/stats`,method:"get"}):i(await a.callApi("GET",`hassio/${t}/stats`))},15336(a,t,o){o.d(t,{He:()=>d,Ku:()=>s,PB:()=>r,Wq:()=>p,hu:()=>l,mZ:()=>n,v9:()=>c,xY:()=>h});var e=o(62384),i=o(47351);const s=async a=>{if((0,e.v)(a.config.version,2021,2,4))return a.callWS({type:"supervisor/api",endpoint:"/host/info",method:"get"});const t=await a.callApi("GET","hassio/host/info");return(0,i.PS)(t)},r=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/os/info",method:"get"}):(0,i.PS)(await a.callApi("GET","hassio/os/info")),n=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/host/reboot",method:"post",timeout:null}):a.callApi("POST","hassio/host/reboot"),l=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/host/shutdown",method:"post",timeout:null}):a.callApi("POST","hassio/host/shutdown"),d=async(a,t)=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/host/options",method:"post",data:t}):a.callApi("POST","hassio/host/options",t),c=async(a,t)=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/os/datadisk/move",method:"post",timeout:null,data:{device:t}}):a.callApi("POST","hassio/os/datadisk/move"),h=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/os/datadisk/list",method:"get",timeout:null}):(0,i.PS)(await a.callApi("GET","/os/datadisk/list")),p=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/host/disks/default/usage",method:"get",timeout:3600,params:{max_depth:3}}):(0,i.PS)(await a.callApi("GET","hassio/host/disks/default/usage"))},90600(a,t,o){o.d(t,{GM:()=>r,IK:()=>d,MU:()=>n,OV:()=>s,RE:()=>c,Vo:()=>v,Yd:()=>g,h$:()=>l,w9:()=>m,xL:()=>p,y0:()=>h});var e=o(62384),i=o(47351);const s=async a=>{(0,e.v)(a.config.version,2021,2,4)?await a.callWS({type:"supervisor/api",endpoint:"/supervisor/reload",method:"post"}):await a.callApi("POST","hassio/supervisor/reload")},r=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/supervisor/info",method:"get"}):(0,i.PS)(await a.callApi("GET","hassio/supervisor/info")),n=async a=>(0,e.v)(a.config.version,2021,2,4)?a.callWS({type:"supervisor/api",endpoint:"/info",method:"get"}):(0,i.PS)(await a.callApi("GET","hassio/info")),l=async a=>a.callApi("GET","hassio/host/logs/boots"),d=async(a,t)=>a.callApi("GET",`hassio/${t.includes("_")?`addons/${t}`:t}/logs`),c=async(a,t,o,e=0)=>a.callApiRaw("GET",`hassio/${t.includes("_")?`addons/${t}`:t}/logs${0!==e?`/boots/${e}`:""}`,void 0,o?{Range:o}:void 0),h=async(a,t,o,e=100,i=0)=>a.callApiRaw("GET",`hassio/${t.includes("_")?`addons/${t}`:t}/logs${0!==i?`/boots/${i}`:""}/follow?lines=${e}`,void 0,void 0,o),p=async(a,t,o,e,i,s=100,r=0)=>a.callApiRaw("GET",`hassio/${t.includes("_")?`addons/${t}`:t}/logs${0!==r?`/boots/${r}`:""}/follow`,void 0,{Range:`entries=${e}:${i}:${s}`},o),v=a=>`/api/hassio/${a.includes("_")?`addons/${a}`:a}/logs`,g=(a,t,o=0)=>`/api/hassio/${a.includes("_")?`addons/${a}`:a}/logs${0!==o?`/boots/${o}`:""}?lines=${t}`,m=async(a,t)=>{(0,e.v)(a.config.version,2021,2,4)?await a.callWS({type:"supervisor/api",endpoint:"/supervisor/options",method:"post",data:t}):await a.callApi("POST","hassio/supervisor/options",t)}},44249(a,t,o){o.d(t,{V:()=>e});const e=(a,t)=>{const o=new i,e=a.subscribeMessage(a=>t(o.processMessage(a)),{type:"persistent_notification/subscribe"});return()=>{e.then(a=>a?.())}};class i{processMessage(a){if("removed"===a.type)for(const t of Object.keys(a.notifications))delete this.notifications[t];else this.notifications={...this.notifications,...a.notifications};return Object.values(this.notifications)}constructor(){this.notifications={}}}},33212(a,t,o){o.d(t,{G:()=>e});const e=(a,t)=>{let o={};const e=a.connection.subscribeMessage(a=>"initial"===a.type?(o=a.data,void t(o)):"finish"===a.type?(e.then(a=>a()),void t(void 0)):(o={...o,[a.domain]:{...o[a.domain],info:{...o[a.domain].info,[a.key]:a.success?a.data:{error:!0,value:a.error.msg}}}},void t(o)),{type:"system_health/info"});return e}},41631(a,t,o){o.d(t,{H:()=>i});var e=o(1087);const i=a=>(0,e.r)(a,"show-dialog",{dialogTag:"dialog-shortcuts",dialogImport:()=>Promise.all([o.e("56683"),o.e("72432")]).then(o.bind(o,9555)),dialogParams:{}})},81310(a,t,o){o.a(a,async function(a,t){try{var e=o(62826),i=o(96196),s=o(97735),r=o(94333),n=o(26218),l=o(91926),d=o(90248),c=o(2054),h=o(14503),p=a([d,c]);[d,c]=p.then?(await p)():p;class v extends i.WF{render(){return i.qy` <div class="toolbar ${(0,r.H)({narrow:this.narrow})}"> <div class="toolbar-content"> ${this.mainPage||history.state?.root?i.qy` <ha-menu-button .hass="${this.hass}" .narrow="${this.narrow}"></ha-menu-button> `:this.backPath?i.qy` <ha-icon-button-arrow-prev href="${this.backPath}" .hass="${this.hass}"></ha-icon-button-arrow-prev> `:i.qy` <ha-icon-button-arrow-prev .hass="${this.hass}" @click="${this._backTapped}"></ha-icon-button-arrow-prev> `} <div class="main-title"> <slot name="header">${this.header}</slot> </div> <slot name="toolbar-icon"></slot> </div> </div> <div class="content ha-scrollbar" @scroll="${this._saveScrollPos}"> <slot></slot> </div> <div id="fab"> <slot name="fab"></slot> </div> `}_saveScrollPos(a){this._savedScrollPos=a.target.scrollTop}_backTapped(){this.backCallback?this.backCallback():(0,l.O)()}static get styles(){return[h.dp,i.AH`:host{display:block;height:100%;background-color:var(--primary-background-color);overflow:hidden;position:relative}:host([narrow]){width:100%;position:fixed}.toolbar{background-color:var(--app-header-background-color);padding-top:var(--safe-area-inset-top);padding-right:var(--safe-area-inset-right)}:host([narrow]) .toolbar{padding-left:var(--safe-area-inset-left)}.toolbar-content{display:flex;align-items:center;font-size:var(--ha-font-size-xl);height:var(--header-height);font-weight:var(--ha-font-weight-normal);color:var(--app-header-text-color,#fff);border-bottom:var(--app-header-border-bottom,none);box-sizing:border-box;padding:8px 12px}.toolbar a{color:var(--sidebar-text-color);text-decoration:none}::slotted([slot=toolbar-icon]),ha-icon-button-arrow-prev,ha-menu-button{display:flex;align-items:center;pointer-events:auto;color:var(--sidebar-icon-color)}.main-title{margin-inline-start:var(--ha-space-6);line-height:var(--ha-line-height-normal);min-width:0;flex-grow:1;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.narrow .main-title{margin-inline-start:var(--ha-space-2)}.content{position:relative;width:calc(100% - var(--safe-area-inset-right,0px));height:calc(100% - 1px - var(--header-height,0px) - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));padding-bottom:var(--safe-area-inset-bottom,0px);margin-right:var(--safe-area-inset-right);overflow-y:auto;overflow:auto;-webkit-overflow-scrolling:touch}:host([narrow]) .content{width:calc(100% - var(--safe-area-inset-left,0px) - var(--safe-area-inset-right,0px));margin-left:var(--safe-area-inset-left)}#fab{position:absolute;right:calc(16px + var(--safe-area-inset-right,0px));inset-inline-end:calc(16px + var(--safe-area-inset-right,0px));inset-inline-start:initial;bottom:calc(16px + var(--safe-area-inset-bottom,0px));z-index:1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--ha-space-2)}:host([narrow]) #fab.tabs{bottom:calc(84px + var(--safe-area-inset-bottom,0px))}#fab[is-wide]{bottom:calc(24px + var(--safe-area-inset-bottom,0px));right:calc(24px + var(--safe-area-inset-right,0px));inset-inline-end:calc(24px + var(--safe-area-inset-right,0px));inset-inline-start:initial}`]}constructor(...a){super(...a),this.mainPage=!1,this.narrow=!1}}(0,e.Cg)([(0,s.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,e.Cg)([(0,s.MZ)()],v.prototype,"header",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,attribute:"main-page"})],v.prototype,"mainPage",void 0),(0,e.Cg)([(0,s.MZ)({type:String,attribute:"back-path"})],v.prototype,"backPath",void 0),(0,e.Cg)([(0,s.MZ)({attribute:!1})],v.prototype,"backCallback",void 0),(0,e.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],v.prototype,"narrow",void 0),(0,e.Cg)([(0,n.a)(".content")],v.prototype,"_savedScrollPos",void 0),(0,e.Cg)([(0,s.Ls)({passive:!0})],v.prototype,"_saveScrollPos",null),v=(0,e.Cg)([(0,s.EM)("hass-subpage")],v),t()}catch(a){t(a)}})},94680(a,t,o){o.a(a,async function(a,e){try{o.r(t);o(18111),o(61701);var i=o(62826),s=o(96196),r=o(97735),n=o(36312),l=(o(76776),o(43661),o(8630),o(28732),o(68186),o(17308),o(2846),o(15336)),d=o(90600),c=o(33212),h=o(41631),p=o(81310),v=o(53580),g=o(14503),m=o(36918),u=a([p]);p=(u.then?(await u)():u)[0];const f="M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22 16.12,6.55 15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.04,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6.04C7.88,6.55 7.26,7.22 6.81,8H4V10H6.09C6.04,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.04,15.67 6.09,16H4V18H6.81C7.85,19.79 9.78,21 12,21C14.22,21 16.15,19.79 17.19,18H20V16H17.91C17.96,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.96,10.33 17.91,10H20V8Z",b="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z",y="M10,19H13V22H10V19M12,2C17.35,2.22 19.68,7.62 16.5,11.67C15.67,12.67 14.33,13.33 13.67,14.17C13,15 13,16 13,17H10C10,15.33 10,13.92 10.67,12.92C11.33,11.92 12.67,11.33 13.5,10.67C15.92,8.43 15.32,5.26 12,5A3,3 0 0,0 9,8H6A6,6 0 0,1 12,2Z",x="M19,10H17V8H19M19,13H17V11H19M16,10H14V8H16M16,13H14V11H16M16,17H8V15H16M7,10H5V8H7M7,13H5V11H7M8,11H10V13H8M8,8H10V10H8M11,11H13V13H11M11,8H13V10H11M20,5H4C2.89,5 2,5.89 2,7V17A2,2 0 0,0 4,19H20A2,2 0 0,0 22,17V7C22,5.89 21.1,5 20,5Z",w="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",C="modern",_="20260312.0",k=[{name:"change_log",path:"/latest-release-notes/",iconPath:"M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M5 7H10V13H5V7M19 17H5V15H19V17M19 13H12V11H19V13M19 9H12V7H19V9Z",iconColor:"#4A5963"},{name:"thanks",path:"/developers/credits/",iconPath:"M11.43 9.67C11.47 9.78 11.5 9.88 11.5 10V15.22C11.5 15.72 11.31 16.2 10.97 16.57L8.18 19.62L4.78 16.22L6 15L8.8 2.86C8.92 2.36 9.37 2 9.89 2C10.5 2 11 2.5 11 3.11V8.07C10.84 8.03 10.67 8 10.5 8C9.4 8 8.5 8.9 8.5 10V13C8.5 13.28 8.72 13.5 9 13.5S9.5 13.28 9.5 13V10C9.5 9.45 9.95 9 10.5 9C10.69 9 10.85 9.07 11 9.16C11.12 9.23 11.21 9.32 11.3 9.42C11.33 9.46 11.36 9.5 11.38 9.55C11.4 9.59 11.42 9.63 11.43 9.67M2 19L6 22L7.17 20.73L3.72 17.28L2 19M18 15L15.2 2.86C15.08 2.36 14.63 2 14.11 2C13.5 2 13 2.5 13 3.11V8.07C13.16 8.03 13.33 8 13.5 8C14.6 8 15.5 8.9 15.5 10V13C15.5 13.28 15.28 13.5 15 13.5S14.5 13.28 14.5 13V10C14.5 9.45 14.05 9 13.5 9C13.31 9 13.15 9.07 13 9.16C12.88 9.23 12.79 9.32 12.71 9.42C12.68 9.46 12.64 9.5 12.62 9.55C12.6 9.59 12.58 9.63 12.57 9.67C12.53 9.78 12.5 9.88 12.5 10V15.22C12.5 15.72 12.69 16.2 13.03 16.57L15.82 19.62L19.22 16.22L18 15M20.28 17.28L16.83 20.73L18 22L22 19L20.28 17.28Z",iconColor:"#3B808E"},{name:"merch",path:"/merch",iconPath:"M16,21H8A1,1 0 0,1 7,20V12.07L5.7,13.07C5.31,13.46 4.68,13.46 4.29,13.07L1.46,10.29C1.07,9.9 1.07,9.27 1.46,8.88L7.34,3H9C9,4.1 10.34,5 12,5C13.66,5 15,4.1 15,3H16.66L22.54,8.88C22.93,9.27 22.93,9.9 22.54,10.29L19.71,13.12C19.32,13.5 18.69,13.5 18.3,13.12L17,12.12V20A1,1 0 0,1 16,21",iconColor:"#C65326"},{name:"feature",path:"/feature-requests",iconPath:v.mdiHomeAssistant,iconColor:"#0D47A1"},{name:"bug",path:"/issues",iconPath:f,iconColor:"#F1C447"},{name:"help",path:"/community",iconPath:y,iconColor:"#B1345C"},{name:"license",path:"/developers/license/",iconPath:b,iconColor:"#518C43"}];class H extends s.WF{render(){const a=this.hass,t=window.CUSTOM_UI_LIST||[],o=this.hass.themes?.darkMode||!1;return s.qy` <hass-subpage .hass="${this.hass}" .narrow="${this.narrow}" back-path="/config" .header="${this.hass.localize("ui.panel.config.info.caption")}"> <div class="content"> <ha-card outlined class="header"> <a href="${(0,m.o)(this.hass,"")}" target="_blank" rel="noreferrer"> <ha-logo-svg title="${this.hass.localize("ui.panel.config.info.home_assistant_logo")}"> </ha-logo-svg> </a> <p>Home Assistant</p> <ul class="versions"> <li> <span class="version-label">${this.hass.localize("ui.panel.config.info.installation_method")}</span> <span class="version">${this._installationMethod||"…"}</span> </li> <li> <span class="version-label">Core</span> <span class="version">${a.connection.haVersion}</span> </li> ${this._hassioInfo?s.qy` <li> <span class="version-label">Supervisor</span> <span class="version">${this._hassioInfo.supervisor}</span> </li> `:s.s6} ${this._osInfo?s.qy` <li> <span class="version-label">Operating System</span> <span class="version">${this._osInfo.version}</span> </li> `:s.s6} <li> <span class="version-label"> ${this.hass.localize("ui.panel.config.info.frontend_version_label")} </span> <span class="version"> ${_}${"modern"!==C?` · ${C}`:""} </span> </li> ${this.hass.auth.external?.config.appVersion?s.qy` <li> <span class="version-label">${this.hass.localize("ui.panel.config.info.external_app_version")}</span> <span class="version">${this.hass.auth.external?.config.appVersion}</span> </li> `:s.s6} </ul> </ha-card> <ha-card outlined class="ohf ${o?"dark":""}"> <div> ${this.hass.localize("ui.panel.config.info.proud_part_of")} </div> <a href="https://www.openhomefoundation.org" target="_blank" rel="noreferrer"> <img src="/static/icons/ohf.svg" alt="Open Home Foundation"> </a> </ha-card> <ha-card outlined class="pages"> <ha-md-list> <ha-md-list-item type="button" @click="${this._showShortcuts}"> <div slot="start" class="icon-background" style="background-color:#9e4dd1"> <ha-svg-icon .path="${x}"></ha-svg-icon> </div> <span>${this.hass.localize("ui.panel.config.info.shortcuts")}</span> </ha-md-list-item> ${k.map(a=>s.qy` <ha-md-list-item type="link" .href="${(0,m.o)(this.hass,a.path)}" target="_blank" rel="noopener noreferrer"> <div slot="start" class="icon-background" .style="background-color: ${a.iconColor}"> <ha-svg-icon .path="${a.iconPath}"></ha-svg-icon> </div> <span> ${this.hass.localize(`ui.panel.config.info.items.${a.name}`)} </span> <ha-svg-icon slot="end" .path="${w}"></ha-svg-icon> </ha-md-list-item> `)} </ha-md-list> ${t.length?s.qy` <div class="custom-ui"> ${this.hass.localize("ui.panel.config.info.custom_uis")} ${t.map(a=>s.qy` <div> <a href="${a.url}" target="_blank"> ${a.name}</a>: ${a.version} </div> `)} </div> `:s.s6} </ha-card> </div> </hass-subpage> `}firstUpdated(a){super.firstUpdated(a);const t=(window.CUSTOM_UI_LIST||[]).length;setTimeout(()=>{(window.CUSTOM_UI_LIST||[]).length!==t.length&&this.requestUpdate()},2e3),(0,n.x)(this.hass,"hassio")&&this._loadSupervisorInfo();const o=(0,c.G)(this.hass,a=>{a?.homeassistant&&(this._installationMethod=a.homeassistant.info.installation_type,o.then(a=>a()))})}async _loadSupervisorInfo(){const[a,t]=await Promise.all([(0,l.PB)(this.hass),(0,d.MU)(this.hass)]);this._hassioInfo=t,this._osInfo=a}_showShortcuts(a){a.stopPropagation(),(0,h.H)(this)}static get styles(){return[g.RF,s.AH`.content{padding:28px 20px 0;max-width:1040px;margin:0 auto}ha-logo-svg{height:56px;width:56px}ha-card{max-width:600px;margin:0 auto;margin-bottom:16px;padding:16px}.header{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px 8px 16px 8px}.header p{font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed);text-align:center;margin:24px}.ohf{text-align:center;padding-bottom:5px}.ohf img{width:100%;max-width:250px}.ohf.dark img{color-scheme:dark}.versions{display:flex;flex-direction:column;color:var(--secondary-text-color);align-self:stretch;justify-content:flex-start;padding:0 12px;margin:0}.versions li{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);padding:4px 0}.version-label{color:var(--primary-text-color)}.version{color:var(--secondary-text-color)}.ha-version{color:var(--primary-text-color);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-medium)}.pages{margin-bottom:max(24px,var(--safe-area-inset-bottom));padding:4px 0}.icon-background ha-svg-icon{height:24px;width:24px;display:block;padding:8px;color:#fff}.icon-background{border-radius:var(--ha-border-radius-circle)}.custom-ui{color:var(--secondary-text-color);text-align:center}`]}constructor(...a){super(...a),this.narrow=!1,this.isWide=!1,this.showAdvanced=!1}}(0,i.Cg)([(0,r.MZ)({attribute:!1})],H.prototype,"hass",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean})],H.prototype,"narrow",void 0),(0,i.Cg)([(0,r.MZ)({attribute:"is-wide",type:Boolean})],H.prototype,"isWide",void 0),(0,i.Cg)([(0,r.MZ)({attribute:!1})],H.prototype,"showAdvanced",void 0),(0,i.Cg)([(0,r.MZ)({attribute:!1})],H.prototype,"route",void 0),(0,i.Cg)([(0,r.wk)()],H.prototype,"_osInfo",void 0),(0,i.Cg)([(0,r.wk)()],H.prototype,"_hassioInfo",void 0),(0,i.Cg)([(0,r.wk)()],H.prototype,"_installationMethod",void 0),H=(0,i.Cg)([(0,r.EM)("ha-config-info")],H),e()}catch(a){e(a)}})},53580(a,t,o){o.r(t),o.d(t,{mdiHomeAssistant:()=>e});const e="m12.151 1.5882c-.3262 0-.6523.1291-.8996.3867l-8.3848 8.7354c-.0619.0644-.1223.1368-.1807.2154-.0588.0789-.1151.1638-.1688.2534-.2593.4325-.4552.9749-.5232 1.4555-.0026.018-.0076.0369-.0094.0548-.0121.0987-.0184.1944-.0184.2857v8.0124a1.2731 1.2731 0 001.2731 1.2731h7.8313l-3.4484-3.593a1.7399 1.7399 0 111.0803-1.125l2.6847 2.7972v-10.248a1.7399 1.7399 0 111.5276-0v7.187l2.6702-2.782a1.7399 1.7399 0 111.0566 1.1505l-3.7269 3.8831v2.7299h8.174a1.2471 1.2471 0 001.2471-1.2471v-8.0375c0-.0912-.0059-.1868-.0184-.2855-.0603-.4935-.2636-1.0617-.5326-1.5105-.0537-.0896-.1101-.1745-.1684-.253-.0588-.079-.1191-.1513-.181-.2158l-8.3848-8.7363c-.2473-.2577-.5735-.3866-.8995-.3864"},14503(a,t,o){o.d(t,{RF:()=>s,dp:()=>l,kO:()=>n,nA:()=>r,og:()=>i});var e=o(96196);const i=e.AH`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`,s=e.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}.header{transition:box-shadow .2s linear,width var(--ha-animation-duration-normal) ease,padding-left var(--ha-animation-duration-normal) ease,padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}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)}${i} .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}`,r=e.AH`
  ha-dialog,
  ha-adaptive-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,
  ha-adaptive-dialog .form {
    color: var(--primary-text-color);
  }

  a {
    color: var(--primary-color);
  }

  /* make dialog fullscreen on small screens */
  @media all and (max-width: 450px), all and (max-height: 500px) {
    ha-dialog,
    ha-adaptive-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);
    ha-dialog,
    ha-adaptive-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 {
      --ha-dialog-border-radius: var(--ha-border-radius-square);
   }
  }
  .error {
    color: var(--error-color);
  }
`,n=e.AH`ha-adaptive-dialog,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
        )
    );--ha-dialog-max-height:calc(
      100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(
          --safe-area-inset-y,
          0px
        )
    );--ha-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-adaptive-dialog,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;--ha-dialog-max-height:100vh;--ha-dialog-max-height:100svh}}`,l=e.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}`;e.AH`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`},36918(a,t,o){o.d(t,{o:()=>e});const e=(a,t)=>`https://${a.config.version.includes("b")?"rc":a.config.version.includes("dev")?"next":"www"}.home-assistant.io${t}`}};
//# sourceMappingURL=22849.9b61c5ee20f095f6.js.map