UNPKG

iobroker.lovelace

Version:

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

2 lines 11.5 kB
/*! For license information please see 68273.7d4778650c098048.js.LICENSE.txt */ export const __rspack_esm_id=68273;export const __rspack_esm_ids=[68273];export const __webpack_modules__={35370(e,t,r){var s=r(26198);e.exports=function(e,t,r){for(var i=0,a=arguments.length>2?r:s(t),o=new e(a);a>i;)o[i]=t[i++];return o}},77957(e,t,r){var s=r(76080),i=r(79504),a=r(47055),o=r(48981),n=r(56969),d=r(26198),c=r(2360),l=r(35370),u=Array,h=i([].push);e.exports=function(e,t,r,i){for(var f,p,v,m=o(e),b=a(m),g=s(t,r),w=c(null),x=d(b),y=0;x>y;y++)v=b[y],(p=n(g(v,y,m)))in w?h(w[p],v):w[p]=[v];if(i&&(f=i(m))!==u)for(p in w)w[p]=l(f,w[p]);return w}},46058(e,t,r){var s=r(46518),i=r(77957),a=r(6469);s({target:"Array",proto:!0},{group:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("group")},88696(e,t,r){r.d(t,{P:()=>a});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var s=r(37540),i=r(42017);class a{handleChanges(e){this.value=this.callback?.(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 o(this,e)}constructor(e,{target:t,config:r,callback:s,skipInitial:i}){this.t=new Set,this.o=!1,this.i=!1,this.h=e,null!==t&&this.t.add(t??e),this.l=r,this.o=i??this.o,this.callback=s,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 o=(0,i.u$)(class extends s.Kq{render(e,t){}update(e,[t,r]){this.controller=t,this.part=e,this.observe=r,!1===r?(t.unobserve(e.element),this.observing=!1):!1===this.observing&&(t.observe(e.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){!1!==this.observe&&!1===this.observing&&(this.controller?.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}})},75275(e,t,r){var s=r(62826),i=r(22441),a=r(5124),o=r(76482);const n=["focusin","focusout","pointerdown"];class d extends a.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){if(!e[c]){switch(e.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}e[c]=!0}}onControlChange(e,t){if(!a.S$)for(const r of n)e?.removeEventListener(r,this),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 o.i(this,this.onControlChange.bind(this))}}(0,s.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],d.prototype,"visible",void 0),(0,s.Cg)([(0,i.MZ)({type:Boolean,reflect:!0})],d.prototype,"inward",void 0);const c=Symbol("handledByFocusRing"),l=a.AH`: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 u=class extends d{};u.styles=[l],u=(0,s.Cg)([(0,i.EM)("md-focus-ring")],u)},1024(e,t,r){r.d(t,{n:()=>c});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var s=r(5124);r(74423);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"],a=i.map(n);function o(e){return a.includes(e)}function n(e){return e.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}const d=Symbol("privateIgnoreAttributeChangesFor");function c(e){var t;if(s.S$)return e;class r extends e{attributeChangedCallback(e,t,r){if(!o(e))return void super.attributeChangedCallback(e,t,r);if(this[d].has(e))return;this[d].add(e),this.removeAttribute(e),this[d].delete(e);const s=u(e);null===r?delete this.dataset[s]:this.dataset[s]=r,this.requestUpdate(u(e),t)}getAttribute(e){return o(e)?super.getAttribute(l(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),o(e)&&(super.removeAttribute(l(e)),this.requestUpdate())}constructor(){super(...arguments),this[t]=new Set}}return t=d,function(e){for(const t of i){const r=n(t),s=l(r),i=u(r);e.createProperty(t,{attribute:r,noAccessor:!0}),e.createProperty(Symbol(s),{attribute:s,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(e){const r=this.dataset[i]??null;e!==r&&(null===e?delete this.dataset[i]:this.dataset[i]=e,this.requestUpdate(t,r))}})}}(r),r}function l(e){return`data-${e}`}function u(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}},71970(e,t,r){var s=r(62826),i=r(22441),a=r(91382),o=r(96245);let n=class extends a.n{};n.styles=[o.R],n=(0,s.Cg)([(0,i.EM)("md-ripple")],n)},95192(e,t,r){r.d(t,{IU:()=>c,Jt:()=>n,Yd:()=>s,hZ:()=>d,y$:()=>i});r(44114),r(18111),r(7588),r(61701);function s(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function i(e,t){let r;return(i,a)=>(()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=s(i),r.then(e=>{e.onclose=()=>r=void 0},()=>{}),r})().then(e=>a(e.transaction(t,i).objectStore(t)))}let a;function o(){return a||(a=i("keyval-store","keyval")),a}function n(e,t=o()){return t("readonly",t=>s(t.get(e)))}function d(e,t,r=o()){return r("readwrite",r=>(r.put(t,e),s(r.transaction)))}function c(e=o()){return e("readwrite",e=>(e.clear(),s(e.transaction)))}},37540(e,t,r){r.d(t,{Kq:()=>u});r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var s=r(63937),i=r(42017);const a=(e,t)=>{const r=e._$AN;if(void 0===r)return!1;for(const e of r)e._$AO?.(t,!1),a(e,t);return!0},o=e=>{let t,r;do{if(void 0===(t=e._$AM))break;r=t._$AN,r.delete(e),e=t}while(0===r?.size)},n=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),l(t)}};function d(e){void 0!==this._$AN?(o(this),this._$AM=e,n(this)):this._$AM=e}function c(e,t=!1,r=0){const s=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(s))for(let e=r;e<s.length;e++)a(s[e],!1),o(s[e]);else null!=s&&(a(s,!1),o(s));else a(this,e)}const l=e=>{e.type==i.OA.CHILD&&(e._$AP??=c,e._$AQ??=d)};class u extends i.WL{_$AT(e,t,r){super._$AT(e,t,r),n(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(a(this,e),o(this))}setValue(e){if((0,s.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}}},75751(e,t,r){r.d(t,{u:()=>n});r(45367),r(92731);var s=r(5055),i=r(42017),a=r(63937);const o=(e,t,r)=>{const s=new Map;for(let i=t;i<=r;i++)s.set(e[i],i);return s},n=(0,i.u$)(class extends i.WL{dt(e,t,r){let s;void 0===r?r=t:void 0!==t&&(s=t);const i=[],a=[];let o=0;for(const t of e)i[o]=s?s(t,o):o,a[o]=r(t,o),o++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,i]){const n=(0,a.cN)(e),{values:d,keys:c}=this.dt(t,r,i);if(!Array.isArray(n))return this.ut=c,d;const l=this.ut??=[],u=[];let h,f,p=0,v=n.length-1,m=0,b=d.length-1;for(;p<=v&&m<=b;)if(null===n[p])p++;else if(null===n[v])v--;else if(l[p]===c[m])u[m]=(0,a.lx)(n[p],d[m]),p++,m++;else if(l[v]===c[b])u[b]=(0,a.lx)(n[v],d[b]),v--,b--;else if(l[p]===c[b])u[b]=(0,a.lx)(n[p],d[b]),(0,a.Dx)(e,u[b+1],n[p]),p++,b--;else if(l[v]===c[m])u[m]=(0,a.lx)(n[v],d[m]),(0,a.Dx)(e,n[p],n[v]),v--,m++;else if(void 0===h&&(h=o(c,m,b),f=o(l,p,v)),h.has(l[p]))if(h.has(l[v])){const t=f.get(c[m]),r=void 0!==t?n[t]:null;if(null===r){const t=(0,a.Dx)(e,n[p]);(0,a.lx)(t,d[m]),u[m]=t}else u[m]=(0,a.lx)(r,d[m]),(0,a.Dx)(e,n[p],r),n[t]=null;m++}else(0,a.KO)(n[v]),v--;else(0,a.KO)(n[p]),p++;for(;m<=b;){const t=(0,a.Dx)(e,u[b+1]);(0,a.lx)(t,d[m]),u[m++]=t}for(;p<=v;){const e=n[p++];null!==e&&(0,a.KO)(e)}return this.ut=c,(0,a.mY)(e,u),s.c0}constructor(e){if(super(e),e.type!==i.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})}};