iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
52 lines • 56.4 kB
JavaScript
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[96563],{16629:function(e,t,n){n.d(t,{E7:function(){return h},Mn:function(){return r},P9:function(){return l},lf:function(){return d}});n(18111),n(61701),n(62953);var o=n(63004);const r=e=>{const t=e/100;return[Math.round(a(t)),Math.round(i(t)),Math.round(s(t))]},a=e=>{if(e<=66)return 255;const t=329.698727446*(e-60)**-.1332047592;return(0,o.q)(t,0,255)},i=e=>{let t;return t=e<=66?99.4708025861*Math.log(e)-161.1195681661:288.1221695283*(e-60)**-.0755148492,(0,o.q)(t,0,255)},s=e=>{if(e>=66)return 255;if(e<=19)return 0;const t=138.5177312231*Math.log(e-10)-305.0447927307;return(0,o.q)(t,0,255)},c=(e,t)=>{const n=Math.max(...e),o=Math.max(...t);let r;return r=0===o?0:n/o,t.map(e=>Math.round(e*r))},l=e=>0===e?1e6:Math.floor(1e6/e),u=e=>0===e?1e6:Math.floor(1e6/e),d=(e,t,n)=>{const[o,a,i,s,d]=e,h=u(null!=t?t:2700),m=u(null!=n?n:6500),p=h-m;let f;try{f=d/(s+d)}catch(C){f=.5}const g=m+f*p,b=g?l(g):0,[y,v,_]=r(b),w=Math.max(s,d)/255;return c([o,a,i,s,d],[o+y*w,a+v*w,i+_*w])},h=e=>{const[t,n,o,r]=e;return c([t,n,o,r],[t+r,n+r,o+r])}},80785:function(e,t,n){function o(e){return!!e&&(e instanceof Date&&!isNaN(e.valueOf()))}n.d(t,{A:function(){return o}})},72487:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{CA:function(){return M},Mi:function(){return x},Pm:function(){return k},Wq:function(){return v},Yq:function(){return l},bl:function(){return z},c2:function(){return w},fr:function(){return b},gu:function(){return $},kz:function(){return d},m9:function(){return Z},sl:function(){return f},ur:function(){return E},zB:function(){return m}});n(18111),n(20116);var r=n(74487),a=n(22786),i=n(46927),s=n(8480),c=e([r,s]);[r,s]=c.then?(await c)():c;(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric",timeZone:(0,s.wj)(e.time_zone,t)}));const l=(e,t,n)=>u(t,n.time_zone).format(e),u=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),d=(e,t,n)=>h(t,n.time_zone).format(e),h=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),m=(e,t,n)=>{var o,r,a,s;const c=p(t,n.time_zone);if(t.date_format===i.ow.language||t.date_format===i.ow.system)return c.format(e);const l=c.formatToParts(e),u=null===(o=l.find(e=>"literal"===e.type))||void 0===o?void 0:o.value,d=null===(r=l.find(e=>"day"===e.type))||void 0===r?void 0:r.value,h=null===(a=l.find(e=>"month"===e.type))||void 0===a?void 0:a.value,m=null===(s=l.find(e=>"year"===e.type))||void 0===s?void 0:s.value,f=l[l.length-1];let g="literal"===(null==f?void 0:f.type)?null==f?void 0:f.value:"";"bg"===t.language&&t.date_format===i.ow.YMD&&(g="");return{[i.ow.DMY]:`${d}${u}${h}${u}${m}${g}`,[i.ow.MDY]:`${h}${u}${d}${u}${m}${g}`,[i.ow.YMD]:`${m}${u}${h}${u}${d}${g}`}[t.date_format]},p=(0,a.A)((e,t)=>{const n=e.date_format===i.ow.system?void 0:e.language;return e.date_format===i.ow.language||(e.date_format,i.ow.system),new Intl.DateTimeFormat(n,{year:"numeric",month:"numeric",day:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})}),f=(e,t,n)=>g(t,n.time_zone).format(e),g=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short",timeZone:(0,s.wj)(e.time_zone,t)})),b=(e,t,n)=>y(t,n.time_zone).format(e),y=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),v=(e,t,n)=>_(t,n.time_zone).format(e),_=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"long",timeZone:(0,s.wj)(e.time_zone,t)})),w=(e,t,n)=>C(t,n.time_zone).format(e),C=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{month:"short",timeZone:(0,s.wj)(e.time_zone,t)})),k=(e,t,n)=>A(t,n.time_zone).format(e),A=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{year:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),M=(e,t,n)=>L(t,n.time_zone).format(e),L=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",timeZone:(0,s.wj)(e.time_zone,t)})),$=(e,t,n)=>H(t,n.time_zone).format(e),H=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",timeZone:(0,s.wj)(e.time_zone,t)})),x=(e,t,n)=>V(t,n.time_zone).format(e),V=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),E=(e,t,n)=>T(t,n.time_zone).format(e),T=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:(0,s.wj)(e.time_zone,t)})),z=(e,t,n)=>{const o=(0,s.wj)(t.time_zone,n.time_zone);return new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:o}).format(e)},Z=(e,t,n,o)=>`${z(e,n,o)}/${z(t,n,o)}`;o()}catch(l){o(l)}})},82591:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{E2:function(){return m},Z8:function(){return p},a3:function(){return y},i:function(){return d},nR:function(){return l}});n(16280);var r=n(74487),a=n(22786),i=n(79791),s=e([r]);r=(s.then?(await s)():s)[0];const c=e=>e<10?`0${e}`:e,l=(e,t)=>{const n=t.days||0,o=t.hours||0,r=t.minutes||0,a=t.seconds||0,i=t.milliseconds||0;return n>0?`${Intl.NumberFormat(e.language,{style:"unit",unit:"day",unitDisplay:"long"}).format(n)} ${o}:${c(r)}:${c(a)}`:o>0?`${o}:${c(r)}:${c(a)}`:r>0?`${r}:${c(a)}`:a>0?Intl.NumberFormat(e.language,{style:"unit",unit:"second",unitDisplay:"long"}).format(a):i>0?Intl.NumberFormat(e.language,{style:"unit",unit:"millisecond",unitDisplay:"long"}).format(i):null},u=(0,a.A)(e=>new Intl.DurationFormat(e.language,{style:"long"})),d=(e,t)=>u(e).format(t),h=(0,a.A)(e=>new Intl.DurationFormat(e.language,{style:"digital",hoursDisplay:"auto"})),m=(e,t)=>h(e).format(t),p=["min","h","d"],f=(0,a.A)(e=>new Intl.DurationFormat(e.language,{style:"narrow",daysDisplay:"always"})),g=(0,a.A)(e=>new Intl.DurationFormat(e.language,{style:"narrow",hoursDisplay:"always"})),b=(0,a.A)(e=>new Intl.DurationFormat(e.language,{style:"narrow",minutesDisplay:"always"})),y=(e,t,n,o)=>{const r=void 0!==o?(0,i.L)(parseFloat(t),o):parseFloat(t);switch(n){case"d":{const t=Math.floor(r),n={days:t,hours:Math.floor(24*(r-t))};return f(e).format(n)}case"h":{const t=Math.floor(r),n={hours:t,minutes:Math.floor(60*(r-t))};return g(e).format(n)}case"min":{const t=Math.floor(r),n={minutes:t,seconds:Math.floor(60*(r-t))};return b(e).format(n)}default:throw new Error("Invalid duration unit")}};o()}catch(c){o(c)}})},30162:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{LW:function(){return f},Xs:function(){return m},fU:function(){return l},ie:function(){return d}});var r=n(74487),a=n(22786),i=n(8480),s=n(69543),c=e([r,i]);[r,i]=c.then?(await c)():c;const l=(e,t,n)=>u(t,n.time_zone).format(e),u=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,i.wj)(e.time_zone,t)})),d=(e,t,n)=>h(t,n.time_zone).format(e),h=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,i.wj)(e.time_zone,t)})),m=(e,t,n)=>p(t,n.time_zone).format(e),p=(0,a.A)((e,t)=>new Intl.DateTimeFormat(e.language,{weekday:"long",hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,i.wj)(e.time_zone,t)})),f=(e,t,n)=>g(t,n.time_zone).format(e),g=(0,a.A)((e,t)=>new Intl.DateTimeFormat("en-GB",{hour:"numeric",minute:"2-digit",hour12:!1,timeZone:(0,i.wj)(e.time_zone,t)}));o()}catch(l){o(l)}})},69543:function(e,t,n){n.d(t,{J:function(){return a}});n(74423);var o=n(22786),r=n(46927);const a=(0,o.A)(e=>{if(e.time_format===r.Hg.language||e.time_format===r.Hg.system){const t=e.time_format===r.Hg.language?e.language:void 0;return new Date("January 1, 2023 22:00:00").toLocaleString(t).includes("10")}return e.time_format===r.Hg.am_pm})},26218:function(e,t,n){n.d(t,{a:function(){return r}});n(16280);const o=(0,n(77796).n)(e=>{history.replaceState({scrollPosition:e},"")},300);function r(e){return(t,n)=>{if("object"==typeof n)throw new Error("This decorator does not support this compilation type.");const r=t.connectedCallback;t.connectedCallback=function(){r.call(this);const t=this[n];t&&this.updateComplete.then(()=>{const n=this.renderRoot.querySelector(e);n&&setTimeout(()=>{n.scrollTop=t},0)})};const a=Object.getOwnPropertyDescriptor(t,n);let i;if(void 0===a)i={get(){var e;return this[`__${String(n)}`]||(null===(e=history.state)||void 0===e?void 0:e.scrollPosition)},set(e){o(e),this[`__${String(n)}`]=e},configurable:!0,enumerable:!0};else{const e=a.set;i=Object.assign(Object.assign({},a),{},{set(t){o(t),this[`__${String(n)}`]=t,null==e||e.call(this,t)}})}Object.defineProperty(t,n,i)}}},69093:function(e,t,n){n.d(t,{t:function(){return r}});var o=n(71727);const r=e=>(0,o.m)(e.entity_id)},82286:function(e,t,n){n.d(t,{$:function(){return o}});const o=(e,t)=>r(e.attributes,t),r=(e,t)=>0!==(e.supported_features&t)},79791:function(e,t,n){n.d(t,{L:function(){return o}});const o=(e,t=2)=>Math.round(e*10**t)/10**t},31290:function(e,t,n){n.d(t,{n:function(){return o}});n(27495),n(25440);const o=e=>e.replace(/^_*(.)|_+(.)/g,(e,t,n)=>t?t.toUpperCase():" "+n.toUpperCase())},22533:function(e,t,n){n.d(t,{i:function(){return r}});var o=n(52943);const r=(e,t)=>(e=>{switch(e){case"de":case"lb":return!0;default:return!1}})(t)?(0,o.Z)(e):e.toLocaleLowerCase(t)},67258:function(e,t,n){n.d(t,{d:function(){return o}});const o=e=>{switch(e.language){case"cs":case"de":case"fi":case"fr":case"sk":case"sv":return" ";default:return""}}},8549:function(e,t,n){n.d(t,{A:function(){return r}});var o=n(67258);const r=(e,t)=>"°"===e?"":t&&"%"===e?(0,o.d)(t):" "},58139:function(e,t,n){n.d(t,{d:function(){return o},t:function(){return r}});n(3362);const o=async(e,t)=>new Promise(n=>{const o=t(e,e=>{o(),n(e)})}),r=async e=>new Promise(t=>{const n=e.subscribe(e=>{n(),t(e)})})},77796:function(e,t,n){n.d(t,{n:function(){return o}});n(62953);const o=(e,t,n=!0,o=!0)=>{let r,a=0;const i=(...i)=>{const s=()=>{a=!1===n?0:Date.now(),r=void 0,e(...i)},c=Date.now();a||!1!==n||(a=c);const l=t-(c-a);l<=0||l>t?(r&&(clearTimeout(r),r=void 0),a=c,e(...i)):r||!1===o||(r=window.setTimeout(s,l))};return i.cancel=()=>{clearTimeout(r),r=void 0,a=0},i}},34296:function(e,t,n){n(62953);var o=n(40445),r=n(96229),a=n(26069),i=n(91735),s=n(42034),c=n(5124),l=n(67576);let u,d,h,m,p=e=>e;class f extends r.k{renderOutline(){return this.filled?(0,c.qy)(u||(u=p`<span class="filled"></span>`)):super.renderOutline()}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{active:this.active})}renderPrimaryContent(){return(0,c.qy)(d||(d=p` <span class="leading icon" aria-hidden="true"> ${0} </span> <span class="label">${0}</span> <span class="touch"></span> <span class="trailing leading icon" aria-hidden="true"> ${0} </span> `),this.renderLeadingIcon(),this.label,this.renderTrailingIcon())}renderTrailingIcon(){return(0,c.qy)(h||(h=p`<slot name="trailing-icon"></slot>`))}constructor(...e){super(...e),this.filled=!1,this.active=!1}}f.styles=[i.R,s.R,a.R,(0,c.AH)(m||(m=p`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-assist-chip-container-shape:var(
--ha-assist-chip-container-shape,
16px
);--md-assist-chip-outline-color:var(--outline-color);--md-assist-chip-label-text-weight:400}.filled{display:flex;pointer-events:none;border-radius:inherit;inset:0;position:absolute;background-color:var(--ha-assist-chip-filled-container-color)}::slotted([slot=icon]),::slotted([slot=trailing-icon]){display:flex;--mdc-icon-size:var(--md-input-chip-icon-size, 18px);font-size:var(--_label-text-size)!important}.trailing.icon ::slotted(*),.trailing.icon svg{margin-inline-end:unset;margin-inline-start:var(--_icon-label-space)}::before{background:var(--ha-assist-chip-container-color,transparent);opacity:var(--ha-assist-chip-container-opacity, 1)}:where(.active)::before{background:var(--ha-assist-chip-active-container-color);opacity:var(--ha-assist-chip-active-container-opacity)}.label{font-family:var(--ha-font-family-body)}`))],(0,o.Cg)([(0,l.MZ)({type:Boolean,reflect:!0})],f.prototype,"filled",void 0),(0,o.Cg)([(0,l.MZ)({type:Boolean})],f.prototype,"active",void 0),f=(0,o.Cg)([(0,l.EM)("ha-assist-chip")],f)},9503:function(e,t,n){var o=n(40445),r=n(97577),a=n(5124),i=n(67576);let s,c=e=>e;class l extends r.A{get value(){var e;return null!==(e=this._value)&&void 0!==e?e:null}set value(e){this._value=e}static get styles(){return[r.A.styles,(0,a.AH)(s||(s=c`:host{--wa-form-control-toggle-size:var(--ha-checkbox-size, 20px);--wa-form-control-border-color:var(
--ha-checkbox-border-color,
var(--ha-color-border-neutral-normal)
);--wa-form-control-background-color:var(
--ha-checkbox-background-color,
var(--wa-form-control-background-color)
);--checked-icon-color:var(
--ha-checkbox-checked-icon-color,
var(--wa-color-brand-on-loud)
);--wa-form-control-activated-color:var(
--ha-checkbox-checked-background-color,
var(--ha-color-fill-primary-loud-resting)
);-webkit-tap-highlight-color:transparent;--checked-icon-scale:var(--ha-checkbox-checked-icon-scale, 0.9);--wa-form-control-required-content:var(
--ha-checkbox-required-marker,
var(--ha-input-required-marker, "*")
);--wa-form-control-required-content-offset:var(
--ha-checkbox-required-marker-offset,
0.1rem
)}[part~=base]{align-items:center;gap:var(--ha-space-2)}[part~=control]{border-radius:var(--ha-checkbox-border-radius,var(--ha-border-radius-sm));border-width:var(--ha-checkbox-border-width,var(--ha-border-width-md));margin-inline-end:0}[part~=label]{line-height:1}#hint{font-size:var(--ha-font-size-xs);color:var(--ha-color-text-secondary)}label:has(input:not(:disabled)):hover{--wa-form-control-border-color:var(
--ha-checkbox-border-color-hover,
var(--ha-checkbox-border-color, var(--ha-color-border-neutral-loud))
)}label:has(input:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-background-color-hover,var(--ha-color-form-background-hover))}label:has(input:checked:not(:disabled)):hover [part~=control],label:has(input:indeterminate:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover));border-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover))}`))]}}l=(0,o.Cg)([(0,i.EM)("ha-checkbox")],l)},59174:function(e,t,n){n.a(e,async function(e,t){try{var o=n(40445),r=n(35211),a=n(5124),i=n(67576),s=n(91450),c=n(22792),l=n(85694),u=n(44144),d=(n(47680),e([l]));l=(d.then?(await d)():d)[0];let h,m,p,f,g,b,y,v=e=>e;class _ extends a.WF{render(){if(this.icon)return(0,a.qy)(h||(h=v`<ha-icon .icon="${0}"></ha-icon>`),this.icon);if(!this.domain)return a.s6;if(!this._connection||!this._hassConfig)return this._renderFallback();const e=(0,l._4)(this._connection.connection,this._hassConfig.config,this.domain,this.deviceClass,this.state).then(e=>e?(0,a.qy)(m||(m=v`<ha-icon .icon="${0}"></ha-icon>`),e):this._renderFallback());return(0,a.qy)(p||(p=v`${0}`),(0,s.T)(e))}_renderFallback(){if(this.domain&&this.domain in l.l)return(0,a.qy)(f||(f=v` <ha-svg-icon .path="${0}"></ha-svg-icon> `),l.l[this.domain]);if(this.brandFallback){var e,t;const n=(0,u.MR)({domain:this.domain,type:"icon",darkOptimized:null===(e=this._hassUi)||void 0===e?void 0:e.themes.darkMode},null===(t=this._hassConfig)||void 0===t?void 0:t.auth.data.hassUrl);return(0,a.qy)(g||(g=v` <img alt="" src="${0}" crossorigin="anonymous" referrerpolicy="no-referrer"> `),n)}return(0,a.qy)(b||(b=v`<ha-svg-icon .path="${0}"></ha-svg-icon>`),l.lW)}}_.styles=(0,a.AH)(y||(y=v`img{width:var(--mdc-icon-size,24px)}`)),(0,o.Cg)([(0,i.MZ)()],_.prototype,"domain",void 0),(0,o.Cg)([(0,i.MZ)({attribute:!1})],_.prototype,"deviceClass",void 0),(0,o.Cg)([(0,i.MZ)({attribute:!1})],_.prototype,"state",void 0),(0,o.Cg)([(0,i.MZ)()],_.prototype,"icon",void 0),(0,o.Cg)([(0,i.MZ)({attribute:"brand-fallback",type:Boolean})],_.prototype,"brandFallback",void 0),(0,o.Cg)([(0,i.wk)(),(0,r.Fg)({context:c.WF,subscribe:!0})],_.prototype,"_hassConfig",void 0),(0,o.Cg)([(0,i.wk)(),(0,r.Fg)({context:c.Wq,subscribe:!0})],_.prototype,"_connection",void 0),(0,o.Cg)([(0,i.wk)(),(0,r.Fg)({context:c.EK,subscribe:!0})],_.prototype,"_hassUi",void 0),_=(0,o.Cg)([(0,i.EM)("ha-domain-icon")],_),t()}catch(h){t(h)}})},11382:function(e,t,n){n(3362),n(62953);var o=n(40445),r=n(5124),a=n(67576),i=n(6412),s=n(1087),c=n(12587);n(67094);let l,u,d,h,m=e=>e;class p extends r.WF{render(){const e=this.noCollapse?r.s6:(0,r.qy)(l||(l=m` <ha-svg-icon .path="${0}" class="summary-icon ${0}"></ha-svg-icon> `),"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",(0,i.H)({expanded:this.expanded}));return(0,r.qy)(u||(u=m` <div class="top ${0}"> <div id="summary" class="${0}" @click="${0}" @keydown="${0}" @focus="${0}" @blur="${0}" role="button" tabindex="${0}" aria-expanded="${0}" aria-controls="sect1" part="summary"> ${0} <slot name="leading-icon"></slot> <slot name="header"> <div class="header"> ${0} <slot class="secondary" name="secondary">${0}</slot> </div> </slot> <slot name="event"></slot> ${0} <slot name="icons"></slot> </div> </div> <div class="container ${0}" @transitionend="${0}" role="region" aria-labelledby="summary" aria-hidden="${0}" tabindex="-1"> ${0} </div> `),(0,i.H)({expanded:this.expanded}),(0,i.H)({noCollapse:this.noCollapse}),this._toggleContainer,this._toggleContainer,this._focusChanged,this._focusChanged,this.noCollapse?-1:0,this.expanded,this.leftChevron?e:r.s6,this.header,this.secondary,this.leftChevron?r.s6:e,(0,i.H)({expanded:this.expanded}),this._handleTransitionEnd,!this.expanded,this._showContent?(0,r.qy)(d||(d=m`<slot></slot>`)):"")}willUpdate(e){super.willUpdate(e),e.has("expanded")&&(this._showContent=this.expanded,setTimeout(()=>{this._container.style.overflow=this.expanded?"initial":"hidden"},300))}_handleTransitionEnd(){this._container.style.removeProperty("height"),this._container.style.overflow=this.expanded?"initial":"hidden",this._showContent=this.expanded}async _toggleContainer(e){if(e.defaultPrevented)return;if("keydown"===e.type&&"Enter"!==e.key&&" "!==e.key)return;if(e.preventDefault(),this.noCollapse)return;const t=!this.expanded;(0,s.r)(this,"expanded-will-change",{expanded:t}),this._container.style.overflow="hidden",t&&(this._showContent=!0,await(0,c.E)());const n=this._container.scrollHeight;this._container.style.height=`${n}px`,t||setTimeout(()=>{this._container.style.height="0px"},0),this.expanded=t,(0,s.r)(this,"expanded-changed",{expanded:this.expanded})}_focusChanged(e){this.noCollapse||this.shadowRoot.querySelector(".top").classList.toggle("focused","focus"===e.type)}constructor(...e){super(...e),this.expanded=!1,this.outlined=!1,this.leftChevron=!1,this.noCollapse=!1,this._showContent=this.expanded}}p.styles=(0,r.AH)(h||(h=m`:host{display:block}.top{display:flex;align-items:center;border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg))}.top.expanded{border-bottom-left-radius:0px;border-bottom-right-radius:0px}.top.focused{background:var(--input-fill-color)}:host([outlined]){box-shadow:none;border-width:1px;border-style:solid;border-color:var(--outline-color);border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg))}.summary-icon{transition:transform 150ms cubic-bezier(.4, 0, .2, 1);direction:var(--direction);margin-left:8px;margin-inline-start:8px;margin-inline-end:initial;border-radius:var(--ha-border-radius-circle)}#summary:focus-visible ha-svg-icon.summary-icon{background-color:var(--ha-color-fill-neutral-normal-active)}::slotted([slot=leading-icon]),:host([left-chevron]) .summary-icon{margin-left:0;margin-right:8px;margin-inline-start:0;margin-inline-end:8px}#summary{flex:1;display:flex;padding:var(--expansion-panel-summary-padding,0 8px);min-height:48px;align-items:center;cursor:pointer;overflow:hidden;font-weight:var(--ha-font-weight-medium);outline:0}#summary.noCollapse{cursor:default}.summary-icon.expanded{transform:rotate(180deg)}.header,::slotted([slot=header]){flex:1;overflow-wrap:anywhere;color:var(--primary-text-color)}.container{padding:var(--expansion-panel-content-padding,0 8px);overflow:hidden;transition:height .3s cubic-bezier(.4, 0, .2, 1);height:0px}.container.expanded{height:auto}.secondary{display:block;color:var(--secondary-text-color);font-size:var(--ha-font-size-s)}`)),(0,o.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],p.prototype,"expanded",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],p.prototype,"outlined",void 0),(0,o.Cg)([(0,a.MZ)({attribute:"left-chevron",type:Boolean,reflect:!0})],p.prototype,"leftChevron",void 0),(0,o.Cg)([(0,a.MZ)({attribute:"no-collapse",type:Boolean,reflect:!0})],p.prototype,"noCollapse",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"header",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"secondary",void 0),(0,o.Cg)([(0,a.wk)()],p.prototype,"_showContent",void 0),(0,o.Cg)([(0,a.P)(".container")],p.prototype,"_container",void 0),p=(0,o.Cg)([(0,a.EM)("ha-expansion-panel")],p)},43661:function(e,t,n){n.r(t),n.d(t,{HaIconNext:function(){return s}});n(62953);var o=n(40445),r=n(67576),a=n(63091),i=n(67094);class s extends i.HaSvgIcon{constructor(...e){super(...e),this.path="rtl"===a.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,o.Cg)([(0,r.MZ)()],s.prototype,"path",void 0),s=(0,o.Cg)([(0,r.EM)("ha-icon-next")],s)},8630:function(e,t,n){var o=n(40445),r=n(68618),a=n(11081),i=n(67576);class s extends r.iY{}s.styles=a.R,s=(0,o.Cg)([(0,i.EM)("ha-list")],s)},59646:function(e,t,n){n.a(e,async function(e,t){try{n(62953);var o=n(40445),r=n(29344),a=n(5124),i=n(67576),s=n(88360),c=e([r]);r=(c.then?(await c)():c)[0];let l,u=e=>e;class d extends r.A{updated(e){super.updated(e),e.has("haptic")&&(this.haptic?this.addEventListener("change",this._forwardHaptic):this.removeEventListener("change",this._forwardHaptic))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this._forwardHaptic)}static get styles(){return[r.A.styles,(0,a.AH)(l||(l=u`:host{--wa-form-control-toggle-size:var(--ha-switch-size, 24px);--wa-form-control-required-content:var(
--ha-switch-required-marker,
var(--ha-input-required-marker, "*")
);--wa-form-control-required-content-offset:var(
--ha-switch-required-marker-offset,
0.1rem
);--thumb-size:var(--ha-switch-thumb-size, 18px);--width:var(--ha-switch-width, 48px)}label{position:relative;height:max(var(--thumb-size),var(--wa-form-control-toggle-size))}label::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:var(--ha-switch-min-touch-size,40px);min-height:var(--ha-switch-min-touch-size,40px)}label.disabled::before{pointer-events:none}.switch{background-color:var(--ha-switch-background-color,var(--ha-color-fill-disabled-quiet-resting));border-color:var(--ha-switch-border-color,var(--ha-color-border-neutral-normal))}label:not(.disabled) .input:focus-visible~.switch,label:not(.disabled):hover .switch{background-color:var(--ha-switch-background-color-hover,var(--ha-switch-background-color,var(--ha-color-fill-disabled-quiet-hover)))}.checked .switch{background-color:var(--ha-switch-checked-background-color,var(--ha-color-fill-primary-normal-resting));border-color:var(--ha-switch-checked-border-color,var(--ha-color-border-primary-loud))}label:not(.disabled).checked .input:focus-visible~.switch,label:not(.disabled).checked:hover .switch{background-color:var(--ha-switch-checked-background-color-hover,var(--ha-switch-checked-background-color,var(--ha-color-fill-primary-normal-hover)));border-color:var(--ha-switch-checked-border-color-hover,var(--ha-switch-checked-border-color,var(--ha-color-border-primary-loud)))}.switch .thumb{background-color:var(--ha-switch-thumb-background-color,var(--ha-color-on-neutral-normal));border-color:var(--ha-switch-thumb-border-color,var(--ha-color-on-neutral-normal));border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);box-shadow:var(--ha-switch-thumb-box-shadow,var(--ha-box-shadow-s))}label:not(.disabled) .input:focus-visible~.switch .thumb,label:not(.disabled):hover .switch .thumb{background-color:var(--ha-switch-thumb-background-color-hover,var(--ha-switch-thumb-background-color,var(--ha-color-on-neutral-normal)));border-color:var(--ha-switch-thumb-border-color-hover,var(--ha-switch-thumb-border-color,var(--ha-color-on-neutral-normal)))}.checked .switch .thumb{background-color:var(--ha-switch-checked-thumb-background-color,var(--ha-color-on-primary-normal));border-color:var(--ha-switch-checked-thumb-border-color,var(--ha-color-on-primary-normal))}label:not(.disabled).checked .input:focus-visible~.switch .thumb,label:not(.disabled).checked:hover .switch .thumb{background-color:var(--ha-switch-checked-thumb-background-color-hover,var(--ha-switch-checked-thumb-background-color,var(--ha-color-on-primary-normal)));border-color:var(--ha-switch-checked-thumb-border-color-hover,var(--ha-switch-checked-thumb-border-color,var(--ha-color-on-primary-normal)))}label.disabled{opacity:var(--ha-switch-disabled-opacity, .3);cursor:not-allowed}label:not(.disabled) .input:focus-visible~.switch .thumb{outline:0;outline-offset:none}label:not(.disabled) .input:focus-visible~.switch{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host(:empty) slot.label{display:none}`))]}constructor(...e){super(...e),this.haptic=!1,this._forwardHaptic=()=>{(0,s.j)(this,"light")}}}(0,o.Cg)([(0,i.MZ)({type:Boolean})],d.prototype,"haptic",void 0),d=(0,o.Cg)([(0,i.EM)("ha-switch")],d),t()}catch(l){t(l)}})},34127:function(e,t,n){n.a(e,async function(e,t){try{n(62953);var o=n(40445),r=n(52630),a=n(5124),i=n(67576),s=e([r]);r=(s.then?(await s)():s)[0];let c,l=e=>e;class u extends r.A{static get styles(){return[r.A.styles,(0,a.AH)(c||(c=l`:host{--wa-tooltip-background-color:var(
--ha-tooltip-background-color,
var(--ha-color-surface-default)
);--wa-tooltip-content-color:var(
--ha-tooltip-text-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-m)
);--wa-tooltip-font-weight:var(
--ha-tooltip-font-weight,
var(--ha-font-weight-medium)
);--wa-tooltip-line-height:var(
--ha-tooltip-line-height,
var(--ha-line-height-condensed)
);--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var(
--ha-tooltip-border-radius,
var(--ha-border-radius-md)
);--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}.tooltip::part(popup){animation-duration:var(--ha-tooltip-animation-duration, 0)}.body{box-shadow:var(--ha-tooltip-box-shadow,var(--ha-box-shadow-m))}`))]}constructor(...e){super(...e),this.showDelay=350,this.hideDelay=150}}(0,o.Cg)([(0,i.MZ)({attribute:"show-delay",type:Number})],u.prototype,"showDelay",void 0),(0,o.Cg)([(0,i.MZ)({attribute:"hide-delay",type:Number})],u.prototype,"hideDelay",void 0),u=(0,o.Cg)([(0,i.EM)("ha-tooltip")],u),t()}catch(c){t(c)}})},10897:function(e,t,n){n.d(t,{C4:function(){return l},CK:function(){return c},FX:function(){return f},UC:function(){return m},_Z:function(){return v},bT:function(){return _},j4:function(){return b},sd:function(){return a},su:function(){return s},vc:function(){return y},w8:function(){return h},wv:function(){return d},y3:function(){return p},zS:function(){return i}});n(3362);var o=n(3931),r=n(82e3);const a=[1,2,3,4,6,8],i="web_rtc",s=(e,t,n)=>`${e}&width=${t}&height=${n}`,c=e=>e.attributes.access_token?`/api/camera_proxy_stream/${e.entity_id}?token=${e.attributes.access_token}`:void 0,l=async(e,t,n,r)=>{const a=await(0,o.U)("_cameraTmbUrl",9e3,u,e,t);return s(a,n,r)},u=async(e,t)=>{const n=await(0,r.e0)(e,`/api/camera_proxy/${t}`);return e.hassUrl(n.path)},d=async(e,t,n)=>{const o={type:"camera/stream",entity_id:t};n&&(o.format=n);const r=await e.callWS(o);return r.url=e.hassUrl(r.url),r},h=(e,t,n,o)=>e.connection.subscribeMessage(o,{type:"camera/webrtc/offer",entity_id:t,offer:n}),m=(e,t,n,o)=>e.callWS({type:"camera/webrtc/candidate",entity_id:t,session_id:n,candidate:o}),p=(e,t)=>e.callWS({type:"camera/get_prefs",entity_id:t}),f=(e,t,n)=>e.callWS(Object.assign({type:"camera/update_prefs",entity_id:t},n)),g="media-source://camera/",b=e=>e.startsWith(g),y=e=>e.substring(22),v=async(e,t)=>e.callWS({type:"camera/capabilities",entity_id:t}),_=async(e,t)=>e.callWS({type:"camera/webrtc/get_client_config",entity_id:t})},86531:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{$O:function(){return y},a$:function(){return w},cj:function(){return h},dG:function(){return b},gM:function(){return g},gd:function(){return p},k$:function(){return _},rc:function(){return C}});n(74423),n(3362),n(27495),n(25440),n(62953);var r=n(46190),a=n(71727),i=n(69093),s=n(22533),c=n(22675),l=n(25064),u=e([l]);l=(u.then?(await u)():u)[0];const d="ui.components.logbook.messages",h=["counter","proximity"],m={triggered_by_numeric_state_of:"numeric state of",triggered_by_state_of:"state of",triggered_by_event:"event",triggered_by_time_pattern:"time pattern",triggered_by_time:"time",triggered_by_homeassistant_stopping:"ioBroker stopping",triggered_by_homeassistant_starting:"ioBroker starting"},p=async(e,t,n)=>f(e,t,void 0,void 0,n),f=(e,t,n,o,r,a)=>{if((o||a)&&(!o||0===o.length)&&(!a||0===a.length))return Promise.resolve([]);const i={type:"logbook/get_events",start_time:t};return n&&(i.end_time=n),null!=o&&o.length&&(i.entity_ids=o),null!=a&&a.length&&(i.device_ids=a),r&&(i.context_id=r),e.callWS(i)},g=(e,t,n,o,r,a,i)=>{if((a||i)&&(!a||0===a.length)&&(!i||0===i.length))return Promise.reject("No entities or devices");const s={type:"logbook/event_stream",start_time:n,end_time:o};return null!=a&&a.length&&(s.entity_ids=a),null!=i&&i.length&&(s.device_ids=i),e.connection.subscribeMessage(e=>t(e,r),s)},b=(e,t)=>({entity_id:e.entity_id,state:t,attributes:{device_class:null==e?void 0:e.attributes.device_class,source_type:null==e?void 0:e.attributes.source_type,has_date:null==e?void 0:e.attributes.has_date,has_time:null==e?void 0:e.attributes.has_time,entity_picture_local:r.oL.has((0,a.m)(e.entity_id))||null==e?void 0:e.attributes.entity_picture_local,entity_picture:r.oL.has((0,a.m)(e.entity_id))||null==e?void 0:e.attributes.entity_picture}}),y=(e,t)=>{for(const n of Object.keys(m)){const o=m[n];if(t.startsWith(o))return t.replace(o,`${e(`ui.components.logbook.${n}`)}`)}return t},v={triggered_by_numeric_state_of:"numeric_state_of",triggered_by_state_of:"state_of",triggered_by_event:"event",triggered_by_time_pattern:"time_pattern",triggered_by_time:"time",triggered_by_homeassistant_stopping:"homeassistant_stopping",triggered_by_homeassistant_starting:"homeassistant_starting"},_=(e,t)=>{for(const n of Object.keys(m)){const o=m[n];if(t.startsWith(o)){const r=v[n];return t.replace(o,`${e(`ui.components.logbook.${r}`)}`)}}return t},w=(e,t,n,o,r)=>{switch(r){case"device_tracker":case"person":return"not_home"===n?t(`${d}.was_away`):"home"===n?t(`${d}.was_at_home`):t(`${d}.was_at_state`,{state:n});case"sun":return t("above_horizon"===n?`${d}.rose`:`${d}.set`);case"binary_sensor":{const r="on"===n,a="off"===n,i=o.attributes.device_class;if(i&&(r||a))return t(`${d}.${r?"detected_device_classes":"cleared_device_classes"}.${i}`,{device_class:(0,s.i)(t(`component.binary_sensor.entity_component.${i}.name`)||i,e.language)})||t(`${d}.${r?"detected_device_class":"cleared_device_class"}`,{device_class:(0,s.i)(t(`component.binary_sensor.entity_component.${i}.name`)||i,e.language)});break}case"cover":switch(n){case"open":return t(`${d}.was_opened`);case"opening":return t(`${d}.is_opening`);case"closing":return t(`${d}.is_closing`);case"closed":return t(`${d}.was_closed`)}break;case"event":return t(`${d}.detected_event_no_type`);case"lock":switch(n){case"unlocked":return t(`${d}.was_unlocked`);case"locking":return t(`${d}.is_locking`);case"unlocking":return t(`${d}.is_unlocking`);case"opening":return t(`${d}.is_opening`);case"open":return t(`${d}.is_opened`);case"locked":return t(`${d}.was_locked`);case"jammed":return t(`${d}.is_jammed`)}}return"on"===n?t(`${d}.turned_on`):"off"===n?t(`${d}.turned_off`):n===c.HV?t(`${d}.became_unknown`):n===c.Hh?t(`${d}.became_unavailable`):e.localize(`${d}.changed_to_state`,{state:o?e.formatEntityState(o,n):n})},C=(e,t=[])=>{const n=(0,i.t)(e);return!(h.includes(n)||"sensor"===n&&(0,l.Fp)(n,e,void 0,t))};o()}catch(d){o(d)}})},99129:function(e,t,n){n.d(t,{EG:function(){return a},ML:function(){return i}});var o=n(90889),r=n(35952);const a=(e,t,n)=>e.subscribeEvents(e=>{e.data.url_path===t&&n()},"lovelace_updated"),i=(e,t=null)=>(0,o.X)(e,`_lovelace_${null!=t?t:""}`,e=>(0,r.Dz)(e,t,!1),(n,o)=>a(e,t,()=>(0,r.Dz)(e,t,!1).then(e=>o.setState(e,!0))))},28918:function(e,t,n){n.d(t,{H:function(){return r},o:function(){return o}});function o(e){return"boolean"==typeof e?e?{}:void 0:e}function r(e){return"strategy"in e}},35952:function(e,t,n){function o(e){return"strategy"in e}n.d(t,{Dz:function(){return r},Wu:function(){return o},ql:function(){return a}});const r=(e,t,n)=>e.sendMessagePromise({type:"lovelace/config",url_path:t,force:n}),a=(e,t,n)=>e.callWS({type:"lovelace/config/save",url_path:t,config:n})},91984:function(e,t,n){n.d(t,{R6:function(){return r},TQ:function(){return a},cg:function(){return i}});var o=n(31290);function r(e){return"strategy"in e}const a=(e,t)=>{var n;return null!==(n=e.title)&&void 0!==n?n:e.path?(0,o.n)(e.path):String(t)},i=e=>{var t;return null!==(t=e.icon)&&void 0!==t?t:"mdi:view-compact"}},71730:function(e,t,n){n.d(t,{A_:function(){return i},SJ:function(){return o},mQ:function(){return a},n6:function(){return r}});const o=e=>e.callWS({type:"lovelace/dashboards/list"}),r=(e,t)=>e.callWS(Object.assign({type:"lovelace/dashboards/create"},t)),a=(e,t,n)=>e.callWS(Object.assign({type:"lovelace/dashboards/update",dashboard_id:t},n)),i=(e,t)=>e.callWS({type:"lovelace/dashboards/delete",dashboard_id:t})},45291:function(e,t,n){n.d(t,{IP:function(){return o},Iu:function(){return d},J_:function(){return a},O9:function(){return s},b$:function(){return l},bH:function(){return i},c8:function(){return u},wi:function(){return c}});n(18111),n(20116),n(62953);const o="custom:",r=window;"customCards"in r||(r.customCards=[]),"customCardFeatures"in r||(r.customCardFeatures=[]),"customBadges"in r||(r.customBadges=[]),"customTileFeatures"in r||(r.customTileFeatures=[]);const a=r.customCards,i=()=>[...r.customCardFeatures,...r.customTileFeatures],s=r.customBadges,c=e=>a.find(t=>t.type===e),l=e=>s.find(t=>t.type===e),u=e=>e.startsWith(o),d=e=>e.slice(o.length)},53072:function(e,t,n){n.d(t,{$6:function(){return b},EC:function(){return f},ET:function(){return g},H1:function(){return p},HN:function(){return w},Im:function(){return M},QI:function(){return C},Un:function(){return v},Xm:function(){return _},ce:function(){return k},fh:function(){return L},ie:function(){return A},mm:function(){return y},vj:function(){return m}});n(44114);var o=n(47129),r=n(82286),a=n(22675),i=n(52069);const s="M11,14C12,14 13.05,14.16 14.2,14.44C13.39,15.31 13,16.33 13,17.5C13,18.39 13.25,19.23 13.78,20H3V18C3,16.81 3.91,15.85 5.74,15.12C7.57,14.38 9.33,14 11,14M11,12C9.92,12 9,11.61 8.18,10.83C7.38,10.05 7,9.11 7,8C7,6.92 7.38,6 8.18,5.18C9,4.38 9.92,4 11,4C12.11,4 13.05,4.38 13.83,5.18C14.61,6 15,6.92 15,8C15,9.11 14.61,10.05 13.83,10.83C13.05,11.61 12.11,12 11,12M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",c="M14,19H18V5H14M6,19H10V5H6V19Z",l="M8,5.14V19.14L19,12.14L8,5.14Z",u="M13,3H11V13H13V3M17.83,5.17L16.41,6.59C18.05,7.91 19,9.9 19,12A7,7 0 0,1 12,19C8.14,19 5,15.88 5,12C5,9.91 5.95,7.91 7.58,6.58L6.17,5.17C2.38,8.39 1.92,14.07 5.14,17.86C8.36,21.64 14.04,22.1 17.83,18.88C19.85,17.17 21,14.65 21,12C21,9.37 19.84,6.87 17.83,5.17Z",d="M18,18H6V6H18V18Z",h="M8.16,3L6.75,4.41L9.34,7H4C2.89,7 2,7.89 2,9V19C2,20.11 2.89,21 4,21H20C21.11,21 22,20.11 22,19V9C22,7.89 21.11,7 20,7H14.66L17.25,4.41L15.84,3L12,6.84L8.16,3M4,9H17V19H4V9M19.5,9A1,1 0 0,1 20.5,10A1,1 0 0,1 19.5,11A1,1 0 0,1 18.5,10A1,1 0 0,1 19.5,9M19.5,12A1,1 0 0,1 20.5,13A1,1 0 0,1 19.5,14A1,1 0 0,1 18.5,13A1,1 0 0,1 19.5,12Z";var m=function(e){return e[e.PAUSE=1]="PAUSE",e[e.SEEK=2]="SEEK",e[e.VOLUME_SET=4]="VOLUME_SET",e[e.VOLUME_MUTE=8]="VOLUME_MUTE",e[e.PREVIOUS_TRACK=16]="PREVIOUS_TRACK",e[e.NEXT_TRACK=32]="NEXT_TRACK",e[e.TURN_ON=128]="TURN_ON",e[e.TURN_OFF=256]="TURN_OFF",e[e.PLAY_MEDIA=512]="PLAY_MEDIA",e[e.VOLUME_STEP=1024]="VOLUME_STEP",e[e.SELECT_SOURCE=2048]="SELECT_SOURCE",e[e.STOP=4096]="STOP",e[e.CLEAR_PLAYLIST=8192]="CLEAR_PLAYLIST",e[e.PLAY=16384]="PLAY",e[e.SHUFFLE_SET=32768]="SHUFFLE_SET",e[e.SELECT_SOUND_MODE=65536]="SELECT_SOUND_MODE",e[e.BROWSE_MEDIA=131072]="BROWSE_MEDIA",e[e.REPEAT_SET=262144]="REPEAT_SET",e[e.GROUPING=524288]="GROUPING",e}({});const p="browser",f={album:{icon:"M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,16.5C9.5,16.5 7.5,14.5 7.5,12C7.5,9.5 9.5,7.5 12,7.5C14.5,7.5 16.5,9.5 16.5,12C16.5,14.5 14.5,16.5 12,16.5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",layout:"grid"},app:{icon:"M21 2H3C1.9 2 1 2.9 1 4V20C1 21.1 1.9 22 3 22H21C22.1 22 23 21.1 23 20V4C23 2.9 22.1 2 21 2M21 7H3V4H21V7Z",layout:"grid",show_list_images:!0},artist:{icon:s,layout:"grid",show_list_images:!0},channel:{icon:h,thumbnail_ratio:"portrait",layout:"grid",show_list_images:!0},composer:{icon:"M11,4A4,4 0 0,1 15,8A4,4 0 0,1 11,12A4,4 0 0,1 7,8A4,4 0 0,1 11,4M11,6A2,2 0 0,0 9,8A2,2 0 0,0 11,10A2,2 0 0,0 13,8A2,2 0 0,0 11,6M11,13C12.1,13 13.66,13.23 15.11,13.69C14.5,14.07 14,14.6 13.61,15.23C12.79,15.03 11.89,14.9 11,14.9C8.03,14.9 4.9,16.36 4.9,17V18.1H13.04C13.13,18.8 13.38,19.44 13.76,20H3V17C3,14.34 8.33,13 11,13M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",layout:"grid",show_list_images:!0},contributing_artist:{icon:s,layout:"grid",show_list_images:!0},directory:{icon:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",layout:"grid",show_list_images:!0},episode:{icon:h,layout:"grid",thumbnail_ratio:"portrait",show_list_images:!0},game:{icon:"M7,6H17A6,6 0 0,1 23,12A6,6 0 0,1 17,18C15.22,18 13.63,17.23 12.53,16H11.47C10.37,17.23 8.78,18 7,18A6,6 0 0,1 1,12A6,6 0 0,1 7,6M6,9V11H4V13H6V15H8V13H10V11H8V9H6M15.5,12A1.5,1.5 0 0,0 14,13.5A1.5,1.5 0 0,0 15.5,15A1.5,1.5 0 0,0 17,13.5A1.5,1.5 0 0,0 15.5,12M18.5,9A1.5,1.5 0 0,0 17,10.5A1.5,1.5 0 0,0 18.5,12A1.5,1.5 0 0,0 20,10.5A1.5,1.5 0 0,0 18.5,9Z",layout:"grid",thumbnail_ratio:"portrait"},genre:{icon:"M8.11,19.45C5.94,18.65 4.22,16.78 3.71,14.35L2.05,6.54C1.81,5.46 2.5,4.4 3.58,4.17L13.35,2.1L13.38,2.09C14.45,1.88 15.5,2.57 15.72,3.63L16.07,5.3L20.42,6.23H20.45C21.5,6.47 22.18,7.53 21.96,8.59L20.3,16.41C19.5,20.18 15.78,22.6 12,21.79C10.42,21.46 9.08,20.61 8.11,19.45V19.45M20,8.18L10.23,6.1L8.57,13.92V13.95C8,16.63 9.73,19.27 12.42,19.84C15.11,20.41 17.77,18.69 18.34,16L20,8.18M16,16.5C15.37,17.57 14.11,18.16 12.83,17.89C11.56,17.62 10.65,16.57 10.5,15.34L16,16.5M8.47,5.17L4,6.13L5.66,13.94L5.67,13.97C5.82,14.68 6.12,15.32 6.53,15.87C6.43,15.1 6.45,14.3 6.62,13.5L7.05,11.5C6.6,11.42 6.21,11.17 6,10.81C6.06,10.2 6.56,9.66 7.25,9.5C7.33,9.5 7.4,9.5 7.5,9.5L8.28,5.69C8.32,5.5 8.38,5.33 8.47,5.17M15.03,12.23C15.35,11.7 16.03,11.42 16.72,11.57C17.41,11.71 17.91,12.24 18,12.86C17.67,13.38 17,13.66 16.3,13.5C15.61,13.37 15.11,12.84 15.03,12.23M10.15,11.19C10.47,10.66 11.14,10.38 11.83,10.53C12.5,10.67 13.03,11.21 13.11,11.82C12.78,12.34 12.11,12.63 11.42,12.5C10.73,12.33 10.23,11.8 10.15,11.19M11.97,4.43L13.93,4.85L13.77,4.05L11.97,4.43Z",layout:"grid",show_list_images:!0},image:{icon:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",layout:"grid",show_list_images:!0},movie:{icon:"M18,4L20,8H17L15,4H13L15,8H12L10,4H8L10,8H7L5,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V4H18Z",thumbnail_ratio:"portrait",layout:"grid",show_list_images:!0},music:{icon:"M21,3V15.5A3.5,3.5 0 0,1 17.5,19A3.5,3.5 0 0,1 14,15.5A3.5,3.5 0 0,1 17.5,12C18.04,12 18.55,12.12 19,12.34V6.47L9,8.6V17.5A3.5,3.5 0 0,1 5.5,21A3.5,3.5 0 0,1 2,17.5A3.5,3.5 0 0,1 5.5,14C6.04,14 6.55,14.12 7,14.34V6L21,3Z",show_list_images:!0},playlist:{icon:"M15,6H3V8H15V6M15,10H3V12H15V10M3,16H11V14H3V16M17,6V14.18C16.69,14.07 16.35,14 16,14A3,3 0 0,0 13,17A3,3 0 0,0 16,20A3,3 0 0,0 19,17V8H22V6H17Z",layout:"grid",show_list_images:!0},podcast:{icon:"M17,18.25V21.5H7V18.25C7,16.87 9.24,15.75 12,15.75C14.76,15.75 17,16.87 17,18.25M12,5.5A6.5,6.5 0 0,1 18.5,12C18.5,13.25 18.15,14.42 17.54,15.41L16,14.04C16.32,13.43 16.5,12.73 16.5,12C16.5,9.5 14.5,7.5 12,7.5C9.5,7.5 7.5,9.5 7.5,12C7.5,12.73 7.68,13.43 8,14.04L6.46,15.41C5.85,14.42 5.5,13.25 5.5,12A6.5,6.5 0 0,1 12,5.5M12,1.5A10.5,10.5 0 0,1 22.5,12C22.5,14.28 21.77,16.39 20.54,18.11L19.04,16.76C19.96,15.4 20.5,13.76 20.5,12A8.5,8.5 0 0,0 12,3.5A8.5,8.5 0 0,0 3.5,12C3.5,13.76 4.04,15.4 4.96,16.76L3.46,18.11C2.23,16.39 1.5,14.28 1.5,12A10.5,10.5 0 0,1 12,1.5M12,9.5A2.5,2.5 0 0,1 14.5,12A2.5,2.5 0 0,1 12,14.5A2.5,2.5 0 0,1 9.5,12A2.5,2.5 0 0,1 12,9.5Z",layout:"grid"},season:{icon:h,layout:"grid",thumbnail_ratio:"portrait",show_list_images:!0},track:{icon:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z"},tv_show:{icon:h,layout:"grid",thumbnail_ratio:"portrait"},url:{icon:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},video:{icon:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z",layout:"grid",show_list_images:!0}},g=(e,t,n,o)=>e.callWS({type:"media_player/browse_media",entity_id:t,media_content_id:n,media_content_type:o}),b=e=>{let t=e.attributes.media_position;return"playing"!==e.state?t:(t+=(Date.now()-new Date(e.attributes.media_position_updated_at).getTime())/1e3,t<0?0:t)},y=e=>{let t;switch(e.attributes.media_content_type){case"music":case"image":t=e.attributes.media_artist;break;case"playlist":t=e.attributes.media_playlist||e.attributes.media_artist;break;case"tvshow":t=e.attributes.media_series_title,e.attributes.media_season&&(t+=" S"+e.attributes.media_season,e.attributes.media_episode&&(t+="E"+e.attributes.media_episode));break;case"channel":t=e.attributes.media_channel;break;default:t=e.attributes.app_name||""}return t},v=(e,t=!1)=>{if(!e)return;const n=e.state;if(n===a.Hh)return;const i=!0===e.attributes.assumed_state;if(!(0,o.a)(e)&&!i)return(0,r.$)(e,128)?[{icon:u,action:"turn_on"}]:void 0;const s=[];i&&(0,r.$)(e,128)&&s.push({icon:"M11,3H13V21H11V3Z",action:"turn_on"}),(0,r.$)(e,256)&&s.push({icon:i?"M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19A7,7 0 0,1 5,12A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19Z":u,action:"turn_off"});const h=e.attributes;return("playing"===n||"paused"===n||i)&&(0,r.$)(e,32768)&&t&&s.push({icon:!0===h.shuffle?"M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z":"M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",action:"shuffle_set"}),("playing"===n||"paused"===n||i)&&(0,r.$)(e,16)&&s.push({icon:"M6,18V6H8V18H6M9.5,12L18,6V18L9.5,12Z",action:"media_previous_track"}),!i&&("playing"===n&&((0,r.$)(e,1)||(0,r.$)(e,4096))||("paused"===n||"idle"===n)&&(0,r.$)(e,16384)||"on"===n&&((0,r.$)(e,16384)||(0,r.$)(e,1)))&&s.push({icon:"on"===n?"M3,5V19L11,12M13,19H16V5H13M18,5V19H21V5":"playing"!==n?l:(0,r.$)(e,1)?c:d,action:"playing"!==n?"media_play":(0,r.$)(e,1)?"media_pause":"media_stop"}),i&&(0,r.$)(e,16384)&&s.push({icon:l,action:"media_play"}),i&&(0,r.$)(e,1)&&s.push({icon:c,action:"media_pause"}),i&&(0,r.$)(e,4096)&&s.push({icon:d,action:"media_stop"}),("playing"===n||"paused"===n||i)&&(0,r.$)(e,32)&&s.push({icon:"M16,18H18V6H16M6,18L14.5,12L6,6V18Z",action:"media_next_track"}),("playing"===n||"paused"===n||i)&&(0,r.$)(e,262144)&&t&&s.push({icon:"all"===h.repeat?"M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z":"one"===h.repeat?"M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z":"M2,5.27L3.28,4L20,20.72L18.73,22L15.73,19H7V22L3,18L7,14V17H13.73L7,10.27V11H5V8.27L2,5.27M17,13H19V17.18L17,15.18V13M17,5V2L21,6L17,10V7H8.82L6.82,5H17Z",action:"repeat_set"}),s.length>0?s:void 0},_=e=>{if(void 0===e||e===1/0)return"";const t=Math.max(0,Math.floor(e)),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=t%60,a=e=>e.toString().padStart(2,"0");return n>0?`${a(n)}:${a(o)}:${a(r)}`:`${a(o)}:${a(r)}`},w=e=>{if(!e)return;const t=e.indexOf("?authSig=");let n=t>0?e.slice(0,t):e;return n.startsWith("http")&&(n=decodeURIComponent(n.split("/").pop())),n},C=(e,t,n)=>e.callService("media_player","volume_set",{entity_id:t,volume_level:n}),k=(e,t,n)=>e.callService("media_player",n,"shuffle_set"===n?{entity_id:t.entity_id,shuffle:!t.attributes.shuffle}:"repeat_set"===n?{entity_id:t.entity_id,repeat:"all"===t.attributes.repeat?"one":"off"===t.attributes.repeat?"all":"off"}:{entity_id:t.entity_id}),A=(e,t,n,o,r={})=>(!r.enqueue&&void 0===r.announce&&(0,i.ni)(n)&&(r.announce=!0),e.callService("media_player","play_media",Object.assign({entity_id:t,media_content_id:n,media_content_type:o},r))),M=(e,t,n)=>e.callService("media_player","join",{group_members:n},{entity_id:t}),L=(e,t)=>e.callService("media_player","unjoin",{},{entity_id:t})},61557:function(e,t,n){n.d(t,{uw:function(){return r}});n(3362);const o={type:"supervisor/api",method:"GET"},r=(e,t)=>e.sendMessagePromise(Object.assign(Object.assign({},o),t))},24673:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{CT:function(){return f},HD:function(){return h},M1:function(){return w},aK:function(){return p},gs:function(){return y},oF:function(){return v},pC:function(){return m},pk:function(){return b},sw:function(){return k},t0:function(){return C}});n(74423);var r=n(36312),a=n(71727),i=n(68287),s=n(25064),c=n(86531),l=n(43248),u=e([c,s]);[c,s]=u.then?(await u)():u;const d=59509==n.j?["info","history","settings","related","add_to","details"]:null,h=e=>void 0!==e&&d.includes(e),m=["camera","configurator"],p=["scene","automation"],f=["script"],g=["alarm_control_panel","cover","climate","conversation","fan","humidifier","input_boolean","lawn_mower","light","lock","siren","script","switch","vacuum","valve","water_heater","weather","media_player"],b=["update"],y=["alarm_control_panel","automation","camera","climate","configurator","conversation","counter","cover","date","datetime","fan","group","humidifier","image","input_boolean","input_datetime","lawn_mower","light","lock","media_player","person","remote","script","scene","siren","sun","switch","time","timer","update","vacuum","valve","water_heater","weather"],v=["input_number","input_select","input_text","number","scene","select","text","update"],_=["camera","configurator"],w=(e,t)=>{if("weather"===(0,a.m)(t)){const n=e.states[t];if(n&&(0,l.N_)(n.state))return!1}return(0,r.x)(e.config,"history")&&!_.includes((0,a.m)(t))},C=(e,t,n=[])=>{if(!(0,r.x)(e.config,"logbook"))return!1;const o=e.states[t];if(!o)return!1;const i=(0,a.m)(t);return!(c.cj.includes(i)||"sensor"===i&&(0,s.Fp)(i,o,void 0,n)||_.includes(i))&&("weather"!==i||!o||!(0,l.N_)(o.state))},k=e=>{const t=(0,a.m)(e.entity_id);if("group"===t){const t=(0,i.z)(e);return null!=t&&"group"!==t&&g.includes(t)}return g.includes(t)};o()}catch(d){o(d)}})},42269:function(e,t,n){n.d(t,{p:function(){return r}});var o=n(1087);const r=(e,t)=>(0,o.r)(e,"hass-more-info",t)},24367:function(e,t,n){n.d(t,{L:function(){return r},z:function(){return a}});var o=n(23832);const r=["input_boolean","input_button","input_text","input_number","input_datetime","input_select","counter","timer","schedule"],a=(0,o.g)(r)},20939:function(e,t,n){n.d(t,{L:function(){return r}});n(16280),n(18111),n(61701);var o=n(78649);const r=(e,t=!0)=>{if(!e||!Array.isArray(e))throw new Error("Entities need to be an array");return e.map((e,n)=>{if("object"==typeof e&&!Array.isArray(e)&&e.type)return e;let r;if("string"==typeof e)r={entity:e};else{if("object"!=typeof e||Array.isArray(e))throw new Error(`Invalid entity ID at position ${n}`);if(!("entity"in e))throw new Error(`Object at position ${n} is missing entity field`);r=e}if(t&&!(0,o.n)(r.entity))throw new Error(`Invalid entity ID at position ${n}: ${r.entity}`);return r})}},15656:function(e,t,n){n.d(t,{Nu:function(){return m},TG:function(){return v},Xd:function(){return g},d4:function(){return y},uN:function(){return f},xC:function(){return b}});var o=n(86518);n(16280),n(18111),n(61701),n(3362),n(62953);if(59509==n.j)var r=n(28918);if(59509==n.j)var a=n(35952);var i=n(91984),s=n(53338);const c=59509==n.j?["strategy"]:null,l=59509==n.j?["strategy"]:null,u=["strategy"],d="custom:",h={dashboard:{"original-states":()=>n.e(60134).then(n.bind(n,43845)),map:()=>n.e(74994).then(n.bind(n,56009)),iframe:()=>n.e(1732).then(n.bind(n,38287)),areas:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(9209)]).then(n.bind(n,80821)),home:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(3650),n.e(86201)]).then(n.bind(n,67293)),energy:()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(19343)]).then(n.bind(n,94429))},view:{"original-states":()=>Promise.all([n.e(67218),n.e(92610),n.e(662),n.e(77183),n.e(94530)]).then(n.bind(n,16330)),"energy-overview":()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(51016)]).then(n.bind(n,3260)),energy:()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(20984)]).then(n.bind(n,86242)),water:()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(8969)]).then(n.bind(n,88615)),gas:()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(17423)]).then(n.bind(n,21733)),power:()=>Promise.all([n.e(67218),n.e(92610),n.e(7483),n.e(77183),n.e(17879)]).then(n.bind(n,60093)),map:()=>n.e(6875).then(n.bind(n,14966)),iframe:()=>n.e(73441).then(n.bind(n,51480)),area:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(74271)]).then(n.bind(n,44979)),"areas-overview":()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(88964)]).then(n.bind(n,69140)),"home-overview":()=>Promise.all([n.e(67218),n.e(92610),n.e(99788),n.e(45193),n.e(77183),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(3650),n.e(58709)]).then(n.bind(n,8892)),"home-media-players":()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(3650),n.e(59022)]).then(n.bind(n,24876)),"home-area":()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(3650),n.e(50362)]).then(n.bind(n,47302)),"home-other-devices":()=>n.e(27800).then(n.bind(n,78859)),light:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(71780)]).then(n.bind(n,71776)),security:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(34442)]).then(n.bind(n,31758)),climate:()=>Promise.all([n.e(99788),n.e(59704),n.e(25322),n.e(12009),n.e(20282),n.e(98874)]).then(n.bind(n,73026)),maintenance:()=>n.e(82691).then(n.bind(n,78030))},section:{"common-controls":()=>n.e(8717).then(n.bind(n,44124))}},m=async(e,t)=>{var n;if(t in h[e]){await h[e][t]();const n=`${t}-${e}-strategy`;return customElements.get(n)}if(!t.startsWith(d))throw new Error("Unknown strategy");const o=`ll-strategy-${t.slice(7)}`,r=`ll-strategy-${e}-${t.slice(7)}`;if(!0===await Promise.race([customElements.whenDefined(o),customElements.whenDefined(r),new Promise(e=>{setTimeout(()=>e(!0),5e3)})]))throw new Error(`Timeout waiting for strategy element ${r} to be registered`);return null!==(n=customElements.get(r))&&void 0!==n?n:customElements.get(o)},p=async(e,t,n,o)=>{const r=n.type;if(!r)return t("No strategy type found");try{const t=await m(e,r);if((0,s.Xo)(t)){if("dashboard"===e&&"generateDashboard"in t)return await t.generateDashboard({config:{strategy:n,views:[]},hass:o});if("view"===e&&"generateView"in t)return await t.generateView({config:{views:[]},view:{strategy:n},hass:o})}const a=(0,s._V)(n);return await t.generate(a,o)}catch(a){return"timeout"!==a.message&&console.error(a),t(a)}},f=async(e,t)=>{const{strategy:n}=e,r=(0,o.A)(e,c),a=await p("dashboard",e=>({views:[{title:"Error",cards:[{type:"markdown",content:`Error loading the dashboard strategy:\n> ${e}`}]}]}),n,t);return Object.assign(Object.assign({},r),a)},g=async(e,t)=>{const{strategy:n}=e,r=(0,o.A)(e,l),a=await p("view",e=>({cards:[{type:"markdown",content:`Error loading the view strategy:\n> ${e}`}]}),n,t);return Object.assign(Object.assign({},r),a)},b=async(e,t)=>{const{strategy:n}=e,r=(0,o.A)(e,u),a=await p("section",e=>({cards:[{type:"markdown",content:`Error loading the section strategy:\n> ${e}`}]}),n,t);return Object.assign(Object.assign({},r),a)},y=async(e,t)=>{const n=(0,a.Wu)(e)?await f(e,t):Object.assign({},e);return n.views=await Promise.all(n.views.map(async e=>{const n=(0,i.R6)(e)?await g(e,t):Object.assign({},e);return n.sections&&(n.sections=await Promise.all(n.sections.map(async e=>(0,r.H)(e)?await b(e,t):Object.assign({},e)))),n})),n};async function v(e,t){const n=await m("dashboard",t),o=await async function(e,t){const n=t.getCreateSuggestions;if("function"==typeof n)return n.call(t,e)}(e,n);return{strategyClass:n,fieldSuggestions:o}}},53338:function(e,t,n){n.d(t,{B2:function(){return r},Xo:function(){return o},_V:function(){return a}});const o=e=>!("generate"in e),r=e=>2===Object.keys(e).length&&"options"in e&&"object"==typeof e.options,a=e=>{if(!r(e))return e;const t=Object.assign(Object.assign({},e),e.options);return delete t.options,t}},53580:function(e,t,n){n.d(t,{mdiHomeAssistant:function(){return o}});const o="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"},36918:function(e,t,n){n.d(t,{o:function(){return o}});const o=(e,t)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}}]);