iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
19 lines • 34.3 kB
JavaScript
/*! For license information please see 49877.518e936ac058ce4a.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["49877"],{4918:function(t,e,r){r.d(e,{a:()=>v});r(71695),r(40251),r(47021);var i=r(9065),o=r(80573),n={ROOT:"mdc-form-field"},s={LABEL_SELECTOR:".mdc-form-field > label"};const a=function(t){function e(r){var o=t.call(this,(0,i.__assign)((0,i.__assign)({},e.defaultAdapter),r))||this;return o.click=function(){o.handleClick()},o}return(0,i.__extends)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(o.K);var l=r(11911),d=r(88618),c=r(78611),h=r(57243),u=r(50778),p=r(35359);let m,f=t=>t;class v extends l.H{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=a}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof d.Wg){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,h.dy)(m||(m=f` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" ="${0}">${0}</label> </div>`),(0,p.$)(t),this._labelClick,this.label)}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}(0,i.__decorate)([(0,u.Cb)({type:Boolean})],v.prototype,"alignEnd",void 0),(0,i.__decorate)([(0,u.Cb)({type:Boolean})],v.prototype,"spaceBetween",void 0),(0,i.__decorate)([(0,u.Cb)({type:Boolean})],v.prototype,"nowrap",void 0),(0,i.__decorate)([(0,u.Cb)({type:String}),(0,c.P)((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],v.prototype,"label",void 0),(0,i.__decorate)([(0,u.IO)(".mdc-form-field")],v.prototype,"mdcRoot",void 0),(0,i.__decorate)([(0,u.vZ)("",!0,"*")],v.prototype,"slottedInputs",void 0),(0,i.__decorate)([(0,u.IO)("label")],v.prototype,"labelEl",void 0)},6394:function(t,e,r){r.d(e,{W:()=>o});let i;const o=(0,r(57243).iv)(i||(i=(t=>t)`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{margin-left:auto;margin-right:0}.mdc-form-field>label[dir=rtl],[dir=rtl] .mdc-form-field>label{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{margin-left:0;margin-right:auto}.mdc-form-field--align-end>label[dir=rtl],[dir=rtl] .mdc-form-field--align-end>label{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}.mdc-form-field--space-between>label[dir=rtl],[dir=rtl] .mdc-form-field--space-between>label{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}::slotted(mwc-switch){margin-right:10px}::slotted(mwc-switch[dir=rtl]),[dir=rtl] ::slotted(mwc-switch){margin-left:10px}`))},93958:function(t,e,r){r.d(e,{F:()=>f});r(71695),r(40251),r(47021);var i=r(9065),o=r(50778),n=r(92444),s=r(76688);let a=class extends n.A{};a.styles=[s.W],a=(0,i.__decorate)([(0,o.Mo)("mwc-checkbox")],a);var l=r(57243),d=r(35359),c=r(65703);let h,u,p,m=t=>t;class f extends c.K{constructor(){super(...arguments),this.left=!1,this.graphic="control"}render(){const t={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),r=this.graphic&&"control"!==this.graphic&&!this.left?this.renderGraphic():(0,l.dy)(h||(h=m``)),i=this.hasMeta&&this.left?this.renderMeta():(0,l.dy)(u||(u=m``)),o=this.renderRipple();return(0,l.dy)(p||(p=m` ${0} ${0} ${0} <span class="${0}"> <mwc-checkbox reducedTouchTarget tabindex="${0}" .checked="${0}" ?disabled="${0}" ="${0}"> </mwc-checkbox> </span> ${0} ${0}`),o,r,this.left?"":e,(0,d.$)(t),this.tabindex,this.selected,this.disabled,this.onChange,this.left?e:"",i)}async onChange(t){const e=t.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1)}}(0,i.__decorate)([(0,o.IO)("slot")],f.prototype,"slotElement",void 0),(0,i.__decorate)([(0,o.IO)("mwc-checkbox")],f.prototype,"checkboxElement",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],f.prototype,"left",void 0),(0,i.__decorate)([(0,o.Cb)({type:String,reflect:!0})],f.prototype,"graphic",void 0)},97536:function(t,e,r){r.d(e,{W:()=>o});let i;const o=(0,r(57243).iv)(i||(i=(t=>t)`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`))},87319:function(t,e,r){var i=r(9065),o=r(50778),n=r(65703),s=r(46289);let a=class extends n.K{};a.styles=[s.W],a=(0,i.__decorate)([(0,o.Mo)("mwc-list-item")],a)},12582:function(t,e,r){r.d(e,{Z:()=>i});r(9359),r(31526),r(70104),r(11740);function i(t){if(!t||"object"!=typeof t)return t;if("[object Date]"==Object.prototype.toString.call(t))return new Date(t.getTime());if(Array.isArray(t))return t.map(i);var e={};return Object.keys(t).forEach((function(r){e[r]=i(t[r])})),e}},68107:function(t,e,r){var i=r(40810),o=r(73994),n=r(63983),s=r(71998),a=r(4576);i({target:"Iterator",proto:!0,real:!0},{every:function(t){s(this),n(t);var e=a(this),r=0;return!o(e,(function(e,i){if(!t(e,r++))return i()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},32517:function(t,e,r){var i=r(1569),o=r(85779),n=r(27803),s=r(31126),a=r(29660),l=i.RegExp,d=l.prototype;o&&a((function(){var t=!0;try{l(".","d")}catch(a){t=!1}var e={},r="",i=t?"dgimsy":"gimsy",o=function(t,i){Object.defineProperty(e,t,{get:function(){return r+=i,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(n.hasIndices="d"),n)o(s,n[s]);return Object.getOwnPropertyDescriptor(d,"flags").get.call(e)!==i||r!==i}))&&n(d,"flags",{configurable:!0,get:s})},14503:function(t,e,r){r.d(e,{Z:()=>i});r(63721),r(88230),r(52247),r(71695),r(40251),r(47021);function i(t){var e,r,i,n=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&null!=(e=t[r]))return e.call(t);if(i&&null!=(e=t[i]))return new o(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function o(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return o=function(t){this.s=t,this.n=t.next},o.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new o(t)}},60738:function(t,e,r){r.d(e,{F_:()=>c,HQ:()=>l,kr:()=>o});class i extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=null!=r&&r}}function o(t){return t}class n{constructor(t,e,r,i){var o;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(o=t.subscribe)&&void 0!==o&&o}else this.context=e,this.callback=r,this.subscribe=null!=i&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new i(this.context,this.t,this.subscribe))}}r(71695),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(47021);class s{constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}}class a extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class l extends s{constructor(t,e,r){super(void 0!==e.context?e.initialValue:r),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const r=new Set;for(const[o,{consumerHost:n}]of this.subscriptions)r.has(o)||(r.add(o),n.dispatchEvent(new i(this.context,o,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new a(this.context))}}r(92745),r(46692);r(19423);var d=r(64026);function c({context:t,subscribe:e}){return(0,d.eZ)({finisher:(r,i)=>{r.addInitializer((r=>{new n(r,{context:t,callback:t=>{r[i]=t},subscribe:e})}))}})}},54835:function(t,e,r){var i=r(9065),o=r(50778),n=r(57243);let s,a=t=>t;class l extends n.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return(0,n.dy)(s||(s=a`<span class="shadow"></span>`))}}let d;const c=(0,n.iv)(d||(d=(t=>t)`.shadow,.shadow::after,.shadow::before,:host{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::after,.shadow::before{content:"";transition-property:box-shadow,opacity;--_level:var(--md-elevation-level, 0);--_shadow-color:var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}`));let h=class extends l{};h.styles=[c],h=(0,i.__decorate)([(0,o.Mo)("md-elevation")],h)},57618:function(t,e,r){var i=r(9065),o=r(50778),n=(r(63721),r(71695),r(47021),r(57243)),s=r(19799);const a=["focusin","focusout","pointerdown"];class l extends n.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new s.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var e,r;if(!t[d]){switch(t.type){default:return;case"focusin":this.visible=null!==(e=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==e&&e;break;case"focusout":case"pointerdown":this.visible=!1}t[d]=!0}}onControlChange(t,e){if(!n.sk)for(const r of a)null==t||t.removeEventListener(r,this),null==e||e.addEventListener(r,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing");let c;const h=(0,n.iv)(c||(c=(t=>t)`: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=[h],u=(0,i.__decorate)([(0,o.Mo)("md-focus-ring")],u)},13823:function(t,e,r){r.d(e,{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 o=["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"],n=o.map(a);function s(t){return n.includes(t)}function a(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(i.sk)return t;class r extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,r){if(!s(t))return void super.attributeChangedCallback(t,e,r);if(this[l].has(t))return;this[l].add(t),this.removeAttribute(t),this[l].delete(t);const i=h(t);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(h(t),e)}getAttribute(t){return s(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),s(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}}return e=l,function(t){for(const e of o){const r=a(e),i=c(r),o=h(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[o])&&void 0!==t?t:null},set(t){var r;const i=null!==(r=this.dataset[o])&&void 0!==r?r:null;t!==i&&(null===t?delete this.dataset[o]:this.dataset[o]=t,this.requestUpdate(e,i))}})}}(r),r}function c(t){return`data-${t}`}function h(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},43895:function(t,e,r){r.d(e,{_:()=>o});r(22152),r(92745),r(9359),r(31526),r(81804);var i=r(7162);class o{constructor(t,e){this.host=t,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.CLICK_SELECTION}))},this.onKeydown=t=>{if(this.host.href&&"Enter"===t.code){const t=this.getInteractiveElement();t instanceof HTMLAnchorElement&&t.click()}if(t.defaultPrevented)return;const e=t.code;this.host.keepOpen&&"Escape"!==e||(0,i.kE)(e)&&(t.preventDefault(),this.host.dispatchEvent((0,i.d7)(this.host,{kind:i.GB.KEYDOWN,key:e})))},this.getHeadlineElements=e.getHeadlineElements,this.getSupportingTextElements=e.getSupportingTextElements,this.getDefaultElements=e.getDefaultElements,this.getInteractiveElement=e.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(null!==this.internalTypeaheadText)return this.internalTypeaheadText;const t=this.getHeadlineElements(),e=[];return t.forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getDefaultElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),0===e.length&&this.getSupportingTextElements().forEach((t=>{t.textContent&&t.textContent.trim()&&e.push(t.textContent.trim())})),e.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(t){this.internalTypeaheadText=t}}},99072:function(t,e,r){r.d(e,{W:()=>o});let i;const o=(0,r(57243).iv)(i||(i=(t=>t)`: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(t,e,r){r.d(e,{i:()=>_});var i=r(9065),o=r(50778),n=(r(71695),r(19423),r(47021),r(57618),r(26499),r(23111),r(57243)),s=r(35359),a=r(79840),l=r(13823),d=r(43895);let c,h,u,p,m,f,v,b,g=t=>t;const y=(0,l.T)(n.oi);class x extends y{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(t){this.menuItemController.setTypeaheadText(t)}render(){return this.renderListItem((0,n.dy)(c||(c=g` <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(t){const e="link"===this.type;let r;switch(this.menuItemController.tagName){case"a":r=(0,a.i0)(h||(h=g`a`));break;case"button":r=(0,a.i0)(u||(u=g`button`));break;default:r=(0,a.i0)(p||(p=g`li`))}const i=e&&this.target?this.target:n.Ld;return(0,a.dy)(m||(m=g`
<${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}>
`),r,this.disabled&&!e?-1:0,this.menuItemController.role,this.ariaLabel||n.Ld,this.ariaSelected||n.Ld,this.ariaChecked||n.Ld,this.ariaExpanded||n.Ld,this.ariaHasPopup||n.Ld,(0,s.$)(this.getRenderClasses()),this.href||n.Ld,i,this.menuItemController.onClick,this.menuItemController.onKeydown,t,r)}renderRipple(){return(0,n.dy)(f||(f=g` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.disabled)}renderFocusRing(){return(0,n.dy)(v||(v=g` <md-focus-ring part="focus-ring" for="item" inward></md-focus-ring>`))}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return(0,n.dy)(b||(b=g` <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 t;null===(t=this.listItemRoot)||void 0===t||t.focus()}}x.shadowRootOptions=Object.assign(Object.assign({},n.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.__decorate)([(0,o.Cb)({type:Boolean,reflect:!0})],x.prototype,"disabled",void 0),(0,i.__decorate)([(0,o.Cb)()],x.prototype,"type",void 0),(0,i.__decorate)([(0,o.Cb)()],x.prototype,"href",void 0),(0,i.__decorate)([(0,o.Cb)()],x.prototype,"target",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean,attribute:"keep-open"})],x.prototype,"keepOpen",void 0),(0,i.__decorate)([(0,o.Cb)({type:Boolean})],x.prototype,"selected",void 0),(0,i.__decorate)([(0,o.IO)(".list-item")],x.prototype,"listItemRoot",void 0),(0,i.__decorate)([(0,o.NH)({slot:"headline"})],x.prototype,"headlineElements",void 0),(0,i.__decorate)([(0,o.NH)({slot:"supporting-text"})],x.prototype,"supportingTextElements",void 0),(0,i.__decorate)([(0,o.vZ)({slot:""})],x.prototype,"defaultElements",void 0),(0,i.__decorate)([(0,o.Cb)({attribute:"typeahead-text"})],x.prototype,"typeaheadText",null);var w=r(99072);let _=class extends x{};_.styles=[w.W],_=(0,i.__decorate)([(0,o.Mo)("md-menu-item")],_)},62212:function(t,e,r){r.d(e,{B:()=>n,_:()=>o});r(52247);var i=r(98330);const o=(t,e,r,o,n={unsubGrace:!0})=>{if(t[e])return t[e];let s,a,l=0,d=(0,i.M)();const c=()=>{if(!r)throw new Error("Collection does not support refresh");return r(t).then((t=>d.setState(t,!0)))},h=()=>c().catch((e=>{if(t.connected)throw e})),u=()=>{a=void 0,s&&s.then((t=>{t()})),d.clearState(),t.removeEventListener("ready",c),t.removeEventListener("disconnected",p)},p=()=>{a&&(clearTimeout(a),u())};return t[e]={get state(){return d.state},refresh:c,subscribe(e){l++,1===l&&(()=>{if(void 0!==a)return clearTimeout(a),void(a=void 0);o&&(s=o(t,d)),r&&(t.addEventListener("ready",h),h()),t.addEventListener("disconnected",p)})();const i=d.subscribe(e);return void 0!==d.state&&setTimeout((()=>e(d.state)),0),()=>{i(),l--,l||(n.unsubGrace?a=setTimeout(u,5e3):u())}}},t[e]},n=(t,e,r,i,n)=>o(i,t,e,r).subscribe(n)},98330:function(t,e,r){r.d(e,{M:()=>i});r(92745),r(19423),r(40251);const i=t=>{let e=[];function r(r,i){t=i?r:Object.assign(Object.assign({},t),r);let o=e;for(let e=0;e<o.length;e++)o[e](t)}return{get state(){return t},action(e){function i(t){r(t,!1)}return function(){let r=[t];for(let t=0;t<arguments.length;t++)r.push(arguments[t]);let o=e.apply(this,r);if(null!=o)return o instanceof Promise?o.then(i):i(o)}},setState:r,clearState(){t=void 0},subscribe(t){return e.push(t),()=>{!function(t){let r=[];for(let i=0;i<e.length;i++)e[i]===t?t=null:r.push(e[i]);e=r}(t)}}}}},27608:function(t,e,r){r.d(e,{MT:()=>o,RV:()=>i,U2:()=>a,ZH:()=>d,t8:()=>l});r(71695),r(92745),r(9359),r(31526),r(70104),r(40251),r(47021);function i(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function o(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const o=i(r);return(t,r)=>o.then((i=>r(i.transaction(e,t).objectStore(e))))}let n;function s(){return n||(n=o("keyval-store","keyval")),n}function a(t,e=s()){return e("readonly",(e=>i(e.get(t))))}function l(t,e,r=s()){return r("readwrite",(r=>(r.put(e,t),i(r.transaction))))}function d(t=s()){return t("readwrite",(t=>(t.clear(),i(t.transaction))))}},11722:function(t,e,r){r.d(e,{l:()=>s});r(71695),r(9359),r(68107),r(47021);var i=r(2841),o=r(45779);const n={},s=(0,o.XM)(class extends o.Xe{constructor(){super(...arguments),this.st=n}render(t,e){return e()}update(t,[e,r]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return i.Jb}else if(this.st===e)return i.Jb;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,r)}})},94571:function(t,e,r){r.d(e,{C:()=>u});r(71695),r(9359),r(1331),r(40251),r(47021);var i=r(2841),o=r(53232),n=r(1714);r(14503);class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class a{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var l=r(45779);const d=t=>!(0,o.pt)(t)&&"function"==typeof t.then,c=1073741823;class h extends n.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new s(this),this._$CK=new a}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:i.Jb}update(t,e){const r=this._$Cwt;let o=r.length;this._$Cwt=e;const n=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let i=0;i<e.length&&!(i>this._$C_t);i++){const t=e[i];if(!d(t))return this._$C_t=i,t;i<o&&t===r[i]||(this._$C_t=c,o=0,Promise.resolve(t).then((async e=>{for(;s.get();)await s.get();const r=n.deref();if(void 0!==r){const i=r._$Cwt.indexOf(t);i>-1&&i<r._$C_t&&(r._$C_t=i,r.setValue(e))}})))}return i.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const u=(0,l.XM)(h)},79840:function(t,e,r){r.d(e,{i0:()=>s,dy:()=>d});r(52247),r(71695),r(92745),r(52805),r(9359),r(48136),r(47021);var i=r(2841);const o=Symbol.for(""),n=t=>{if((null==t?void 0:t.r)===o)return null==t?void 0:t._$litStatic$},s=(t,...e)=>({_$litStatic$:e.reduce(((e,r,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(r)+t[i+1]),t[0]),r:o}),a=new Map,l=t=>(e,...r)=>{const i=r.length;let o,s;const l=[],d=[];let c,h=0,u=!1;for(;h<i;){for(c=e[h];h<i&&void 0!==(s=r[h],o=n(s));)c+=o+e[++h],u=!0;h!==i&&d.push(s),l.push(c),h++}if(h===i&&l.push(e[i]),u){const t=l.join("$$lit$$");void 0===(e=a.get(t))&&(l.raw=l,a.set(t,e=l)),r=d}return t(e,...r)},d=l(i.dy);l(i.YP)}}]);
//# sourceMappingURL=49877.518e936ac058ce4a.js.map