/*! For license information please see chunk.97fce280bf56b57ac89e.js.LICENSE.txt */
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7130],{99257:(e,t,n)=>{"use strict";n(43437);var r=n(15112),o=n(9672),i=n(87156);(0,o.k)({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new r.P({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var n=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(n){var r=(0,i.vz)(e.root||e);return r.insertBefore(n,r.childNodes[0]),e._svgIcon=n}return null},removeIcon:function(e){e._svgIcon&&((0,i.vz)(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return(0,i.vz)(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,n){if(e){var r=e.cloneNode(!0),o=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=r.getAttribute("viewBox")||"0 0 "+t+" "+t,c="pointer-events: none; display: block; width: 100%; height: 100%;";return n&&r.hasAttribute("mirror-in-rtl")&&(c+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),o.setAttribute("viewBox",i),o.setAttribute("preserveAspectRatio","xMidYMid meet"),o.setAttribute("focusable","false"),o.style.cssText=c,o.appendChild(r).removeAttribute("id"),o}return null}})},4268:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t){return!0===e?[]:!1===e?[t.fail()]:e}n.d(t,{DD:()=>u,Yj:()=>p,IX:()=>d,hu:()=>l,O7:()=>b,Rx:()=>m,Ry:()=>g,jt:()=>_,Z_:()=>O,n_:()=>j,dt:()=>w,G0:()=>k});class a{constructor(e){const{type:t,schema:n,coercer:r=(e=>e),validator:o=(()=>[]),refiner:i=(()=>[])}=e;this.type=t,this.schema=n,this.coercer=r,this.validator=o,this.refiner=i}}class u extends TypeError{constructor(e,t){const{path:n,value:r,type:o,branch:i}=e,s=c(e,["path","value","type","branch"]);super(`Expected a value of type \`${o}\`${n.length?` for \`${n.join(".")}\``:""} but received \`${JSON.stringify(r)}\`.`),this.value=r,Object.assign(this,s),this.type=o,this.path=n,this.branch=i,this.failures=function*(){yield e,yield*t},this.stack=(new Error).stack,this.__proto__=u.prototype}}function l(e,t){const n=h(e,t);if(n[0])throw n[0]}function f(e,t){const n=t.coercer(e);return l(n,t),n}function h(e,t,n=!1){n&&(e=t.coercer(e));const r=y(e,t),[o]=r;if(o){return[new u(o,r),void 0]}return[void 0,e]}function*y(e,t,n=[],r=[]){const{type:o}=t,c={value:e,type:o,branch:r,path:n,fail:(t={})=>i({value:e,type:o,path:n,branch:[...r,e]},t),check:(e,t,o,i)=>y(e,t,void 0!==o?[...n,i]:n,void 0!==o?[...r,o]:r)},a=s(t.validator(e,c),c),[u]=a;u?(yield u,yield*a):yield*s(t.refiner(e,c),c)}function p(){return j("any",(()=>!0))}function d(e){return new a({type:`Array<${e?e.type:"unknown"}>`,schema:e,coercer:t=>e&&Array.isArray(t)?t.map((t=>f(t,e))):t,*validator(t,n){if(Array.isArray(t)){if(e)for(const[r,o]of t.entries())yield*n.check(o,e,t,r)}else yield n.fail()}})}function b(){return j("boolean",(e=>"boolean"==typeof e))}function v(){return j("never",(()=>!1))}function m(){return j("number",(e=>"number"==typeof e&&!isNaN(e)))}function g(e){const t=e?Object.keys(e):[],n=v();return new a({type:e?`Object<{${t.join(",")}}>`:"Object",schema:e||null,coercer:e?I(e):e=>e,*validator(r,o){if("object"==typeof r&&null!=r){if(e){const i=new Set(Object.keys(r));for(const n of t){i.delete(n);const t=e[n],c=r[n];yield*o.check(c,t,r,n)}for(const e of i){const t=r[e];yield*o.check(t,n,r,e)}}}else yield o.fail()}})}function _(e){return new a({type:e.type+"?",schema:e.schema,validator:(t,n)=>void 0===t||n.check(t,e)})}function O(){return j("string",(e=>"string"==typeof e))}function j(e,t){return new a({type:e,validator:t,schema:null})}function w(e){const t=Object.keys(e);return j(`Type<{${t.join(",")}}>`,(function*(n,r){if("object"==typeof n&&null!=n)for(const o of t){const t=e[o],i=n[o];yield*r.check(i,t,n,o)}else yield r.fail()}))}function k(e){return j(""+e.map((e=>e.type)).join(" | "),(function*(t,n){for(const r of e){const[...e]=n.check(t,r);if(0===e.length)return}yield n.fail()}))}function I(e){const t=Object.keys(e);return n=>{if("object"!=typeof n||null==n)return n;const r={},o=new Set(Object.keys(n));for(const i of t){o.delete(i);const t=e[i],c=n[i];r[i]=f(c,t)}for(const e of o)r[e]=n[e];return r}}}}]);
//# sourceMappingURL=chunk.97fce280bf56b57ac89e.js.map