UNPKG

iobroker.lovelace

Version:

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

17 lines 31 kB
/*! For license information please see 71739.60f19ec66b7c4add.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[71739],{12451:function(e,t,r){r.d(t,{O:function(){return o},i:function(){return n.is}});var i=r(5124),n=r(12130);class o extends i.WF{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},12130:function(e,t,r){r.d(t,{SE:function(){return d},U9:function(){return l},hP:function(){return i},is:function(){return n}});r(44114);const i=e=>e.nodeType===Node.ELEMENT_NODE;function n(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let o=!1;const a=()=>{},s={get passive(){return o=!0,!1}};document.addEventListener("x",a,s),document.removeEventListener("x",a);const l=(e=window.document)=>{let t=e.activeElement;const r=[];if(!t)return r;for(;t&&(r.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return r},d=e=>{const t=l();if(!t.length)return!1;const r=t[t.length-1],i=new Event("check-if-focused",{bubbles:!0,composed:!0});let n=[];const o=e=>{n=e.composedPath()};return document.body.addEventListener("check-if-focused",o),r.dispatchEvent(i),document.body.removeEventListener("check-if-focused",o),-1!==n.indexOf(e)}},35370:function(e,t,r){var i=r(26198);e.exports=function(e,t,r){for(var n=0,o=arguments.length>2?r:i(t),a=new e(o);o>n;)a[n]=t[n++];return a}},77957:function(e,t,r){var i=r(76080),n=r(79504),o=r(47055),a=r(48981),s=r(56969),l=r(26198),d=r(2360),c=r(35370),u=Array,h=n([].push);e.exports=function(e,t,r,n){for(var p,m,f,v=a(e),g=o(v),y=i(t,r),b=d(null),w=l(g),x=0;w>x;x++)f=g[x],(m=s(y(f,x,v)))in b?h(b[m],f):b[m]=[f];if(n&&(p=n(v))!==u)for(m in b)b[m]=c(p,b[m]);return b}},46058:function(e,t,r){var i=r(46518),n=r(77957),o=r(6469);i({target:"Array",proto:!0},{group:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),o("group")},97577:function(e,t,r){r.d(t,{A:function(){return E}});r(27495),r(62953);var i=r(5124),n=r(67576),o=r(6412),a=r(63672),s=r(34514),l=r(40991),d=r(92070),c=r(49546),u=r(9395),h=r(62676),p=r(15477),m=r(31896);r(38625);let f;var v=(0,i.AH)(f||(f=(e=>e)`:host{--checked-icon-color:var(--wa-color-brand-on-loud);--checked-icon-scale:0.8;display:inline-flex;color:var(--wa-form-control-value-color);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);user-select:none;-webkit-user-select:none}[part~=control]{display:inline-flex;flex:0 0 auto;position:relative;align-items:center;justify-content:center;width:var(--wa-form-control-toggle-size);height:var(--wa-form-control-toggle-size);border-color:var(--wa-form-control-border-color);border-radius:min(calc(var(--wa-form-control-toggle-size) * .375),var(--wa-border-radius-s));border-style:var(--wa-border-style);border-width:var(--wa-form-control-border-width);background-color:var(--wa-form-control-background-color);transition:background var(--wa-transition-normal),border-color var(--wa-transition-fast),box-shadow var(--wa-transition-fast),color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);margin-inline-end:.5em}[part~=base]{display:flex;align-items:flex-start;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:inline}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color);border-color:var(--wa-form-control-activated-color);background-color:var(--wa-form-control-activated-color)}[part~=control]:has(> input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;scale:var(--checked-icon-scale)}[part~=icon]::part(svg){translate:0.0009765625em}input:not(:checked,:indeterminate)+[part~=icon]{visibility:hidden}:host([required]) [part~=label]::after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}`));let g,y,b,w=e=>e;var x=Object.defineProperty,k=Object.getOwnPropertyDescriptor,C=(e,t,r,i)=>{for(var n,o=i>1?void 0:i?k(t,r):t,a=e.length-1;a>=0;a--)(n=e[a])&&(o=(i?n(t,r,o):n(o))||o);return i&&o&&x(t,r,o),o};let E=class extends h.q{static get validators(){const e=i.S$?[]:[(0,c.Y)({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){var e;return null!==(e=this._value)&&void 0!==e?e:"on"}set value(e){this._value=e}handleSizeChange(){(0,l.b)(this.localName,this.size)}get checked(){var e;return this.valueHasChanged?Boolean(this._checked):null!==(e=this._checked)&&void 0!==e?e:this.defaultChecked}set checked(e){this._checked=Boolean(e),this.valueHasChanged=!0}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}connectedCallback(){super.connectedCallback(),this.handleDefaultCheckedChange()}handleDefaultCheckedChange(){this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){const e=!!i.S$||this.hasSlotController.test("hint"),t=!!this.hint||!!e,r=!this.checked&&this.indeterminate,n=r?"indeterminate":"check",l=r?"indeterminate":"check";return(0,i.qy)(g||(g=w` <label part="base"> <span part="control"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .indeterminate="${0}" .checked="${0}" .disabled="${0}" .required="${0}" aria-checked="${0}" aria-describedby="hint" @click="${0}"> <wa-icon part="${0}-icon icon" library="system" name="${0}"></wa-icon> </span> <slot part="label"></slot> </label> <slot id="hint" part="hint" name="hint" aria-hidden="${0}" class="${0}"> ${0} </slot> `),this.title,(0,a.J)(this.name),(0,a.J)(this._value),(0,s.V)(this.indeterminate),(0,s.V)(this.checked),this.disabled,this.required,this.indeterminate?"mixed":this.checked?"true":"false",this.handleClick,l,n,t?"false":"true",(0,o.H)({"has-slotted":t}),this.hint)}constructor(){var e;super(...arguments),this.hasSlotController=new d.X(this,"hint"),this.title="",this.name=null,this._value=null!==(e=this.getAttribute("value"))&&void 0!==e?e:null,this.size="m",this.disabled=!1,this.indeterminate=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint=""}};E.css=[p.A,m.A,v],E.shadowRootOptions=Object.assign(Object.assign({},h.q.shadowRootOptions),{},{delegatesFocus:!0}),C([(0,n.P)('input[type="checkbox"]')],E.prototype,"input",2),C([(0,n.MZ)()],E.prototype,"title",2),C([(0,n.MZ)({reflect:!0})],E.prototype,"name",2),C([(0,n.MZ)({reflect:!0})],E.prototype,"value",1),C([(0,n.MZ)({reflect:!0})],E.prototype,"size",2),C([(0,u.w)("size")],E.prototype,"handleSizeChange",1),C([(0,n.MZ)({type:Boolean})],E.prototype,"disabled",2),C([(0,n.MZ)({type:Boolean,reflect:!0})],E.prototype,"indeterminate",2),C([(0,n.MZ)({type:Boolean,attribute:!1})],E.prototype,"checked",1),C([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],E.prototype,"defaultChecked",2),C([(0,n.MZ)({type:Boolean,reflect:!0})],E.prototype,"required",2),C([(0,n.MZ)()],E.prototype,"hint",2),C([(0,u.w)(["checked","defaultChecked"])],E.prototype,"handleDefaultCheckedChange",1),C([(0,u.w)(["checked","indeterminate"])],E.prototype,"handleStateChange",1),C([(0,u.w)("disabled")],E.prototype,"handleDisabledChange",1),E=C([(0,n.EM)("wa-checkbox")],E),null===(y=(b=E).disableWarning)||void 0===y||y.call(b,"change-in-update")},95010:function(e,t,r){r.d(t,{q:function(){return n},N:function(){return o}});r(54743),r(11745),r(16573),r(78100),r(77936),r(21489),r(48140),r(75044),r(21903),r(91134),r(28845),r(373),r(37467),r(44732),r(79577),r(16632),r(34226),r(9486),r(20456);let i=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};function n(e,t,r){const i=e=>Object.is(e,-0)?0:e;return i(e<t?t:e>r?r:e)}function o(e=""){return`${e}${i()}`}},49546:function(e,t,r){r.d(t,{Y:function(){return i}});r(44114);const i=(e={})=>{let{validationElement:t,validationProperty:r}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),r||(r="value");const i={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){var t;const n={message:"",isValid:!0,invalidKeys:[]};if(!(null!==(t=e.required)&&void 0!==t?t:e.hasAttribute("required")))return n;return!e[r]&&(n.message="function"==typeof i.message?i.message(e):i.message||"",n.isValid=!1,n.invalidKeys.push("valueMissing")),n}};return i}},15477:function(e,t,r){r.d(t,{A:function(){return n}});let i;var n=(0,r(5124).AH)(i||(i=(e=>e)`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`))},75275:function(e,t,r){var i=r(40445),n=r(67576),o=(r(89463),r(62953),r(5124)),a=r(76482);const s=["focusin","focusout","pointerdown"];class l extends o.WF{get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var t,r;if(!e[d]){switch(e.type){default:return;case"focusin":this.visible=null!==(t=null===(r=this.control)||void 0===r?void 0:r.matches(":focus-visible"))&&void 0!==t&&t;break;case"focusout":case"pointerdown":this.visible=!1}e[d]=!0}}onControlChange(e,t){if(!o.S$)for(const r of s)null==e||e.removeEventListener(r,this),null==t||t.addEventListener(r,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new a.i(this,this.onControlChange.bind(this))}}(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"visible",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"inward",void 0);const d=Symbol("handledByFocusRing");let c;const u=(0,o.AH)(c||(c=(e=>e)`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2,0,0,1);box-sizing:border-box;color:var(--md-focus-ring-color,var(--md-sys-color-secondary,#625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) + var(--md-focus-ring-outward-offset,2px));inset:calc(-1*var(--md-focus-ring-outward-offset,2px));outline:var(--md-focus-ring-width,3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start,var(--md-focus-ring-shape,var(--md-sys-shape-corner-full,9999px))) - var(--md-focus-ring-inward-offset,0px));border:var(--md-focus-ring-width,3px) solid currentColor;inset:var(--md-focus-ring-inward-offset,0px)}@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,i.Cg)([(0,n.EM)("md-focus-ring")],h)},1024:function(e,t,r){r.d(t,{n:function(){return d}});r(89463),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(62953);var i=r(5124);r(74423);const n=["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=n.map(s);function a(e){return o.includes(e)}function s(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const l=Symbol("privateIgnoreAttributeChangesFor");function d(e){var t;if(i.S$)return e;class r extends e{attributeChangedCallback(e,t,r){if(!a(e))return void super.attributeChangedCallback(e,t,r);if(this[l].has(e))return;this[l].add(e),this.removeAttribute(e),this[l].delete(e);const i=u(e);null===r?delete this.dataset[i]:this.dataset[i]=r,this.requestUpdate(u(e),t)}getAttribute(e){return a(e)?super.getAttribute(c(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),a(e)&&(super.removeAttribute(c(e)),this.requestUpdate())}constructor(){super(...arguments),this[t]=new Set}}return t=l,function(e){for(const t of n){const r=s(t),i=c(r),n=u(r);e.createProperty(t,{attribute:r,noAccessor:!0}),e.createProperty(Symbol(i),{attribute:i,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){var e;return null!==(e=this.dataset[n])&&void 0!==e?e:null},set(e){var r;const i=null!==(r=this.dataset[n])&&void 0!==r?r:null;e!==i&&(null===e?delete this.dataset[n]:this.dataset[n]=e,this.requestUpdate(t,i))}})}}(r),r}function c(e){return`data-${e}`}function u(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}},27525:function(e,t,r){r.d(t,{A6:function(){return a},Ex:function(){return l},RN:function(){return u},RZ:function(){return n},c7:function(){return s},cG:function(){return h},u9:function(){return c},ub:function(){return o},wm:function(){return d},zT:function(){return i}});r(62953);function i(e,t=p){const r=s(e,t);return r&&(r.tabIndex=0,r.focus()),r}function n(e,t=p){const r=l(e,t);return r&&(r.tabIndex=0,r.focus()),r}function o(e,t=p){const r=a(e,t);return r&&(r.item.tabIndex=-1),r}function a(e,t=p){for(let r=0;r<e.length;r++){const i=e[r];if(0===i.tabIndex&&t(i))return{item:i,index:r}}return null}function s(e,t=p){for(const r of e)if(t(r))return r;return null}function l(e,t=p){for(let r=e.length-1;r>=0;r--){const i=e[r];if(t(i))return i}return null}function d(e,t,r=p,n=!0){if(t){const i=function(e,t,r=p,i=!0){for(let n=1;n<e.length;n++){const o=(n+t)%e.length;if(o<t&&!i)return null;const a=e[o];if(r(a))return a}return e[t]?e[t]:null}(e,t.index,r,n);return i&&(i.tabIndex=0,i.focus()),i}return i(e,r)}function c(e,t,r=p,i=!0){if(t){const n=function(e,t,r=p,i=!0){for(let n=1;n<e.length;n++){const o=(t-n+e.length)%e.length;if(o>t&&!i)return null;const a=e[o];if(r(a))return a}return e[t]?e[t]:null}(e,t.index,r,i);return n&&(n.tabIndex=0,n.focus()),n}return n(e,r)}function u(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function h(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(e){return!e.disabled}},82553:function(e,t,r){r.d(t,{R:function(){return n}});let i;const n=(0,r(5124).AH)(i||(i=(e=>e)`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`))},58168:function(e,t,r){r.d(t,{n:function(){return $}});r(62953);var i=r(40445),n=(r(75275),r(67576)),o=(r(27495),r(5124));let a,s=e=>e;class l extends o.WF{render(){return(0,o.qy)(a||(a=s` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${0}"></slot> <slot class="default-slot" @slotchange="${0}"></slot> <slot name="headline" @slotchange="${0}"></slot> <slot name="supporting-text" @slotchange="${0}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `),this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange,this.handleTextSlotChange)}handleTextSlotChange(){let e=!1,t=0;for(const r of this.textSlots)if(d(r)&&(t+=1),t>1){e=!0;break}this.multiline=e}constructor(){super(...arguments),this.multiline=!1}}function d(e){for(const r of e.assignedNodes({flatten:!0})){var t;const e=r.nodeType===Node.ELEMENT_NODE,i=r.nodeType===Node.TEXT_NODE&&(null===(t=r.textContent)||void 0===t?void 0:t.match(/\S/));if(e||i)return!0}return!1}(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],l.prototype,"multiline",void 0),(0,i.Cg)([(0,n.YG)(".text slot")],l.prototype,"textSlots",void 0);let c;const u=(0,o.AH)(c||(c=(e=>e)`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`));let h=class extends l{};h.styles=[u],h=(0,i.Cg)([(0,n.EM)("md-item")],h);r(71970);var p=r(6412),m=r(7872),f=r(1024),v=r(27525);let g,y,b,w,x,k,C,E,R=e=>e;const A=(0,f.n)(o.WF);class $ extends A{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem((0,o.qy)(g||(g=R` <md-item> <div slot="container"> ${0} ${0} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${0} </md-item> `),this.renderRipple(),this.renderFocusRing(),this.renderBody()))}renderListItem(e){const t="link"===this.type;let r;switch(this.type){case"link":r=(0,m.eu)(y||(y=R`a`));break;case"button":r=(0,m.eu)(b||(b=R`button`));break;default:r=(0,m.eu)(w||(w=R`li`))}const i="text"!==this.type,n=t&&this.target?this.target:o.s6;return(0,m.qy)(x||(x=R` <${0} id="item" tabindex="${0}" ?disabled=${0} role="listitem" aria-selected=${0} aria-checked=${0} aria-expanded=${0} aria-haspopup=${0} class="list-item ${0}" href=${0} target=${0} @focus=${0} >${0}</${0}> `),r,this.isDisabled||!i?-1:0,this.isDisabled,this.ariaSelected||o.s6,this.ariaChecked||o.s6,this.ariaExpanded||o.s6,this.ariaHasPopup||o.s6,(0,p.H)(this.getRenderClasses()),this.href||o.s6,n,this.onFocus,e,r)}renderRipple(){return"text"===this.type?o.s6:(0,o.qy)(k||(k=R` <md-ripple part="ripple" for="item" ?disabled="${0}"></md-ripple>`),this.isDisabled)}renderFocusRing(){return"text"===this.type?o.s6:(0,o.qy)(C||(C=R` <md-focus-ring @visibility-changed="${0}" part="focus-ring" for="item" inward></md-focus-ring>`),this.onFocusRingVisibilityChanged)}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return(0,o.qy)(E||(E=R` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `))}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,v.cG)())}focus(){var e;null===(e=this.listItemRoot)||void 0===e||e.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}$.shadowRootOptions=Object.assign(Object.assign({},o.WF.shadowRootOptions),{},{delegatesFocus:!0}),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],$.prototype,"disabled",void 0),(0,i.Cg)([(0,n.MZ)({reflect:!0})],$.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],$.prototype,"isListItem",void 0),(0,i.Cg)([(0,n.MZ)()],$.prototype,"href",void 0),(0,i.Cg)([(0,n.MZ)()],$.prototype,"target",void 0),(0,i.Cg)([(0,n.P)(".list-item")],$.prototype,"listItemRoot",void 0)},71970:function(e,t,r){var i=r(40445),n=r(67576),o=r(91382),a=r(96245);let s=class extends o.n{};s.styles=[a.R],s=(0,i.Cg)([(0,n.EM)("md-ripple")],s)},95192:function(e,t,r){r.d(t,{IU:function(){return d},Jt:function(){return s},Yd:function(){return i},hZ:function(){return l},y$:function(){return n}});r(44114),r(18111),r(7588),r(61701),r(3362),r(62953);function i(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function n(e,t){let r;return(n,o)=>(()=>{if(r)return r;const n=indexedDB.open(e);return n.onupgradeneeded=()=>n.result.createObjectStore(t),r=i(n),r.then(e=>{e.onclose=()=>r=void 0},()=>{}),r})().then(e=>o(e.transaction(t,n).objectStore(t)))}let o;function a(){return o||(o=n("keyval-store","keyval")),o}function s(e,t=a()){return t("readonly",t=>i(t.get(e)))}function l(e,t,r=a()){return r("readwrite",r=>(r.put(t,e),i(r.transaction)))}function d(e=a()){return e("readwrite",e=>(e.clear(),i(e.transaction)))}},34514:function(e,t,r){r.d(t,{V:function(){return a}});r(16280),r(62953);var i=r(5055),n=r(42017),o=r(63937);const a=(0,n.u$)(class extends n.WL{render(e){return e}update(e,[t]){if(t===i.c0||t===i.s6)return t;const r=e.element,a=e.name;if(e.type===n.OA.PROPERTY){if(t===r[a])return i.c0}else if(e.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(a))return i.c0}else if(e.type===n.OA.ATTRIBUTE&&r.getAttribute(a)===t+"")return i.c0;return(0,o.mY)(e),t}constructor(e){if(super(e),e.type!==n.OA.PROPERTY&&e.type!==n.OA.ATTRIBUTE&&e.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,o.Rt)(e))throw Error("`live` bindings can only contain a single expression")}})},89784:function(e,t,r){r.d(t,{W:function(){return s}});r(16280),r(74423),r(72712),r(18111),r(18237),r(27495),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(25440),r(62953);var i=r(5055),n=r(42017);const o="important",a=" !"+o,s=(0,n.u$)(class extends n.WL{render(e){return Object.keys(e).reduce((t,r)=>{const i=e[r];return null==i?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){const{style:r}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(const i of this.ft)null==t[i]&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(const i in t){const e=t[i];if(null!=e){this.ft.add(i);const t="string"==typeof e&&e.endsWith(a);i.includes("-")||t?r.setProperty(i,t?e.slice(0,-11):e,t?o:""):r[i]=e}}return i.c0}constructor(e){var t;if(super(e),e.type!==n.OA.ATTRIBUTE||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}}]);