UNPKG

iobroker.lovelace

Version:

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

2 lines 261 kB
/*! For license information please see app.76e4de7206838dcb.js.LICENSE.txt */ var e,t,r,n,i,a,o={80573:function(e,t,r){r.d(t,{K:()=>n});var n=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},11911:function(e,t,r){r.d(t,{H:()=>a,q:()=>i.qN});var n=r(57243),i=r(44491);class a extends n.oi{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},78611:function(e,t,r){r.d(t,{P:()=>n});r(9359),r(31526);const n=e=>(t,r)=>{if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){const e=t.constructor._observers;t.constructor._observers=new Map,e.forEach(((e,r)=>t.constructor._observers.set(r,e)))}}else{t.constructor._observers=new Map;const e=t.updated;t.updated=function(t){e.call(this,t),t.forEach(((e,t)=>{const r=this.constructor._observers.get(t);void 0!==r&&r.call(this,this[t],e)}))}}t.constructor._observers.set(r,e)}},44491:function(e,t,r){r.d(t,{Mh:()=>d,OE:()=>n,Vq:()=>c,WU:()=>l,qN:()=>i});r(92745);const n=e=>e.nodeType===Node.ELEMENT_NODE;function i(e){return{addClass:t=>{e.classList.add(t)},removeClass:t=>{e.classList.remove(t)},hasClass:t=>e.classList.contains(t)}}let a=!1;const o=()=>{},s={get passive(){return a=!0,!1}};document.addEventListener("x",o,s),document.removeEventListener("x",o);const c=a,d=(e=window.document)=>{let t=e.activeElement;const r=[];if(!t)return r;for(;t&&(r.push(t),t.shadowRoot);)t=t.shadowRoot.activeElement;return r},l=e=>{const t=d();if(!t.length)return!1;const r=t[t.length-1],n=new Event("check-if-focused",{bubbles:!0,composed:!0});let i=[];const a=e=>{i=e.composedPath()};return document.body.addEventListener("check-if-focused",a),r.dispatchEvent(n),document.body.removeEventListener("check-if-focused",a),-1!==i.indexOf(e)}},72311:function(e,t,r){r(92745),r(9359),r(1331),r(31526),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),r(21478),function(){function e(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){return e==Array.prototype||e==Object.prototype||(e[t]=r.value),e};var r=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function n(e,n){if(n)e:{var i=r;e=e.split(".");for(var a=0;a<e.length-1;a++){var o=e[a];if(!(o in i))break e;i=i[o]}(n=n(a=i[e=e[e.length-1]]))!=a&&null!=n&&t(i,e,{configurable:!0,writable:!0,value:n})}}function i(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function a(t){var r="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return r?r.call(t):{next:e(t)}}function o(e){if(!(e instanceof Array)){e=a(e);for(var t,r=[];!(t=e.next()).done;)r.push(t.value);e=r}return e}n("Symbol",(function(e){function r(e,r){this.l=e,t(this,"description",{configurable:!0,writable:!0,value:r})}if(e)return e;r.prototype.toString=function(){return this.l};var n=0;return function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new r("jscomp_symbol_"+(t||"")+"_"+n++,t)}})),n("Symbol.iterator",(function(n){if(n)return n;n=Symbol("Symbol.iterator");for(var a="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<a.length;o++){var s=r[a[o]];"function"==typeof s&&"function"!=typeof s.prototype[n]&&t(s.prototype,n,{configurable:!0,writable:!0,value:function(){return i(e(this))}})}return n}));var s,c="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t},d=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function e(){}return new e,Reflect.construct(e,[],(function(){})),new e instanceof e}())return Reflect.construct;var e=Reflect.construct;return function(t,r,n){return t=e(t,r),n&&Reflect.setPrototypeOf(t,n.prototype),t}}return function(e,t,r){return void 0===r&&(r=e),r=c(r.prototype||Object.prototype),Function.prototype.apply.call(e,r,t)||r}}();if("function"==typeof Object.setPrototypeOf)s=Object.setPrototypeOf;else{var l;e:{var u={};try{u.__proto__={a:!0},l=u.a;break e}catch(e){}l=!1}s=l?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var h,f=s,p=window;if(void 0===(null==(h=p.CustomElementRegistryPolyfill)?void 0:h.formAssociated)){var b={};p.CustomElementRegistryPolyfill=(b.formAssociated=new Set,b)}var m,v,g=window.HTMLElement,y=window.customElements.define,_=window.customElements.get,w=window.customElements,k=new WeakMap,E=new WeakMap,x=new WeakMap,S=new WeakMap;function C(){var e;this.promise=new Promise((function(t){e=t})),this.resolve=e}function O(){this.h=new Map,this.m=new Map,this.j=new Map,this.i=new Map}function A(e,t,r,n){var i=e.i.get(r);i||e.i.set(r,i=new Set),n?i.add(t):i.delete(t)}function T(e){var t;null!=(t=v)&&t.has(e)&&P(e,k.get(e))}function P(e,t){var r;null==(r=v)||r.delete(e),t.attributeChangedCallback&&t.observedAttributes.forEach((function(r){e.hasAttribute(r)&&t.attributeChangedCallback.call(e,r,null,e.getAttribute(r))}))}function R(e){var t=Object.getPrototypeOf(e);if(t!==window.HTMLElement)return t===g?Object.setPrototypeOf(e,window.HTMLElement):R(t)}function N(e,t,r){r=void 0!==r&&r,Object.setPrototypeOf(e,t.g.prototype),k.set(e,t),m=e;try{new t.g}catch(e){R(t.g),new t.g}t.attributeChangedCallback&&(void 0===v||e.hasAttributes()?P(e,t):v.add(e)),r&&t.connectedCallback&&e.isConnected&&t.connectedCallback.call(e)}O.prototype.define=function(e,t){if(e=e.toLowerCase(),void 0!==this.h.get(e))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+e+'" has already been used with this registry');if(void 0!==this.m.get(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=t.prototype.attributeChangedCallback,i=new Set(t.observedAttributes||[]);!function(e,t,r){if(0!==t.size&&void 0!==r){var n=e.prototype.setAttribute;n&&(e.prototype.setAttribute=function(e,i){if(T(this),e=e.toLowerCase(),t.has(e)){var a=this.getAttribute(e);n.call(this,e,i),r.call(this,e,a,i)}else n.call(this,e,i)});var i=e.prototype.removeAttribute;i&&(e.prototype.removeAttribute=function(e){if(T(this),e=e.toLowerCase(),t.has(e)){var n=this.getAttribute(e);i.call(this,e),r.call(this,e,n,null)}else i.call(this,e)});var a=e.prototype.toggleAttribute;a&&(e.prototype.toggleAttribute=function(e,n){if(T(this),e=e.toLowerCase(),t.has(e)){var i=this.getAttribute(e);a.call(this,e,n),i!==(n=this.getAttribute(e))&&r.call(this,e,i,n)}else a.call(this,e,n)})}}(t,i,n);var o,s,c=_.call(w,e),d=null!=(s=null==(o=c)?void 0:o.s)?s:t.formAssociated||p.CustomElementRegistryPolyfill.formAssociated.has(e);if(d&&p.CustomElementRegistryPolyfill.formAssociated.add(e),d!=t.formAssociated)try{t.formAssociated=d}catch(e){}if(n={tagName:e,g:t,connectedCallback:t.prototype.connectedCallback,disconnectedCallback:t.prototype.disconnectedCallback,adoptedCallback:t.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:d,formAssociatedCallback:t.prototype.formAssociatedCallback,formDisabledCallback:t.prototype.formDisabledCallback,formResetCallback:t.prototype.formResetCallback,formStateRestoreCallback:t.prototype.formStateRestoreCallback,observedAttributes:i},this.h.set(e,n),this.m.set(t,n),c||(c=function(e){function t(){var t=Reflect.construct(g,[],this.constructor);Object.setPrototypeOf(t,HTMLElement.prototype);e:{var r=t.getRootNode();if(!(r===document||r instanceof ShadowRoot)){if((r=$[$.length-1])instanceof CustomElementRegistry){var n=r;break e}(r=r.getRootNode())===document||r instanceof ShadowRoot||(r=(null==(n=S.get(r))?void 0:n.getRootNode())||document)}n=r.registry}return(r=(n=n||window.customElements).h.get(e))?N(t,r):E.set(t,n),t}return r.Object.defineProperty(t,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return p.CustomElementRegistryPolyfill.formAssociated.has(e)}}),t.prototype.connectedCallback=function(t){for(var r=[],n=0;n<arguments.length;++n)r[n]=arguments[n];T(this),(n=k.get(this))?n.connectedCallback&&n.connectedCallback.apply(this,r):A(E.get(this),this,e,!0)},t.prototype.disconnectedCallback=function(t){for(var r=[],n=0;n<arguments.length;++n)r[n]=arguments[n];(n=k.get(this))?n.disconnectedCallback&&n.disconnectedCallback.apply(this,r):A(E.get(this),this,e,!1)},t.prototype.adoptedCallback=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];var n,i;null==(n=k.get(this))||null==(i=n.adoptedCallback)||i.apply(this,t)},t.prototype.formAssociatedCallback=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];var n;null!=(r=k.get(this))&&r.formAssociated&&(null==r||null==(n=r.formAssociatedCallback)||n.apply(this,t))},t.prototype.formDisabledCallback=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];var n;null!=(r=k.get(this))&&r.formAssociated&&(null==r||null==(n=r.formDisabledCallback)||n.apply(this,t))},t.prototype.formResetCallback=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];var n;null!=(r=k.get(this))&&r.formAssociated&&(null==r||null==(n=r.formResetCallback)||n.apply(this,t))},t.prototype.formStateRestoreCallback=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];var n;null!=(r=k.get(this))&&r.formAssociated&&(null==r||null==(n=r.formStateRestoreCallback)||n.apply(this,t))},t}(e),y.call(w,e,c)),this===window.customElements&&(x.set(t,n),n.o=c),c=this.i.get(e))for(this.i.delete(e),i=(c=a(c)).next();!i.done;i=c.next())i=i.value,E.delete(i),N(i,n,!0);return void 0!==(c=this.j.get(e))&&(c.resolve(t),this.j.delete(e)),t},O.prototype.upgrade=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];$.push(this),w.upgrade.apply(w,o(t)),$.pop()},O.prototype.get=function(e){var t;return null==(t=this.h.get(e))?void 0:t.g},O.prototype.whenDefined=function(e){var t=this.h.get(e);return void 0!==t?Promise.resolve(t.g):(void 0===(t=this.j.get(e))&&(t=new C,this.j.set(e,t)),t.promise)},window.HTMLElement=function(){var e=m;if(e)return m=void 0,e;var t=x.get(this.constructor);if(!t)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(g,[],t.o),Object.setPrototypeOf(e,this.constructor.prototype),k.set(e,t),e},window.HTMLElement.prototype=g.prototype,window.CustomElementRegistry=O,"loading"===document.readyState&&(v=new Set,document.addEventListener("readystatechange",(function(){v.forEach((function(e){return P(e,k.get(e))}))}),{once:!0}));var I=Element.prototype.attachShadow;Element.prototype.attachShadow=function(e,t){for(var r=[],n=1;n<arguments.length;++n)r[n-1]=arguments[n];var i=Object.assign({},e);return n=e.customElements,n=void 0===e.registry?n:e.registry,delete i.customElements,delete i.registry,r=I.call.apply(I,[this,i].concat(o(r))),void 0!==n&&(r.customElements=r.registry=n),r};var $=[document];function j(e,t,r){var n=(r?Object.getPrototypeOf(r):e.prototype)[t];e.prototype[t]=function(e){for(var t=[],i=0;i<arguments.length;++i)t[i]=arguments[i];return $.push(this),void 0!==(t=n.apply(r||this,t))&&S.set(t,this),$.pop(),t}}function L(e){var t=Object.getOwnPropertyDescriptor(e.prototype,"innerHTML");Object.defineProperty(e.prototype,"innerHTML",Object.assign({},t,{set:function(e){$.push(this),t.set.call(this,e),$.pop()}}))}if(j(ShadowRoot,"createElement",document),j(ShadowRoot,"createElementNS",document),j(ShadowRoot,"importNode",document),j(Element,"insertAdjacentHTML"),L(Element),L(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var M=new WeakMap,D=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(e){for(var t=[],r=0;r<arguments.length;++r)t[r]=arguments[r];return t=D.call.apply(D,[this].concat(o(t))),M.set(t,this),t},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(e){var t=window.ElementInternals.prototype,r=t[e];t[e]=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(n=M.get(this),!0===k.get(n).formAssociated)return null==r?void 0:r.call.apply(r,[this].concat(o(t)));throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.")}}));var H=function(e){var t=d(Array,[].concat(o(e)),this.constructor);return t.l=e,t},F=H,U=Array;if(F.prototype=c(U.prototype),F.prototype.constructor=F,f)f(F,U);else for(var z in U)if("prototype"!=z)if(Object.defineProperties){var B=Object.getOwnPropertyDescriptor(U,z);B&&Object.defineProperty(F,z,B)}else F[z]=U[z];F.u=U.prototype,r.Object.defineProperty(H.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var e;return(null==(e=this.l.find((function(e){return!0===e.checked})))?void 0:e.value)||""}});var V=function(e){var t=this,r=new Map;e.forEach((function(e,n){var i=e.getAttribute("name"),a=r.get(i)||[];t[+n]=e,a.push(e),r.set(i,a)})),this.length=e.length,r.forEach((function(e,r){e&&"length"!==r&&"item"!==r&&"namedItem"!==r&&(t[r]=1===e.length?e[0]:new H(e))}))};V.prototype.item=function(e){var t;return null!=(t=this[e])?t:null},V.prototype[Symbol.iterator]=function(){throw Error("Method not implemented.")},V.prototype.namedItem=function(e){var t;return null!=(t=this[e])?t:null};var W=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var e=W.get.call(this),t=[],r=(e=a(e)).next();!r.done;r=e.next()){r=r.value;var n=k.get(r);n&&!0!==n.formAssociated||t.push(r)}return new V(t)}})}}.call("object"==typeof globalThis?globalThis:window)},51093:function(e,t,r){r(92745),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814),(()=>{var e,t,r;const n=Symbol(),i=Symbol(),a=Symbol(),o=Symbol(),s=Symbol(),c=Symbol(),d=Symbol(),l=Symbol(),u=Symbol(),h=Symbol(),f=Symbol(),p=Symbol(),b=Symbol();class m{constructor(){this[e]=[],this[t]=[],this[r]=new Set}destructor(){this[u](this[a]);const e=this;e[n]=null,e[a]=null,e[i]=null}get top(){const e=this[n];return e[e.length-1]||null}push(e){e&&e!==this.top&&(this.remove(e),this[c](e),this[n].push(e))}remove(e){const t=this[n].indexOf(e);return-1!==t&&(this[n].splice(t,1),t===this[n].length&&this[c](this.top),!0)}pop(){const e=this.top;return e&&this.remove(e),e}has(e){return-1!==this[n].indexOf(e)}[(e=n,t=a,r=i,c)](e){const t=this[i],r=this[a];if(!e)return this[u](r),t.clear(),void(this[a]=[]);const n=this[h](e);if(n[n.length-1].parentNode!==document.body)throw Error("Non-connected element cannot be a blocking element");this[a]=n;const o=this[f](e);if(!r.length)return void this[l](n,o,t);let s=r.length-1,c=n.length-1;for(;s>0&&c>0&&r[s]===n[c];)s--,c--;r[s]!==n[c]&&this[d](r[s],n[c]),s>0&&this[u](r.slice(0,s)),c>0&&this[l](n.slice(0,c),o,null)}[d](e,t){const r=e[o];this[p](e)&&!e.inert&&(e.inert=!0,r.add(e)),r.has(t)&&(t.inert=!1,r.delete(t)),t[s]=e[s],t[o]=r,e[s]=void 0,e[o]=void 0}[u](e){for(const t of e){t[s].disconnect(),t[s]=void 0;const e=t[o];for(const t of e)t.inert=!1;t[o]=void 0}}[l](e,t,r){for(const n of e){const e=n.parentNode,i=e.children,a=new Set;for(let e=0;e<i.length;e++){const o=i[e];o===n||!this[p](o)||t&&t.has(o)||(r&&o.inert?r.add(o):(o.inert=!0,a.add(o)))}n[o]=a;const c=new MutationObserver(this[b].bind(this));n[s]=c;let d=e;const l=d;l.__shady&&l.host&&(d=l.host),c.observe(d,{childList:!0})}}[b](e){const t=this[a],r=this[i];for(const n of e){const e=n.target.host||n.target,i=e===document.body?t.length:t.indexOf(e),a=t[i-1],s=a[o];for(let e=0;e<n.removedNodes.length;e++){const t=n.removedNodes[e];if(t===a)return console.info("Detected removal of the top Blocking Element."),void this.pop();s.has(t)&&(t.inert=!1,s.delete(t))}for(let e=0;e<n.addedNodes.length;e++){const t=n.addedNodes[e];this[p](t)&&(r&&t.inert?r.add(t):(t.inert=!0,s.add(t)))}}}[p](e){return!1===/^(style|template|script)$/.test(e.localName)}[h](e){const t=[];let r=e;for(;r&&r!==document.body;)if(r.nodeType===Node.ELEMENT_NODE&&t.push(r),r.assignedSlot){for(;r=r.assignedSlot;)t.push(r);r=t.pop()}else r=r.parentNode||r.host;return t}[f](e){const t=e.shadowRoot;if(!t)return null;const r=new Set;let n,i,a;const o=t.querySelectorAll("slot");if(o.length&&o[0].assignedNodes)for(n=0;n<o.length;n++)for(a=o[n].assignedNodes({flatten:!0}),i=0;i<a.length;i++)a[i].nodeType===Node.ELEMENT_NODE&&r.add(a[i]);return r}}document.$blockingElements=new m})()},27486:function(e,t,r){r.d(t,{Z:()=>a});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(i=e[r],a=t[r],!(i===a||n(i)&&n(a)))return!1;var i,a;return!0}function a(e,t){void 0===t&&(t=i);var r=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a}return n.clear=function(){r=null},n}},21505:function(e,t,r){r(84283),r(9359),r(31526),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window&&"undefined"!=typeof Element){var e=Array.prototype.slice,t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","video","[contenteditable]"].join(","),a=function(){function a(e,t){i(this,a),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return n(a,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(e){this._unmanageNode(e.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this;d(e,(function(e){return t._visitNode(e)}));var r=document.activeElement;if(!document.body.contains(e)){for(var n=e,i=void 0;n;){if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i=n;break}n=n.parentNode}i&&(r=i.activeElement)}e.contains(r)&&(r.blur(),r===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e;n!==this._rootElement&&n.hasAttribute("inert")&&this._adoptInertRoot(n),(t.call(n,r)||n.hasAttribute("tabindex"))&&this._manageNode(n)}}},{key:"_manageNode",value:function(e){var t=this._inertManager.register(e,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(e){var t=this._inertManager.deregister(e,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(e){var t=this;d(e,(function(e){return t._unmanageNode(e)}))}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach((function(e){this._manageNode(e.node)}),this)}},{key:"_onMutation",value:function(t,r){t.forEach((function(t){var r=t.target;if("childList"===t.type)e.call(t.addedNodes).forEach((function(e){this._makeSubtreeUnfocusable(e)}),this),e.call(t.removedNodes).forEach((function(e){this._unmanageSubtree(e)}),this);else if("attributes"===t.type)if("tabindex"===t.attributeName)this._manageNode(r);else if(r!==this._rootElement&&"inert"===t.attributeName&&r.hasAttribute("inert")){this._adoptInertRoot(r);var n=this._inertManager.getInertRoot(r);this._managedNodes.forEach((function(e){r.contains(e.node)&&n._manageNode(e.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),a}(),o=function(){function e(t,r){i(this,e),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([r]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return n(e,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(t.call(e,r)){if(-1===e.tabIndex&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),e}(),s=function(){function r(e){if(i(this,r),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),l(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return n(r,[{key:"setInert",value:function(e,t){if(t){if(this._inertRoots.has(e))return;var r=new a(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,r),!this._document.body.contains(e))for(var n=e.parentNode;n;)11===n.nodeType&&l(n),n=n.parentNode}else{if(!this._inertRoots.has(e))return;this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var r=this._managedNodes.get(e);return void 0!==r?r.addInertRoot(t):r=new o(e,t),this._managedNodes.set(e,r),r}},{key:"deregister",value:function(e,t){var r=this._managedNodes.get(e);return r?(r.removeInertRoot(t),r.destroyed&&this._managedNodes.delete(e),r):null}},{key:"_onDocumentLoaded",value:function(){e.call(this._document.querySelectorAll("[inert]")).forEach((function(e){this.setInert(e,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(r,n){var i=this;r.forEach((function(r){switch(r.type){case"childList":e.call(r.addedNodes).forEach((function(r){if(r.nodeType===Node.ELEMENT_NODE){var n=e.call(r.querySelectorAll("[inert]"));t.call(r,"[inert]")&&n.unshift(r),n.forEach((function(e){this.setInert(e,!0)}),i)}}),i);break;case"attributes":if("inert"!==r.attributeName)return;var n=r.target,a=n.hasAttribute("inert");i.setInert(n,a)}}),this)}}]),r}();if(!HTMLElement.prototype.hasOwnProperty("inert")){var c=new s(document);Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){c.setInert(this,e)}})}}function d(e,t,r){if(e.nodeType==Node.ELEMENT_NODE){var n=e;t&&t(n);var i=n.shadowRoot;if(i)return void d(i,t,i);if("content"==n.localName){for(var a=n,o=a.getDistributedNodes?a.getDistributedNodes():[],s=0;s<o.length;s++)d(o[s],t,r);return}if("slot"==n.localName){for(var c=n,l=c.assignedNodes?c.assignedNodes({flatten:!0}):[],u=0;u<l.length;u++)d(l[u],t,r);return}}for(var h=e.firstChild;null!=h;)d(h,t,r),h=h.nextSibling}function l(e){if(!e.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent="\n[inert] {\n pointer-events: none;\n cursor: default;\n}\n\n[inert], [inert] * {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n",e.appendChild(t)}}}()},11259:function(e,t,r){r.d(t,{CO:()=>s,DM:()=>y,Mc:()=>k,Rq:()=>E,Rw:()=>m,XG:()=>_,p3:()=>v,uO:()=>g,wK:()=>o,xV:()=>w});r(9359),r(70104);var n=r(52121),i=r(79352);const a=e=>{const t=Math.round(Math.min(Math.max(e,0),255)).toString(16);return 1===t.length?`0${t}`:t},o=e=>(e=(0,i.R)(e),[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)]),s=e=>`#${a(e[0])}${a(e[1])}${a(e[2])}`,c=.95047,d=1.08883,l=.137931034,u=.12841855,h=e=>(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4,f=e=>e>.008856452?e**(1/3):e/u+l,p=e=>255*(e<=.00304?12.92*e:1.055*e**(1/2.4)-.055),b=e=>e>.206896552?e*e*e:u*(e-l),m=e=>{const[t,r,n]=(e=>{let[t,r,n]=e;return t=h(t),r=h(r),n=h(n),[f((.4124564*t+.3575761*r+.1804375*n)/c),f((.2126729*t+.7151522*r+.072175*n)/1),f((.0193339*t+.119192*r+.9503041*n)/d)]})(e),i=116*r-16;return[i<0?0:i,500*(t-r),200*(r-n)]},v=e=>{const[t,r,n]=e;let i=(t+16)/116,a=isNaN(r)?i:i+r/500,o=isNaN(n)?i:i-n/200;i=1*b(i),a=c*b(a),o=d*b(o);return[Math.round(p(3.2404542*a-1.5371385*i-.4985314*o)),Math.round(p(-.969266*a+1.8760108*i+.041556*o)),Math.round(p(.0556434*a-.2040259*i+1.0572252*o))]},g=e=>{const t=v(e);return s(t)},y=e=>{const[t,r,n]=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),o=a&&(i===t?(r-n)/a:i===r?2+(n-t)/a:4+(t-r)/a);return[60*(o<0?o+6:o),i&&a/i,i]},_=e=>{const[t,r,n]=e,i=e=>{const i=(e+t/60)%6;return n-n*r*Math.max(Math.min(i,4-i,1),0)};return[i(5),i(3),i(1)]},w=e=>y(e).slice(0,2),k=e=>_([e[0],e[1],255]);function E(e){if(e.startsWith("#")){if(4===e.length||5===e.length){const t=e;return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`}return 9===e.length?e.substring(0,7):e}const t=n.Z[e];if(t)return s(t);const r=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(r){const[,e,t,n]=r.map(Number);return s([e,t,n])}return e}},79352:function(e,t,r){r.d(t,{R:()=>n,o:()=>i});const n=e=>{if(6===(e=e.replace("#","")).length)return e;let t="";for(const r of e)t+=r+r;return t},i=(e,t,r=50)=>{let i="";e=n(e),t=n(t);for(let n=0;n<=5;n+=2){const a=parseInt(e.substring(n,n+2),16),o=parseInt(t.substring(n,n+2),16);let s=Math.floor(o+r/100*(a-o)).toString(16);for(;s.length<2;)s="0"+s;i+=s}return`#${i}`}},4643:function(e,t,r){r.d(t,{C:()=>i,W:()=>n});const n=(e,t=1)=>[e[0]-18*t,e[1],e[2]],i=(e,t=1)=>n(e,-t)},37723:function(e,t,r){r.d(t,{$o:()=>a,T2:()=>n,f$:()=>i});const n=e=>{const t=[0,0,0];for(let r=0;r<e.length;r++){const n=e[r]/255;t[r]=n<=.03928?n/12.92:((n+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},i=(e,t)=>{const r=n(e),i=n(t);return r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)},a=(e,t)=>Math.round(100*(i(e,t)+Number.EPSILON))/100},72344:function(e,t,r){r.d(t,{p:()=>n});const n=(e,t)=>e&&e.config.components.includes(t)},73358:function(e,t,r){r.d(t,{AF:()=>o,Kk:()=>l,PS:()=>n,a5:()=>a,gD:()=>f,iY:()=>u,lC:()=>d,ot:()=>h,tj:()=>s,uo:()=>c,zF:()=>i});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);const n=["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"],a=["assist_satellite","conversation","stt","tts"],o=["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"],c="on",d="off",l=new Set(["fan","input_boolean","light","switch","group","automation","humidifier","valve"]),u=new Set(["camera","image","media_player"]),h="°C",f="°F"},68958:function(e,t,r){r.d(t,{t:()=>a});r(92745),r(9359),r(31526),r(88972);class n{constructor(e=window.localStorage){this.storage=void 0,this._storage={},this._listeners={},this.storage=e,e===window.localStorage&&window.addEventListener("storage",(e=>{e.key&&this.hasKey(e.key)&&(this._storage[e.key]=e.newValue?JSON.parse(e.newValue):e.newValue,this._listeners[e.key]&&this._listeners[e.key].forEach((t=>t(e.oldValue?JSON.parse(e.oldValue):e.oldValue,this._storage[e.key]))))}))}addFromStorage(e){if(!this._storage[e]){const t=this.storage.getItem(e);t&&(this._storage[e]=JSON.parse(t))}}subscribeChanges(e,t){return this._listeners[e]?this._listeners[e].push(t):this._listeners[e]=[t],()=>{this.unsubscribeChanges(e,t)}}unsubscribeChanges(e,t){if(!(e in this._listeners))return;const r=this._listeners[e].indexOf(t);-1!==r&&this._listeners[e].splice(r,1)}hasKey(e){return e in this._storage}getValue(e){return this._storage[e]}setValue(e,t){const r=this._storage[e];this._storage[e]=t;try{void 0===t?this.storage.removeItem(e):this.storage.setItem(e,JSON.stringify(t))}catch(e){}finally{this._listeners[e]&&this._listeners[e].forEach((e=>e(r,t)))}}}const i={},a=e=>t=>{const r=e.storage||"localStorage";let a;r&&r in i?a=i[r]:(a=new n(window[r]),i[r]=a);const o=String(t.key),s=e.key||String(t.key),c=t.initializer?t.initializer():void 0;a.addFromStorage(s);const d=!1!==e.subscribe?e=>a.subscribeChanges(s,((r,n)=>{e.requestUpdate(t.key,r)})):void 0,l=()=>a.hasKey(s)?e.deserializer?e.deserializer(a.getValue(s)):a.getValue(s):c;return{kind:"method",placement:"prototype",key:t.key,descriptor:{set(r){((r,n)=>{let i;e.state&&(i=l()),a.setValue(s,e.serializer?e.serializer(n):n),e.state&&r.requestUpdate(t.key,i)})(this,r)},get:()=>l(),enumerable:!0,configurable:!0},finisher(r){if(e.state&&e.subscribe){const e=r.prototype.connectedCallback,t=r.prototype.disconnectedCallback;r.prototype.connectedCallback=function(){e.call(this),this[`__unbsubLocalStorage${o}`]=d?.(this)},r.prototype.disconnectedCallback=function(){t.call(this),this[`__unbsubLocalStorage${o}`]?.(),this[`__unbsubLocalStorage${o}`]=void 0}}e.state&&r.createProperty(t.key,{noAccessor:!0,...e.stateOptions})}}}},84200:function(e,t,r){r.d(t,{r:()=>i});r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);const n=(e,t,r=true)=>{if(!e||e===document.body)return null;if((e=e.assignedSlot??e).parentElement)e=e.parentElement;else{const t=e.getRootNode();e=t instanceof ShadowRoot?t.host:null}return(r?Object.prototype.hasOwnProperty.call(e,t):e&&t in e)?e:n(e,t,r)},i=(e,t,r=true)=>{const i=new Set;for(;e;)i.add(e),e=n(e,t,r);return i}},82393:function(e,t,r){r.d(t,{R:()=>d,p:()=>u});var n=r(36671),i=r(11259),a=r(79352),o=r(4643),s=r(37723);let c={};const d=(e,t,r,d,u)=>{const h=r||(u?t.theme:void 0),f=void 0!==d?.dark?d.dark:t?.darkMode||!1;let p=h,b={};if(h&&f&&(p=`${p}__dark`,b={...n._l}),"default"===h){const t=d?.primaryColor,r=d?.accentColor;if(f&&t&&(b["app-header-background-color"]=(0,a.o)(t,"#121212",8)),t){p=`${p}__primary_${t}`;const e=(0,i.wK)(t),r=(0,i.Rw)(e);b["primary-color"]=t;const n=(0,i.p3)((0,o.C)(r));b["light-primary-color"]=(0,i.CO)(n),b["dark-primary-color"]=(0,i.uO)((0,o.W)(r)),b["text-primary-color"]=(0,s.f$)(e,[33,33,33])<6?"#fff":"#212121",b["text-light-primary-color"]=(0,s.f$)(n,[33,33,33])<6?"#fff":"#212121",b["state-icon-color"]=b["dark-primary-color"]}if(r){p=`${p}__accent_${r}`,b["accent-color"]=r;const e=(0,i.wK)(r);b["text-accent-color"]=(0,s.f$)(e,[33,33,33])<6?"#fff":"#212121"}if(e.__themes?.cacheKey===p)return}if(h&&"default"!==h&&t.themes[h]){const{modes:e,...r}=t.themes[h];b={...b,...r},e&&(b=f?{...b,...e.dark}:{...b,...e.light})}if(!e.__themes?.keys&&!Object.keys(b).length)return;const m=Object.keys(b).length&&p?c[p]||l(p,b):void 0,v={...e.__themes?.keys,...m?.styles};if(e.__themes={cacheKey:p,keys:m?.keys},e.updateStyles)e.updateStyles(v);else if(window.ShadyCSS)window.ShadyCSS.styleSubtree(e,v);else for(const t in v)null===t?e.style.removeProperty(t):e.style.setProperty(t,v[t])},l=(e,t)=>{if(!t||!Object.keys(t).length)return;const r={...n.q0,...t},a={},o={};for(const e of Object.keys(r)){const t=`--${e}`,n=String(r[e]);if(a[t]=n,o[t]="",!n.startsWith("#"))continue;const s=`rgb-${e}`;if(void 0===r[s])try{const e=(0,i.wK)(n).join(","),t=`--${s}`;a[t]=e,o[t]=""}catch(e){continue}}return c[e]={styles:a,keys:o},{styles:a,keys:o}},u=()=>{c={}}},81165:function(e,t,r){r.d(t,{j:()=>n});const n=(e=document)=>e.activeElement?.shadowRoot?.activeElement?n(e.activeElement.shadowRoot):e.activeElement},36522:function(e,t,r){r.d(t,{B:()=>n});const n=(e,t,r,n)=>{n=n||{},r=null==r?{}:r;const i=new Event(t,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return i.detail=r,e.dispatchEvent(i),i}},5111:function(e,t,r){r.d(t,{E:()=>i});var n=r(20231);const i=(()=>{try{return window.name===n.y?window:parent.name===n.y?parent:top}catch{return window}})()},22337:function(e,t,r){r.d(t,{J:()=>n});r(9359),r(1331);const n=(e,t=!0)=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)return;const r=e.composedPath().find((e=>"A"===e.tagName));if(!r||r.target||r.hasAttribute("download")||"external"===r.getAttribute("rel"))return;let n=r.href;if(!n||-1!==n.indexOf("mailto:"))return;const i=window.location,a=i.origin||i.protocol+"//"+i.host;return 0===n.indexOf(a)&&(n=n.substr(a.length),"#"!==n)?(t&&e.preventDefault(),n):void 0}},62201:function(e,t,r){r.d(t,{K:()=>n});const n=(e,t)=>{const r=matchMedia(e),n=e=>t(e.matches);return r.addListener(n),t(r.matches),()=>r.removeListener(n)}},90122:function(e,t,r){r.d(t,{X:()=>n});const n=(e,t,r)=>(void 0!==r&&(r=!!r),e.hasAttribute(t)?!!r||(e.removeAttribute(t),!1):!1!==r&&(e.setAttribute(t,""),!0))},73850:function(e,t,r){r.d(t,{M:()=>n});const n=e=>e.substring(0,e.indexOf("."))},97969:function(e,t,r){r.d(t,{p:()=>n});const n=e=>e.substr(e.indexOf(".")+1)},47194:function(e,t,r){r.d(t,{C:()=>a,a:()=>i});var n=r(97969);const i=(e,t)=>void 0===t.friendly_name?(0,n.p)(e).replace(/_/g," "):(t.friendly_name??"").toString(),a=e=>i(e.entity_id,e.attributes)},83523:function(e,t,r){r.d(t,{c:()=>o});var n=r(76525),i=r(36522),a=r(5111);const o=async(e,t,r=Date.now())=>{const{history:s}=a.E;if(s.state?.dialog&&Date.now()-r<500){return await(0,n.ts)()?new Promise((n=>{setTimeout((()=>{o(e,t,r).then(n)}))})):(console.warn("Navigation blocked, because dialog refused to close"),!1)}const c=t?.replace||!1;return c?s.replaceState(s.state?.root?{root:!0}:t?.data??null,"",e):s.pushState(t?.data??null,"",e),(0,i.B)(a.E,"location-changed",{replace:c}),!0}},1416:function(e,t,r){r.d(t,{$K:()=>s,UB:()=>d,fe:()=>c});var n=r(27486);const i=(0,n.Z)((e=>new Intl.Collator(e))),a=(0,n.Z)((e=>new Intl.Collator(e,{sensitivity:"accent"}))),o=(e,t)=>e<t?-1:e>t?1:0,s=(e,t,r=void 0)=>Intl?.Collator?i(r).compare(e,t):o(e,t),c=(e,t,r=void 0)=>Intl?.Collator?a(r).compare(e,t):o(e.toLowerCase(),t.toLowerCase()),d=e=>(t,r)=>{const n=e.indexOf(t),i=e.indexOf(r);return n===i?0:-1===n?1:-1===i?-1:n-i}},58776:function(e,t,r){r.d(t,{Q2:()=>i,io:()=>a,j4:()=>s,ou:()=>o,pc:()=>c});r(9359),r(31526),r(75656),r(50100),r(18084);var n=r(5111);const i=()=>{const e={},t=new URLSearchParams(n.E.location.search);for(const[r,n]of t.entries())e[r]=n;return e},a=e=>new URLSearchParams(n.E.location.search).get(e),o=e=>{const t=new URLSearchParams;return Object.entries(e).forEach((([e,r])=>{t.append(e,r)})),t.toString()},s=e=>{const t=new URLSearchParams(n.E.location.search);return Object.entries(e).forEach((([e,r])=>{t.set(e,r)})),t.toString()},c=e=>{const t=new URLSearchParams(n.E.location.search);return t.delete(e),t.toString()}},20172:function(e,t,r){function n(e){const t=e.language||"en";return e.translationMetadata.translations[t]&&e.translationMetadata.translations[t].isRTL||!1}function i(e){return a(n(e))}function a(e){return e?"rtl":"ltr"}function o(e,t){document.dir=e,t.style.direction=e,t.style.setProperty("--direction",e),t.style.setProperty("--float-start","ltr"===e?"left":"right"),t.style.setProperty("--float-end","ltr"===e?"right":"left"),t.style.setProperty("--margin-title","ltr"===e?"var(--margin-title-ltr)":"var(--margin-title-rtl)"),t.style.setProperty("--scale-direction","ltr"===e?"1":"-1")}r.d(t,{HE:()=>n,Zu:()=>i,bQ:()=>o})},22381:function(e,t,r){r.d(t,{D:()=>n});const n=(e,t,r=!1)=>{let n;const i=(...i)=>{const a=r&&!n;clearTimeout(n),n=window.setTimeout((()=>{n=void 0,e(...i)}),t),a&&e(...i)};return i.cancel=()=>{clearTimeout(n)},i}},48045:function(e,t,r){r.d(t,{v:()=>n});r(32517),r(92519),r(42179),r(89256),r(24931),r(88463),r(57449),r(19814);const n=(e,t)=>{if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(i=e.length,i!==t.length)return!1;for(r=i;0!=r--;)if(!n(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!n(r[1],t.get(r[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!==t.length)return!1;for(r=i;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e);if(i=a.length,i!==Object.keys(t).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;for(r=i;0!=r--;){const i=a[r];if(!n(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}},37394:function(e,t,r){r.d(t,{n:()=>i});class n extends Error{constructor(e,...t){super(...t),this.timeout=void 0,Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="TimeoutError",this.timeout=e,this.message=`Timed out in ${e} ms.`}}const i=(e,t)=>{const r=new Promise(((t,r)=>{setTimeout((()=>{r(new n(e))}),e)}));return Promise.race([t,r])}},76320:function(e,t,r){r.d(t,{T:()=>n,y:()=>i});const n=e=>{requestAnimationFrame((()=>setTimeout(e,0)))},i=()=>new Promise((e=>{n(e)}))},1586:function(e,t,r){var n=r(44249),i=r(72621),a=(r(92745),r(9065)),o=(r(51093),r(21505),{ANIMATE:"mdc-drawer--animate",CLOSING:"mdc-drawer--closing",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",OPENING:"mdc-drawer--opening",ROOT:"mdc-drawer"}),s={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened",SCRIM_SELECTOR:".mdc-drawer-scrim",LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",LIST_ITEM_ACTIVATED_SELECTOR:".mdc-list-item--activated,.mdc-deprecated-list-item--activated"},c=function(e){function t(r){var n=e.call(this,(0,a.__assign)((0,a.__assign)({},t.defaultAdapter),r))||this;return n.animationFrame=0,n.animationTimer=0,n}return(0,a.__extends)(t,e),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},t.prototype.open=function(){var e=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(o.OPEN),this.adapter.addClass(o.ANIMATE),this.runNextAnimationFrame((function(){e.adapter.addClass(o.OPENING)})),this.adapter.saveFocus())},t.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(o.CLOSING)},t.prototype.isOpen=function(){return this.adapter.hasClass(o.OPEN)},t.prototype.isOpening=function(){return this.adapter.hasClass(o.OPENING)||this.adapter.hasClass(o.ANIMATE)},t.prototype.isClosing=function(){return this.adapter.hasClass(o.CLOSING)},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.handleTransitionEnd=function(e){var t=o.OPENING,r=o.CLOSING,n=o.OPEN,i=o.ANIMATE,a=o.ROOT;this.isElement(e.target)&&this.adapter.elementHasClass(e.target,a)&&(this.isClosing()?(this.adapter.removeClass(n),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(i),this.adapter.removeClass(t),this.adapter.removeClass(r))},t.prototype.opened=function(){},t.prototype.closed=function(){},t.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},t.prototype.isElement=function(e){return Boolean(e.classList)},t}(r(80573).K);const d=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleScrimClick=function(){this.close()},t.prototype.opened=function(){this.adapter.trapFocus()},t.prototype.closed=function(){this.adapter.releaseFocus()},t}(c);const u=l;var h=r(11911),f=r(78611),p=r(57243),b=r(15093),m=r(35359);const v=document.$blockingElements;class g extends h.H{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return"modal"===this.type?u:d}createAdapter(){return Object.assign(Object.assign({},(0,h.q)(this.mdcRoot)),{elementHasClass:(e,t)=>e.classList.contains(t),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(s.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(s.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{v.push(this),this.appContent.inert=!0},releaseFocus:()=>{v.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof u&&this.mdcFoundation.handleScrimClick()}render(){const e="dismissible"===this.type||"modal"===this.type,t="modal"===this.type,r=this.hasHeader?p.dy` <div class="mdc-drawer__header"> <h3 class="mdc-drawer__title"><slot name="title"></slot></h3> <h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6> <slot name="header"></slot> </div> `:"",n={"mdc-drawer--dismissible":e,"mdc-drawer--modal":t};return p.dy` <aside class="mdc-drawer ${(0,m.$)(n)}"> ${r} <div class="mdc-drawer__content"><slot></slot></div> </aside> ${t?p.dy`<div class="mdc-drawer-scrim" @click="${this._handleScrimClick}"></div>`:""} <div class="mdc-drawer-app-content"> <slot name="appContent"></slot> </div> `}firstUpdated(){this.mdcRoot.addEventListener("keydown",(e=>this.mdcFoundation.handleKeydown(e))),this.mdcRoot.addEventListener("transitionend",(e=>this.mdcFoundation.handleTransitionEnd(e)))}updated(e){e.has("type")&&this.createFoundation()}}(0,a.__decorate)([(0,b.IO)(".mdc-drawer")],g.prototype,"mdcRoot",void 0),(0,a.__decorate)([(0,b.IO)(".mdc-drawer-app-content")],g.prototype,"appContent",void 0),(0,a.__decorate)([(0,f.P)((function(e){""!==this.type&&(e?this.mdcFoundation.open():this.mdcFoundation.close())})),(0,b.Cb)({type:Boolean,reflect:!0})],g.prototype,"open",void 0),(0,a.__decorate)([(0,b.Cb)({type:Boolean})],g.prototype,"hasHeader",void 0),(0,a.__decorate)([(0,b.Cb)({reflect:!0})],g.prototype,"type",void 0);const y=p.iv`.mdc-drawer{border-color:rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);border-top-left-radius:0;border-top-right-radius:0;border-top-right-radius:var(--mdc-shape-large,0);border-bottom-right-radius:0;border-bottom-right-radius:var(--mdc-shape-large,0);border-bottom-left-radius:0;z-index:6;width:256px;display:flex;flex-direction:column;flex-shrink:0;box-sizing:border-box;height:100%;border-right-width:1px;border-right-style:solid;overflow:hidden;transition-property:transform;transition-timing-function:cubic-bezier(0.4,0,0.2,1)}.mdc-drawer .mdc-drawer__title{color:rgba(0,0,0,.87)}.mdc-drawer .mdc-deprecated-list-group__subheader{color:rgba(0,0,0,.6)}.mdc-drawer .mdc-drawer__subtitle{color:rgba(0,0,0,.6)}.mdc-drawer .mdc-deprecated-list-item__graphic{color:rgba(0,0,0,.6)}.mdc-drawer .mdc-deprecated-list-item{color:rgba(0,0,0,.87)}.mdc-drawer .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#6200ee}.mdc-drawer .mdc-deprecated-list-item--activated{color:rgba(98,0,238,.87)}.mdc-drawer[dir=rtl],[dir=rtl] .mdc-drawer{border-top-left-radius:0;border-top-left-radius:var(--mdc-shape-large,0);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-left-radius:var(--mdc-shape-large,0)}.mdc-drawer .mdc-deprecated-list-item{border-radius:4px;border-radius:var(--mdc-shape-small,4px)}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:256px;margin-right:0}.mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content[dir=rtl],[dir=rtl] .mdc-drawer.mdc-drawer--open:not(.mdc-drawer--closing)+.mdc-drawer-app-content{margin-left:0;margin-right:256px}.mdc-drawer[dir=rtl],[dir=rtl] .mdc-drawer{border-right-width:0;border-left-width:1px;border-right-style:none;border-left-style:solid}.mdc-drawer .mdc-deprecated-list-item{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-subtitle2-font-size, .875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight,500);letter-spacing:.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, .0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform,inherit);height:calc(48px - 2 * 4px);margin:8px 8px;padding:0 8px}.mdc-drawer .mdc-deprecated-list-item:first-child{margin-top:2px}.mdc-drawer .mdc-deprecated-list-item:last-child{margin-bottom:0}.mdc-drawer .mdc-deprecated-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);display:block;margin-top:0;line-height:normal;margin:0;padding:0 16px}.mdc-drawer .mdc-deprecated-list-group__subheader::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-drawer .mdc-deprecated-list-divider{margin:3px 0 4px}.mdc-drawer .mdc-deprecated-list-item__graphic,.mdc-drawer .mdc-deprecat