iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
18 lines • 39 kB
JavaScript
/*! For license information please see 66709.6cf27e23be2aeac4.js.LICENSE.txt */
export const __webpack_ids__=["66709"];export const __webpack_modules__={99152:function(e,t,r){r.d(t,{V:()=>s});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);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 e of t.set)if(e.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 e of t.set){if(void 0===e.formElementTabIndex)break;e.formElementTabIndex=e.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))}},31126:function(e,t,r){var i=r(71998);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},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),p=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(e){c(r,"throw",e)}if(e=o(a(this.next,r)),this.done=!!e.done)return;try{this.inner=l(i(e.value,this.counter++),!1)}catch(e){c(r,"throw",e)}}}));i({target:"Iterator",proto:!0,real:!0,forced:u},{flatMap:function(e){return o(this),s(e),new p(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(t){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:()=>u});var i=r(9065),a=r(15093),s=(r(54835),r(57243)),o=r(4077);class n 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{...super.getContainerClasses(),disabled:!this.href&&(this.disabled||this.softDisabled),elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:t}=this;return this.href?s.dy` <a class="primary action" id="link" aria-label="${t||s.Ld}" href="${this.href}" target="${this.target||s.Ld}">${e}</a> `:s.dy` <button class="primary action" id="button" aria-label="${t||s.Ld}" aria-disabled="${this.softDisabled||s.Ld}" ?disabled="${this.disabled&&!this.alwaysFocusable}" type="button">${e}</button> `}renderOutline(){return this.elevated?s.dy`<md-elevation part="elevation"></md-elevation>`:super.renderOutline()}}(0,i.__decorate)([(0,a.Cb)({type:Boolean})],n.prototype,"elevated",void 0),(0,i.__decorate)([(0,a.Cb)()],n.prototype,"href",void 0),(0,i.__decorate)([(0,a.Cb)()],n.prototype,"target",void 0);const l=s.iv`: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 d=r(29126),c=r(21016);let u=class extends n{};u.styles=[c.W,d.W,l],u=(0,i.__decorate)([(0,a.Mo)("md-assist-chip")],u)},4077:function(e,t,r){r.d(t,{A:()=>l});var i=r(9065),a=(r(57618),r(23111),r(57243)),s=r(15093),o=r(35359);const n=(0,r(13823).T)(a.oi);class l extends n{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 a.dy` <div class="container ${(0,o.$)(this.getContainerClasses())}"> ${this.renderContainerContent()} </div> `}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 a.dy` ${this.renderOutline()} <md-focus-ring part="focus-ring" for="${this.primaryId}"></md-focus-ring> <md-ripple for="${this.primaryId}" ?disabled="${this.rippleDisabled}"></md-ripple> ${this.renderPrimaryAction(this.renderPrimaryContent())} `}renderOutline(){return a.dy`<span class="outline"></span>`}renderLeadingIcon(){return a.dy`<slot name="icon" ="${this.handleIconChange}"></slot>`}renderPrimaryContent(){return a.dy` <span class="leading icon" aria-hidden="true"> ${this.renderLeadingIcon()} </span> <span class="label"> <span class="label-text" id="label"> ${this.label?this.label:a.dy`<slot></slot>`} </span> </span> <span class="touch"></span> `}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()}}l.shadowRootOptions={...a.oi.shadowRootOptions,delegatesFocus:!0},(0,i.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,attribute:"soft-disabled",reflect:!0})],l.prototype,"softDisabled",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,attribute:"always-focusable"})],l.prototype,"alwaysFocusable",void 0),(0,i.__decorate)([(0,s.Cb)()],l.prototype,"label",void 0),(0,i.__decorate)([(0,s.Cb)({type:Boolean,reflect:!0,attribute:"has-icon"})],l.prototype,"hasIcon",void 0)},29126:function(e,t,r){r.d(t,{W:()=>i});const i=r(57243).iv`.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:()=>i});const i=r(57243).iv`: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(15093),s=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){if(!e[d]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[d]=!0}}onControlChange(e,t){if(!s.sk)for(const r of n)e?.removeEventListener(r,this),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"),c=s.iv`: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 u=class extends l{};u.styles=[c],u=(0,i.__decorate)([(0,a.Mo)("md-focus-ring")],u)},13823:function(e,t,r){r.d(t,{T:()=>d});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);var i=r(57243);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(){return this.dataset[a]??null},set(e){const r=this.dataset[a]??null;e!==r&&(null===e?delete this.dataset[a]:this.dataset[a]=e,this.requestUpdate(t,r))}})}}(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:()=>h});var i=r(9065),a=r(15093),s=(r(57618),r(26499),r(23111),r(57243)),o=r(35359),n=r(79840),l=r(13823),d=r(64840);const c=(0,l.T)(s.oi);class u extends c{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(s.dy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(e){const t="link"===this.type;let r;switch(this.type){case"link":r=n.i0`a`;break;case"button":r=n.i0`button`;break;default:r=n.i0`li`}const i="text"!==this.type,a=t&&this.target?this.target:s.Ld;return n.dy`
<${r}
id="item"
tabindex="${this.isDisabled||!i?-1:0}"
?disabled=${this.isDisabled}
role="listitem"
aria-selected=${this.ariaSelected||s.Ld}
aria-checked=${this.ariaChecked||s.Ld}
aria-expanded=${this.ariaExpanded||s.Ld}
aria-haspopup=${this.ariaHasPopup||s.Ld}
class="list-item ${(0,o.$)(this.getRenderClasses())}"
href=${this.href||s.Ld}
target=${a}
=${this.onFocus}
>${e}</${r}>
`}renderRipple(){return"text"===this.type?s.Ld:s.dy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?s.Ld:s.dy` <md-focus-ring -changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return s.dy` <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(){this.listItemRoot?.focus()}}u.shadowRootOptions={...s.oi.shadowRootOptions,delegatesFocus:!0},(0,i.__decorate)([(0,a.Cb)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),(0,i.__decorate)([(0,a.Cb)({reflect:!0})],u.prototype,"type",void 0),(0,i.__decorate)([(0,a.Cb)({type:Boolean,attribute:"md-list-item",reflect:!0})],u.prototype,"isListItem",void 0),(0,i.__decorate)([(0,a.Cb)()],u.prototype,"href",void 0),(0,i.__decorate)([(0,a.Cb)()],u.prototype,"target",void 0),(0,i.__decorate)([(0,a.IO)(".list-item")],u.prototype,"listItemRoot",void 0);const p=s.iv`: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 h=class extends u{};h.styles=[p],h=(0,i.__decorate)([(0,a.Mo)("md-list-item")],h)},623:function(e,t,r){r.d(t,{j:()=>c});var i=r(9065),a=r(15093),s=(r(67351),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(57243)),o=r(7750);const n=new Set(Object.values(o.E));class l 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=>n.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 s.dy` <slot -items="${this.listController.onDeactivateItems}" -activation="${this.listController.onRequestActivation}" ="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}(0,i.__decorate)([(0,a.NH)({flatten:!0})],l.prototype,"slotItems",void 0);const d=s.iv`: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 c=class extends l{};c.styles=[d],c=(0,i.__decorate)([(0,a.Mo)("md-list")],c)},21219:function(e,t,r){r.a(e,(async function(e,i){try{r.d(t,{u:()=>p});var a=r(15055),s=r(15073),o=r(81048),n=r(31027),l=r(52812),d=r(57243),c=r(15093),u=e([s]);s=(u.then?(await u)():u)[0];var p=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 d.dy` <div part="base" class="progress-ring" role="progressbar" aria-label="${this.label.length>0?this.label:this.localize.term("progress")}" aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this.value}" style="--percentage:${this.value/100}"> <svg class="progress-ring__image"> <circle class="progress-ring__track"></circle> <circle class="progress-ring__indicator" style="stroke-dashoffset:${this.indicatorOffset}"></circle> </svg> <slot id="label" part="label" class="progress-ring__label"></slot> </div> `}};p.styles=[o.N,a.W],(0,l.u2)([(0,c.IO)(".progress-ring__indicator")],p.prototype,"indicator",2),(0,l.u2)([(0,c.SB)()],p.prototype,"indicatorOffset",2),(0,l.u2)([(0,c.Cb)({type:Number,reflect:!0})],p.prototype,"value",2),(0,l.u2)([(0,c.Cb)()],p.prototype,"label",2),i()}catch(e){i(e)}}))},15055:function(e,t,r){r.d(t,{W:()=>i});var i=r(57243).iv`: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(e){i(e)}}))},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});var i=r(76808),a=r(53907),s=r(18112);function o(e,t){const r=()=>(0,a.L)(t?.in,NaN),o=t?.additionalDigits??2,m=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 f;if(m.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)}}(m.date,o);f=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<=(h[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(!f||isNaN(+f))return r();const g=+f;let b,y=0;if(m.time&&(y=function(e){const t=e.match(d);if(!t)return NaN;const r=p(t[1]),a=p(t[2]),s=p(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}(m.time),isNaN(y)))return r();if(!m.timezone){const e=new Date(g+y),r=(0,s.Q)(0,t?.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return b=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)}(m.timezone),isNaN(b)?r():(0,s.Q)(g+y+b,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 p(e){return e&&parseFloat(e.replace(",","."))||0}const h=[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(9359),r(31526);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 p(){return{type:"ping"}}function h(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:()=>p,uZ:()=>n,vU:()=>h,vc:()=>o})},79840:function(e,t,r){r.d(t,{i0:()=>o,dy:()=>d});r(92745),r(9359),r(48136);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,p=!1;for(;u<i;){for(c=t[u];u<i&&void 0!==(o=r[u],a=s(o));)c+=a+t[++u],p=!0;u!==i&&d.push(o),l.push(c),u++}if(u===i&&l.push(t[i]),p){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=66709.6cf27e23be2aeac4.js.map