UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

19 lines 28.2 kB
/*! For license information please see 98938.10412d825773e8f8.js.LICENSE.txt */ "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["98938"],{87319:function(t,e,r){var s=r(9065),i=r(50778),o=r(65703),n=r(46289);let a=class extends o.K{};a.styles=[n.W],a=(0,s.__decorate)([(0,i.Mo)("mwc-list-item")],a)},12582:function(t,e,r){r.d(e,{Z:()=>s});r(9359),r(31526),r(70104),r(11740);function s(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(s);var e={};return Object.keys(t).forEach((function(r){e[r]=s(t[r])})),e}},88977:function(t,e,r){r.d(e,{L:()=>o});r(19134),r(44495),r(32114);const s={en:"US",hi:"IN",deva:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",bn:"BD",beng:"BD",rkt:"BD",dz:"BT",tibt:"BT",tn:"BW",am:"ET",ethi:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",he:"IL",hebr:"IL",jam:"JM",ja:"JP",jpan:"JP",km:"KH",khmr:"KH",ko:"KR",kore:"KR",lo:"LA",laoo:"LA",mh:"MH",my:"MM",mymr:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa_arab:"PK",lah:"PK",ps:"PK",sd:"PK",skr:"PK",gn:"PY",th:"TH",thai:"TH",tts:"TH",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arab:"EG",arz:"EG",fa:"IR",az_arab:"IR",dv:"MV",thaa:"MV"};const i={AG:0,ATG:0,28:0,AS:0,ASM:0,16:0,BD:0,BGD:0,50:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PT:0,PRT:0,620:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,MV:5,MDV:5,462:5};function o(t){return function(t,e,r){if(t){var s,i=t.toLowerCase().split(/[-_]/),o=i[0],n=o;if(i[1]&&4===i[1].length?(n+="_"+i[1],s=i[2]):s=i[1],s||(s=e[n]||e[o]),s)return function(t,e){var r=e["string"==typeof t?t.toUpperCase():t];return"number"==typeof r?r:1}(s.match(/^\d+$/)?Number(s):s,r)}return 1}(t,s,i)}},68107:function(t,e,r){var s=r(40810),i=r(73994),o=r(63983),n=r(71998),a=r(4576);s({target:"Iterator",proto:!0,real:!0},{every:function(t){n(this),o(t);var e=a(this),r=0;return!i(e,(function(e,s){if(!t(e,r++))return s()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},14503:function(t,e,r){r.d(e,{Z:()=>s});r(63721),r(88230),r(52247),r(71695),r(40251),r(47021);function s(t){var e,r,s,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,s=Symbol.iterator);o--;){if(r&&null!=(e=t[r]))return e.call(t);if(s&&null!=(e=t[s]))return new i(e.call(t));r="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function i(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 i=function(t){this.s=t,this.n=t.next},i.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 i(t)}},60738:function(t,e,r){r.d(e,{F_:()=>c,HQ:()=>l,kr:()=>i});class s 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 i(t){return t}class o{constructor(t,e,r,s){var i;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!==(i=t.subscribe)&&void 0!==i&&i}else this.context=e,this.callback=r,this.subscribe=null!=s&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new s(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 n{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:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}class a extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}}class l extends n{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[i,{consumerHost:o}]of this.subscriptions)r.has(i)||(r.add(i),o.dispatchEvent(new s(this.context,i,!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,s)=>{r.addInitializer((r=>{new o(r,{context:t,callback:t=>{r[s]=t},subscribe:e})}))}})}},54835:function(t,e,r){var s=r(9065),i=r(50778),o=r(57243);let n,a=t=>t;class l extends o.oi{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return(0,o.dy)(n||(n=a`<span class="shadow"></span>`))}}let d;const c=(0,o.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 u=class extends l{};u.styles=[c],u=(0,s.__decorate)([(0,i.Mo)("md-elevation")],u)},57618:function(t,e,r){var s=r(9065),i=r(50778),o=(r(63721),r(71695),r(47021),r(57243)),n=r(19799);const a=["focusin","focusout","pointerdown"];class l extends o.oi{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new n.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(!o.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,s.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,s.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing");let c;const u=(0,o.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)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width,8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width,8px)}}@media(prefers-reduced-motion){:host{animation:none}}`));let h=class extends l{};h.styles=[u],h=(0,s.__decorate)([(0,i.Mo)("md-focus-ring")],h)},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 s=r(57243);r(19083),r(61006);const i=["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"],o=i.map(a);function n(t){return o.includes(t)}function a(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(t){var e;if(s.sk)return t;class r extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(t,e,r){if(!n(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 s=u(t);null===r?delete this.dataset[s]:this.dataset[s]=r,this.requestUpdate(u(t),e)}getAttribute(t){return n(t)?super.getAttribute(c(t)):super.getAttribute(t)}removeAttribute(t){super.removeAttribute(t),n(t)&&(super.removeAttribute(c(t)),this.requestUpdate())}}return e=l,function(t){for(const e of i){const r=a(e),s=c(r),i=u(r);t.createProperty(e,{attribute:r,noAccessor:!0}),t.createProperty(Symbol(s),{attribute:s,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){var t;return null!==(t=this.dataset[i])&&void 0!==t?t:null},set(t){var r;const s=null!==(r=this.dataset[i])&&void 0!==r?r:null;t!==s&&(null===t?delete this.dataset[i]:this.dataset[i]=t,this.requestUpdate(e,s))}})}}(r),r}function c(t){return`data-${t}`}function u(t){return t.replace(/-\w/,(t=>t[1].toUpperCase()))}},43895:function(t,e,r){r.d(e,{_:()=>i});r(22152),r(92745),r(9359),r(31526),r(81804);var s=r(7162);class i{constructor(t,e){this.host=t,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent((0,s.d7)(this.host,{kind:s.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,s.kE)(e)&&(t.preventDefault(),this.host.dispatchEvent((0,s.d7)(this.host,{kind:s.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:()=>i});let s;const i=(0,r(57243).iv)(s||(s=(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))}@media(forced-colors:active){: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:()=>C});var s=r(9065),i=r(50778),o=(r(71695),r(19423),r(47021),r(57618),r(26499),r(23111),r(57243)),n=r(35359),a=r(79840),l=r(13823),d=r(43895);let c,u,h,p,m,v,f,b,g=t=>t;const y=(0,l.T)(o.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,o.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)(u||(u=g`a`));break;case"button":r=(0,a.i0)(h||(h=g`button`));break;default:r=(0,a.i0)(p||(p=g`li`))}const s=e&&this.target?this.target:o.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} @click=${0} @keydown=${0} >${0}</${0}> `),r,this.disabled&&!e?-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,n.$)(this.getRenderClasses()),this.href||o.Ld,s,this.menuItemController.onClick,this.menuItemController.onKeydown,t,r)}renderRipple(){return(0,o.dy)(v||(v=g` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.disabled)}renderFocusRing(){return(0,o.dy)(f||(f=g` <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)(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({},o.oi.shadowRootOptions),{},{delegatesFocus:!0}),(0,s.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],x.prototype,"disabled",void 0),(0,s.__decorate)([(0,i.Cb)()],x.prototype,"type",void 0),(0,s.__decorate)([(0,i.Cb)()],x.prototype,"href",void 0),(0,s.__decorate)([(0,i.Cb)()],x.prototype,"target",void 0),(0,s.__decorate)([(0,i.Cb)({type:Boolean,attribute:"keep-open"})],x.prototype,"keepOpen",void 0),(0,s.__decorate)([(0,i.Cb)({type:Boolean})],x.prototype,"selected",void 0),(0,s.__decorate)([(0,i.IO)(".list-item")],x.prototype,"listItemRoot",void 0),(0,s.__decorate)([(0,i.NH)({slot:"headline"})],x.prototype,"headlineElements",void 0),(0,s.__decorate)([(0,i.NH)({slot:"supporting-text"})],x.prototype,"supportingTextElements",void 0),(0,s.__decorate)([(0,i.vZ)({slot:""})],x.prototype,"defaultElements",void 0),(0,s.__decorate)([(0,i.Cb)({attribute:"typeahead-text"})],x.prototype,"typeaheadText",null);var w=r(99072);let C=class extends x{};C.styles=[w.W],C=(0,s.__decorate)([(0,i.Mo)("md-menu-item")],C)},62212:function(t,e,r){r.d(e,{B:()=>o,_:()=>i});r(52247);var s=r(98330);const i=(t,e,r,i,o={unsubGrace:!0})=>{if(t[e])return t[e];let n,a,l=0,d=(0,s.M)();const c=()=>{if(!r)throw new Error("Collection does not support refresh");return r(t).then((t=>d.setState(t,!0)))},u=()=>c().catch((e=>{if(t.connected)throw e})),h=()=>{a=void 0,n&&n.then((t=>{t()})),d.clearState(),t.removeEventListener("ready",c),t.removeEventListener("disconnected",p)},p=()=>{a&&(clearTimeout(a),h())};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);i&&(n=i(t,d)),r&&(t.addEventListener("ready",u),u()),t.addEventListener("disconnected",p)})();const s=d.subscribe(e);return void 0!==d.state&&setTimeout((()=>e(d.state)),0),()=>{s(),l--,l||(o.unsubGrace?a=setTimeout(h,5e3):h())}}},t[e]},o=(t,e,r,s,o)=>i(s,t,e,r).subscribe(o)},98330:function(t,e,r){r.d(e,{M:()=>s});r(92745),r(19423),r(40251);const s=t=>{let e=[];function r(r,s){t=s?r:Object.assign(Object.assign({},t),r);let i=e;for(let e=0;e<i.length;e++)i[e](t)}return{get state(){return t},action(e){function s(t){r(t,!1)}return function(){let r=[t];for(let t=0;t<arguments.length;t++)r.push(arguments[t]);let i=e.apply(this,r);if(null!=i)return i instanceof Promise?i.then(s):s(i)}},setState:r,clearState(){t=void 0},subscribe(t){return e.push(t),()=>{!function(t){let r=[];for(let s=0;s<e.length;s++)e[s]===t?t=null:r.push(e[s]);e=r}(t)}}}}},27608:function(t,e,r){r.d(e,{MT:()=>i,RV:()=>s,U2:()=>a,ZH:()=>d,t8:()=>l});r(71695),r(92745),r(9359),r(31526),r(70104),r(40251),r(47021);function s(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function i(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const i=s(r);return(t,r)=>i.then((s=>r(s.transaction(e,t).objectStore(e))))}let o;function n(){return o||(o=i("keyval-store","keyval")),o}function a(t,e=n()){return e("readonly",(e=>s(e.get(t))))}function l(t,e,r=n()){return r("readwrite",(r=>(r.put(e,t),s(r.transaction))))}function d(t=n()){return t("readwrite",(t=>(t.clear(),s(t.transaction))))}},94571:function(t,e,r){r.d(e,{C:()=>h});r(71695),r(9359),r(1331),r(40251),r(47021);var s=r(2841),i=r(53232),o=r(1714);r(14503);class n{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,i.pt)(t)&&"function"==typeof t.then,c=1073741823;class u extends o.sR{constructor(){super(...arguments),this._$C_t=c,this._$Cwt=[],this._$Cq=new n(this),this._$CK=new a}render(...t){var e;return null!==(e=t.find((t=>!d(t))))&&void 0!==e?e:s.Jb}update(t,e){const r=this._$Cwt;let i=r.length;this._$Cwt=e;const o=this._$Cq,n=this._$CK;this.isConnected||this.disconnected();for(let s=0;s<e.length&&!(s>this._$C_t);s++){const t=e[s];if(!d(t))return this._$C_t=s,t;s<i&&t===r[s]||(this._$C_t=c,i=0,Promise.resolve(t).then((async e=>{for(;n.get();)await n.get();const r=o.deref();if(void 0!==r){const s=r._$Cwt.indexOf(t);s>-1&&s<r._$C_t&&(r._$C_t=s,r.setValue(e))}})))}return s.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const h=(0,l.XM)(u)},79840:function(t,e,r){r.d(e,{i0:()=>n,dy:()=>d});r(52247),r(71695),r(92745),r(52805),r(9359),r(48136),r(47021);var s=r(2841);const i=Symbol.for(""),o=t=>{if((null==t?void 0:t.r)===i)return null==t?void 0:t._$litStatic$},n=(t,...e)=>({_$litStatic$:e.reduce(((e,r,s)=>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[s+1]),t[0]),r:i}),a=new Map,l=t=>(e,...r)=>{const s=r.length;let i,n;const l=[],d=[];let c,u=0,h=!1;for(;u<s;){for(c=e[u];u<s&&void 0!==(n=r[u],i=o(n));)c+=i+e[++u],h=!0;u!==s&&d.push(n),l.push(c),u++}if(u===s&&l.push(e[s]),h){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(s.dy);l(s.YP)}}]); //# sourceMappingURL=98938.10412d825773e8f8.js.map