!function(e){function n(n){for(var t,o,c=n[0],i=n[1],a=0,l=[];a<c.length;a++)o=c[a],r[o]&&l.push(r[o][0]),r[o]=0;for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);for(u&&u(n);l.length;)l.shift()()}var t={},r={45:0};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var n=[],t=r[e];if(0!==t)if(t)n.push(t[2]);else{var c=new Promise(function(n,o){t=r[e]=[n,o]});n.push(t[2]=c);var i,a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+{8:"b735bdaf7bcec9a6f984",38:"77c97ac98c969a82fb87",39:"fa6e2129302a18a74df6",40:"359c11f59300de031fc5"}[e]+".chunk.js"}(e),i=function(n){u.onerror=u.onload=null,clearTimeout(l);var t=r[e];if(0!==t){if(t){var o=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,i=new Error("Loading chunk "+e+" failed.\n("+o+": "+c+")");i.type=o,i.request=c,t[1](i)}r[e]=void 0}};var l=setTimeout(function(){i({type:"timeout",target:u})},12e4);u.onerror=u.onload=i,a.appendChild(u)}return Promise.all(n)},o.m=e,o.c=t,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)o.d(t,r,function(n){return e[n]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/frontend_latest/",o.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],i=c.push.bind(c);c.push=n,c=c.slice();for(var a=0;a<c.length;a++)n(c[a]);var u=i;o(o.s=186)}({136:function(e,n,t){"use strict";function r(e,n){"setProperties"in e?e.setProperties(n):Object.keys(n).forEach(t=>{e[t]=n[t]})}t.d(n,"a",function(){return r})},137:function(e,n,t){"use strict";function r(e){const n="html_url"in e?`ha-panel-${e.name}`:e.name;return document.createElement(n)}t.d(n,"a",function(){return r})},138:function(e,n,t){"use strict";t.d(n,"a",function(){return c});var r=t(93);const o={};function c(e){if(e.html_url){const n=[t.e(39).then(t.bind(null,132))];return e.embed_iframe||n.push(Promise.all([t.e(8),t.e(38)]).then(t.bind(null,131))),Promise.all(n).then(([{importHrefPromise:n}])=>n(e.html_url))}return e.js_url?(e.js_url in o||(o[e.js_url]=Object(r.b)(e.js_url)),o[e.js_url]):Promise.reject("No valid url found in panel config.")}},186:function(e,n,t){"use strict";t.r(n);var r=t(93),o=t(138),c=t(137),i=t(136);const a="customElements"in window&&"import"in document.createElement("link")&&"content"in document.createElement("template");let u=null;window.loadES5Adapter=(()=>(u||(u=Promise.all([Object(r.b)("/frontend_latest/custom-elements-es5-adapter.js").catch(),t.e(40).then(t.bind(null,135))])),u));let l=null;function s(e){null!==l&&Object(i.a)(l,e)}function d(e,n){const t=document.createElement("style");t.innerHTML="body{margin:0}",document.head.appendChild(t);const i=e.config._panel_custom;let d=Promise.resolve();a||(d=d.then(()=>Object(r.b)("/static/webcomponents-bundle.js"))),d.then(()=>Object(o.a)(i)).then(()=>u||Promise.resolve()).then(()=>{const t=e=>window.parent.customPanel.fire(e.type,e.detail);(l=Object(c.a)(i)).addEventListener("hass-open-menu",t),l.addEventListener("hass-close-menu",t),l.addEventListener("location-changed",()=>window.parent.customPanel.navigate(window.location.pathname)),s(Object.assign({panel:e},n)),document.body.appendChild(l)},n=>{console.error(n,e),alert(`Unable to load the panel source: ${n}.`)})}document.addEventListener("DOMContentLoaded",()=>window.parent.customPanel.registerIframe(d,s),{once:!0})},93:function(e,n,t){"use strict";function r(e,n,t){return new Promise(function(r,o){const c=document.createElement(e);let i="src",a="body";switch(c.onload=(()=>r(n)),c.onerror=(()=>o(n)),e){case"script":c.async=!0,t&&(c.type=t);break;case"link":c.type="text/css",c.rel="stylesheet",i="href",a="head"}c[i]=n,document[a].appendChild(c)})}t.d(n,"a",function(){return o}),t.d(n,"b",function(){return c}),t.d(n,"c",function(){return i});const o=e=>r("link",e),c=e=>r("script",e),i=e=>r("script",e,"module")}});
//# sourceMappingURL=custom-panel-87a3e23b.js.map