iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
19 lines • 32.5 kB
JavaScript
/*! For license information please see 837.dd1bec93bc65d058.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["837"],{19301:function(e,t,a){a.d(t,{r:()=>r});a(71695),a(40251),a(92519),a(42179),a(89256),a(24931),a(88463),a(57449),a(19814),a(47021);var i=a(11133);class r{constructor(e,{target:t,config:a,callback:r,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(null!=t?t:e),this.o=null!=o?o:this.o,this.callback=r,i.s||(window.IntersectionObserver?(this.u=new IntersectionObserver((e=>{const t=this.i;this.i=!1,this.o&&t||(this.handleChanges(e),this.h.requestUpdate())}),a),e.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver."))}handleChanges(e){var t;this.value=null===(t=this.callback)||void 0===t?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){const e=this.u.takeRecords();e.length&&this.handleChanges(e)}observe(e){this.t.add(e),this.u.observe(e),this.i=!0}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}}},10445:function(e,t,a){a.d(t,{X:()=>b});var i=a(9065),r=a(50778),o=(a(71695),a(19423),a(47021),a(54835),a(57243)),s=a(4077);let n,l,d,c=e=>e;class h extends s.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,o.dy)(n||(n=c` <a class="primary action" id="link" aria-label="${0}" href="${0}" target="${0}">${0}</a> `),t||o.Ld,this.href,this.target||o.Ld,e):(0,o.dy)(l||(l=c` <button class="primary action" id="button" aria-label="${0}" aria-disabled="${0}" ?disabled="${0}" type="button">${0}</button> `),t||o.Ld,this.softDisabled||o.Ld,this.disabled&&!this.alwaysFocusable,e)}renderOutline(){return this.elevated?(0,o.dy)(d||(d=c`<md-elevation part="elevation"></md-elevation>`)):super.renderOutline()}}(0,i.__decorate)([(0,r.Cb)({type:Boolean})],h.prototype,"elevated",void 0),(0,i.__decorate)([(0,r.Cb)()],h.prototype,"href",void 0),(0,i.__decorate)([(0,r.Cb)()],h.prototype,"target",void 0);let p;const m=(0,o.iv)(p||(p=(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=a(29126),u=a(21016);let b=class extends h{};b.styles=[u.W,v.W,m],b=(0,i.__decorate)([(0,r.Mo)("md-assist-chip")],b)},4077:function(e,t,a){a.d(t,{A:()=>b});a(19423);var i=a(9065),r=(a(57618),a(23111),a(57243)),o=a(50778),s=a(35359),n=a(13823);let l,d,c,h,p,m,v=e=>e;const u=(0,n.T)(r.oi);class b extends u{get rippleDisabled(){return this.disabled||this.softDisabled}constructor(){super(),this.disabled=!1,this.softDisabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1,r.sk||this.addEventListener("click",this.handleClick.bind(this))}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return(0,r.dy)(l||(l=v` <div class="container ${0}"> ${0} </div> `),(0,s.$)(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,r.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,r.dy)(c||(c=v`<span class="outline"></span>`))}renderLeadingIcon(){return(0,r.dy)(h||(h=v`<slot name="icon" ="${0}"></slot>`),this.handleIconChange)}renderPrimaryContent(){return(0,r.dy)(p||(p=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,r.dy)(m||(m=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()}}b.shadowRootOptions=Object.assign(Object.assign({},r.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],b.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"soft-disabled",reflect:!0})],b.prototype,"softDisabled",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"always-focusable"})],b.prototype,"alwaysFocusable",void 0),(0,i.__decorate)([(0,o.Cb)()],b.prototype,"label",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0,attribute:"has-icon"})],b.prototype,"hasIcon",void 0)},29126:function(e,t,a){a.d(t,{W:()=>r});let i;const r=(0,a(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,a){a.d(t,{W:()=>r});let i;const r=(0,a(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}`))},1231:function(e,t,a){a.d(t,{B:()=>d});var i=a(9065),r=a(50778),o=(a(71695),a(47021),a(57243));class s extends o.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,i.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0})],s.prototype,"inset",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],s.prototype,"insetStart",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],s.prototype,"insetEnd",void 0);let n;const l=(0,o.iv)(n||(n=(e=>e)`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}{:host::before{background:CanvasText}}`));let d=class extends s{};d.styles=[l],d=(0,i.__decorate)([(0,r.Mo)("md-divider")],d)},43895:function(e,t,a){a.d(t,{_:()=>r});a(22152),a(92745),a(9359),a(31526),a(81804);var i=a(7162);class r{constructor(e,t){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.CLICK_SELECTION}))},this.onKeydown=e=>{if(this.host.href&&"Enter"===e.code){const e=this.getInteractiveElement();e instanceof HTMLAnchorElement&&e.click()}if(e.defaultPrevented)return;const t=e.code;this.host.keepOpen&&"Escape"!==t||(0,i.kE)(t)&&(e.preventDefault(),this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.KEYDOWN,key:t})))},this.getHeadlineElements=t.getHeadlineElements,this.getSupportingTextElements=t.getSupportingTextElements,this.getDefaultElements=t.getDefaultElements,this.getInteractiveElement=t.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;const e=this.getHeadlineElements(),t=[];return e.forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),0===t.length&&this.getDefaultElements().forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),0===t.length&&this.getSupportingTextElements().forEach((e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())})),t.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:return"li"}}get role(){return"option"===this.host.type?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(e){this.internalTypeaheadText=e}}},99072:function(e,t,a){a.d(t,{W:()=>r});let i;const r=(0,a(57243).iv)(i||(i=(e=>e)`:host{display:flex;--md-ripple-hover-color:var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, .3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-menu-item-one-line-container-height,56px);padding-top:var(--md-menu-item-top-space,12px);padding-bottom:var(--md-menu-item-bottom-space,12px);padding-inline-start:var(--md-menu-item-leading-space,16px);padding-inline-end:var(--md-menu-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}.list-item{background-color:var(--md-menu-item-container-color,transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color,var(--md-sys-color-secondary-container,#e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color,var(--md-sys-color-on-secondary-container,#1d192b))}{:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}`))},28674:function(e,t,a){a.d(t,{i:()=>w});var i=a(9065),r=a(50778),o=(a(71695),a(19423),a(47021),a(57618),a(26499),a(23111),a(57243)),s=a(35359),n=a(79840),l=a(13823),d=a(43895);let c,h,p,m,v,u,b,g,y=e=>e;const f=(0,l.T)(o.oi);class x extends f{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new d._(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(e){this.menuItemController.setTypeaheadText(e)}render(){return this.renderListItem((0,o.dy)(c||(c=y` <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 a;switch(this.menuItemController.tagName){case"a":a=(0,n.i0)(h||(h=y`a`));break;case"button":a=(0,n.i0)(p||(p=y`button`));break;default:a=(0,n.i0)(m||(m=y`li`))}const i=t&&this.target?this.target:o.Ld;return(0,n.dy)(v||(v=y`
<${0}
id="item"
tabindex=${0}
role=${0}
aria-label=${0}
aria-selected=${0}
aria-checked=${0}
aria-expanded=${0}
aria-haspopup=${0}
class="list-item ${0}"
href=${0}
target=${0}
=${0}
=${0}
>${0}</${0}>
`),a,this.disabled&&!t?-1:0,this.menuItemController.role,this.ariaLabel||o.Ld,this.ariaSelected||o.Ld,this.ariaChecked||o.Ld,this.ariaExpanded||o.Ld,this.ariaHasPopup||o.Ld,(0,s.$)(this.getRenderClasses()),this.href||o.Ld,i,this.menuItemController.onClick,this.menuItemController.onKeydown,e,a)}renderRipple(){return(0,o.dy)(u||(u=y` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.disabled)}renderFocusRing(){return(0,o.dy)(b||(b=y` <md-focus-ring part="focus-ring" for="item" inward></md-focus-ring>`))}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return(0,o.dy)(g||(g=y` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}}x.shadowRootOptions=Object.assign(Object.assign({},o.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.__decorate)([(0,r.Cb)({type:Boolean,reflect:!0})],x.prototype,"disabled",void 0),(0,i.__decorate)([(0,r.Cb)()],x.prototype,"type",void 0),(0,i.__decorate)([(0,r.Cb)()],x.prototype,"href",void 0),(0,i.__decorate)([(0,r.Cb)()],x.prototype,"target",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean,attribute:"keep-open"})],x.prototype,"keepOpen",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean})],x.prototype,"selected",void 0),(0,i.__decorate)([(0,r.IO)(".list-item")],x.prototype,"listItemRoot",void 0),(0,i.__decorate)([(0,r.NH)({slot:"headline"})],x.prototype,"headlineElements",void 0),(0,i.__decorate)([(0,r.NH)({slot:"supporting-text"})],x.prototype,"supportingTextElements",void 0),(0,i.__decorate)([(0,r.vZ)({slot:""})],x.prototype,"defaultElements",void 0),(0,i.__decorate)([(0,r.Cb)({attribute:"typeahead-text"})],x.prototype,"typeaheadText",null);var _=a(99072);let w=class extends x{};w.styles=[_.W],w=(0,i.__decorate)([(0,r.Mo)("md-menu-item")],w)},48734:function(e,t,a){a.a(e,(async function(e,i){try{a.d(t,{P5:()=>m,Ve:()=>u});var r=a(16485),o=(a(71695),a(9359),a(70104),a(19423),a(19134),a(92519),a(42179),a(89256),a(24931),a(88463),a(57449),a(19814),a(97003),a(47021),e([r]));r=(o.then?(await o)():o)[0];const n=new Set,l=new Map;let d,c="ltr",h="en";const p="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(p){const b=new MutationObserver(v);c=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language,b.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function m(...e){e.map((e=>{const t=e.$code.toLowerCase();l.has(t)?l.set(t,Object.assign(Object.assign({},l.get(t)),e)):l.set(t,e),d||(d=e)})),v()}function v(){p&&(c=document.documentElement.dir||"ltr",h=document.documentElement.lang||navigator.language),[...n.keys()].map((e=>{"function"==typeof e.requestUpdate&&e.requestUpdate()}))}class u{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){n.add(this.host)}hostDisconnected(){n.delete(this.host)}dir(){return`${this.host.dir||c}`.toLowerCase()}lang(){return`${this.host.lang||h}`.toLowerCase()}getTranslationData(e){var t,a;const i=new Intl.Locale(e.replace(/_/g,"-")),r=null==i?void 0:i.language.toLowerCase(),o=null!==(a=null===(t=null==i?void 0:i.region)||void 0===t?void 0:t.toLowerCase())&&void 0!==a?a:"";return{locale:i,language:r,region:o,primary:l.get(`${r}-${o}`),secondary:l.get(r)}}exists(e,t){var a;const{primary:i,secondary:r}=this.getTranslationData(null!==(a=t.lang)&&void 0!==a?a:this.lang());return t=Object.assign({includeFallback:!1},t),!!(i&&i[e]||r&&r[e]||t.includeFallback&&d&&d[e])}term(e,...t){const{primary:a,secondary:i}=this.getTranslationData(this.lang());let r;if(a&&a[e])r=a[e];else if(i&&i[e])r=i[e];else{if(!d||!d[e])return console.error(`No translation found for: ${String(e)}`),String(e);r=d[e]}return"function"==typeof r?r(...t):r}date(e,t){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),t).format(e)}number(e,t){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),t).format(e)}relativeTime(e,t,a){return new Intl.RelativeTimeFormat(this.lang(),a).format(e,t)}}i()}catch(s){i(s)}}))},68783:function(e,t,a){a.a(e,(async function(e,i){try{a.d(t,{A:()=>c});a(71695),a(47021);var r=a(64699),o=a(15073),s=a(81048),n=a(31027),l=a(57243),d=e([o]);o=(d.then?(await d)():d)[0];let h,p=e=>e;var c=class extends n.P{constructor(){super(...arguments),this.localize=new o.V(this)}render(){return(0,l.dy)(h||(h=p` <svg part="base" class="spinner" role="progressbar" aria-label="${0}"> <circle class="spinner__track"></circle> <circle class="spinner__indicator"></circle> </svg> `),this.localize.term("loading"))}};c.styles=[s.N,r.D],i()}catch(h){i(h)}}))},31027:function(e,t,a){a.d(t,{P:()=>n});a(71695),a(9359),a(31526),a(46692),a(47021);var i,r=a(52812),o=a(57243),s=a(50778),n=class extends o.oi{constructor(){super(),(0,r.Ko)(this,i,!1),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}emit(e,t){const a=new CustomEvent(e,(0,r.ih)({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(a),a}static define(e,t=this,a={}){const i=customElements.get(e);if(!i){try{customElements.define(e,t,a)}catch(s){customElements.define(e,class extends t{},a)}return}let r=" (unknown version)",o=r;"version"in t&&t.version&&(r=" v"+t.version),"version"in i&&i.version&&(o=" v"+i.version),r&&o&&r===o||console.warn(`Attempted to register <${e}>${r}, but <${e}>${o} has already been registered.`)}attributeChangedCallback(e,t,a){(0,r.ac)(this,i)||(this.constructor.elementProperties.forEach(((e,t)=>{e.reflect&&null!=this[t]&&this.initialReflectedProperties.set(t,this[t])})),(0,r.qx)(this,i,!0)),super.attributeChangedCallback(e,t,a)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach(((t,a)=>{e.has(a)&&null==this[a]&&(this[a]=t)}))}};i=new WeakMap,n.version="2.20.1",n.dependencies={},(0,r.u2)([(0,s.Cb)()],n.prototype,"dir",2),(0,r.u2)([(0,s.Cb)()],n.prototype,"lang",2)},15073:function(e,t,a){a.a(e,(async function(e,i){try{a.d(t,{V:()=>n});var r=a(21262),o=a(48734),s=e([o,r]);[o,r]=s.then?(await s)():s;var n=class extends o.Ve{};(0,o.P5)(r.K),i()}catch(l){i(l)}}))},21262:function(e,t,a){a.a(e,(async function(e,i){try{a.d(t,{K:()=>n});var r=a(48734),o=e([r]);r=(o.then?(await o)():o)[0];var s={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(e,t)=>`Go to slide ${e} of ${t}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:e=>0===e?"No options selected":1===e?"1 option selected":`${e} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:e=>`Slide ${e}`,toggleColorFormat:"Toggle color format"};(0,r.P5)(s);var n=s;i()}catch(l){i(l)}}))},64699:function(e,t,a){a.d(t,{D:()=>r});let i;var r=(0,a(57243).iv)(i||(i=(e=>e)`:host{--track-width:2px;--track-color:rgb(128 128 128 / 25%);--indicator-color:var(--sl-color-primary-600);--speed:2s;display:inline-flex;width:1em;height:1em;flex:none}.spinner{flex:1 1 auto;height:100%;width:100%}.spinner__indicator,.spinner__track{fill:none;stroke-width:var(--track-width);r:calc(0.5em - var(--track-width)/ 2);cx:0.5em;cy:0.5em;transform-origin:50% 50%}.spinner__track{stroke:var(--track-color);transform-origin:0% 0%}.spinner__indicator{stroke:var(--indicator-color);stroke-linecap:round;stroke-dasharray:150% 75%;animation:spin var(--speed) linear infinite} spin{0%{transform:rotate(0deg);stroke-dasharray:0.05em,3em}50%{transform:rotate(450deg);stroke-dasharray:1.375em,1.375em}100%{transform:rotate(1080deg);stroke-dasharray:0.05em,3em}}`))},52812:function(e,t,a){a.d(t,{EZ:()=>m,Ko:()=>g,ac:()=>b,ih:()=>p,qx:()=>y,u2:()=>v});a(63721),a(52247),a(71695),a(40251),a(47021);var i=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,c=e=>{throw TypeError(e)},h=(e,t,a)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,p=(e,t)=>{for(var a in t||(t={}))l.call(t,a)&&h(e,a,t[a]);if(n)for(var a of n(t))d.call(t,a)&&h(e,a,t[a]);return e},m=(e,t)=>r(e,s(t)),v=(e,t,a,r)=>{for(var s,n=r>1?void 0:r?o(t,a):t,l=e.length-1;l>=0;l--)(s=e[l])&&(n=(r?s(t,a,n):s(n))||n);return r&&n&&i(t,a,n),n},u=(e,t,a)=>t.has(e)||c("Cannot "+a),b=(e,t,a)=>(u(e,t,"read from private field"),a?a.call(e):t.get(e)),g=(e,t,a)=>t.has(e)?c("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),y=(e,t,a,i)=>(u(e,t,"write to private field"),i?i.call(e,a):t.set(e,a),a)},81048:function(e,t,a){a.d(t,{N:()=>r});let i;var r=(0,a(57243).iv)(i||(i=(e=>e)`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`))},97677:function(e,t,a){a.a(e,(async function(e,i){try{a.d(t,{Z:()=>r.A});var r=a(68783),o=(a(64699),a(15073)),s=a(21262),n=(a(81048),a(31027),a(52812),e([o,s,r]));[o,s,r]=n.then?(await n)():n,i()}catch(l){i(l)}}))},43580:function(e,t,a){a.d(t,{Z:()=>i.D});var i=a(64699);a(52812)}}]);
//# sourceMappingURL=837.dd1bec93bc65d058.js.map