UNPKG

iobroker.lovelace

Version:

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

2 lines 7.27 kB
/*! For license information please see 36970.bae5da262ef90bf3.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[36970],{35370:function(t,e,n){var s=n(26198);t.exports=function(t,e,n){for(var i=0,r=arguments.length>2?n:s(e),o=new t(r);r>i;)o[i]=e[i++];return o}},65722:function(t,e,n){n.d(e,{A:function(){return s}});n(89463),n(66412),n(16280),n(3362),n(62953);function s(t){var e,n,s,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,s=Symbol.iterator);r--;){if(n&&null!=(e=t[n]))return e.call(t);if(s&&null!=(e=t[s]))return new i(e.call(t));n="@@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 n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new i(t)}},31886:function(t,e,n){n.a(t,async function(t,s){try{n.d(e,{BB:function(){return i.B}});n(38744);var i=n(88775),r=n(49232),o=n(78713),c=n(53834),u=n(35204),h=n(5806),l=t([i,r,o,c,u,h]);[i,r,o,c,u,h]=l.then?(await l)():l,s()}catch(a){s(a)}})},95010:function(t,e,n){n.d(e,{q:function(){return i},N:function(){return r}});n(54743),n(11745),n(16573),n(78100),n(77936),n(21489),n(48140),n(75044),n(21903),n(91134),n(28845),n(373),n(37467),n(44732),n(79577),n(16632),n(34226),n(9486),n(20456);let s=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[t]];return e};function i(t,e,n){const s=t=>Object.is(t,-0)?0:t;return s(t<e?e:t>n?n:t)}function r(t=""){return`${t}${s()}`}},88696:function(t,e,n){n.a(t,async function(t,s){try{n.d(e,{P:function(){return u}});var i=n(69235),r=(n(3362),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953),n(37540)),o=n(42017),c=t([i]);i=(c.then?(await c)():c)[0];class u{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return h(this,t)}constructor(t,{target:e,config:n,callback:s,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=n,this.o=null!=i?i:this.o,this.callback=s,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const h=(0,o.u$)(class extends r.Kq{render(t,e){}update(t,[e,n]){this.controller=e,this.part=t,this.observe=n,!1===n?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});s()}catch(u){s(u)}})},95192:function(t,e,n){n.d(e,{IU:function(){return h},Jt:function(){return c},Yd:function(){return s},hZ:function(){return u},y$:function(){return i}});n(44114),n(18111),n(7588),n(61701),n(3362),n(62953);function s(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function i(t,e){let n;return(i,r)=>(()=>{if(n)return n;const i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),n=s(i),n.then(t=>{t.onclose=()=>n=void 0},()=>{}),n})().then(t=>r(t.transaction(e,i).objectStore(e)))}let r;function o(){return r||(r=i("keyval-store","keyval")),r}function c(t,e=o()){return e("readonly",e=>s(e.get(t)))}function u(t,e,n=o()){return n("readwrite",n=>(n.put(e,t),s(n.transaction)))}function h(t=o()){return t("readwrite",t=>(t.clear(),s(t.transaction)))}},37540:function(t,e,n){n.d(e,{Kq:function(){return a}});n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953);var s=n(63937),i=n(42017);const r=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const i of n){var s;null!==(s=i._$AO)&&void 0!==s&&s.call(i,e,!1),r(i,e)}return!0},o=t=>{let e,n;do{var s;if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null===(s=n)||void 0===s?void 0:s.size))},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),l(e)}};function u(t){void 0!==this._$AN?(o(this),this._$AM=t,c(this)):this._$AM=t}function h(t,e=!1,n=0){const s=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(s))for(let c=n;c<s.length;c++)r(s[c],!1),o(s[c]);else null!=s&&(r(s,!1),o(s));else r(this,t)}const l=t=>{var e,n;t.type==i.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=h),null!==(n=t._$AQ)&&void 0!==n||(t._$AQ=u))};class a extends i.WL{_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,s;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(r(this,t),o(this))}setValue(t){if((0,s.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}constructor(){super(...arguments),this._$AN=void 0}}},91450:function(t,e,n){n.d(e,{T:function(){return d}});n(18111),n(20116),n(3362),n(62953);var s=n(5055),i=n(63937),r=n(37540);n(65722);class o{disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}constructor(t){this.G=t}}class c{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}constructor(){this.Y=void 0,this.Z=void 0}}var u=n(42017);const h=t=>!(0,i.sO)(t)&&"function"==typeof t.then,l=1073741823;class a extends r.Kq{render(...t){var e;return null!==(e=t.find(t=>!h(t)))&&void 0!==e?e:s.c0}update(t,e){const n=this._$Cbt;let i=n.length;this._$Cbt=e;const r=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let s=0;s<e.length&&!(s>this._$Cwt);s++){const t=e[s];if(!h(t))return this._$Cwt=s,t;s<i&&t===n[s]||(this._$Cwt=l,i=0,Promise.resolve(t).then(async e=>{for(;o.get();)await o.get();const n=r.deref();if(void 0!==n){const s=n._$Cbt.indexOf(t);s>-1&&s<n._$Cwt&&(n._$Cwt=s,n.setValue(e))}}))}return s.c0}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}constructor(){super(...arguments),this._$Cwt=l,this._$Cbt=[],this._$CK=new o(this),this._$CX=new c}}const d=(0,u.u$)(a)}}]);