UNPKG

iobroker.lovelace

Version:

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

5 lines 19.5 kB
/*! For license information please see 83462.be91a0c0c8d11e6a.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[83462],{36312:function(e,t,n){n.d(t,{x:function(){return o}});n(74423);const o=(e,t)=>e&&e.components.includes(t)},62384:function(e,t,n){n.d(t,{v:function(){return o}});n(74423),n(62953);const o=(e,t,n,o)=>{const[i,r,a]=e.split(".",3);return Number(i)>t||Number(i)===t&&(void 0===o?Number(r)>=n:Number(r)>n)||void 0!==o&&Number(i)===t&&Number(r)===n&&Number(a)>=o}},46190:function(e,t,n){n.d(t,{FD:function(){return l},Is:function(){return o},JF:function(){return i},gt:function(){return r},jj:function(){return s},oL:function(){return u},yd:function(){return a}});n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953);const o=["alert","button","climate","cover","configurator","event","input_button","input_select","input_number","input_text","humidifier","lawn_mower","lock","media_player","number","scene","script","select","timer","text","update","vacuum","water_heater"],i=["sensor","binary_sensor","calendar","camera","device_tracker","image","weather"],r=["assist_satellite","conversation","stt","tts"],a=["automation","button","cover","date","datetime","fan","group","humidifier","input_boolean","input_button","input_datetime","input_number","input_select","input_text","light","lock","media_player","number","scene","script","select","switch","text","time","vacuum","valve"],s=["closed","locked","off"],l=new Set(["fan","input_boolean","light","switch","group","automation","humidifier","valve"]),u=new Set(["camera","image","media_player"])},7553:function(e,t,n){n.d(t,{h:function(){return i}});n(16280),n(3362),n(62953);class o extends Error{constructor(e,...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="TimeoutError",this.timeout=e,this.message=`Timed out in ${e} ms.`}}const i=(e,t)=>{const n=new Promise((t,n)=>{setTimeout(()=>{n(new o(e))},e)});return Promise.race([t,n])}},52763:function(e,t,n){n.a(e,async function(e,o){try{n.d(t,{U:function(){return A}});n(74423),n(18111),n(7588),n(61701),n(3362),n(62953);var i=n(40445),r=n(5124),a=n(67576),s=n(69558),l=n(1087),u=n(38962),c=(n(11399),e([u]));u=(c.then?(await c)():c)[0];let d,h,p,m,g,f,b,v,y,_=e=>e;const $={boolean:()=>n.e(81347).then(n.bind(n,46990)),constant:()=>n.e(65733).then(n.bind(n,90820)),float:()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(51868),n.e(62574),n.e(16113)]).then(n.bind(n,20676)),grid:()=>n.e(60761).then(n.bind(n,70208)),expandable:()=>n.e(45001).then(n.bind(n,40003)),integer:()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(21543),n.e(86712),n.e(62574),n.e(12145)]).then(n.bind(n,20036)),multi_select:()=>Promise.all([n.e(72850),n.e(39763),n.e(46095),n.e(34995),n.e(80131),n.e(58303),n.e(71739),n.e(78219)]).then(n.bind(n,36182)),positive_time_period_dict:()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(46095),n.e(34995),n.e(67943),n.e(62574),n.e(16508),n.e(21486)]).then(n.bind(n,89422)),select:()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(46095),n.e(7305),n.e(92769),n.e(34995),n.e(3283),n.e(81034),n.e(99463),n.e(62574),n.e(26092),n.e(39005),n.e(35873),n.e(63577)]).then(n.bind(n,63804)),string:()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(84725),n.e(62574),n.e(6762)]).then(n.bind(n,54753)),optional_actions:()=>Promise.all([n.e(72850),n.e(39763),n.e(34995),n.e(67395)]).then(n.bind(n,8456))},C=(e,t)=>e?!t.name||t.flatten?e:e[t.name]:void 0,M=(e,t)=>e&&t.name?e[t.name]:null,w=(e,t)=>e&&t.name?e[t.name]:null;class A extends r.WF{getFormProperties(){return{}}reportValidity(){const e=this._root;if(!e)return!0;const t=[...e.children].filter(e=>"ha-alert"!==e.localName);let n,o=!0;var i,r;(this.schema.forEach((e,i)=>{var r;const a=t[i];if(!a)return;let s=!0;if("reportValidity"in a&&"function"==typeof a.reportValidity)s=a.reportValidity();else if(e.required&&(!("type"in e)||!["boolean","constant"].includes(null!==(r=e.type)&&void 0!==r?r:""))&&(!("selector"in e)||!("boolean"in e.selector)&&!("constant"in e.selector))){const t=C(this.data,e);s=null!=t&&""!==t}s||(o=!1,n||(n=a))}),n)&&(null===(i=(r=n).focus)||void 0===i||i.call(r));return o}willUpdate(e){e.has("schema")&&this.schema&&this.schema.forEach(e=>{var t;"selector"in e||null===(t=$[e.type])||void 0===t||t.call($)})}render(){return(0,r.qy)(d||(d=_` <div class="root" part="root"> ${0} ${0} </div> `),this.error&&this.error.base?(0,r.qy)(h||(h=_` <ha-alert alert-type="error"> ${0} </ha-alert> `),this._computeError(this.error.base,this.schema)):"",this.schema.map(e=>{var t;const n=M(this.error,e),o=w(this.warning,e);return(0,r.qy)(p||(p=_` ${0} ${0} `),n?(0,r.qy)(m||(m=_` <ha-alert own-margin alert-type="error"> ${0} </ha-alert> `),this._computeError(n,e)):o?(0,r.qy)(g||(g=_` <ha-alert own-margin alert-type="warning"> ${0} </ha-alert> `),this._computeWarning(o,e)):"","selector"in e?(0,r.qy)(f||(f=_`<ha-selector .schema="${0}" .hass="${0}" .narrow="${0}" .name="${0}" .selector="${0}" .value="${0}" .label="${0}" .disabled="${0}" .placeholder="${0}" .helper="${0}" .localizeValue="${0}" .required="${0}" .context="${0}"></ha-selector>`),e,this.hass,this.narrow,e.name,e.selector,C(this.data,e),this._computeLabel(e,this.data),e.disabled||this.disabled||!1,e.required?void 0:e.default,this._computeHelper(e),this.localizeValue,e.required||!1,this._generateContext(e)):(0,s._)(this.fieldElementName(e.type),Object.assign({schema:e,data:C(this.data,e),label:this._computeLabel(e,this.data),helper:this._computeHelper(e),disabled:this.disabled||e.disabled||!1,hass:this.hass,localize:null===(t=this.hass)||void 0===t?void 0:t.localize,computeLabel:this.computeLabel,computeHelper:this.computeHelper,localizeValue:this.localizeValue,context:this._generateContext(e)},this.getFormProperties())))}))}fieldElementName(e){return`ha-form-${e}`}_generateContext(e){if(!e.context&&!this.context)return;const t=Object.assign({},this.context);if(e.context)for(const[n,o]of Object.entries(e.context))t[n]=this.data[o];return t}createRenderRoot(){const e=super.createRenderRoot();return this.addValueChangedListener(e),e}addValueChangedListener(e){e.addEventListener("value-changed",e=>{e.stopPropagation();const t=e.target.schema;if(e.target===this)return;const n=!t.name||"flatten"in t&&t.flatten?e.detail.value:{[t.name]:e.detail.value};this.data=Object.assign(Object.assign({},this.data),n),(0,l.r)(this,"value-changed",{value:this.data})})}_computeLabel(e,t){return this.computeLabel?this.computeLabel(e,t):e?e.name:""}_computeHelper(e){return this.computeHelper?this.computeHelper(e):""}_computeError(e,t){return Array.isArray(e)?(0,r.qy)(b||(b=_`<ul> ${0} </ul>`),e.map(e=>(0,r.qy)(v||(v=_`<li> ${0} </li>`),this.computeError?this.computeError(e,t):e))):this.computeError?this.computeError(e,t):e}_computeWarning(e,t){return this.computeWarning?this.computeWarning(e,t):e}constructor(...e){super(...e),this.narrow=!1,this.disabled=!1}}A.shadowRootOptions={mode:"open",delegatesFocus:!0},A.styles=(0,r.AH)(y||(y=_`.root>*{display:block}.root>:not([own-margin]):not(:last-child){margin-bottom:24px}ha-alert[own-margin]{margin-bottom:4px}`)),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],A.prototype,"narrow",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"data",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"schema",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"error",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"warning",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],A.prototype,"disabled",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"computeError",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"computeWarning",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"computeLabel",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"computeHelper",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"localizeValue",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],A.prototype,"context",void 0),(0,i.Cg)([(0,a.P)(".root")],A.prototype,"_root",void 0),A=(0,i.Cg)([(0,a.EM)("ha-form")],A),o()}catch(d){o(d)}})},3449:function(e,t,n){n(62953);var o=n(40445),i=n(5124),r=n(67576);let a,s,l=e=>e;class u extends i.WF{render(){return(0,i.qy)(a||(a=l`<slot></slot>`))}constructor(...e){super(...e),this.disabled=!1}}u.styles=(0,i.AH)(s||(s=l`:host{display:block;color:var(--mdc-text-field-label-ink-color,rgba(0,0,0,.6));font-size:var(--ha-font-size-s);padding-left:16px;padding-right:16px;padding-inline-start:16px;padding-inline-end:16px;letter-spacing:var( --mdc-typography-caption-letter-spacing, .0333333333em );line-height:normal}:host([disabled]){color:var(--mdc-text-field-disabled-ink-color,rgba(0,0,0,.6))}`)),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),u=(0,o.Cg)([(0,r.EM)("ha-input-helper-text")],u)},21160:function(e,t,n){n.a(e,async function(e,o){try{n.r(t),n.d(t,{HaLocationSelector:function(){return g}});n(62953);var i=n(40445),r=n(5124),a=n(67576),s=n(22786),l=n(1087),u=n(99257),c=n(52763),d=e([u,c]);[u,c]=d.then?(await d)():d;let h,p,m=e=>e;class g extends r.WF{willUpdate(){var e;this.value||(this.value={latitude:this.hass.config.latitude,longitude:this.hass.config.longitude,radius:null!==(e=this.selector.location)&&void 0!==e&&e.radius?1e3:void 0})}render(){var e,t;return(0,r.qy)(h||(h=m` <p>${0}</p> <ha-locations-editor class="flex" .hass="${0}" .helper="${0}" .locations="${0}" @location-updated="${0}" @radius-updated="${0}" pin-on-click></ha-locations-editor> <ha-form .hass="${0}" .schema="${0}" .data="${0}" .computeLabel="${0}" .disabled="${0}" @value-changed="${0}"></ha-form> `),this.label?this.label:"",this.hass,this.helper,this._location(this.selector,this.value),this._locationChanged,this._radiusChanged,this.hass,this._schema(this.hass.localize,null===(e=this.selector.location)||void 0===e?void 0:e.radius,null===(t=this.selector.location)||void 0===t?void 0:t.radius_readonly),this.value,this._computeLabel,this.disabled,this._valueChanged)}_locationChanged(e){const[t,n]=e.detail.location;(0,l.r)(this,"value-changed",{value:Object.assign(Object.assign({},this.value),{},{latitude:t,longitude:n})})}_radiusChanged(e){const t=Math.round(e.detail.radius);(0,l.r)(this,"value-changed",{value:Object.assign(Object.assign({},this.value),{},{radius:t})})}_valueChanged(e){var t,n;e.stopPropagation();const o=e.detail.value,i=Math.round(e.detail.value.radius);(0,l.r)(this,"value-changed",{value:Object.assign({latitude:o.latitude,longitude:o.longitude},null===(t=this.selector.location)||void 0===t||!t.radius||null!==(n=this.selector.location)&&void 0!==n&&n.radius_readonly?{}:{radius:i})})}constructor(...e){super(...e),this.disabled=!1,this._schema=(0,s.A)((e,t,n)=>[{name:"",type:"grid",schema:[{name:"latitude",required:!0,selector:{number:{step:"any",unit_of_measurement:"°"}}},{name:"longitude",required:!0,selector:{number:{step:"any",unit_of_measurement:"°"}}}]},...t?[{name:"radius",required:!0,default:1e3,disabled:!!n,selector:{number:{min:0,step:1,mode:"box",unit_of_measurement:e("ui.components.selectors.location.radius_meters")}}}]:[]]),this._location=(0,s.A)((e,t)=>{var n,o,i,r,a,s;const l=getComputedStyle(this),u=null!==(n=e.location)&&void 0!==n&&n.radius?l.getPropertyValue("--zone-radius-color")||l.getPropertyValue("--accent-color"):void 0;return[{id:"location",latitude:!t||isNaN(t.latitude)?this.hass.config.latitude:t.latitude,longitude:!t||isNaN(t.longitude)?this.hass.config.longitude:t.longitude,radius:null!==(o=e.location)&&void 0!==o&&o.radius?(null==t?void 0:t.radius)||1e3:void 0,radius_color:u,icon:null!==(i=e.location)&&void 0!==i&&i.icon||null!==(r=e.location)&&void 0!==r&&r.radius?"mdi:map-marker-radius":"mdi:map-marker",location_editable:!0,radius_editable:!(null===(a=e.location)||void 0===a||!a.radius||null!==(s=e.location)&&void 0!==s&&s.radius_readonly)}]}),this._computeLabel=e=>e.name?this.hass.localize(`ui.components.selectors.location.${e.name}`):""}}g.styles=(0,r.AH)(p||(p=m`ha-locations-editor{display:block;height:400px;margin-bottom:16px}p{margin-top:0}`)),(0,i.Cg)([(0,a.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,i.Cg)([(0,a.MZ)({attribute:!1})],g.prototype,"selector",void 0),(0,i.Cg)([(0,a.MZ)({type:Object})],g.prototype,"value",void 0),(0,i.Cg)([(0,a.MZ)()],g.prototype,"label",void 0),(0,i.Cg)([(0,a.MZ)()],g.prototype,"helper",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],g.prototype,"disabled",void 0),g=(0,i.Cg)([(0,a.EM)("ha-selector-location")],g),o()}catch(h){o(h)}})},87225:function(e,t,n){n.d(t,{GS:function(){return r},I8:function(){return s},YQ:function(){return d},bn:function(){return u},fg:function(){return l},oW:function(){return a},ob:function(){return c}});n(74423);var o=n(71727),i=n(68246);const r=[{groups:{dynamicGroups:{},time_location:{icon:"M15,12H16.5V16.25L19.36,17.94L18.61,19.16L15,17V12M23,16A7,7 0 0,1 16,23C13,23 10.4,21.08 9.42,18.4L8,17.9L2.66,19.97L2.5,20A0.5,0.5 0 0,1 2,19.5V4.38C2,4.15 2.15,3.97 2.36,3.9L8,2L14,4.1L19.34,2H19.5A0.5,0.5 0 0,1 20,2.5V10.25C21.81,11.5 23,13.62 23,16M9,16C9,12.83 11.11,10.15 14,9.29V6.11L8,4V15.89L9,16.24C9,16.16 9,16.08 9,16M16,11A5,5 0 0,0 11,16A5,5 0 0,0 16,21A5,5 0 0,0 21,16A5,5 0 0,0 16,11Z",members:{sun:{},time:{},zone:{}}},helpers:{},template:{},trigger:{},other:{}}},{titleKey:"ui.panel.config.automation.editor.conditions.groups.generic.label",generic:!0,groups:{device:{},entity:{icon:"M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z",members:{state:{},numeric_state:{}}}}},{titleKey:"ui.panel.config.automation.editor.conditions.groups.custom_integrations.label",groups:{customDynamicGroups:{}}}],a={and:{},or:{},not:{}},s=["and","or","not"],l=["ha-automation-condition-and","ha-automation-condition-not","ha-automation-condition-or"],u=(e,t)=>e.connection.subscribeMessage(t,{type:"condition_platforms/subscribe"}),c=e=>e.includes(".")?(0,o.m)(e):e,d=e=>e.includes(".")?(0,i.Y)(e):"_"},48250:function(e,t,n){n.d(t,{Bp:function(){return i},aI:function(){return o},gg:function(){return l},oT:function(){return r},wE:function(){return a},x0:function(){return s}});n(3362);const o=async(e,t)=>(await e.sendMessagePromise({type:"frontend/get_user_data",key:t})).value,i=async(e,t,n)=>e.sendMessagePromise({type:"frontend/set_user_data",key:t,value:n}),r=(e,t,n)=>e.subscribeMessage(n,{type:"frontend/subscribe_user_data",key:t}),a=async(e,t)=>(await e.sendMessagePromise({type:"frontend/get_system_data",key:t})).value,s=async(e,t,n)=>e.sendMessagePromise({type:"frontend/set_system_data",key:t,value:n}),l=(e,t,n)=>e.subscribeMessage(n,{type:"frontend/subscribe_system_data",key:t})},46927:function(e,t,n){n.d(t,{$W:function(){return c},Hg:function(){return r},Wj:function(){return a},Yk:function(){return d},jG:function(){return i},mo:function(){return u},ow:function(){return s},zt:function(){return l}});n(3362);var o=n(48250),i=function(e){return e.language="language",e.system="system",e.comma_decimal="comma_decimal",e.decimal_comma="decimal_comma",e.quote_decimal="quote_decimal",e.space_comma="space_comma",e.none="none",e}({}),r=function(e){return e.language="language",e.system="system",e.am_pm="12",e.twenty_four="24",e}({}),a=function(e){return e.local="local",e.server="server",e}({}),s=function(e){return e.language="language",e.system="system",e.DMY="DMY",e.MDY="MDY",e.YMD="YMD",e}({}),l=function(e){return e.language="language",e.monday="monday",e.tuesday="tuesday",e.wednesday="wednesday",e.thursday="thursday",e.friday="friday",e.saturday="saturday",e.sunday="sunday",e}({});const u=(e,t)=>(0,o.oT)(e.connection,"language",t),c=(e,t)=>(0,o.Bp)(e.connection,"language",t),d=async(e,t,n,o,i)=>(await e.callWS({type:"frontend/get_translations",language:t,category:n,integration:o,config_flow:i})).resources},65063:function(e,t,n){n.d(t,{an:function(){return l},dk:function(){return s},showAlertDialog:function(){return a}});n(3362),n(62953);var o=n(1087);const i=()=>Promise.all([n.e(72850),n.e(39763),n.e(32450),n.e(29962),n.e(62574),n.e(960)]).then(n.bind(n,26683)),r=(e,t,n)=>new Promise(r=>{const a=t.cancel,s=t.confirm;(0,o.r)(e,"show-dialog",{dialogTag:"dialog-box",dialogImport:i,dialogParams:Object.assign(Object.assign(Object.assign({},t),n),{},{cancel:()=>{r(!(null==n||!n.prompt)&&null),a&&a()},confirm:e=>{r(null==n||!n.prompt||e),s&&s(e)}})})}),a=(e,t)=>r(e,t),s=(e,t)=>r(e,t,{confirmation:!0}),l=(e,t)=>r(e,t,{prompt:!0})},69235:function(e,t,n){n.a(e,async function(e,t){try{n(3362),n(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await n.e(71055).then(n.bind(n,52370))).default),t()}catch(o){t(o)}},1)},37619:function(e,t,n){n.d(t,{X:function(){return r},s:function(){return i}});n(69112),n(33110);let o=!1;const i=e=>{o=e},r=(e,t)=>{const n=e.sendMessagePromise(t);return o&&console.log(`⬆️ Sent #${t.id}`,t),o&&n.then(e=>console.log(`⬇️ Received #${t.id}`,e&&"object"==typeof e?JSON.parse(JSON.stringify(e)):e),e=>console.error(`❌ Error #${t.id}`,e)),n}},35370:function(e,t,n){var o=n(26198);e.exports=function(e,t,n){for(var i=0,r=arguments.length>2?n:o(t),a=new e(r);r>i;)a[i]=t[i++];return a}},95192:function(e,t,n){n.d(t,{IU:function(){return u},Jt:function(){return s},Yd:function(){return o},hZ:function(){return l},y$:function(){return i}});n(44114),n(18111),n(7588),n(61701),n(3362),n(62953);function o(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function i(e,t){let n;return(i,r)=>(()=>{if(n)return n;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),n=o(i),n.then(e=>{e.onclose=()=>n=void 0},()=>{}),n})().then(e=>r(e.transaction(t,i).objectStore(t)))}let r;function a(){return r||(r=i("keyval-store","keyval")),r}function s(e,t=a()){return t("readonly",t=>o(t.get(e)))}function l(e,t,n=a()){return n("readwrite",n=>(n.put(t,e),o(n.transaction)))}function u(e=a()){return e("readwrite",e=>(e.clear(),o(e.transaction)))}},37540:function(e,t,n){n.d(t,{Kq:function(){return d}});n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953);var o=n(63937),i=n(42017);const r=(e,t)=>{const n=e._$AN;if(void 0===n)return!1;for(const i of n){var o;null!==(o=i._$AO)&&void 0!==o&&o.call(i,t,!1),r(i,t)}return!0},a=e=>{let t,n;do{var o;if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null===(o=n)||void 0===o?void 0:o.size))},s=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),c(t)}};function l(e){void 0!==this._$AN?(a(this),this._$AM=e,s(this)):this._$AM=e}function u(e,t=!1,n=0){const o=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(o))for(let s=n;s<o.length;s++)r(o[s],!1),a(o[s]);else null!=o&&(r(o,!1),a(o));else r(this,e)}const c=e=>{var t,n;e.type==i.OA.CHILD&&(null!==(t=e._$AP)&&void 0!==t||(e._$AP=u),null!==(n=e._$AQ)&&void 0!==n||(e._$AQ=l))};class d extends i.WL{_$AT(e,t,n){super._$AT(e,t,n),s(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,o;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),t&&(r(this,e),a(this))}setValue(e){if((0,o.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}}}}]);