iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 9.39 kB
JavaScript
/*! For license information please see 7037.05ae803888e607a7.js.LICENSE.txt */
export const __webpack_ids__=["7037"];export const __webpack_modules__={78344:function(t){var r=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new r("Argument is not a string")}},87265:function(t,r,e){var n=e(61896),i=String,a=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new a(i(t)+" is not an object or undefined")}},87038:function(t,r,e){var n=e(59069),i=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new i("Argument is not an Uint8Array")}},15419:function(t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=r+"+/",n=r+"-_",i=function(t){for(var r={},e=0;e<64;e++)r[t.charAt(e)]=e;return r};t.exports={i2c:e,c2i:i(e),i2cUrl:n,c2iUrl:i(n)}},93474:function(t){var r=TypeError;t.exports=function(t){var e=t&&t.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new r("Incorrect `alphabet` option")}},30338:function(t,r,e){var n=e(97934),i=e(71998),a=e(4576),o=e(36760);t.exports=function(t,r){r&&"string"==typeof t||i(t);var e=o(t);return a(i(void 0!==e?n(e,t):t))}},47057:function(t,r,e){var n=e(1569),i=e(72878),a=e(87265),o=e(78344),s=e(39129),c=e(15419),u=e(93474),f=e(38511),l=c.c2i,h=c.c2iUrl,p=n.SyntaxError,g=n.TypeError,d=i("".charAt),v=function(t,r){for(var e=t.length;r<e;r++){var n=d(t,r);if(" "!==n&&"\t"!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return r},y=function(t,r,e){var n=t.length;n<4&&(t+=2===n?"AA":"A");var i=(r[d(t,0)]<<18)+(r[d(t,1)]<<12)+(r[d(t,2)]<<6)+r[d(t,3)],a=[i>>16&255,i>>8&255,255&i];if(2===n){if(e&&0!==a[1])throw new p("Extra bits");return[a[0]]}if(3===n){if(e&&0!==a[2])throw new p("Extra bits");return[a[0],a[1]]}return a},w=function(t,r,e){for(var n=r.length,i=0;i<n;i++)t[e+i]=r[i];return e+n};t.exports=function(t,r,e,n){o(t),a(r);var i="base64"===u(r)?l:h,c=r?r.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new g("Incorrect `lastChunkHandling` option");e&&f(e.buffer);var b=e||[],m=0,E=0,A="",x=0;if(n)for(;;){if((x=v(t,x))===t.length){if(A.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new p("Missing padding");if(1===A.length)throw new p("Malformed padding: exactly one additional character");m=w(b,y(A,i,!1),m)}E=t.length;break}var k=d(t,x);if(++x,"="===k){if(A.length<2)throw new p("Padding is too early");if(x=v(t,x),2===A.length){if(x===t.length){if("stop-before-partial"===c)break;throw new p("Malformed padding: only one =")}"="===d(t,x)&&(++x,x=v(t,x))}if(x<t.length)throw new p("Unexpected character after padding");m=w(b,y(A,i,"strict"===c),m),E=t.length;break}if(!s(i,k))throw new p("Unexpected character");var S=n-m;if(1===S&&2===A.length||2===S&&3===A.length)break;if(4===(A+=k).length&&(m=w(b,y(A,i,!1),m),A="",E=x,m===n))break}return{bytes:b,read:E,written:m}}},35303:function(t,r,e){var n=e(1569),i=e(72878),a=n.Uint8Array,o=n.SyntaxError,s=n.parseInt,c=Math.min,u=/[^\da-f]/i,f=i(u.exec),l=i("".slice);t.exports=function(t,r){var e=t.length;if(e%2!=0)throw new o("String should be an even number of characters");for(var n=r?c(r.length,e/2):e/2,i=r||new a(n),h=0,p=0;p<n;){var g=l(t,h,h+=2);if(f(u,g))throw new o("String should only contain hex characters");i[p++]=s(g,16)}return{bytes:i,read:h}}},25677:function(t,r,e){var n=e(40810),i=e(97934),a=e(63983),o=e(71998),s=e(4576),c=e(30338),u=e(79995),f=e(14181),l=e(92288),h=u((function(){for(var t,r,e=this.iterator,n=this.mapper;;){if(r=this.inner)try{if(!(t=o(i(r.next,r.iterator))).done)return t.value;this.inner=null}catch(t){f(e,"throw",t)}if(t=o(i(this.next,e)),this.done=!!t.done)return;try{this.inner=c(n(t.value,this.counter++),!1)}catch(t){f(e,"throw",t)}}}));n({target:"Iterator",proto:!0,real:!0,forced:l},{flatMap:function(t){return o(this),a(t),new h(s(this),{mapper:t,inner:null})}})},21917:function(t,r,e){var n=e(40810),i=e(1569),a=e(47057),o=e(87038);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromBase64:function(t){o(this);var r=a(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:r.read,written:r.written}}})},56193:function(t,r,e){var n=e(40810),i=e(1569),a=e(78344),o=e(87038),s=e(38511),c=e(35303);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(t){o(this),a(t),s(this.buffer);var r=c(t,this).read;return{read:r,written:r/2}}})},25020:function(t,r,e){var n=e(40810),i=e(1569),a=e(72878),o=e(87265),s=e(87038),c=e(38511),u=e(15419),f=e(93474),l=u.i2c,h=u.i2cUrl,p=a("".charAt);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),r=arguments.length?o(arguments[0]):void 0,e="base64"===f(r)?l:h,n=!!r&&!!r.omitPadding;c(this.buffer);for(var i,a="",u=0,g=t.length,d=function(t){return p(e,i>>6*t&63)};u+2<g;u+=3)i=(t[u]<<16)+(t[u+1]<<8)+t[u+2],a+=d(3)+d(2)+d(1)+d(0);return u+2===g?(i=(t[u]<<16)+(t[u+1]<<8),a+=d(3)+d(2)+d(1)+(n?"":"=")):u+1===g&&(i=t[u]<<16,a+=d(3)+d(2)+(n?"":"==")),a}})},86913:function(t,r,e){var n=e(40810),i=e(1569),a=e(72878),o=e(87038),s=e(38511),c=a(1..toString);i.Uint8Array&&n({target:"Uint8Array",proto:!0},{toHex:function(){o(this),s(this.buffer);for(var t="",r=0,e=this.length;r<e;r++){var n=c(this[r],16);t+=1===n.length?"0"+n:n}return t}})},75351:function(t,r,e){e.d(r,{Ud:()=>h});e(9359),e(70104),e(48136);const n=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),c=t=>"object"==typeof t&&null!==t||"function"==typeof t,u=new Map([["proxy",{canHandle:t=>c(t)&&t[n],serialize(t){const{port1:r,port2:e}=new MessageChannel;return f(t,r),[e,[e]]},deserialize:t=>(t.start(),h(t))}],["throw",{canHandle:t=>c(t)&&s in t,serialize({value:t}){let r;return r=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[r,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function f(t,r=globalThis,e=["*"]){r.addEventListener("message",(function i(a){if(!a||!a.data)return;if(!function(t,r){for(const e of t){if(r===e||"*"===e)return!0;if(e instanceof RegExp&&e.test(r))return!0}return!1}(e,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:c,type:u,path:h}=Object.assign({path:[]},a.data),p=(a.data.argumentList||[]).map(E);let g;try{const r=h.slice(0,-1).reduce(((t,r)=>t[r]),t),e=h.reduce(((t,r)=>t[r]),t);switch(u){case"GET":g=e;break;case"SET":r[h.slice(-1)[0]]=E(a.data.value),g=!0;break;case"APPLY":g=e.apply(r,p);break;case"CONSTRUCT":g=function(t){return Object.assign(t,{[n]:!0})}(new e(...p));break;case"ENDPOINT":{const{port1:r,port2:e}=new MessageChannel;f(t,e),g=function(t,r){return b.set(t,r),t}(r,[r])}break;case"RELEASE":g=void 0;break;default:return}}catch(t){g={value:t,[s]:0}}Promise.resolve(g).catch((t=>({value:t,[s]:0}))).then((e=>{const[n,a]=m(e);r.postMessage(Object.assign(Object.assign({},n),{id:c}),a),"RELEASE"===u&&(r.removeEventListener("message",i),l(r),o in t&&"function"==typeof t[o]&&t[o]())})).catch((t=>{const[e,n]=m({value:new TypeError("Unserializable return value"),[s]:0});r.postMessage(Object.assign(Object.assign({},e),{id:c}),n)}))})),r.start&&r.start()}function l(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function h(t,r){const e=new Map;return t.addEventListener("message",(function(t){const{data:r}=t;if(!r||!r.id)return;const n=e.get(r.id);if(n)try{n(r)}finally{e.delete(r.id)}})),y(t,e,[],r)}function p(t){if(t)throw new Error("Proxy has been released and is not useable")}function g(t){return A(t,new Map,{type:"RELEASE"}).then((()=>{l(t)}))}const d=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const r=(d.get(t)||0)-1;d.set(t,r),0===r&&g(t)}));function y(t,r,e=[],n=function(){}){let o=!1;const s=new Proxy(n,{get(n,i){if(p(o),i===a)return()=>{!function(t){v&&v.unregister(t)}(s),g(t),r.clear(),o=!0};if("then"===i){if(0===e.length)return{then:()=>s};const n=A(t,r,{type:"GET",path:e.map((t=>t.toString()))}).then(E);return n.then.bind(n)}return y(t,r,[...e,i])},set(n,i,a){p(o);const[s,c]=m(a);return A(t,r,{type:"SET",path:[...e,i].map((t=>t.toString())),value:s},c).then(E)},apply(n,a,s){p(o);const c=e[e.length-1];if(c===i)return A(t,r,{type:"ENDPOINT"}).then(E);if("bind"===c)return y(t,r,e.slice(0,-1));const[u,f]=w(s);return A(t,r,{type:"APPLY",path:e.map((t=>t.toString())),argumentList:u},f).then(E)},construct(n,i){p(o);const[a,s]=w(i);return A(t,r,{type:"CONSTRUCT",path:e.map((t=>t.toString())),argumentList:a},s).then(E)}});return function(t,r){const e=(d.get(r)||0)+1;d.set(r,e),v&&v.register(t,r,t)}(s,t),s}function w(t){const r=t.map(m);return[r.map((t=>t[0])),(e=r.map((t=>t[1])),Array.prototype.concat.apply([],e))];var e}const b=new WeakMap;function m(t){for(const[r,e]of u)if(e.canHandle(t)){const[n,i]=e.serialize(t);return[{type:"HANDLER",name:r,value:n},i]}return[{type:"RAW",value:t},b.get(t)||[]]}function E(t){switch(t.type){case"HANDLER":return u.get(t.name).deserialize(t.value);case"RAW":return t.value}}function A(t,r,e,n){return new Promise((i=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");r.set(a,i),t.start&&t.start(),t.postMessage(Object.assign({id:a},e),n)}))}}};
//# sourceMappingURL=7037.05ae803888e607a7.js.map