iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 22.4 kB
JavaScript
/*! For license information please see 58125.01c5e1fc15119463.js.LICENSE.txt */
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[58125],{97577:function(e,t,i){i.d(t,{A:function(){return A}});i(27495),i(62953);var n=i(5124),r=i(67576),o=i(6412),a=i(63672),s=i(34514),l=i(40991),c=i(92070),h=i(49546),d=i(9395),u=i(62676),p=i(15477),v=i(31896);i(38625);let f;var b=(0,n.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,w,m,k=e=>e;var y=Object.defineProperty,C=Object.getOwnPropertyDescriptor,$=(e,t,i,n)=>{for(var r,o=n>1?void 0:n?C(t,i):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n?r(t,i,o):r(o))||o);return n&&o&&y(t,i,o),o};let A=class extends u.q{static get validators(){const e=n.S$?[]:[(0,h.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=!!n.S$||this.hasSlotController.test("hint"),t=!!this.hint||!!e,i=!this.checked&&this.indeterminate,r=i?"indeterminate":"check",l=i?"indeterminate":"check";return(0,n.qy)(g||(g=k` <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" ="${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,r,t?"false":"true",(0,o.H)({"has-slotted":t}),this.hint)}constructor(){var e;super(...arguments),this.hasSlotController=new c.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=""}};A.css=[p.A,v.A,b],A.shadowRootOptions=Object.assign(Object.assign({},u.q.shadowRootOptions),{},{delegatesFocus:!0}),$([(0,r.P)('input[type="checkbox"]')],A.prototype,"input",2),$([(0,r.MZ)()],A.prototype,"title",2),$([(0,r.MZ)({reflect:!0})],A.prototype,"name",2),$([(0,r.MZ)({reflect:!0})],A.prototype,"value",1),$([(0,r.MZ)({reflect:!0})],A.prototype,"size",2),$([(0,d.w)("size")],A.prototype,"handleSizeChange",1),$([(0,r.MZ)({type:Boolean})],A.prototype,"disabled",2),$([(0,r.MZ)({type:Boolean,reflect:!0})],A.prototype,"indeterminate",2),$([(0,r.MZ)({type:Boolean,attribute:!1})],A.prototype,"checked",1),$([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"checked"})],A.prototype,"defaultChecked",2),$([(0,r.MZ)({type:Boolean,reflect:!0})],A.prototype,"required",2),$([(0,r.MZ)()],A.prototype,"hint",2),$([(0,d.w)(["checked","defaultChecked"])],A.prototype,"handleDefaultCheckedChange",1),$([(0,d.w)(["checked","indeterminate"])],A.prototype,"handleStateChange",1),$([(0,d.w)("disabled")],A.prototype,"handleDisabledChange",1),A=$([(0,r.EM)("wa-checkbox")],A),null===(w=(m=A).disableWarning)||void 0===w||w.call(m,"change-in-update")},68825:function(e,t,i){i(62953);var n=i(67576),r=i(9395),o=i(717);let a;var s=(0,i(5124).AH)(a||(a=(e=>e)`:host{--color:var(--wa-color-surface-border);--width:var(--wa-border-width-s);--spacing:var(--wa-space-m)}:host(:not([orientation=vertical])){display:block;border-top:solid var(--width) var(--color);margin:var(--spacing) 0}:host([orientation=vertical]){display:inline-block;height:100%;border-inline-start:solid var(--width) var(--color);margin:0 var(--spacing);min-block-size:1lh}`)),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(e,t,i,n)=>{for(var r,o=n>1?void 0:n?c(t,i):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n?r(t,i,o):r(o))||o);return n&&o&&l(t,i,o),o};let d=class extends o.A{connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.orientation)}constructor(){super(...arguments),this.orientation="horizontal"}};d.css=s,h([(0,n.MZ)({reflect:!0})],d.prototype,"orientation",2),h([(0,r.w)("orientation")],d.prototype,"handleVerticalChange",1),d=h([(0,n.EM)("wa-divider")],d)},29344:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{A:function(){return x}});i(27495),i(62953);var r=i(5124),o=i(67576),a=i(6412),s=i(63672),l=i(34514),c=i(40991),h=i(92070),d=i(41268),u=i(9395),p=i(62676),v=i(15477),f=i(31896),b=i(17060),g=i(19978),w=e([b]);b=(w.then?(await w)():w)[0];let C,$,A,_=e=>e;var m=Object.defineProperty,k=Object.getOwnPropertyDescriptor,y=(e,t,i,n)=>{for(var r,o=n>1?void 0:n?k(t,i):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n?r(t,i,o):r(o))||o);return n&&o&&m(t,i,o),o};let x=class extends p.q{static get validators(){return[...super.validators,(0,d.i)()]}get value(){var e;return null!==(e=this._value)&&void 0!==e?e:"on"}set value(e){this._value=e}handleSizeChange(){(0,c.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.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleKeyDown(e){const t="rtl"===this.localize.dir();"ArrowLeft"===e.key&&(e.preventDefault(),this.checked=t,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))})),"ArrowRight"===e.key&&(e.preventDefault(),this.checked=!t,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))}))}willUpdate(e){super.willUpdate(e),(e.has("value")||e.has("checked")||e.has("defaultChecked"))&&this.handleValueOrCheckedChange()}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked),this.customStates.set("checked",this.checked),this.updateValidity()}handleDisabledChange(){this.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}setValue(e,t){this.checked?this.internals.setFormValue(null!=e?e:"on",t):this.internals.setFormValue(null,null)}formResetCallback(){this._checked=null,super.formResetCallback(),this.handleValueOrCheckedChange()}render(){const e=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,t=!!this.hint||!!e;return(0,r.qy)(C||(C=_` <label part="base" class="${0}"> <input class="input" type="checkbox" title="${0}" name="${0}" value="${0}" .checked="${0}" .disabled="${0}" .required="${0}" role="switch" aria-checked="${0}" aria-describedby="hint" ="${0}" ="${0}"> <span part="control" class="switch"> <span part="thumb" class="thumb"></span> </span> <slot part="label" class="label"></slot> </label> <slot id="hint" name="hint" part="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,a.H)({checked:this.checked,disabled:this.disabled}),this.title,(0,s.J)(this.name),(0,s.J)(this.value),(0,l.V)(this.checked),this.disabled,this.required,this.checked?"true":"false",this.handleClick,this.handleKeyDown,(0,a.H)({"has-slotted":t}),t?"false":"true",this.hint)}constructor(){var e;super(...arguments),this.hasSlotController=new h.X(this,"hint"),this.localize=new b.c(this),this.title="",this.name=null,this._value=null!==(e=this.getAttribute("value"))&&void 0!==e?e:null,this.size="m",this.disabled=!1,this._checked=null,this.defaultChecked=this.hasAttribute("checked"),this.required=!1,this.hint="",this.withHint=!1}};x.shadowRootOptions=Object.assign(Object.assign({},p.q.shadowRootOptions),{},{delegatesFocus:!0}),x.css=[v.A,f.A,g.A],y([(0,o.P)('input[type="checkbox"]')],x.prototype,"input",2),y([(0,o.MZ)()],x.prototype,"title",2),y([(0,o.MZ)({reflect:!0})],x.prototype,"name",2),y([(0,o.MZ)({reflect:!0})],x.prototype,"value",1),y([(0,o.MZ)({reflect:!0})],x.prototype,"size",2),y([(0,u.w)("size")],x.prototype,"handleSizeChange",1),y([(0,o.MZ)({type:Boolean})],x.prototype,"disabled",2),y([(0,o.MZ)({type:Boolean,attribute:!1})],x.prototype,"checked",1),y([(0,o.MZ)({type:Boolean,attribute:"checked",reflect:!0})],x.prototype,"defaultChecked",2),y([(0,o.MZ)({type:Boolean,reflect:!0})],x.prototype,"required",2),y([(0,o.MZ)({attribute:"hint"})],x.prototype,"hint",2),y([(0,o.MZ)({attribute:"with-hint",type:Boolean})],x.prototype,"withHint",2),y([(0,u.w)(["checked","defaultChecked"])],x.prototype,"handleStateChange",1),y([(0,u.w)("disabled",{waitUntilFirstUpdate:!0})],x.prototype,"handleDisabledChange",1),x=y([(0,o.EM)("wa-switch")],x),null===($=(A=x).disableWarning)||void 0===$||$.call(A,"change-in-update"),n()}catch(C){n(C)}})},19978:function(e,t,i){i.d(t,{A:function(){return r}});let n;var r=(0,i(5124).AH)(n||(n=(e=>e)`:host{--height:var(--wa-form-control-toggle-size);--width:calc(var(--height) * 1.75);--thumb-size:0.75em;display:inline-flex;line-height:var(--wa-form-control-value-line-height)}label{position:relative;display:flex;align-items:center;font:inherit;color:var(--wa-form-control-value-color);vertical-align:middle;cursor:pointer}.switch{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color);border-radius:var(--height);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);transition-property:translate,background,border-color,box-shadow;transition-duration:var(--wa-transition-normal);transition-timing-function:var(--wa-transition-easing)}.switch .thumb{aspect-ratio:1/1;width:var(--thumb-size);height:var(--thumb-size);background-color:var(--wa-form-control-border-color);border-radius:50%;translate:calc((var(--width) - var(--height))/ -2);transition:inherit}.switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ 2)}.input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}label:not(.disabled) .input:focus-visible~.switch .thumb{outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}.checked .switch{background-color:var(--wa-form-control-activated-color);border-color:var(--wa-form-control-activated-color)}.checked .switch .thumb{background-color:var(--wa-color-surface-default);translate:calc((var(--width) - var(--height))/ 2)}.checked .switch .thumb:dir(rtl){translate:calc((var(--width) - var(--height))/ -2)}label:has(> :disabled){opacity:.5;cursor:not-allowed}[part~=label]{display:inline-block;line-height:var(--height);margin-inline-start:.5em;user-select:none;-webkit-user-select:none}: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)} (forced-colors:active){:checked+.switch .thumb,:checked:enabled+.switch:hover .thumb{background-color:ButtonText}}`))},49546:function(e,t,i){i.d(t,{Y:function(){return n}});i(44114);const n=(e={})=>{let{validationElement:t,validationProperty:i}=e;t||(t=Object.assign(document.createElement("input"),{required:!0})),i||(i="value");const n={observedAttributes:["required"],message:t.validationMessage,checkValidity(e){var t;const r={message:"",isValid:!0,invalidKeys:[]};if(!(null!==(t=e.required)&&void 0!==t?t:e.hasAttribute("required")))return r;return!e[i]&&(r.message="function"==typeof n.message?n.message(e):n.message||"",r.isValid=!1,r.invalidKeys.push("valueMissing")),r}};return n}},88696:function(e,t,i){i.a(e,async function(e,n){try{i.d(t,{P:function(){return l}});var r=i(69235),o=(i(3362),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953),i(37540)),a=i(42017),s=e([r]);r=(s.then?(await s)():s)[0];class l{handleChanges(e){var t;this.value=null===(t=this.callback)||void 0===t?void 0:t.call(this,e,this.u)}hostConnected(){for(const e of this.t)this.observe(e)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(e){this.t.add(e),this.u.observe(e,this.l),this.i=!0,this.h.requestUpdate()}unobserve(e){this.t.delete(e),this.u.unobserve(e)}disconnect(){this.u.disconnect()}target(e){return c(this,e)}constructor(e,{target:t,config:i,callback:n,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(null!=t?t:e),this.l=i,this.o=null!=r?r:this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(e=>{this.handleChanges(e),this.h.requestUpdate()}),e.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const c=(0,a.u$)(class extends o.Kq{render(e,t){}update(e,[t,i]){this.controller=t,this.part=e,this.observe=i,!1===i?(t.unobserve(e.element),this.observing=!1):!1===this.observing&&(t.observe(e.element),this.observing=!0)}disconnected(){var e;null!==(e=this.controller)&&void 0!==e&&e.unobserve(this.part.element),this.observing=!1}reconnected(){var e;!1!==this.observe&&!1===this.observing&&(null!==(e=this.controller)&&void 0!==e&&e.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});n()}catch(l){n(l)}})},99731:function(e,t,i){i.d(t,{Y:function(){return u}});var n=i(40445),r=i(67576),o=(i(93775),i(18111),i(22489),i(20116),i(62953),i(5124)),a=i(99591);let s,l=e=>e;class c extends o.WF{get chips(){return this.childElements.filter(e=>e instanceof a.v)}render(){return(0,o.qy)(s||(s=l`<slot ="${0}"></slot>`),this.updateTabIndices)}handleKeyDown(e){const t="ArrowLeft"===e.key,i="ArrowRight"===e.key,n="Home"===e.key,r="End"===e.key;if(!(t||i||n||r))return;const{chips:o}=this;if(o.length<2)return;if(e.preventDefault(),n||r){return o[n?0:o.length-1].focus({trailing:r}),void this.updateTabIndices()}const a="rtl"===getComputedStyle(this).direction?t:i,s=o.find(e=>e.matches(":focus-within"));if(!s){return(a?o[0]:o[o.length-1]).focus({trailing:!a}),void this.updateTabIndices()}const l=o.indexOf(s);let c=a?l+1:l-1;for(;c!==l;){c>=o.length?c=0:c<0&&(c=o.length-1);const e=o[c];if(!e.disabled||e.alwaysFocusable){e.focus({trailing:!a}),this.updateTabIndices();break}a?c++:c--}}updateTabIndices(){const{chips:e}=this;let t;for(const i of e){const e=i.alwaysFocusable||!i.disabled;i.matches(":focus-within")&&e?t=i:(e&&!t&&(t=i),i.tabIndex=-1)}t&&(t.tabIndex=0)}constructor(){super(),this.internals=this.attachInternals(),o.S$||(this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar")}}(0,n.Cg)([(0,r.KN)()],c.prototype,"childElements",void 0);let h;const d=(0,o.AH)(h||(h=(e=>e)`:host{display:flex;flex-wrap:wrap;gap:8px}`));let u=class extends c{};u.styles=[d],u=(0,n.Cg)([(0,r.EM)("md-chip-set")],u)},27525:function(e,t,i){i.d(t,{A6:function(){return a},Ex:function(){return l},RN:function(){return d},RZ:function(){return r},c7:function(){return s},cG:function(){return u},u9:function(){return h},ub:function(){return o},wm:function(){return c},zT:function(){return n}});i(62953);function n(e,t=p){const i=s(e,t);return i&&(i.tabIndex=0,i.focus()),i}function r(e,t=p){const i=l(e,t);return i&&(i.tabIndex=0,i.focus()),i}function o(e,t=p){const i=a(e,t);return i&&(i.item.tabIndex=-1),i}function a(e,t=p){for(let i=0;i<e.length;i++){const n=e[i];if(0===n.tabIndex&&t(n))return{item:n,index:i}}return null}function s(e,t=p){for(const i of e)if(t(i))return i;return null}function l(e,t=p){for(let i=e.length-1;i>=0;i--){const n=e[i];if(t(n))return n}return null}function c(e,t,i=p,r=!0){if(t){const n=function(e,t,i=p,n=!0){for(let r=1;r<e.length;r++){const o=(r+t)%e.length;if(o<t&&!n)return null;const a=e[o];if(i(a))return a}return e[t]?e[t]:null}(e,t.index,i,r);return n&&(n.tabIndex=0,n.focus()),n}return n(e,i)}function h(e,t,i=p,n=!0){if(t){const r=function(e,t,i=p,n=!0){for(let r=1;r<e.length;r++){const o=(t-r+e.length)%e.length;if(o>t&&!n)return null;const a=e[o];if(i(a))return a}return e[t]?e[t]:null}(e,t.index,i,n);return r&&(r.tabIndex=0,r.focus()),r}return r(e,i)}function d(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function u(){return new Event("request-activation",{bubbles:!0,composed:!0})}function p(e){return!e.disabled}},95192:function(e,t,i){i.d(t,{IU:function(){return c},Jt:function(){return s},Yd:function(){return n},hZ:function(){return l},y$:function(){return r}});i(44114),i(18111),i(7588),i(61701),i(3362),i(62953);function n(e){return new Promise((t,i)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>i(e.error)})}function r(e,t){let i;return(r,o)=>(()=>{if(i)return i;const r=indexedDB.open(e);return r.onupgradeneeded=()=>r.result.createObjectStore(t),i=n(r),i.then(e=>{e.onclose=()=>i=void 0},()=>{}),i})().then(e=>o(e.transaction(t,r).objectStore(t)))}let o;function a(){return o||(o=r("keyval-store","keyval")),o}function s(e,t=a()){return t("readonly",t=>n(t.get(e)))}function l(e,t,i=a()){return i("readwrite",i=>(i.put(t,e),n(i.transaction)))}function c(e=a()){return e("readwrite",e=>(e.clear(),n(e.transaction)))}},37540:function(e,t,i){i.d(t,{Kq:function(){return d}});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698),i(62953);var n=i(63937),r=i(42017);const o=(e,t)=>{const i=e._$AN;if(void 0===i)return!1;for(const r of i){var n;null!==(n=r._$AO)&&void 0!==n&&n.call(r,t,!1),o(r,t)}return!0},a=e=>{let t,i;do{var n;if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null===(n=i)||void 0===n?void 0:n.size))},s=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),h(t)}};function l(e){void 0!==this._$AN?(a(this),this._$AM=e,s(this)):this._$AM=e}function c(e,t=!1,i=0){const n=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(n))for(let s=i;s<n.length;s++)o(n[s],!1),a(n[s]);else null!=n&&(o(n,!1),a(n));else o(this,e)}const h=e=>{var t,i;e.type==r.OA.CHILD&&(null!==(t=e._$AP)&&void 0!==t||(e._$AP=c),null!==(i=e._$AQ)&&void 0!==i||(e._$AQ=l))};class d extends r.WL{_$AT(e,t,i){super._$AT(e,t,i),s(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),t&&(o(this,e),a(this))}setValue(e){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}}}]);