iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
18 lines • 40.4 kB
JavaScript
/*! For license information please see 66429.2f259ee12f867ea3.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["66429"],{99152:function(e,t,r){r.d(t,{V:()=>s});r(63721),r(71695),r(61893),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(47021);const i=Symbol("selection controller");class a{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class s{constructor(e){this.sets={},this.focusedSet=null,this.mouseIsDown=!1,this.updating=!1,e.addEventListener("keydown",(e=>{this.keyDownHandler(e)})),e.addEventListener("mousedown",(()=>{this.mousedownHandler()})),e.addEventListener("mouseup",(()=>{this.mouseupHandler()}))}static getController(e){const t=!("global"in e)||"global"in e&&e.global?document:e.getRootNode();let r=t[i];return void 0===r&&(r=new s(t),t[i]=r),r}keyDownHandler(e){const t=e.target;"checked"in t&&this.has(t)&&("ArrowRight"==e.key||"ArrowDown"==e.key?this.selectNext(t):"ArrowLeft"!=e.key&&"ArrowUp"!=e.key||this.selectPrevious(t))}mousedownHandler(){this.mouseIsDown=!0}mouseupHandler(){this.mouseIsDown=!1}has(e){return this.getSet(e.name).set.has(e)}selectPrevious(e){const t=this.getOrdered(e),r=t.indexOf(e),i=t[r-1]||t[t.length-1];return this.select(i),i}selectNext(e){const t=this.getOrdered(e),r=t.indexOf(e),i=t[r+1]||t[0];return this.select(i),i}select(e){e.click()}focus(e){if(this.mouseIsDown)return;const t=this.getSet(e.name),r=this.focusedSet;this.focusedSet=t,r!=t&&t.selected&&t.selected!=e&&t.selected.focus()}isAnySelected(e){const t=this.getSet(e.name);for(const r of t.set)if(r.checked)return!0;return!1}getOrdered(e){const t=this.getSet(e.name);return t.ordered||(t.ordered=Array.from(t.set),t.ordered.sort(((e,t)=>e.compareDocumentPosition(t)==Node.DOCUMENT_POSITION_PRECEDING?1:0))),t.ordered}getSet(e){return this.sets[e]||(this.sets[e]=new a),this.sets[e]}register(e){const t=e.name||e.getAttribute("name")||"",r=this.getSet(t);r.set.add(e),r.ordered=null}unregister(e){const t=this.getSet(e.name);t.set.delete(e),t.ordered=null,t.selected==e&&(t.selected=null)}update(e){if(this.updating)return;this.updating=!0;const t=this.getSet(e.name);if(e.checked){for(const r of t.set)r!=e&&(r.checked=!1);t.selected=e}if(this.isAnySelected(e))for(const r of t.set){if(void 0===r.formElementTabIndex)break;r.formElementTabIndex=r.checked?0:-1}this.updating=!1}}},30338:function(e,t,r){var i=r(97934),a=r(71998),s=r(4576),o=r(36760);e.exports=function(e,t){t&&"string"==typeof e||a(e);var r=o(e);return s(a(void 0!==r?i(r,e):e))}},60933:function(e,t,r){var i=r(40810),a=r(57877),s=r(63983),o=r(12360),n=r(13053),l=r(47645);i({target:"Array",proto:!0},{flatMap:function(e){var t,r=o(this),i=n(r);return s(e),(t=l(r,0)).length=a(t,r,r,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},32126:function(e,t,r){r(35709)("flatMap")},25677:function(e,t,r){var i=r(40810),a=r(97934),s=r(63983),o=r(71998),n=r(4576),l=r(30338),d=r(79995),c=r(14181),u=r(92288),h=d((function(){for(var e,t,r=this.iterator,i=this.mapper;;){if(t=this.inner)try{if(!(e=o(a(t.next,t.iterator))).done)return e.value;this.inner=null}catch(s){c(r,"throw",s)}if(e=o(a(this.next,r)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(s){c(r,"throw",s)}}}));i({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(e){return o(this),s(e),new h(n(this),{mapper:e,inner:null})}})},32517:function(e,t,r){var i=r(1569),a=r(85779),s=r(27803),o=r(31126),n=r(29660),l=i.RegExp,d=l.prototype;a&&n((function(){var e=!0;try{l(".","d")}catch(n){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",a=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(d,"flags").get.call(t)!==i||r!==i}))&&s(d,"flags",{configurable:!0,get:o})},10445:function(e,t,r){r.d(t,{X:()=>f});var i=r(9065),a=r(50778),s=(r(71695),r(19423),r(47021),r(54835),r(57243)),o=r(4077);let n,l,d,c=e=>e;class u extends o.A{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&(this.disabled||this.softDisabled)}getContainerClasses(){return Object.assign(Object.assign({},super.getContainerClasses()),{},{disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href})}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?(0,s.dy)(n||(n=c` <a class="primary action" id="link" aria-label="${0}" href="${0}" target="${0}">${0}</a> `),t||s.Ld,this.href,this.target||s.Ld,e):(0,s.dy)(l||(l=c` <button class="primary action" id="button" aria-label="${0}" aria-disabled="${0}" ?disabled="${0}" type="button">${0}</button> `),t||s.Ld,this.softDisabled||s.Ld,this.disabled&&!this.alwaysFocusable,e)}renderOutline(){return this.elevated?(0,s.dy)(d||(d=c`<md-elevation part="elevation"></md-elevation>`)):super.renderOutline()}}(0,i.__decorate)([(0,a.Cb)({type:Boolean})],u.prototype,"elevated",void 0),(0,i.__decorate)([(0,a.Cb)()],u.prototype,"href",void 0),(0,i.__decorate)([(0,a.Cb)()],u.prototype,"target",void 0);let h;const p=(0,s.iv)(h||(h=(e=>e)`:host{--_container-height:var(--md-assist-chip-container-height, 32px);--_disabled-label-text-color:var(--md-assist-chip-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-assist-chip-disabled-label-text-opacity, 0.38);--_elevated-container-color:var(--md-assist-chip-elevated-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_elevated-container-elevation:var(--md-assist-chip-elevated-container-elevation, 1);--_elevated-container-shadow-color:var(--md-assist-chip-elevated-container-shadow-color, var(--md-sys-color-shadow, #000));--_elevated-disabled-container-color:var(--md-assist-chip-elevated-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_elevated-disabled-container-elevation:var(--md-assist-chip-elevated-disabled-container-elevation, 0);--_elevated-disabled-container-opacity:var(--md-assist-chip-elevated-disabled-container-opacity, 0.12);--_elevated-focus-container-elevation:var(--md-assist-chip-elevated-focus-container-elevation, 1);--_elevated-hover-container-elevation:var(--md-assist-chip-elevated-hover-container-elevation, 2);--_elevated-pressed-container-elevation:var(--md-assist-chip-elevated-pressed-container-elevation, 1);--_focus-label-text-color:var(--md-assist-chip-focus-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-assist-chip-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-color:var(--md-assist-chip-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-assist-chip-hover-state-layer-opacity, 0.08);--_label-text-color:var(--md-assist-chip-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font:var(--md-assist-chip-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-assist-chip-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size:var(--md-assist-chip-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight:var(--md-assist-chip-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color:var(--md-assist-chip-pressed-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color:var(--md-assist-chip-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity:var(--md-assist-chip-pressed-state-layer-opacity, 0.12);--_disabled-outline-color:var(--md-assist-chip-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity:var(--md-assist-chip-disabled-outline-opacity, 0.12);--_focus-outline-color:var(--md-assist-chip-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_outline-color:var(--md-assist-chip-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width:var(--md-assist-chip-outline-width, 1px);--_disabled-leading-icon-color:var(--md-assist-chip-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-assist-chip-disabled-leading-icon-opacity, 0.38);--_focus-leading-icon-color:var(--md-assist-chip-focus-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-leading-icon-color:var(--md-assist-chip-hover-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_leading-icon-color:var(--md-assist-chip-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size:var(--md-assist-chip-icon-size, 18px);--_pressed-leading-icon-color:var(--md-assist-chip-pressed-leading-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start:var(--md-assist-chip-container-shape-start-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end:var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end:var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start:var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space:var(--md-assist-chip-leading-space, 16px);--_trailing-space:var(--md-assist-chip-trailing-space, 16px);--_icon-label-space:var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space:var(--md-assist-chip-with-leading-icon-leading-space, 8px)} {.link .outline{border-color:ActiveText}}`));var v=r(29126),m=r(21016);let f=class extends u{};f.styles=[m.W,v.W,p],f=(0,i.__decorate)([(0,a.Mo)("md-assist-chip")],f)},4077:function(e,t,r){r.d(t,{A:()=>f});r(19423);var i=r(9065),a=(r(57618),r(23111),r(57243)),s=r(50778),o=r(35359),n=r(13823);let l,d,c,u,h,p,v=e=>e;const m=(0,n.T)(a.oi);class f extends m{get rippleDisabled(){return this.disabled||this.softDisabled}constructor(){super(),this.disabled=!1,this.softDisabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1,a.sk||this.addEventListener("click",this.handleClick.bind(this))}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return(0,a.dy)(l||(l=v` <div class="container ${0}"> ${0} </div> `),(0,o.$)(this.getContainerClasses()),this.renderContainerContent())}updated(e){e.has("disabled")&&void 0!==e.get("disabled")&&this.dispatchEvent(new Event("update-focus",{bubbles:!0}))}getContainerClasses(){return{disabled:this.disabled||this.softDisabled,"has-icon":this.hasIcon}}renderContainerContent(){return(0,a.dy)(d||(d=v` ${0} <md-focus-ring part="focus-ring" for="${0}"></md-focus-ring> <md-ripple for="${0}" ?disabled="${0}"></md-ripple> ${0} `),this.renderOutline(),this.primaryId,this.primaryId,this.rippleDisabled,this.renderPrimaryAction(this.renderPrimaryContent()))}renderOutline(){return(0,a.dy)(c||(c=v`<span class="outline"></span>`))}renderLeadingIcon(){return(0,a.dy)(u||(u=v`<slot name="icon" ="${0}"></slot>`),this.handleIconChange)}renderPrimaryContent(){return(0,a.dy)(h||(h=v` <span class="leading icon" aria-hidden="true"> ${0} </span> <span class="label"> <span class="label-text" id="label"> ${0} </span> </span> <span class="touch"></span> `),this.renderLeadingIcon(),this.label?this.label:(0,a.dy)(p||(p=v`<slot></slot>`)))}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements({flatten:!0}).length>0}handleClick(e){if(this.softDisabled||this.disabled&&this.alwaysFocusable)return e.stopImmediatePropagation(),void e.preventDefault()}}f.shadowRootOptions=Object.assign(Object.assign({},a.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],f.prototype,"disabled",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,attribute:"soft-disabled",reflect:!0})],f.prototype,"softDisabled",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,attribute:"always-focusable"})],f.prototype,"alwaysFocusable",void 0),(0,i.__decorate)([(0,s.Cb)()],f.prototype,"label",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0,attribute:"has-icon"})],f.prototype,"hasIcon",void 0)},29126:function(e,t,r){r.d(t,{W:()=>a});let i;const a=(0,r(57243).iv)(i||(i=(e=>e)`.elevated{--md-elevation-level:var(--_elevated-container-elevation);--md-elevation-shadow-color:var(--_elevated-container-shadow-color)}.elevated::before{background:var(--_elevated-container-color)}.elevated:hover{--md-elevation-level:var(--_elevated-hover-container-elevation)}.elevated:focus-within{--md-elevation-level:var(--_elevated-focus-container-elevation)}.elevated:active{--md-elevation-level:var(--_elevated-pressed-container-elevation)}.elevated.disabled{--md-elevation-level:var(--_elevated-disabled-container-elevation)}.elevated.disabled::before{background:var(--_elevated-disabled-container-color);opacity:var(--_elevated-disabled-container-opacity)} {.elevated md-elevation{border:1px solid CanvasText}.elevated.disabled md-elevation{border-color:GrayText}}`))},21016:function(e,t,r){r.d(t,{W:()=>a});let i;const a=(0,r(57243).iv)(i||(i=(e=>e)`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);display:inline-flex;height:var(--_container-height);cursor:pointer;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--_hover-state-layer-color);--md-ripple-hover-opacity:var(--_hover-state-layer-opacity);--md-ripple-pressed-color:var(--_pressed-state-layer-color);--md-ripple-pressed-opacity:var(--_pressed-state-layer-opacity)}:host(:is([disabled],[soft-disabled])){pointer-events:none}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}md-focus-ring{--md-focus-ring-shape-start-start:var(--_container-shape-start-start);--md-focus-ring-shape-start-end:var(--_container-shape-start-end);--md-focus-ring-shape-end-end:var(--_container-shape-end-end);--md-focus-ring-shape-end-start:var(--_container-shape-end-start)}.container{border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.container::before{border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute}.container:not(.disabled){cursor:pointer}.container.disabled{pointer-events:none}.cell{display:flex}.action{align-items:baseline;appearance:none;background:0 0;border:none;border-radius:inherit;display:flex;outline:0;padding:0;position:relative;text-decoration:none}.primary.action{min-width:0;padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.touch{height:48px;inset:50% 0 0;position:absolute;transform:translateY(-50%);width:100%}:host([touch-target=none]) .touch{display:none}.outline{border:var(--_outline-width) solid var(--_outline-color);border-radius:inherit;inset:0;pointer-events:none;position:absolute}:where(:focus) .outline{border-color:var(--_focus-outline-color)}:where(.disabled) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}md-ripple{border-radius:inherit}.icon,.label,.touch{z-index:1}.label{align-items:center;color:var(--_label-text-color);display:flex;font-family:var(--_label-text-font);font-size:var(--_label-text-size);font-weight:var(--_label-text-weight);height:100%;line-height:var(--_label-text-line-height);overflow:hidden;user-select:none}.label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(:hover) .label{color:var(--_hover-label-text-color)}:where(:focus) .label{color:var(--_focus-label-text-color)}:where(:active) .label{color:var(--_pressed-label-text-color)}:where(.disabled) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}.icon{align-self:center;display:flex;fill:currentColor;position:relative}.icon ::slotted(:first-child){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size)}.leading.icon{color:var(--_leading-icon-color)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}:where(:hover) .leading.icon{color:var(--_hover-leading-icon-color)}:where(:focus) .leading.icon{color:var(--_focus-leading-icon-color)}:where(:active) .leading.icon{color:var(--_pressed-leading-icon-color)}:where(.disabled) .leading.icon{color:var(--_disabled-leading-icon-color);opacity:var(--_disabled-leading-icon-opacity)} {:where(.disabled) :is(.label,.outline,.leading.icon){color:GrayText;opacity:1}}a,button{text-transform:inherit}a,button:not(:disabled,[aria-disabled=true]){cursor:inherit}`))},57618:function(e,t,r){var i=r(9065),a=r(50778),s=(r(63721),r(71695),r(47021),r(57243)),o=r(19799);const n=["focusin","focusout","pointerdown"];class l extends s.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new o.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var t,r;if(!e[d]){switch(e.type){default:return;case"focusin":this.visible=null!==(t=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==t&&t;break;case"focusout":case"pointerdown":this.visible=!1}e[d]=!0}}onControlChange(e,t){if(!s.sk)for(const r of n)null==e||e.removeEventListener(r,this),null==t||t.addEventListener(r,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}(0,i.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing");let c;const u=(0,s.iv)(c||(c=(e=>e)`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)} outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}} outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}} inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}} inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}} {:host{animation:none}}`));let h=class extends l{};h.styles=[u],h=(0,i.__decorate)([(0,a.Mo)("md-focus-ring")],h)},13823:function(e,t,r){r.d(t,{T:()=>d});r(63721),r(71695),r(19134),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(97003),r(47021);var i=r(57243);r(19083),r(61006);const a=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],s=a.map(n);function o(e){return s.includes(e)}function n(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(e){var t;if(i.sk)return e;class r extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,r){if(!o(e))return void super.attributeChangedCallback(e,t,r);if(this[l].has(e))return;this[l].add(e),this.removeAttribute(e),this[l].delete(e);const i=u(e);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(u(e),t)}getAttribute(e){return o(e)?super.getAttribute(c(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),o(e)&&(super.removeAttribute(c(e)),this.requestUpdate())}}return t=l,function(e){for(const t of a){const r=n(t),i=c(r),a=u(r);e.createProperty(t,{attribute:r,noAccessor:!0}),e.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){var e;return null!==(e=this.dataset[a])&&void 0!==e?e:null},set(e){var r;const i=null!==(r=this.dataset[a])&&void 0!==r?r:null;e!==i&&(null===e?delete this.dataset[a]:this.dataset[a]=e,this.requestUpdate(t,i))}})}}(r),r}function c(e){return`data-${e}`}function u(e){return e.replace(/-\w/,(e=>e[1].toUpperCase()))}},78755:function(e,t,r){r.d(t,{g:()=>C});var i=r(9065),a=r(50778),s=(r(71695),r(19423),r(47021),r(57618),r(26499),r(23111),r(57243)),o=r(35359),n=r(79840),l=r(13823),d=r(64840);let c,u,h,p,v,m,f,g,b=e=>e;const y=(0,l.T)(s.oi);class _ extends y{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem((0,s.dy)(c||(c=b` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(e){const t="link"===this.type;let r;switch(this.type){case"link":r=(0,n.i0)(u||(u=b`a`));break;case"button":r=(0,n.i0)(h||(h=b`button`));break;default:r=(0,n.i0)(p||(p=b`li`))}const i="text"!==this.type,a=t&&this.target?this.target:s.Ld;return(0,n.dy)(v||(v=b`
<${0}
id="item"
tabindex="${0}"
?disabled=${0}
role="listitem"
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
=${0}
>${0}</${0}>
`),r,this.isDisabled||!i?-1:0,this.isDisabled,this.ariaSelected||s.Ld,this.ariaChecked||s.Ld,this.ariaExpanded||s.Ld,this.ariaHasPopup||s.Ld,(0,o.$)(this.getRenderClasses()),this.href||s.Ld,a,this.onFocus,e,r)}renderRipple(){return"text"===this.type?s.Ld:(0,s.dy)(m||(m=b` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?s.Ld:(0,s.dy)(f||(f=b` <md-focus-ring -changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,s.dy)(g||(g=b` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,d.oh)())}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}}_.shadowRootOptions=Object.assign(Object.assign({},s.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],_.prototype,"disabled",void 0),(0,i.__decorate)([(0,a.Cb)({reflect:!0})],_.prototype,"type",void 0),(0,i.__decorate)([(0,a.Cb)({type:Boolean,attribute:"md-list-item",reflect:!0})],_.prototype,"isListItem",void 0),(0,i.__decorate)([(0,a.Cb)()],_.prototype,"href",void 0),(0,i.__decorate)([(0,a.Cb)()],_.prototype,"target",void 0),(0,i.__decorate)([(0,a.IO)(".list-item")],_.prototype,"listItemRoot",void 0);let x;const w=(0,s.iv)(x||(x=(e=>e)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))} {.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`));let C=class extends _{};C.styles=[w],C=(0,i.__decorate)([(0,a.Mo)("md-list-item")],C)},623:function(e,t,r){r.d(t,{j:()=>p});var i=r(9065),a=r(50778),s=(r(67351),r(71695),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(47021),r(57243)),o=r(7750);let n,l=e=>e;const d=new Set(Object.values(o.E));class c extends s.oi{get items(){return this.listController.items}constructor(){super(),this.listController=new o.g({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>d.has(e),isActivatable:e=>!e.disabled&&"text"!==e.type}),this.internals=this.attachInternals(),s.sk||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}render(){return(0,s.dy)(n||(n=l` <slot -items="${0}" -activation="${0}" ="${0}"> </slot> `),this.listController.onDeactivateItems,this.listController.onRequestActivation,this.listController.onSlotchange)}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}(0,i.__decorate)([(0,a.NH)({flatten:!0})],c.prototype,"slotItems",void 0);let u;const h=(0,s.iv)(u||(u=(e=>e)`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`));let p=class extends c{};p.styles=[h],p=(0,i.__decorate)([(0,a.Mo)("md-list")],p)},21219:function(e,t,r){r.a(e,(async function(e,i){try{r.d(t,{u:()=>h});r(71695),r(95078),r(47021);var a=r(15055),s=r(15073),o=r(81048),n=r(31027),l=r(52812),d=r(57243),c=r(50778),u=e([s]);s=(u.then?(await u)():u)[0];let p,v=e=>e;var h=class extends n.P{constructor(){super(...arguments),this.localize=new s.V(this),this.value=0,this.label=""}updated(e){if(super.updated(e),e.has("value")){const e=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),t=2*Math.PI*e,r=t-this.value/100*t;this.indicatorOffset=`${r}px`}}render(){return(0,d.dy)(p||(p=v` <div part="base" class="progress-ring" role="progressbar" aria-label="${0}" aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${0}" style="--percentage:${0}"> <svg class="progress-ring__image"> <circle class="progress-ring__track"></circle> <circle class="progress-ring__indicator" style="stroke-dashoffset:${0}"></circle> </svg> <slot id="label" part="label" class="progress-ring__label"></slot> </div> `),this.label.length>0?this.label:this.localize.term("progress"),this.value,this.value/100,this.indicatorOffset)}};h.styles=[o.N,a.W],(0,l.u2)([(0,c.IO)(".progress-ring__indicator")],h.prototype,"indicator",2),(0,l.u2)([(0,c.SB)()],h.prototype,"indicatorOffset",2),(0,l.u2)([(0,c.Cb)({type:Number,reflect:!0})],h.prototype,"value",2),(0,l.u2)([(0,c.Cb)()],h.prototype,"label",2),i()}catch(p){i(p)}}))},15055:function(e,t,r){r.d(t,{W:()=>a});let i;var a=(0,r(57243).iv)(i||(i=(e=>e)`:host{--size:128px;--track-width:4px;--track-color:var(--sl-color-neutral-200);--indicator-width:var(--track-width);--indicator-color:var(--sl-color-primary-600);--indicator-transition-duration:0.35s;display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.progress-ring__image{width:var(--size);height:var(--size);rotate:-90deg;transform-origin:50% 50%}.progress-ring__indicator,.progress-ring__track{--radius:calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5);--circumference:calc(var(--radius) * 2 * 3.141592654);fill:none;r:var(--radius);cx:calc(var(--size)/ 2);cy:calc(var(--size)/ 2)}.progress-ring__track{stroke:var(--track-color);stroke-width:var(--track-width)}.progress-ring__indicator{stroke:var(--indicator-color);stroke-width:var(--indicator-width);stroke-linecap:round;transition-property:stroke-dashoffset;transition-duration:var(--indicator-transition-duration);stroke-dasharray:var(--circumference) var(--circumference);stroke-dashoffset:calc(var(--circumference) - var(--percentage) * var(--circumference))}.progress-ring__label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;-webkit-user-select:none}`))},26749:function(e,t,r){r.a(e,(async function(e,i){try{r.d(t,{Z:()=>a.u});var a=r(21219),s=(r(15055),r(15073)),o=r(21262),n=(r(81048),r(31027),r(52812),e([s,o,a]));[s,o,a]=n.then?(await n)():n,i()}catch(l){i(l)}}))},77118:function(e,t,r){r.d(t,{Z:()=>i.W});var i=r(15055);r(52812)},76808:function(e,t,r){r.d(t,{I7:()=>n,dP:()=>a,jE:()=>i,vh:()=>o,yJ:()=>s});Math.pow(10,8);const i=6048e5,a=864e5,s=6e4,o=36e5,n=Symbol.for("constructDateFrom")},53907:function(e,t,r){r.d(t,{L:()=>a});var i=r(76808);function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&i.I7 in e?e[i.I7](t):e instanceof Date?new e.constructor(t):new Date(t)}},74760:function(e,t,r){r.d(t,{D:()=>o});r(95078),r(23669),r(69235),r(12385),r(19134),r(5740),r(11740),r(44495),r(97003),r(32114);var i=r(76808),a=r(53907),s=r(18112);function o(e,t){var r;const o=()=>(0,a.L)(null==t?void 0:t.in,NaN),m=null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2,f=function(e){const t={},r=e.split(n.dateTimeDelimiter);let i;if(r.length>2)return t;/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],n.timeZoneDelimiter.test(t.date)&&(t.date=e.split(n.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length)));if(i){const e=n.timezone.exec(i);e?(t.time=i.replace(e[1],""),t.timezone=e[1]):t.time=i}return t}(e);let g;if(f.date){const e=function(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};const a=i[1]?parseInt(i[1]):null,s=i[2]?parseInt(i[2]):null;return{year:null===s?a:100*s,restDateString:e.slice((i[1]||i[2]).length)}}(f.date,m);g=function(e,t){if(null===t)return new Date(NaN);const r=e.match(l);if(!r)return new Date(NaN);const i=!!r[4],a=u(r[1]),s=u(r[2])-1,o=u(r[3]),n=u(r[4]),d=u(r[5])-1;if(i)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,n,d)?function(e,t,r){const i=new Date(0);i.setUTCFullYear(e,0,4);const a=i.getUTCDay()||7,s=7*(t-1)+r+1-a;return i.setUTCDate(i.getUTCDate()+s),i}(t,n,d):new Date(NaN);{const e=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(p[t]||(v(e)?29:28))}(t,s,o)&&function(e,t){return t>=1&&t<=(v(e)?366:365)}(t,a)?(e.setUTCFullYear(t,s,Math.max(a,o)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!g||isNaN(+g))return o();const b=+g;let y,_=0;if(f.time&&(_=function(e){const t=e.match(d);if(!t)return NaN;const r=h(t[1]),a=h(t[2]),s=h(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,a,s))return NaN;return r*i.vh+a*i.yJ+1e3*s}(f.time),isNaN(_)))return o();if(!f.timezone){const e=new Date(b+_),r=(0,s.Q)(0,null==t?void 0:t.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return y=function(e){if("Z"===e)return 0;const t=e.match(c);if(!t)return 0;const r="+"===t[1]?-1:1,a=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,s))return NaN;return r*(a*i.vh+s*i.yJ)}(f.timezone),isNaN(y)?o():(0,s.Q)(b+_+y,null==t?void 0:t.in)}const n={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}const p=[31,null,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400==0||e%4==0&&e%100!=0}},18112:function(e,t,r){r.d(t,{Q:()=>a});var i=r(53907);function a(e,t){return(0,i.L)(t||e,e)}},62312:function(e,t,r){if(r.d(t,{PR:()=>n,Pz:()=>a,U2:()=>s,_D:()=>l,iE:()=>o}),66977!=r.j)var i=r(34335);const a=e=>e.sendMessagePromise(i.$q()),s=e=>e.sendMessagePromise(i.uZ()),o=e=>e.sendMessagePromise(i.vc()),n=e=>e.sendMessagePromise(i.EA()),l=(e,t,r,a,s,o)=>e.sendMessagePromise(i._D(t,r,a,s,o))},94277:function(e,t,r){r.d(t,{UE:()=>d,dL:()=>c,u5:()=>u,wQ:()=>l});r(71695),r(9359),r(31526),r(40251),r(47021);if(66977!=r.j)var i=r(62212);if(66977!=r.j)var a=r(62312);function s(e,t){return void 0===e?null:{components:e.components.concat(t.data.component)}}const o=e=>(0,a.iE)(e),n=(e,t)=>Promise.all([e.subscribeEvents(t.action(s),"component_loaded"),e.subscribeEvents((()=>o(e).then((e=>t.setState(e,!0)))),"core_config_updated")]).then((e=>()=>e.forEach((e=>e())))),l=(e,t)=>(e=>(0,i._)(e,"_cnf",o,n))(e).subscribe(t),d="NOT_RUNNING",c="STARTING",u="RUNNING"},34335:function(e,t,r){function i(e){return{type:"auth",access_token:e}}function a(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function s(){return{type:"get_states"}}function o(){return{type:"get_config"}}function n(){return{type:"get_services"}}function l(){return{type:"auth/current_user"}}function d(e,t,r,i,a){const s={type:"call_service",domain:e,service:t,target:i,return_response:a};return r&&(s.service_data=r),s}function c(e){const t={type:"subscribe_events"};return e&&(t.event_type=e),t}function u(e){return{type:"unsubscribe_events",subscription:e}}function h(){return{type:"ping"}}function p(e,t){return{type:"result",success:!1,error:{code:e,message:t}}}r.d(t,{$q:()=>s,EA:()=>l,I8:()=>i,Mt:()=>u,XH:()=>a,_D:()=>d,a:()=>c,qE:()=>h,uZ:()=>n,vU:()=>p,vc:()=>o})},79840:function(e,t,r){r.d(t,{i0:()=>o,dy:()=>d});r(52247),r(71695),r(92745),r(52805),r(9359),r(48136),r(47021);var i=r(2841);const a=Symbol.for(""),s=e=>{if((null==e?void 0:e.r)===a)return null==e?void 0:e._$litStatic$},o=(e,...t)=>({_$litStatic$:t.reduce(((t,r,i)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(r)+e[i+1]),e[0]),r:a}),n=new Map,l=e=>(t,...r)=>{const i=r.length;let a,o;const l=[],d=[];let c,u=0,h=!1;for(;u<i;){for(c=t[u];u<i&&void 0!==(o=r[u],a=s(o));)c+=a+t[++u],h=!0;u!==i&&d.push(o),l.push(c),u++}if(u===i&&l.push(t[i]),h){const e=l.join("$$lit$$");void 0===(t=n.get(e))&&(l.raw=l,n.set(e,t=l)),r=d}return e(t,...r)},d=l(i.dy);l(i.YP)}}]);
//# sourceMappingURL=66429.2f259ee12f867ea3.js.map