diff --git a/CHANGELOG.md b/CHANGELOG.md index fdd02ca..308a3bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [1.9.12] Unreleased +## [1.9.13] Unreleased ### Fixed ### Added ### Changed +## [1.9.12] 2021-01-29 +### Fixed +- Minor bug fixing + ## [1.9.11] 2021-01-29 ### Fixed - Minor bug fixing diff --git a/dist/ha-card-weather-conditions.js b/dist/ha-card-weather-conditions.js index b564095..4cf7d84 100644 --- a/dist/ha-card-weather-conditions.js +++ b/dist/ha-card-weather-conditions.js @@ -1,4 +1,4 @@ -function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}const e="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(t,e,i=null)=>{for(;e!==i;){const i=e.nextSibling;t.removeChild(e),e=i}},s=`{{lit-${String(Math.random()).slice(2)}}}`,n=`\x3c!--${s}--\x3e`,o=new RegExp(`${s}|${n}`),a="$lit$";class r{constructor(t,e){this.parts=[],this.element=e;const i=[],n=[],r=document.createTreeWalker(e.content,133,null,!1);let h=0,l=-1,g=0;const{strings:u,values:{length:w}}=t;for(;g0;){const e=u[g],i=c.exec(e)[2],s=i.toLowerCase()+a,n=t.getAttribute(s);t.removeAttribute(s);const r=n.split(o);this.parts.push({type:"attribute",index:l,name:i,strings:r}),g+=r.length-1}}"TEMPLATE"===t.tagName&&(n.push(t),r.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(s)>=0){const s=t.parentNode,n=e.split(o),r=n.length-1;for(let e=0;e{const i=t.length-e.length;return i>=0&&t.slice(i)===e},h=t=>-1!==t.index,d=()=>document.createComment(""),c=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,l=133;function g(t,e){const{element:{content:i},parts:s}=t,n=document.createTreeWalker(i,l,null,!1);let o=w(s),a=s[o],r=-1,p=0;const h=[];let d=null;for(;n.nextNode();){r++;const t=n.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(h.push(t),null===d&&(d=t)),null!==d&&p++;void 0!==a&&a.index===r;)a.index=null!==d?-1:a.index-p,a=s[o=w(s,o)]}h.forEach(t=>t.parentNode.removeChild(t))}const u=t=>{let e=11===t.nodeType?0:1;const i=document.createTreeWalker(t,l,null,!1);for(;i.nextNode();)e++;return e},w=(t,e=-1)=>{for(let i=e+1;i"function"==typeof t&&x.has(t),y={},b={};class _{constructor(t,e,i){this.__parts=[],this.template=t,this.processor=e,this.options=i}update(t){let e=0;for(const i of this.__parts)void 0!==i&&i.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=e?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),i=[],s=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let o,a=0,r=0,p=n.nextNode();for(;a-1||i)&&-1===t.indexOf("--\x3e",r+1);const p=c.exec(t);e+=null===p?t+(i?v:n):t.substr(0,p.index)+p[1]+p[2]+a+p[3]+s}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}const k=t=>null===t||!("object"==typeof t||"function"==typeof t),S=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class M{constructor(t,e,i){this.dirty=!0,this.element=t,this.name=e,this.strings=i,this.parts=[];for(let t=0;t{try{const t={get capture(){return T=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class L{constructor(t,e,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=i,this.__boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;m(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=y,t(this)}if(this.__pendingValue===y)return;const t=this.__pendingValue,e=this.value,i=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),s=null!=t&&(null==e||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=P(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=y}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const P=t=>t&&(T?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);function A(t){let e=D.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},D.set(t.type,e));let i=e.stringsArray.get(t.strings);if(void 0!==i)return i;const n=t.strings.join(s);return void 0===(i=e.keyString.get(n))&&(i=new r(t,t.getTemplateElement()),e.keyString.set(n,i)),e.stringsArray.set(t.strings,i),i}const D=new Map,O=new WeakMap;const $=new class{handleAttributeExpressions(t,e,i,s){const n=e[0];return"."===n?new z(t,e.slice(1),i).parts:"@"===n?[new L(t,e.slice(1),s.eventContext)]:"?"===n?[new j(t,e.slice(1),i)]:new M(t,e,i).parts}handleTextExpression(t){return new N(t)}};"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const E=(t,...e)=>new f(t,e,"html",$),Z=(t,e)=>`${t}--${e}`;let H=!0;void 0===window.ShadyCSS?H=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),H=!1);const U=t=>e=>{const i=Z(e.type,t);let n=D.get(i);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},D.set(i,n));let o=n.stringsArray.get(e.strings);if(void 0!==o)return o;const a=e.strings.join(s);if(void 0===(o=n.keyString.get(a))){const i=e.getTemplateElement();H&&window.ShadyCSS.prepareTemplateDom(i,t),o=new r(e,i),n.keyString.set(a,o)}return n.stringsArray.set(e.strings,o),o},G=["html","svg"],R=new Set,W=(t,e,i)=>{R.add(t);const s=i?i.element:document.createElement("template"),n=e.querySelectorAll("style"),{length:o}=n;if(0===o)return void window.ShadyCSS.prepareTemplateStyles(s,t);const a=document.createElement("style");for(let t=0;t{G.forEach(e=>{const i=D.get(Z(e,t));void 0!==i&&i.keyString.forEach(t=>{const{element:{content:e}}=t,i=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{i.add(t)}),g(t,i)})})})(t);const r=s.content;i?function(t,e,i=null){const{element:{content:s},parts:n}=t;if(null==i)return void s.appendChild(e);const o=document.createTreeWalker(s,l,null,!1);let a=w(n),r=0,p=-1;for(;o.nextNode();)for(p++,o.currentNode===i&&(r=u(e),i.parentNode.insertBefore(e,i));-1!==a&&n[a].index===p;){if(r>0){for(;-1!==a;)n[a].index+=r,a=w(n,a);return}a=w(n,a)}}(i,a,r.firstChild):r.insertBefore(a,r.firstChild),window.ShadyCSS.prepareTemplateStyles(s,t);const p=r.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==p)e.insertBefore(p.cloneNode(!0),e.firstChild);else if(i){r.insertBefore(a,r.firstChild);const t=new Set;t.add(a),g(i,t)}};window.JSCompiler_renameProperty=((t,e)=>t);const V={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},B=(t,e)=>e!==t&&(e==e||t==t),F={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:B},Q=1,Y=4,J=8,X=16,q="finalized";class K extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,i)=>{const s=this._attributeNameForProperty(i,e);void 0!==s&&(this._attributeToPropertyMap.set(s,i),t.push(s))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=F){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const i="symbol"==typeof t?Symbol():`__${t}`,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(i){const s=this[t];this[e]=i,this._requestUpdate(t,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||F}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(q)||t.finalize(),this[q]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const i of e)this.createProperty(i,t[i])}}static _attributeNameForProperty(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,i=B){return i(t,e)}static _propertyValueFromAttribute(t,e){const i=e.type,s=e.converter||V,n="function"==typeof s?s:s.fromAttribute;return n?n(t,i):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const i=e.type,s=e.converter;return(s&&s.toAttribute||V.toAttribute)(t,i)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,i){e!==i&&this._attributeToProperty(t,i)}_propertyToAttribute(t,e,i=F){const s=this.constructor,n=s._attributeNameForProperty(t,i);if(void 0!==n){const t=s._propertyValueToAttribute(e,i);if(void 0===t)return;this._updateState=this._updateState|J,null==t?this.removeAttribute(n):this.setAttribute(n,t),this._updateState=this._updateState&~J}}_attributeToProperty(t,e){if(this._updateState&J)return;const i=this.constructor,s=i._attributeToPropertyMap.get(t);if(void 0!==s){const t=i.getPropertyOptions(s);this._updateState=this._updateState|X,this[s]=i._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~X}}_requestUpdate(t,e){let i=!0;if(void 0!==t){const s=this.constructor,n=s.getPropertyOptions(t);s._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||this._updateState&X||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):i=!1}!this._hasRequestedUpdate&&i&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=this._updateState|Y;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return this._updateState&Y}get hasUpdated(){return this._updateState&Q}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(this._updateState&Q||(this._updateState=this._updateState|Q,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Y}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}K[q]=!0;const tt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:s}=e;return{kind:i,elements:s,finisher(e){window.customElements.define(t,e)}}})(t,e),et=(t,e)=>"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}:Object.assign(Object.assign({},e),{finisher(i){i.createProperty(e.key,t)}}),it=(t,e,i)=>{e.constructor.createProperty(i,t)};function st(t){return(e,i)=>void 0!==i?it(t,e,i):et(t,e)}const nt="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol();class at{constructor(t,e){if(e!==ot)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(nt?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const rt=(t,...e)=>{const i=e.reduce((e,i,s)=>e+(t=>{if(t instanceof at)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[s+1],t[0]);return new at(i,ot)};(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const pt={};class ht extends K{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){const e=(t,i)=>t.reduceRight((t,i)=>Array.isArray(i)?e(i,t):(t.add(i),t),i),i=e(t,new Set),s=[];i.forEach(t=>s.unshift(t)),this._styles=s}else this._styles=[t]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?nt?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==pt&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){return pt}}ht.finalized=!0,ht.render=((t,e,s)=>{if(!s||"object"!=typeof s||!s.scopeName)throw new Error("The `scopeName` option is required.");const n=s.scopeName,o=O.has(e),a=H&&11===e.nodeType&&!!e.host,r=a&&!R.has(n),p=r?document.createDocumentFragment():e;if(((t,e,s)=>{let n=O.get(e);void 0===n&&(i(e,e.firstChild),O.set(e,n=new N(Object.assign({templateFactory:A},s))),n.appendInto(e)),n.setValue(t),n.commit()})(t,p,Object.assign({templateFactory:U(n)},s)),r){const t=O.get(p);O.delete(p);const s=t.value instanceof _?t.value.template:void 0;W(n,p,s),i(e,e.firstChild),e.appendChild(p),O.set(e,t)}!o&&a&&window.ShadyCSS.styleElement(e.host)});const dt=rt` +function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}const e="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(t,e,i=null)=>{for(;e!==i;){const i=e.nextSibling;t.removeChild(e),e=i}},s=`{{lit-${String(Math.random()).slice(2)}}}`,n=`\x3c!--${s}--\x3e`,o=new RegExp(`${s}|${n}`),a="$lit$";class r{constructor(t,e){this.parts=[],this.element=e;const i=[],n=[],r=document.createTreeWalker(e.content,133,null,!1);let h=0,l=-1,g=0;const{strings:u,values:{length:w}}=t;for(;g0;){const e=u[g],i=c.exec(e)[2],s=i.toLowerCase()+a,n=t.getAttribute(s);t.removeAttribute(s);const r=n.split(o);this.parts.push({type:"attribute",index:l,name:i,strings:r}),g+=r.length-1}}"TEMPLATE"===t.tagName&&(n.push(t),r.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(s)>=0){const s=t.parentNode,n=e.split(o),r=n.length-1;for(let e=0;e{const i=t.length-e.length;return i>=0&&t.slice(i)===e},h=t=>-1!==t.index,d=()=>document.createComment(""),c=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,l=133;function g(t,e){const{element:{content:i},parts:s}=t,n=document.createTreeWalker(i,l,null,!1);let o=w(s),a=s[o],r=-1,p=0;const h=[];let d=null;for(;n.nextNode();){r++;const t=n.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(h.push(t),null===d&&(d=t)),null!==d&&p++;void 0!==a&&a.index===r;)a.index=null!==d?-1:a.index-p,a=s[o=w(s,o)]}h.forEach(t=>t.parentNode.removeChild(t))}const u=t=>{let e=11===t.nodeType?0:1;const i=document.createTreeWalker(t,l,null,!1);for(;i.nextNode();)e++;return e},w=(t,e=-1)=>{for(let i=e+1;i"function"==typeof t&&x.has(t),y={},b={};class _{constructor(t,e,i){this.__parts=[],this.template=t,this.processor=e,this.options=i}update(t){let e=0;for(const i of this.__parts)void 0!==i&&i.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=e?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),i=[],s=this.template.parts,n=document.createTreeWalker(t,133,null,!1);let o,a=0,r=0,p=n.nextNode();for(;a-1||i)&&-1===t.indexOf("--\x3e",r+1);const p=c.exec(t);e+=null===p?t+(i?v:n):t.substr(0,p.index)+p[1]+p[2]+a+p[3]+s}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}const k=t=>null===t||!("object"==typeof t||"function"==typeof t),S=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class M{constructor(t,e,i){this.dirty=!0,this.element=t,this.name=e,this.strings=i,this.parts=[];for(let t=0;t{try{const t={get capture(){return T=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}})();class L{constructor(t,e,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=i,this.__boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;m(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=y,t(this)}if(this.__pendingValue===y)return;const t=this.__pendingValue,e=this.value,i=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),s=null!=t&&(null==e||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=P(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=y}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const P=t=>t&&(T?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);function A(t){let e=D.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},D.set(t.type,e));let i=e.stringsArray.get(t.strings);if(void 0!==i)return i;const n=t.strings.join(s);return void 0===(i=e.keyString.get(n))&&(i=new r(t,t.getTemplateElement()),e.keyString.set(n,i)),e.stringsArray.set(t.strings,i),i}const D=new Map,O=new WeakMap;const $=new class{handleAttributeExpressions(t,e,i,s){const n=e[0];return"."===n?new C(t,e.slice(1),i).parts:"@"===n?[new L(t,e.slice(1),s.eventContext)]:"?"===n?[new j(t,e.slice(1),i)]:new M(t,e,i).parts}handleTextExpression(t){return new N(t)}};"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const E=(t,...e)=>new f(t,e,"html",$),Z=(t,e)=>`${t}--${e}`;let H=!0;void 0===window.ShadyCSS?H=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),H=!1);const U=t=>e=>{const i=Z(e.type,t);let n=D.get(i);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},D.set(i,n));let o=n.stringsArray.get(e.strings);if(void 0!==o)return o;const a=e.strings.join(s);if(void 0===(o=n.keyString.get(a))){const i=e.getTemplateElement();H&&window.ShadyCSS.prepareTemplateDom(i,t),o=new r(e,i),n.keyString.set(a,o)}return n.stringsArray.set(e.strings,o),o},G=["html","svg"],W=new Set,R=(t,e,i)=>{W.add(t);const s=i?i.element:document.createElement("template"),n=e.querySelectorAll("style"),{length:o}=n;if(0===o)return void window.ShadyCSS.prepareTemplateStyles(s,t);const a=document.createElement("style");for(let t=0;t{G.forEach(e=>{const i=D.get(Z(e,t));void 0!==i&&i.keyString.forEach(t=>{const{element:{content:e}}=t,i=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{i.add(t)}),g(t,i)})})})(t);const r=s.content;i?function(t,e,i=null){const{element:{content:s},parts:n}=t;if(null==i)return void s.appendChild(e);const o=document.createTreeWalker(s,l,null,!1);let a=w(n),r=0,p=-1;for(;o.nextNode();)for(p++,o.currentNode===i&&(r=u(e),i.parentNode.insertBefore(e,i));-1!==a&&n[a].index===p;){if(r>0){for(;-1!==a;)n[a].index+=r,a=w(n,a);return}a=w(n,a)}}(i,a,r.firstChild):r.insertBefore(a,r.firstChild),window.ShadyCSS.prepareTemplateStyles(s,t);const p=r.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==p)e.insertBefore(p.cloneNode(!0),e.firstChild);else if(i){r.insertBefore(a,r.firstChild);const t=new Set;t.add(a),g(i,t)}};window.JSCompiler_renameProperty=((t,e)=>t);const V={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},B=(t,e)=>e!==t&&(e==e||t==t),F={attribute:!0,type:String,converter:V,reflect:!1,hasChanged:B},Q=1,Y=4,J=8,X=16,q="finalized";class K extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(t=>this._enableUpdatingResolver=t),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,i)=>{const s=this._attributeNameForProperty(i,e);void 0!==s&&(this._attributeToPropertyMap.set(s,i),t.push(s))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=F){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const i="symbol"==typeof t?Symbol():`__${t}`,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(i){const s=this[t];this[e]=i,this._requestUpdate(t,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this._classProperties&&this._classProperties.get(t)||F}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(q)||t.finalize(),this[q]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const i of e)this.createProperty(i,t[i])}}static _attributeNameForProperty(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,i=B){return i(t,e)}static _propertyValueFromAttribute(t,e){const i=e.type,s=e.converter||V,n="function"==typeof s?s:s.fromAttribute;return n?n(t,i):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const i=e.type,s=e.converter;return(s&&s.toAttribute||V.toAttribute)(t,i)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,i){e!==i&&this._attributeToProperty(t,i)}_propertyToAttribute(t,e,i=F){const s=this.constructor,n=s._attributeNameForProperty(t,i);if(void 0!==n){const t=s._propertyValueToAttribute(e,i);if(void 0===t)return;this._updateState=this._updateState|J,null==t?this.removeAttribute(n):this.setAttribute(n,t),this._updateState=this._updateState&~J}}_attributeToProperty(t,e){if(this._updateState&J)return;const i=this.constructor,s=i._attributeToPropertyMap.get(t);if(void 0!==s){const t=i.getPropertyOptions(s);this._updateState=this._updateState|X,this[s]=i._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~X}}_requestUpdate(t,e){let i=!0;if(void 0!==t){const s=this.constructor,n=s.getPropertyOptions(t);s._valueHasChanged(this[t],e,n.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==n.reflect||this._updateState&X||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,n))):i=!1}!this._hasRequestedUpdate&&i&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){this._updateState=this._updateState|Y;try{await this._updatePromise}catch(t){}const t=this.performUpdate();return null!=t&&await t,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return this._updateState&Y}get hasUpdated(){return this._updateState&Q}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(this._updateState&Q||(this._updateState=this._updateState|Q,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Y}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0),this._markUpdated()}updated(t){}firstUpdated(t){}}K[q]=!0;const tt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:s}=e;return{kind:i,elements:s,finisher(e){window.customElements.define(t,e)}}})(t,e),et=(t,e)=>"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}:Object.assign(Object.assign({},e),{finisher(i){i.createProperty(e.key,t)}}),it=(t,e,i)=>{e.constructor.createProperty(i,t)};function st(t){return(e,i)=>void 0!==i?it(t,e,i):et(t,e)}const nt="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol();class at{constructor(t,e){if(e!==ot)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(nt?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const rt=(t,...e)=>{const i=e.reduce((e,i,s)=>e+(t=>{if(t instanceof at)return t.cssText;if("number"==typeof t)return t;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${t}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[s+1],t[0]);return new at(i,ot)};(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const pt={};class ht extends K{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){const e=(t,i)=>t.reduceRight((t,i)=>Array.isArray(i)?e(i,t):(t.add(i),t),i),i=e(t,new Set),s=[];i.forEach(t=>s.unshift(t)),this._styles=s}else this._styles=[t]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?nt?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==pt&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){return pt}}ht.finalized=!0,ht.render=((t,e,s)=>{if(!s||"object"!=typeof s||!s.scopeName)throw new Error("The `scopeName` option is required.");const n=s.scopeName,o=O.has(e),a=H&&11===e.nodeType&&!!e.host,r=a&&!W.has(n),p=r?document.createDocumentFragment():e;if(((t,e,s)=>{let n=O.get(e);void 0===n&&(i(e,e.firstChild),O.set(e,n=new N(Object.assign({templateFactory:A},s))),n.appendInto(e)),n.setValue(t),n.commit()})(t,p,Object.assign({templateFactory:U(n)},s)),r){const t=O.get(p);O.delete(p);const s=t.value instanceof _?t.value.template:void 0;R(n,p,s),i(e,e.firstChild),e.appendChild(p),O.set(e,t)}!o&&a&&window.ShadyCSS.styleElement(e.host)});const dt=rt` ha-card { cursor: pointer; position: relative; @@ -267,13 +267,13 @@ function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPro // -webkit-background-size: cover; // background-size: cover; // } -`,xt={freezing_rain_heavy:"rainy-3","heavy freezing rain":"rainy-3",freezing_rain:"rainy-2","freezing rain":"rainy-2",freezing_rain_light:"rainy-1","light freezing rain":"rainy-1",freezing_drizzle:"rain-and-sleet-mix","freezing drizzle":"rain-and-sleet-mix",ice_pellets_heavy:"rain-and-snow-mix","heavy ice pellets":"rain-and-snow-mix",ice_pellets:"rain-and-snow-mix","ice pellets":"rain-and-snow-mix",ice_pellets_light:"rain-and-snow-mix","light ice pellets":"rain-and-snow-mix",snow_heavy:"snowy-3","heavy snow":"snowy-3",snow:"snowy-2",snow_light:"snowy-1","light snow":"snowy-1",flurries:"wind",tstorm:"tropical-storm",rain_heavy:"rainy-3","heavy rain":"rainy-3",rain_light:"rainy-1","light rain":"rainy-1",rain:"rainy-2",drizzle:"rainy-1",fog_light:"haze","light fog":"haze",fog:"fog",cloudy:"cloudy-original",mostly_cloudy:"cloudy-day-3","mostly cloudy":"cloudy-day-3",partly_cloudy:"cloudy-day-2","partly cloudy":"cloudy-day-2",mostly_clear:"cloudy-day-1","mostly clear":"cloudy-day-1",clear:"day"},mt=Object.assign(Object.assign({},xt),{freezing_rain_heavy:"rainy-6","heavy freezing rain":"rainy-6",freezing_rain:"rainy-5","freezing rain":"rainy-5",freezing_rain_light:"rainy-4","light freezing rain":"rainy-4",snow_heavy:"snowy-6","heavy snow":"snowy-6",snow:"snowy-5",snow_light:"snowy-4","light snow":"snowy-4",rain_heavy:"rainy-6","heavy rain":"rainy-6",rain_light:"rainy-4","light rain":"rainy-4",rain:"rainy-5",drizzle:"rainy-4",mostly_cloudy:"cloudy-night-3","mostly cloudy":"cloudy-night-3",partly_cloudy:"cloudy-night-2","partly cloudy":"cloudy-night-2",mostly_clear:"cloudy-night-1","mostly clear":"cloudy-night-1",clear:"night",sunny:"night"}),yt={clear:"day","clear-day":"day",rain:"rainy-2",snow:"snowy-2",sleet:"rain-and-sleet-mix",wind:"cloudy-day-1",fog:"fog",cloudy:"cloudy-original","partly-cloudy-day":"cloudy-day-2"},bt=Object.assign(Object.assign({},yt),{clear:"night","clear-night":"night",wind:"cloudy-night-1","partly-cloudy-day":"cloudy-night-2","partly-cloudy-night":"cloudy-night-2"}),_t={"clear sky":"day","few clouds":"cloudy-day-1","scattered clouds":"cloudy-day-2","broken clouds":"cloudy-day-3","shower rain":"rainy-3",rain:"rainy-2",thunderstorm:"tropical-storm",snow:"snowy-2",mist:"fog"},vt=Object.assign(Object.assign({},_t),{"clear sky":"day-night","few clouds":"cloudy-night-1","scattered clouds":"cloudy-night-2","broken clouds":"cloudy-night-3"}),ft={snowy:"snowy-3","light-snow":"snowy-2","snowy-rainy":"snowy-1","partlycloudy-light-snow":"snowy-1","partlycloudy-snow":"snowy-1","partlycloudy-light-rain":"rainy-1","light-rain":"rainy-1",rainy:"rainy-2","partlycloudy-rain":"rainy-1","partlycloudy-fog":"fog",cloudy:"cloudy-original",partlycloudy:"cloudy-day-2","partlycloudy-lightning":"cloudy-day-1",lightning:"cloudy-day-1",clear:"day"},kt=Object.assign({},ft),St={cloudy:"cloudy-day-3",exceptional:"severe-thunderstorm",fog:"fog",hail:"snow-and-sleet-mix",lightning:"severe-thunderstorm","lightning-rainy":"scattered-thunderstorms",partlycloudy:"cloudy-day-3",pouring:"rainy-6",rainy:"rainy-5",snowy:"snowy-6","snowy-rainy":"snow-and-sleet-mix",sunny:"clear-day",windy:"wind","windy-variant":"wind"},Mt=Object.assign(Object.assign({},St),{"clear-night":"clear-night"});let It={en:0,it:1,nl:2,es:3,de:4,fr:5,"sr-latn":6,pt:7,da:8,"no-no":9},Nt={new_moon:"🌑",new:"🌑",waxing_crescent:"🌒",first_quarter:"🌓",waxing_gibbous:"🌔",full:"🌕",full_moon:"🌕",waning_gibbous:"🌖",third_quarter:"🌗",last_quarter:"🌗",waning_crescent:"🌘"};function jt(t,e,i){return i=i||"0",(t+="").length>=e?t:new Array(e-t.length+1).join(i)+t}function zt(t){return new Promise(e=>{setTimeout(()=>{let i=new Image;i.onload=(()=>{e(!0)}),i.onerror=(()=>{e(!1)}),i.src=t},100)})}const Ct=(t,e)=>e[t]?e[t]:"ERR",Tt=(t,e,i)=>{let s=i&&"below_horizon"==i,n=s?e.iconsNight[t]:e.iconsDay[t];return null==e.path&&console.info("Image path not found. (hacsImagePathExist="+qt+")(manImagePathExist="+Kt),void 0===n&&console.info("Icons issue. States: icons_model="+e.icons_model+" - isDay="+!s+" - condition: "+t+"."),`${e.path}/${e.iconType}/${n}.svg`},Lt=(t,e)=>{const i=t.config.unit_system.length;switch(e){case"air_pressure":return"km"===i?"hPa":"inHg";case"length":return i;case"precipitation":return"km"===i?"mm":"in";default:return t.config.unit_system[e]||""}};function Pt(t){return new Promise(e=>{setTimeout(()=>{let i=new XMLHttpRequest;i.overrideMimeType("application/json"),i.open("GET",t,!0),i.onreadystatechange=(()=>{if(4===i.readyState&&200===i.status)e(i.responseText);else if(200!==i.status){let e="ERROR during json file retrieve: '"+t+"', readyState: "+i.readyState+", status: "+i.status+", statusText: "+i.statusText+", responseText: "+i.responseText;console.info(e)}}),i.send(null)},100)})}function At(t,e=1){switch(e){case 0:return ne.format(parseFloat(t));case 1:return oe.format(parseFloat(t))}}const Dt=(t,e,i,s,n)=>{let o,a,r=e.sun&&t.states[e.sun]?t.states[e.sun].state:void 0,p=e.moon_phase&&t.states[e.moon_phase]?t.states[e.moon_phase].state:void 0,h=p?function(t){return Nt[t.toLowerCase()]}(p):void 0,d=e.current_conditions&&t.states[e.current_conditions]?t.states[e.current_conditions].state:"Na";return o=e.temperature&&t.states[e.temperature]?At(t.states[e.temperature].state):"Na",a=e.feels_like&&t.states[e.feels_like]?At(t.states[e.feels_like].state):"Na",E` +`,xt={freezing_rain_heavy:"rainy-3","heavy freezing rain":"rainy-3",freezing_rain:"rainy-2","freezing rain":"rainy-2",freezing_rain_light:"rainy-1","light freezing rain":"rainy-1",freezing_drizzle:"rain-and-sleet-mix","freezing drizzle":"rain-and-sleet-mix",ice_pellets_heavy:"rain-and-snow-mix","heavy ice pellets":"rain-and-snow-mix",ice_pellets:"rain-and-snow-mix","ice pellets":"rain-and-snow-mix",ice_pellets_light:"rain-and-snow-mix","light ice pellets":"rain-and-snow-mix",snow_heavy:"snowy-3","heavy snow":"snowy-3",snow:"snowy-2",snow_light:"snowy-1","light snow":"snowy-1",flurries:"wind",tstorm:"tropical-storm",rain_heavy:"rainy-3","heavy rain":"rainy-3",rain_light:"rainy-1","light rain":"rainy-1",rain:"rainy-2",drizzle:"rainy-1",fog_light:"haze","light fog":"haze",fog:"fog",cloudy:"cloudy-original",mostly_cloudy:"cloudy-day-3","mostly cloudy":"cloudy-day-3",partly_cloudy:"cloudy-day-2","partly cloudy":"cloudy-day-2",mostly_clear:"cloudy-day-1","mostly clear":"cloudy-day-1",clear:"day"},mt=Object.assign(Object.assign({},xt),{freezing_rain_heavy:"rainy-6","heavy freezing rain":"rainy-6",freezing_rain:"rainy-5","freezing rain":"rainy-5",freezing_rain_light:"rainy-4","light freezing rain":"rainy-4",snow_heavy:"snowy-6","heavy snow":"snowy-6",snow:"snowy-5",snow_light:"snowy-4","light snow":"snowy-4",rain_heavy:"rainy-6","heavy rain":"rainy-6",rain_light:"rainy-4","light rain":"rainy-4",rain:"rainy-5",drizzle:"rainy-4",mostly_cloudy:"cloudy-night-3","mostly cloudy":"cloudy-night-3",partly_cloudy:"cloudy-night-2","partly cloudy":"cloudy-night-2",mostly_clear:"cloudy-night-1","mostly clear":"cloudy-night-1",clear:"night",sunny:"night"}),yt={clear:"day","clear-day":"day",rain:"rainy-2",snow:"snowy-2",sleet:"rain-and-sleet-mix",wind:"cloudy-day-1",fog:"fog",cloudy:"cloudy-original","partly-cloudy-day":"cloudy-day-2"},bt=Object.assign(Object.assign({},yt),{clear:"night","clear-night":"night",wind:"cloudy-night-1","partly-cloudy-day":"cloudy-night-2","partly-cloudy-night":"cloudy-night-2"}),_t={"clear sky":"day","few clouds":"cloudy-day-1","scattered clouds":"cloudy-day-2","broken clouds":"cloudy-day-3","shower rain":"rainy-3",rain:"rainy-2",thunderstorm:"tropical-storm",snow:"snowy-2",mist:"fog"},vt=Object.assign(Object.assign({},_t),{"clear sky":"day-night","few clouds":"cloudy-night-1","scattered clouds":"cloudy-night-2","broken clouds":"cloudy-night-3"}),ft={snowy:"snowy-3","light-snow":"snowy-2","snowy-rainy":"snowy-1","partlycloudy-light-snow":"snowy-1","partlycloudy-snow":"snowy-1","partlycloudy-light-rain":"rainy-1","light-rain":"rainy-1",rainy:"rainy-2","partlycloudy-rain":"rainy-1","partlycloudy-fog":"fog",cloudy:"cloudy-original",partlycloudy:"cloudy-day-2","partlycloudy-lightning":"cloudy-day-1",lightning:"cloudy-day-1",clear:"day"},kt=Object.assign({},ft),St={cloudy:"cloudy-day-3",exceptional:"severe-thunderstorm",fog:"fog",hail:"snow-and-sleet-mix",lightning:"severe-thunderstorm","lightning-rainy":"scattered-thunderstorms",partlycloudy:"cloudy-day-3",pouring:"rainy-6",rainy:"rainy-5",snowy:"snowy-6","snowy-rainy":"snow-and-sleet-mix",sunny:"clear-day",windy:"wind","windy-variant":"wind"},Mt=Object.assign(Object.assign({},St),{"clear-night":"clear-night"});let It={en:0,it:1,nl:2,es:3,de:4,fr:5,"sr-latn":6,pt:7,da:8,"no-no":9},Nt={new_moon:"🌑",new:"🌑",waxing_crescent:"🌒",first_quarter:"🌓",waxing_gibbous:"🌔",full:"🌕",full_moon:"🌕",waning_gibbous:"🌖",third_quarter:"🌗",last_quarter:"🌗",waning_crescent:"🌘"};function jt(t,e,i){return i=i||"0",(t+="").length>=e?t:new Array(e-t.length+1).join(i)+t}function Ct(t){return new Promise(e=>{setTimeout(()=>{let i=new Image;i.onload=(()=>{e(!0)}),i.onerror=(()=>{e(!1)}),i.src=t},100)})}const zt=(t,e)=>e[Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase())]?e[Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase())]:t,Tt=(t,e,i)=>{let s=i&&"below_horizon"==i,n=s?e.iconsNight[t]:e.iconsDay[t];return null==e.path&&console.info("Image path not found. (hacsImagePathExist="+qt+")(manImagePathExist="+Kt),void 0===n&&console.info("Icons issue. States: icons_model="+e.icons_model+" - isDay="+!s+" - condition: "+t+"."),`${e.path}/${e.iconType}/${n}.svg`},Lt=(t,e)=>{const i=t.config.unit_system.length;switch(e){case"air_pressure":return"km"===i?"hPa":"inHg";case"length":return i;case"precipitation":return"km"===i?"mm":"in";default:return t.config.unit_system[e]||""}};function Pt(t){return new Promise(e=>{setTimeout(()=>{let i=new XMLHttpRequest;i.overrideMimeType("application/json"),i.open("GET",t,!0),i.onreadystatechange=(()=>{if(4===i.readyState&&200===i.status)e(i.responseText);else if(200!==i.status){let e="ERROR during json file retrieve: '"+t+"', readyState: "+i.readyState+", status: "+i.status+", statusText: "+i.statusText+", responseText: "+i.responseText;console.info(e)}}),i.send(null)},100)})}function At(t,e=1){switch(e){case 0:return ne.format(parseFloat(t));case 1:return oe.format(parseFloat(t))}}const Dt=(t,e,i,s,n)=>{let o,a,r=e.sun&&t.states[e.sun]?t.states[e.sun].state:void 0,p=e.moon_phase&&t.states[e.moon_phase]?t.states[e.moon_phase].state:void 0,h=p?function(t){return Nt[t.toLowerCase()]}(p):void 0,d=e.current_conditions&&t.states[e.current_conditions]?t.states[e.current_conditions].state:"Na";return o=e.temperature&&t.states[e.temperature]?At(t.states[e.temperature].state):"Na",a=e.feels_like&&t.states[e.feels_like]?At(t.states[e.feels_like].state):"Na",E`
${d} ${i?E` ${i} `:""} - ${p?E` ${h} ${Ct(p,n.words)}`:""} + ${p?E` ${h} ${zt(p,n.words)}`:""} ${"Na"!==o?E` ${o} ${Lt(t,"temperature")} @@ -283,7 +283,7 @@ function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPro
  • - ${Ct("Feels Like",n.words)} ${a} + ${zt("Feels Like",n.words)} ${a} ${Lt(t,"temperature")}
@@ -345,16 +345,16 @@ function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPro   ${i} ${t} ${e.unit_of_measurement?e.unit_of_measurement:""} - `:"",Gt=["I","II","III","IV","V","VI"],Rt=["#F1D1B1","#E4B590","#CF9F7D","#B67851","#A15E2D","#513938"],Wt=(t,e,i)=>{let s=i?At(t.state,0):t.state;return t?E` + `:"",Gt=["I","II","III","IV","V","VI"],Wt=["#F1D1B1","#E4B590","#CF9F7D","#B67851","#A15E2D","#513938"],Rt=(t,e,i)=>{let s=i?At(t.state,0):t.state;return t?E`
  • ${s} ${t.attributes.unit_of_measurement?t.attributes.unit_of_measurement:""}
  • - `:""},Vt=(t,e,i)=>{let s=void 0!==e.protection_window&&t.states[e.protection_window]?Wt(t.states[e.protection_window],"mdi:sunglasses",!1):void 0,n=void 0!==e.uv_level&&t.states[e.uv_level]?Wt(t.states[e.uv_level],"mdi:weather-sunny",!1):void 0,o=void 0!==e.uv_index&&void 0!==e.max_uv_index?((t,e,i)=>{let s=void 0!==t?At(t.state):"--",n=void 0!==e?At(e.state):"--";return t||e?E` + `:""},Vt=(t,e,i)=>{let s=void 0!==e.protection_window&&t.states[e.protection_window]?Rt(t.states[e.protection_window],"mdi:sunglasses",!1):void 0,n=void 0!==e.uv_level&&t.states[e.uv_level]?Rt(t.states[e.uv_level],"mdi:weather-sunny",!1):void 0,o=void 0!==e.uv_index&&void 0!==e.max_uv_index?((t,e,i)=>{let s=void 0!==t?At(t.state):"--",n=void 0!==e?At(e.state):"--";return t||e?E`
  • ${s} / ${n} ${t.attributes.unit_of_measurement?t.attributes.unit_of_measurement:""}
  • - `:""})(t.states[e.uv_index],t.states[e.max_uv_index],"mdi:weather-sunny"):"",a=void 0!==e.ozone_level&&t.states[e.ozone_level]?Wt(t.states[e.ozone_level],"mdi:vector-triangle",!0):void 0;return E` + `:""})(t.states[e.uv_index],t.states[e.max_uv_index],"mdi:weather-sunny"):"",a=void 0!==e.ozone_level&&t.states[e.ozone_level]?Rt(t.states[e.ozone_level],"mdi:vector-triangle",!0):void 0;return E`
      ${n||""}${s||""} ${o||""}${a||""} @@ -362,7 +362,7 @@ function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPro
      ${[1,2,3,4,5,6].map(i=>{let s=e["set_skin_type_"+i],n=void 0!==typeof s&&void 0!==typeof t.states[s]?t.states[s]:void 0;return n?E`
      -
      ${Gt[i-1]}
      +
      ${Gt[i-1]}
      ${(t=>{let e="- -";if(t&&"unknown"!==t){let i=Math.floor(parseInt(t)/60),s=t-60*i;e=i>0?i+":"+jt(s,2)+" h":s+" m"}return e})(n.state)}
      @@ -378,7 +378,7 @@ function t(t,e,i,s){var n,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPro
      `:""}return""})}
      - `};function Ft(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}function Qt(t,e,i){e/=100,i/=100;let s=(1-Math.abs(2*i-1))*e,n=s*(1-Math.abs(t/60%2-1)),o=i-s/2,a=0,r=0,p=0;0<=t&&t<60?(a=s,r=n,p=0):60<=t&&t<120?(a=n,r=s,p=0):120<=t&&t<180?(a=0,r=s,p=n):180<=t&&t<240?(a=0,r=n,p=s):240<=t&&t<300?(a=n,r=0,p=s):300<=t&&t<360&&(a=s,r=0,p=n);let h=Math.round(255*(a+o)).toString(16),d=Math.round(255*(r+o)).toString(16),c=Math.round(255*(p+o)).toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==c.length&&(c="0"+c),"#"+h+d+c}const Yt="/local/community/ha-card-weather-conditions/icons",Jt="/local/ha-card-weather-conditions/icons";let Xt,qt=!1,Kt=!1,te="%c WEATHER-CONDITION-CARD %c 1.9.9",ee="color: white; background: green; font-weight: 700;",ie="color: green; background: white; font-weight: 700;",se="color: black; background: white; font-weight: 700;",ne=null,oe=null;Object.defineProperty(Object.prototype,"isSet",{value:function(t,e){let i=!(null==t);return e?i&&t.length>0:i},writable:!0,configurable:!0,enumerable:!1}),console.info(te,ee,ie);let ae=[zt(Yt+"/static/cloudy.svg"),zt(Jt+"/static/cloudy.svg")];Promise.all(ae).then(e=>{let i,s;i=qt=e[0],s=Kt=e[1];let n=(Xt=i?Yt:s?Jt:null)+"/../transl/",o=[Pt(n+"en.json"),Pt(n+"it.json"),Pt(n+"nl.json"),Pt(n+"es.json"),Pt(n+"de.json"),Pt(n+"fr.json"),Pt(n+"sr-latn.json"),Pt(n+"pt.json"),Pt(n+"da.json"),Pt(n+"no-NO.json")];i?console.info(te+"%c use HACS path to retrieve icons.",ee,ie,se):s?console.info(te+"%c use www root path to retrieve icons.",ee,ie,se):console.info(te+"%c error setting right icons path.",ee,ie,se),Promise.all(o).then(e=>{let n=class extends ht{constructor(){super(...arguments),this._iconsConfig=new class{},this._terms=new class{},this.invalidConfig=!1,this.numberElements=0,this._header=!0,this._name="",this._hasCurrent=!1,this._hasForecast=!1,this._hasMeteogram=!1,this._hasAirQuality=!1,this._hasPollen=!1,this._hasUv=!1,this._hasAlert=!1,this._hasSea=!1,this._displayTop=!0,this._displayCurrent=!0,this._displayForecast=!0,this._showSummary=!0,this._showPresent=!0,this._showUv=!0,this._showAirQuality=!0,this._showPollen=!0,this._showForecast=!0,this._showAlert=!0,this._showSea=!0}setConfig(t){if(console.log({card_config:t}),!t)throw this.invalidConfig=!0,new Error("Invalid configuration");let n;t.name&&t.name.length>0&&(this._name=t.name),t.language&&t.language.length>0?this._language=t.language.toLowerCase():this._language="en";try{n=JSON.parse(e[It[this._language]]),this._terms.windDirections=n.cwcLocWindDirections,this._terms.words=n.cwcTerms,console.info(te+'%c card "'+this._name+"\", locale is '"+this._language+"'.",ee,ie,se)}catch(t){n=JSON.parse(e[It.en]),this._terms.windDirections=n.cwcLocWindDirections,this._terms.words=n.cwcTerms,console.info(te+'%c card "'+this._name+"\" unable to use '"+this._language+"' locale, set as default 'en'.",ee,ie,se)}if(ne=new Intl.NumberFormat(this._language,{maximumFractionDigits:0}),oe=new Intl.NumberFormat(this._language,{maximumFractionDigits:1}),void 0!==t.display&&(this._displayTop=t.display.findIndex(t=>"top"===t.toLowerCase())>=0,this._displayCurrent=t.display.findIndex(t=>"current"===t.toLowerCase())>=0,this._displayForecast=t.display.findIndex(t=>"forecast"===t.toLowerCase())>=0),this._hasCurrent=!!t.weather&&!!t.weather.current,this._hasForecast=!!t.weather&&!!t.weather.forecast,this._hasMeteogram=this._hasForecast&&!!t.weather.forecast.meteogram,this._hasAirQuality=!!t.air_quality,this._hasPollen=!(!t.pollen||!t.pollen.tree&&!t.pollen.weed&&!t.pollen.grass),this._hasUv=!!t.uv,this._hasAlert=!!t.alert,this._hasSea=!!t.sea,this._iconsConfig.path=i?Yt:s?Jt:null,this._iconsConfig.iconType=t.animation?"animated":"static",this._iconsConfig.iconsDay=xt,this._iconsConfig.iconsNight=mt,this._iconsConfig.icons_model="climacell",t.weather&&t.weather.icons_model)switch(t.weather.icons_model.toLowerCase()){case"darksky":this._iconsConfig.iconsDay=yt,this._iconsConfig.iconsNight=bt,this._iconsConfig.icons_model="darksky";break;case"openweathermap":this._iconsConfig.iconsDay=_t,this._iconsConfig.iconsNight=vt,this._iconsConfig.icons_model="openweathermap";break;case"buienradar":this._iconsConfig.iconsDay=ft,this._iconsConfig.iconsNight=kt,this._iconsConfig.icons_model="buienradar";break;case"defaulthass":this._iconsConfig.iconsDay=St,this._iconsConfig.iconsNight=Mt,this._iconsConfig.icons_model="defaulthass"}this._config=t}getCardSize(){return 1}static get styles(){return rt`${dt}${ct}${gt}${lt}${ut}${wt}${(t=>new at(String(t),ot))((t=>`\n \n \n.synoptic {\n width: 100%;\n border-collapse: collapse;\n}\n\ntable.synoptic tr:not(:last-child) {\n border-bottom: 1px solid #476b6b;\n // background-color: cadetblue;\n}\n \ntable.synoptic td {\n vertical-align: top;\n}\n \n.msw-sw\n{\n display: inline-block;\n width: 30px;\n height: 30px;\n background: url("${t}/we-sprite.png") no-repeat top left;\n}\n.msw-sw-1{ background-position: 0 0; width: 30px; height: 30px; } \n.msw-sw-10{ background-position: 0 -60px; width: 30px; height: 30px; } \n.msw-sw-11{ background-position: 0 -120px; width: 30px; height: 30px; } \n.msw-sw-12{ background-position: 0 -180px; width: 30px; height: 30px; } \n.msw-sw-13{ background-position: 0 -240px; width: 30px; height: 30px; } \n.msw-sw-14{ background-position: 0 -300px; width: 30px; height: 30px; } \n.msw-sw-15{ background-position: 0 -360px; width: 30px; height: 30px; } \n.msw-sw-16{ background-position: 0 -420px; width: 30px; height: 30px; } \n.msw-sw-17{ background-position: 0 -480px; width: 30px; height: 30px; } \n.msw-sw-18{ background-position: 0 -540px; width: 30px; height: 30px; } \n.msw-sw-19{ background-position: 0 -600px; width: 30px; height: 30px; } \n.msw-sw-2{ background-position: 0 -660px; width: 30px; height: 30px; } \n.msw-sw-20{ background-position: 0 -720px; width: 30px; height: 30px; } \n.msw-sw-21{ background-position: 0 -780px; width: 30px; height: 30px; } \n.msw-sw-22{ background-position: 0 -840px; width: 30px; height: 30px; } \n.msw-sw-23{ background-position: 0 -900px; width: 30px; height: 30px; } \n.msw-sw-24{ background-position: 0 -960px; width: 30px; height: 30px; } \n.msw-sw-25{ background-position: 0 -1020px; width: 30px; height: 30px; } \n.msw-sw-26{ background-position: 0 -1080px; width: 30px; height: 30px; } \n.msw-sw-27{ background-position: 0 -1140px; width: 30px; height: 30px; } \n.msw-sw-28{ background-position: 0 -1200px; width: 30px; height: 30px; } \n.msw-sw-29{ background-position: 0 -1260px; width: 30px; height: 30px; } \n.msw-sw-3{ background-position: 0 -1320px; width: 30px; height: 30px; } \n.msw-sw-30{ background-position: 0 -1380px; width: 30px; height: 30px; } \n.msw-sw-31{ background-position: 0 -1440px; width: 30px; height: 30px; } \n.msw-sw-32{ background-position: 0 -1500px; width: 30px; height: 30px; } \n.msw-sw-33{ background-position: 0 -1560px; width: 30px; height: 30px; } \n.msw-sw-34{ background-position: 0 -1620px; width: 30px; height: 30px; } \n.msw-sw-35{ background-position: 0 -1680px; width: 30px; height: 30px; } \n.msw-sw-36{ background-position: 0 -1740px; width: 30px; height: 30px; } \n.msw-sw-37{ background-position: 0 -1800px; width: 30px; height: 30px; } \n.msw-sw-38{ background-position: 0 -1860px; width: 30px; height: 30px; } \n.msw-sw-4{ background-position: 0 -1920px; width: 30px; height: 30px; } \n.msw-sw-5{ background-position: -60px 0; width: 30px; height: 30px; } \n.msw-sw-6{ background-position: -60px -60px; width: 30px; height: 30px; } \n.msw-sw-7{ background-position: -60px -120px; width: 30px; height: 30px; } \n.msw-sw-8{ background-position: -60px -180px; width: 30px; height: 30px; } \n.msw-sw-9{ background-position: -60px -240px; width: 30px; height: 30px; }\n\n.msw-swa /* Inherits from swell arrows */\n{\n background: url("${t}/sa-sprite.png") no-repeat top left;\n}\n.msw-swa-10{ background-position: 0 0; width: 26px; height: 26px; } \n.msw-swa-100{ background-position: 0 -52px; width: 26px; height: 26px; } \n.msw-swa-105{ background-position: 0 -104px; width: 26px; height: 26px; } \n.msw-swa-110{ background-position: 0 -156px; width: 26px; height: 26px; } \n.msw-swa-115{ background-position: 0 -208px; width: 26px; height: 26px; } \n.msw-swa-120{ background-position: 0 -260px; width: 26px; height: 26px; } \n.msw-swa-125{ background-position: 0 -312px; width: 26px; height: 26px; } \n.msw-swa-130{ background-position: 0 -364px; width: 26px; height: 26px; } \n.msw-swa-135{ background-position: 0 -416px; width: 26px; height: 26px; } \n.msw-swa-140{ background-position: 0 -468px; width: 26px; height: 26px; } \n.msw-swa-145{ background-position: 0 -520px; width: 26px; height: 26px; } \n.msw-swa-15{ background-position: 0 -572px; width: 26px; height: 26px; } \n.msw-swa-150{ background-position: 0 -624px; width: 26px; height: 26px; } \n.msw-swa-155{ background-position: 0 -676px; width: 26px; height: 26px; } \n.msw-swa-160{ background-position: 0 -728px; width: 26px; height: 26px; } \n.msw-swa-165{ background-position: 0 -780px; width: 26px; height: 26px; } \n.msw-swa-170{ background-position: 0 -832px; width: 26px; height: 26px; } \n.msw-swa-175{ background-position: 0 -884px; width: 26px; height: 26px; } \n.msw-swa-180{ background-position: 0 -936px; width: 26px; height: 26px; } \n.msw-swa-185{ background-position: 0 -988px; width: 26px; height: 26px; } \n.msw-swa-190{ background-position: 0 -1040px; width: 26px; height: 26px; } \n.msw-swa-195{ background-position: 0 -1092px; width: 26px; height: 26px; } \n.msw-swa-20{ background-position: 0 -1144px; width: 26px; height: 26px; } \n.msw-swa-200{ background-position: 0 -1196px; width: 26px; height: 26px; } \n.msw-swa-205{ background-position: 0 -1248px; width: 26px; height: 26px; } \n.msw-swa-210{ background-position: 0 -1300px; width: 26px; height: 26px; } \n.msw-swa-215{ background-position: 0 -1352px; width: 26px; height: 26px; } \n.msw-swa-220{ background-position: 0 -1404px; width: 26px; height: 26px; } \n.msw-swa-225{ background-position: 0 -1456px; width: 26px; height: 26px; } \n.msw-swa-230{ background-position: 0 -1508px; width: 26px; height: 26px; } \n.msw-swa-235{ background-position: 0 -1560px; width: 26px; height: 26px; } \n.msw-swa-240{ background-position: 0 -1612px; width: 26px; height: 26px; } \n.msw-swa-245{ background-position: 0 -1664px; width: 26px; height: 26px; } \n.msw-swa-25{ background-position: 0 -1716px; width: 26px; height: 26px; } \n.msw-swa-250{ background-position: 0 -1768px; width: 26px; height: 26px; } \n.msw-swa-255{ background-position: 0 -1820px; width: 26px; height: 26px; } \n.msw-swa-260{ background-position: 0 -1872px; width: 26px; height: 26px; } \n.msw-swa-265{ background-position: 0 -1924px; width: 26px; height: 26px; } \n.msw-swa-270{ background-position: -52px 0; width: 26px; height: 26px; } \n.msw-swa-275{ background-position: -52px -52px; width: 26px; height: 26px; } \n.msw-swa-280{ background-position: -52px -104px; width: 26px; height: 26px; } \n.msw-swa-285{ background-position: -52px -156px; width: 26px; height: 26px; } \n.msw-swa-290{ background-position: -52px -208px; width: 26px; height: 26px; } \n.msw-swa-295{ background-position: -52px -260px; width: 26px; height: 26px; } \n.msw-swa-30{ background-position: -52px -312px; width: 26px; height: 26px; } \n.msw-swa-300{ background-position: -52px -364px; width: 26px; height: 26px; } \n.msw-swa-305{ background-position: -52px -416px; width: 26px; height: 26px; } \n.msw-swa-310{ background-position: -52px -468px; width: 26px; height: 26px; } \n.msw-swa-315{ background-position: -52px -520px; width: 26px; height: 26px; } \n.msw-swa-320{ background-position: -52px -572px; width: 26px; height: 26px; } \n.msw-swa-325{ background-position: -52px -624px; width: 26px; height: 26px; } \n.msw-swa-330{ background-position: -52px -676px; width: 26px; height: 26px; } \n.msw-swa-335{ background-position: -52px -728px; width: 26px; height: 26px; } \n.msw-swa-340{ background-position: -52px -780px; width: 26px; height: 26px; } \n.msw-swa-345{ background-position: -52px -832px; width: 26px; height: 26px; } \n.msw-swa-35{ background-position: -52px -884px; width: 26px; height: 26px; } \n.msw-swa-350{ background-position: -52px -936px; width: 26px; height: 26px; } \n.msw-swa-355{ background-position: -52px -988px; width: 26px; height: 26px; } \n.msw-swa-360{ background-position: -52px -1040px; width: 26px; height: 26px; } \n.msw-swa-40{ background-position: -52px -1092px; width: 26px; height: 26px; } \n.msw-swa-45{ background-position: -52px -1144px; width: 26px; height: 26px; } \n.msw-swa-5{ background-position: -52px -1196px; width: 26px; height: 26px; } \n.msw-swa-50{ background-position: -52px -1248px; width: 26px; height: 26px; } \n.msw-swa-55{ background-position: -52px -1300px; width: 26px; height: 26px; } \n.msw-swa-60{ background-position: -52px -1352px; width: 26px; height: 26px; } \n.msw-swa-65{ background-position: -52px -1404px; width: 26px; height: 26px; } \n.msw-swa-70{ background-position: -52px -1456px; width: 26px; height: 26px; } \n.msw-swa-75{ background-position: -52px -1508px; width: 26px; height: 26px; } \n.msw-swa-80{ background-position: -52px -1560px; width: 26px; height: 26px; } \n.msw-swa-85{ background-position: -52px -1612px; width: 26px; height: 26px; } \n.msw-swa-90{ background-position: -52px -1664px; width: 26px; height: 26px; } \n.msw-swa-95{ background-position: -52px -1716px; width: 26px; height: 26px; }\n\n.msw-ssa,\n.msw-swa /* Wind arrows */\n{\n display: inline-block;\n width: 26px;\n height: 26px;\n background: url("${t}/wa-sprite.png") no-repeat top left;\n}\n.msw-ssa-10{ background-position: 0 0; width: 26px; height: 26px; } \n.msw-ssa-100{ background-position: 0 -52px; width: 26px; height: 26px; } \n.msw-ssa-105{ background-position: 0 -104px; width: 26px; height: 26px; } \n.msw-ssa-110{ background-position: 0 -156px; width: 26px; height: 26px; } \n.msw-ssa-115{ background-position: 0 -208px; width: 26px; height: 26px; } \n.msw-ssa-120{ background-position: 0 -260px; width: 26px; height: 26px; } \n.msw-ssa-125{ background-position: 0 -312px; width: 26px; height: 26px; } \n.msw-ssa-130{ background-position: 0 -364px; width: 26px; height: 26px; } \n.msw-ssa-135{ background-position: 0 -416px; width: 26px; height: 26px; } \n.msw-ssa-140{ background-position: 0 -468px; width: 26px; height: 26px; } \n.msw-ssa-145{ background-position: 0 -520px; width: 26px; height: 26px; } \n.msw-ssa-15{ background-position: 0 -572px; width: 26px; height: 26px; } \n.msw-ssa-150{ background-position: 0 -624px; width: 26px; height: 26px; } \n.msw-ssa-155{ background-position: 0 -676px; width: 26px; height: 26px; } \n.msw-ssa-160{ background-position: 0 -728px; width: 26px; height: 26px; } \n.msw-ssa-165{ background-position: 0 -780px; width: 26px; height: 26px; } \n.msw-ssa-170{ background-position: 0 -832px; width: 26px; height: 26px; } \n.msw-ssa-175{ background-position: 0 -884px; width: 26px; height: 26px; } \n.msw-ssa-180{ background-position: 0 -936px; width: 26px; height: 26px; } \n.msw-ssa-185{ background-position: 0 -988px; width: 26px; height: 26px; } \n.msw-ssa-190{ background-position: 0 -1040px; width: 26px; height: 26px; } \n.msw-ssa-195{ background-position: 0 -1092px; width: 26px; height: 26px; } \n.msw-ssa-20{ background-position: 0 -1144px; width: 26px; height: 26px; } \n.msw-ssa-200{ background-position: 0 -1196px; width: 26px; height: 26px; } \n.msw-ssa-205{ background-position: 0 -1248px; width: 26px; height: 26px; } \n.msw-ssa-210{ background-position: 0 -1300px; width: 26px; height: 26px; } \n.msw-ssa-215{ background-position: 0 -1352px; width: 26px; height: 26px; } \n.msw-ssa-220{ background-position: 0 -1404px; width: 26px; height: 26px; } \n.msw-ssa-225{ background-position: 0 -1456px; width: 26px; height: 26px; } \n.msw-ssa-230{ background-position: 0 -1508px; width: 26px; height: 26px; } \n.msw-ssa-235{ background-position: 0 -1560px; width: 26px; height: 26px; } \n.msw-ssa-240{ background-position: 0 -1612px; width: 26px; height: 26px; } \n.msw-ssa-245{ background-position: 0 -1664px; width: 26px; height: 26px; } \n.msw-ssa-25{ background-position: 0 -1716px; width: 26px; height: 26px; } \n.msw-ssa-250{ background-position: 0 -1768px; width: 26px; height: 26px; } \n.msw-ssa-255{ background-position: 0 -1820px; width: 26px; height: 26px; } \n.msw-ssa-260{ background-position: 0 -1872px; width: 26px; height: 26px; } \n.msw-ssa-265{ background-position: 0 -1924px; width: 26px; height: 26px; } \n.msw-ssa-270{ background-position: -52px 0; width: 26px; height: 26px; } \n.msw-ssa-275{ background-position: -52px -52px; width: 26px; height: 26px; } \n.msw-ssa-280{ background-position: -52px -104px; width: 26px; height: 26px; } \n.msw-ssa-285{ background-position: -52px -156px; width: 26px; height: 26px; } \n.msw-ssa-290{ background-position: -52px -208px; width: 26px; height: 26px; } \n.msw-ssa-295{ background-position: -52px -260px; width: 26px; height: 26px; } \n.msw-ssa-30{ background-position: -52px -312px; width: 26px; height: 26px; } \n.msw-ssa-300{ background-position: -52px -364px; width: 26px; height: 26px; } \n.msw-ssa-305{ background-position: -52px -416px; width: 26px; height: 26px; } \n.msw-ssa-310{ background-position: -52px -468px; width: 26px; height: 26px; } \n.msw-ssa-315{ background-position: -52px -520px; width: 26px; height: 26px; } \n.msw-ssa-320{ background-position: -52px -572px; width: 26px; height: 26px; } \n.msw-ssa-325{ background-position: -52px -624px; width: 26px; height: 26px; } \n.msw-ssa-330{ background-position: -52px -676px; width: 26px; height: 26px; } \n.msw-ssa-335{ background-position: -52px -728px; width: 26px; height: 26px; } \n.msw-ssa-340{ background-position: -52px -780px; width: 26px; height: 26px; } \n.msw-ssa-345{ background-position: -52px -832px; width: 26px; height: 26px; } \n.msw-ssa-35{ background-position: -52px -884px; width: 26px; height: 26px; } \n.msw-ssa-350{ background-position: -52px -936px; width: 26px; height: 26px; } \n.msw-ssa-355{ background-position: -52px -988px; width: 26px; height: 26px; } \n.msw-ssa-40{ background-position: -52px -1040px; width: 26px; height: 26px; } \n.msw-ssa-45{ background-position: -52px -1092px; width: 26px; height: 26px; } \n.msw-ssa-5{ background-position: -52px -1144px; width: 26px; height: 26px; } \n.msw-ssa-50{ background-position: -52px -1196px; width: 26px; height: 26px; } \n.msw-ssa-55{ background-position: -52px -1248px; width: 26px; height: 26px; } \n.msw-ssa-60{ background-position: -52px -1300px; width: 26px; height: 26px; } \n.msw-ssa-65{ background-position: -52px -1352px; width: 26px; height: 26px; } \n.msw-ssa-70{ background-position: -52px -1404px; width: 26px; height: 26px; } \n.msw-ssa-75{ background-position: -52px -1456px; width: 26px; height: 26px; } \n.msw-ssa-80{ background-position: -52px -1508px; width: 26px; height: 26px; } \n.msw-ssa-85{ background-position: -52px -1560px; width: 26px; height: 26px; } \n.msw-ssa-90{ background-position: -52px -1612px; width: 26px; height: 26px; } \n.msw-ssa-95{ background-position: -52px -1664px; width: 26px; height: 26px; }\n\n.list-group-content {\n display: inline-block;\n vertical-align: middle;\n}\n\n.inline-block {\n display: inline-block;\n *display: inline;\n zoom: 1;\n}\n\n.svg {\n display: none\n}\n\n.svg-icon-container {\n display: inline-block;\n vertical-align: middle;\n margin-left: 5px\n}\n\n.svg {\n display: none!important\n}\n\n.svg-icon {\n display: inline-block;\n vertical-align: middle\n}\n\n\n\n.svg-wind-icon {\n width: 20px;\n height: 27px;\n background-size: auto 100%;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjguODc0cHgiIGhlaWdodD0iMTkuOTAxcHgiIHZpZXdCb3g9IjAgMCAyOC44NzQgMTkuOTAxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyOC44NzQgMTkuOTAxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNy42MTYgOS43NTVjMCAwIDAuMjA3LTIuMjI3IDAuNjQ1LTQuNjY3QzguNDY4IDMuOSA5IDAgOSAwSDYuNTkxSDQuMTQ4YzAgMCAwLjYgMy45IDAuOCA1LjEgQzUuMzYgNy41IDUuNiA5LjggNS42IDkuNzU1TDAgNy40MzlsNi41OTEgMTIuMzM0bDYuNTkxLTEyLjMzNEw3LjYxNiA5Ljc1NXoiLz48cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjMuMTg4IDkuNzU1YzAgMCAwLjIwNy0yLjIyNyAwLjY0NS00LjY2N0MyNC4wNCAzLjkgMjQuNiAwIDI0LjYgMGgtMi40NDNoLTIuNDQzIGMwIDAgMC42IDMuOSAwLjggNS4wODhjMC40MzggMi40IDAuNiA0LjcgMC42IDQuNjY3bC01LjU2Ny0yLjMxNmw2LjU5MSAxMi4zMzRsNi41OTEtMTIuMzM0TDIzLjE4OCA5Ljc1NXoiLz48L3N2Zz4=")\n}\n\n.svg-wind-icon.svg-icon-white {\n background-position: 100% 0\n}\n\n.svg-wind-icon.svg-icon-sm {\n width: 13px;\n height: 20px\n}\n\n.svg-wind-icon-dark {\n width: 27px;\n height: 27px;\n background-size: 100%;\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMCAzMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGcgaWQ9IkxheWVyXzIiPjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ii8+PC9nPjxnIGlkPSJMYXllcl8xIj48cGF0aCBmaWxsPSIjMUExQTFBIiBkPSJNMTYuNTU0LDE1LjA0MWMwLDAsMC4zMDktMy4zMjUsMC45NjMtNi45NjhjMC4zMDktMS43MTUsMS4xNTQtNy41OTcsMS4xNTQtNy41OTdoLTMuNjQ3aC0zLjY0NmMwLDAsMC44NDYsNS44ODIsMS4xNTQsNy41OTdjMC42NTQsMy42NDMsMC45NjMsNi45NjgsMC45NjMsNi45NjhsLTguMzEyLTMuNDU3TDE1LjAyMywzMGw5Ljg0Mi0xOC40MTZMMTYuNTU0LDE1LjA0MXoiLz48L2c+PC9zdmc+")\n}\n\n.svg-wind-icon-danger {\n width: 27px;\n height: 27px;\n background-position: top;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzBweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6bm9uZTt9LnN0MXtmaWxsOiNFNzRDM0M7fTwvc3R5bGU+PGcgaWQ9IkxheWVyXzIiPjxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ii8+PC9nPjxnIGlkPSJMYXllcl8xXzFfIj48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYuNiwxNWMwLDAsMC4zLTMuMywxLTdjMC4zLTEuNywxLjItNy42LDEuMi03LjZIMTVoLTMuNmMwLDAsMC44LDUuOSwxLjIsNy42YzAuNywzLjYsMSw3LDEsN2wtOC4zLTMuNUwxNSwzMGw5LjgtMTguNEwxNi42LDE1eiIvPjwvZz48L3N2Zz4=)\n}\n\n.svg-wind-icon-gray {\n width: 27px;\n height: 27px;\n background-position: top;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNC41IDcuMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNC41IDcuMTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsOiM1NTU1NTU7fTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTQuNCwzSDNWMEgxLjZ2M0gwLjJDMCwzLDAsMy4yLDAsMy4zTDIuMSw3YzAuMSwwLjEsMC4zLDAuMSwwLjMsMGwyLjEtMy42QzQuNiwzLjIsNC41LDMsNC40LDN6Ii8+PC9zdmc+)\n}\n\n.svg-wind-icon-light {\n width: 30px;\n height: 30px;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDI4My41IDI4My41OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6I0ZGRkZGRjt9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTU1LjMsMTQyLjFjMCwwLDIuMi0yMy43LDYuOS00OS42YzIuMi0xMi4yLDguMi01NC4xLDguMi01NC4xaC0yNmgtMjZjMCwwLDYsNDEuOSw4LjIsNTQuMWM0LjcsMjUuOSw2LjksNDkuNiw2LjksNDkuNmwtNTkuMi0yNC42bDcwLjEsMTMxLjJsNzAuMS0xMzEuMkwxNTUuMywxNDIuMXoiLz48L3N2Zz4=)\n}\n\n// ----\n.svg-swell-icon {\n width: 21px;\n height: 21px\n}\n.svg-swell-icon {\n text-indent: -9999px\n}\n\n.svg-swell-icon,.svg .svg-wind-icon {\n background-repeat: no-repeat;\n background-position: 0 0;\n display: inline-block;\n text-align: center\n}\n\n.svg-swell-icon {\n width: 17px;\n height: 23px;\n background-size: auto 100%;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDMuOTU4cHgiIGhlaWdodD0iMTkuOTAxcHgiIHZpZXdCb3g9IjAgMCA0My45NTggMTkuOTAxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA0My45NTggMTkuOTAxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0eWxlMHtmaWxsOgkjRkZGRkZGO30uc3R5bGUxe2ZpbGw6CSMzQ0JCRTg7fTwvc3R5bGU+PHBvbHlnb24gcG9pbnRzPSI2LjIsMTkuOSAxMi40LDAuNCA2LjIsNCAwLDAuNCIvPjxwb2x5Z29uIHBvaW50cz0iMjIsMTkuOSAyOC4yLDAuNCAyMiw0IDE1LjgsMC40IiBjbGFzcz0ic3R5bGUwIi8+PHBvbHlnb24gcG9pbnRzPSIzNy44LDE5LjkgNDQsMC40IDM3LjgsNCAzMS42LDAuNCIgY2xhc3M9InN0eWxlMSIvPjwvc3ZnPg==")\n}\n\n.svg-swell-icon.svg-icon-white {\n background-position: 60% 0\n}\n\n.svg-swell-icon-dark {\n width: 23px;\n height: 23px;\n background-size: 100%;\n background-position: 0 0;\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MHB4IiBoZWlnaHQ9IjUwcHgiIHZpZXdCb3g9IjAgMCA1MCA1MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNTAgNTAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnIGlkPSJMYXllcl8yIj48Y2lyY2xlIGZpbGwtb3BhY2l0eT0iMCIgY3g9IjI0Ljk5IiBjeT0iMjQuOTQ2IiByPSIyNC45NDYiLz48L2c+PGcgaWQ9IkxheWVyXzFfMV8iPjxwb2x5Z29uIGZpbGw9IiMxQTFBMUEiIHBvaW50cz0iMzkuOTYxLDUuMDA4IDI0Ljk2OSw0OS44OTMgMTAuMDM3LDUuMDA4IDI1LjAzOCwxMS4yNDIgIi8+PC9nPjwvc3ZnPg==")\n}\n`)(Xt))}`}render(){return this.invalidConfig?E` + `};function Ft(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"black":"white"}function Qt(t,e,i){e/=100,i/=100;let s=(1-Math.abs(2*i-1))*e,n=s*(1-Math.abs(t/60%2-1)),o=i-s/2,a=0,r=0,p=0;0<=t&&t<60?(a=s,r=n,p=0):60<=t&&t<120?(a=n,r=s,p=0):120<=t&&t<180?(a=0,r=s,p=n):180<=t&&t<240?(a=0,r=n,p=s):240<=t&&t<300?(a=n,r=0,p=s):300<=t&&t<360&&(a=s,r=0,p=n);let h=Math.round(255*(a+o)).toString(16),d=Math.round(255*(r+o)).toString(16),c=Math.round(255*(p+o)).toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==c.length&&(c="0"+c),"#"+h+d+c}const Yt="/local/community/ha-card-weather-conditions/icons",Jt="/local/ha-card-weather-conditions/icons";let Xt,qt=!1,Kt=!1,te="%c WEATHER-CONDITION-CARD %c 1.9.9",ee="color: white; background: green; font-weight: 700;",ie="color: green; background: white; font-weight: 700;",se="color: black; background: white; font-weight: 700;",ne=null,oe=null;Object.defineProperty(Object.prototype,"isSet",{value:function(t,e){let i=!(null==t);return e?i&&t.length>0:i},writable:!0,configurable:!0,enumerable:!1}),console.info(te,ee,ie);let ae=[Ct(Yt+"/static/cloudy.svg"),Ct(Jt+"/static/cloudy.svg")];Promise.all(ae).then(e=>{let i,s;i=qt=e[0],s=Kt=e[1];let n=(Xt=i?Yt:s?Jt:null)+"/../transl/",o=[Pt(n+"en.json"),Pt(n+"it.json"),Pt(n+"nl.json"),Pt(n+"es.json"),Pt(n+"de.json"),Pt(n+"fr.json"),Pt(n+"sr-latn.json"),Pt(n+"pt.json"),Pt(n+"da.json"),Pt(n+"no-NO.json")];i?console.info(te+"%c use HACS path to retrieve icons.",ee,ie,se):s?console.info(te+"%c use www root path to retrieve icons.",ee,ie,se):console.info(te+"%c error setting right icons path.",ee,ie,se),Promise.all(o).then(e=>{let n=class extends ht{constructor(){super(...arguments),this._iconsConfig=new class{},this._terms=new class{},this.invalidConfig=!1,this.numberElements=0,this._header=!0,this._name="",this._hasCurrent=!1,this._hasForecast=!1,this._hasMeteogram=!1,this._hasAirQuality=!1,this._hasPollen=!1,this._hasUv=!1,this._hasAlert=!1,this._hasSea=!1,this._displayTop=!0,this._displayCurrent=!0,this._displayForecast=!0,this._showSummary=!0,this._showPresent=!0,this._showUv=!0,this._showAirQuality=!0,this._showPollen=!0,this._showForecast=!0,this._showAlert=!0,this._showSea=!0}setConfig(t){if(console.log({card_config:t}),!t)throw this.invalidConfig=!0,new Error("Invalid configuration");let n;t.name&&t.name.length>0&&(this._name=t.name),t.language&&t.language.length>0?this._language=t.language.toLowerCase():this._language="en";try{n=JSON.parse(e[It[this._language]]),this._terms.windDirections=n.cwcLocWindDirections,this._terms.words=n.cwcTerms,console.info(te+'%c card "'+this._name+"\", locale is '"+this._language+"'.",ee,ie,se)}catch(t){n=JSON.parse(e[It.en]),this._terms.windDirections=n.cwcLocWindDirections,this._terms.words=n.cwcTerms,console.info(te+'%c card "'+this._name+"\" unable to use '"+this._language+"' locale, set as default 'en'.",ee,ie,se)}if(ne=new Intl.NumberFormat(this._language,{maximumFractionDigits:0}),oe=new Intl.NumberFormat(this._language,{maximumFractionDigits:1}),void 0!==t.display&&(this._displayTop=t.display.findIndex(t=>"top"===t.toLowerCase())>=0,this._displayCurrent=t.display.findIndex(t=>"current"===t.toLowerCase())>=0,this._displayForecast=t.display.findIndex(t=>"forecast"===t.toLowerCase())>=0),this._hasCurrent=!!t.weather&&!!t.weather.current,this._hasForecast=!!t.weather&&!!t.weather.forecast,this._hasMeteogram=this._hasForecast&&!!t.weather.forecast.meteogram,this._hasAirQuality=!!t.air_quality,this._hasPollen=!(!t.pollen||!t.pollen.tree&&!t.pollen.weed&&!t.pollen.grass),this._hasUv=!!t.uv,this._hasAlert=!!t.alert,this._hasSea=!!t.sea,this._iconsConfig.path=i?Yt:s?Jt:null,this._iconsConfig.iconType=t.animation?"animated":"static",this._iconsConfig.iconsDay=xt,this._iconsConfig.iconsNight=mt,this._iconsConfig.icons_model="climacell",t.weather&&t.weather.icons_model)switch(t.weather.icons_model.toLowerCase()){case"darksky":this._iconsConfig.iconsDay=yt,this._iconsConfig.iconsNight=bt,this._iconsConfig.icons_model="darksky";break;case"openweathermap":this._iconsConfig.iconsDay=_t,this._iconsConfig.iconsNight=vt,this._iconsConfig.icons_model="openweathermap";break;case"buienradar":this._iconsConfig.iconsDay=ft,this._iconsConfig.iconsNight=kt,this._iconsConfig.icons_model="buienradar";break;case"defaulthass":this._iconsConfig.iconsDay=St,this._iconsConfig.iconsNight=Mt,this._iconsConfig.icons_model="defaulthass"}this._config=t}getCardSize(){return 1}static get styles(){return rt`${dt}${ct}${gt}${lt}${ut}${wt}${(t=>new at(String(t),ot))((t=>`\n \n \n.synoptic {\n width: 100%;\n border-collapse: collapse;\n}\n\ntable.synoptic tr:not(:last-child) {\n border-bottom: 1px solid #476b6b;\n // background-color: cadetblue;\n}\n \ntable.synoptic td {\n vertical-align: top;\n}\n \n.msw-sw\n{\n display: inline-block;\n width: 30px;\n height: 30px;\n background: url("${t}/we-sprite.png") no-repeat top left;\n}\n.msw-sw-1{ background-position: 0 0; width: 30px; height: 30px; } \n.msw-sw-10{ background-position: 0 -60px; width: 30px; height: 30px; } \n.msw-sw-11{ background-position: 0 -120px; width: 30px; height: 30px; } \n.msw-sw-12{ background-position: 0 -180px; width: 30px; height: 30px; } \n.msw-sw-13{ background-position: 0 -240px; width: 30px; height: 30px; } \n.msw-sw-14{ background-position: 0 -300px; width: 30px; height: 30px; } \n.msw-sw-15{ background-position: 0 -360px; width: 30px; height: 30px; } \n.msw-sw-16{ background-position: 0 -420px; width: 30px; height: 30px; } \n.msw-sw-17{ background-position: 0 -480px; width: 30px; height: 30px; } \n.msw-sw-18{ background-position: 0 -540px; width: 30px; height: 30px; } \n.msw-sw-19{ background-position: 0 -600px; width: 30px; height: 30px; } \n.msw-sw-2{ background-position: 0 -660px; width: 30px; height: 30px; } \n.msw-sw-20{ background-position: 0 -720px; width: 30px; height: 30px; } \n.msw-sw-21{ background-position: 0 -780px; width: 30px; height: 30px; } \n.msw-sw-22{ background-position: 0 -840px; width: 30px; height: 30px; } \n.msw-sw-23{ background-position: 0 -900px; width: 30px; height: 30px; } \n.msw-sw-24{ background-position: 0 -960px; width: 30px; height: 30px; } \n.msw-sw-25{ background-position: 0 -1020px; width: 30px; height: 30px; } \n.msw-sw-26{ background-position: 0 -1080px; width: 30px; height: 30px; } \n.msw-sw-27{ background-position: 0 -1140px; width: 30px; height: 30px; } \n.msw-sw-28{ background-position: 0 -1200px; width: 30px; height: 30px; } \n.msw-sw-29{ background-position: 0 -1260px; width: 30px; height: 30px; } \n.msw-sw-3{ background-position: 0 -1320px; width: 30px; height: 30px; } \n.msw-sw-30{ background-position: 0 -1380px; width: 30px; height: 30px; } \n.msw-sw-31{ background-position: 0 -1440px; width: 30px; height: 30px; } \n.msw-sw-32{ background-position: 0 -1500px; width: 30px; height: 30px; } \n.msw-sw-33{ background-position: 0 -1560px; width: 30px; height: 30px; } \n.msw-sw-34{ background-position: 0 -1620px; width: 30px; height: 30px; } \n.msw-sw-35{ background-position: 0 -1680px; width: 30px; height: 30px; } \n.msw-sw-36{ background-position: 0 -1740px; width: 30px; height: 30px; } \n.msw-sw-37{ background-position: 0 -1800px; width: 30px; height: 30px; } \n.msw-sw-38{ background-position: 0 -1860px; width: 30px; height: 30px; } \n.msw-sw-4{ background-position: 0 -1920px; width: 30px; height: 30px; } \n.msw-sw-5{ background-position: -60px 0; width: 30px; height: 30px; } \n.msw-sw-6{ background-position: -60px -60px; width: 30px; height: 30px; } \n.msw-sw-7{ background-position: -60px -120px; width: 30px; height: 30px; } \n.msw-sw-8{ background-position: -60px -180px; width: 30px; height: 30px; } \n.msw-sw-9{ background-position: -60px -240px; width: 30px; height: 30px; }\n\n.msw-swa /* Inherits from swell arrows */\n{\n background: url("${t}/sa-sprite.png") no-repeat top left;\n}\n.msw-swa-10{ background-position: 0 0; width: 26px; height: 26px; } \n.msw-swa-100{ background-position: 0 -52px; width: 26px; height: 26px; } \n.msw-swa-105{ background-position: 0 -104px; width: 26px; height: 26px; } \n.msw-swa-110{ background-position: 0 -156px; width: 26px; height: 26px; } \n.msw-swa-115{ background-position: 0 -208px; width: 26px; height: 26px; } \n.msw-swa-120{ background-position: 0 -260px; width: 26px; height: 26px; } \n.msw-swa-125{ background-position: 0 -312px; width: 26px; height: 26px; } \n.msw-swa-130{ background-position: 0 -364px; width: 26px; height: 26px; } \n.msw-swa-135{ background-position: 0 -416px; width: 26px; height: 26px; } \n.msw-swa-140{ background-position: 0 -468px; width: 26px; height: 26px; } \n.msw-swa-145{ background-position: 0 -520px; width: 26px; height: 26px; } \n.msw-swa-15{ background-position: 0 -572px; width: 26px; height: 26px; } \n.msw-swa-150{ background-position: 0 -624px; width: 26px; height: 26px; } \n.msw-swa-155{ background-position: 0 -676px; width: 26px; height: 26px; } \n.msw-swa-160{ background-position: 0 -728px; width: 26px; height: 26px; } \n.msw-swa-165{ background-position: 0 -780px; width: 26px; height: 26px; } \n.msw-swa-170{ background-position: 0 -832px; width: 26px; height: 26px; } \n.msw-swa-175{ background-position: 0 -884px; width: 26px; height: 26px; } \n.msw-swa-180{ background-position: 0 -936px; width: 26px; height: 26px; } \n.msw-swa-185{ background-position: 0 -988px; width: 26px; height: 26px; } \n.msw-swa-190{ background-position: 0 -1040px; width: 26px; height: 26px; } \n.msw-swa-195{ background-position: 0 -1092px; width: 26px; height: 26px; } \n.msw-swa-20{ background-position: 0 -1144px; width: 26px; height: 26px; } \n.msw-swa-200{ background-position: 0 -1196px; width: 26px; height: 26px; } \n.msw-swa-205{ background-position: 0 -1248px; width: 26px; height: 26px; } \n.msw-swa-210{ background-position: 0 -1300px; width: 26px; height: 26px; } \n.msw-swa-215{ background-position: 0 -1352px; width: 26px; height: 26px; } \n.msw-swa-220{ background-position: 0 -1404px; width: 26px; height: 26px; } \n.msw-swa-225{ background-position: 0 -1456px; width: 26px; height: 26px; } \n.msw-swa-230{ background-position: 0 -1508px; width: 26px; height: 26px; } \n.msw-swa-235{ background-position: 0 -1560px; width: 26px; height: 26px; } \n.msw-swa-240{ background-position: 0 -1612px; width: 26px; height: 26px; } \n.msw-swa-245{ background-position: 0 -1664px; width: 26px; height: 26px; } \n.msw-swa-25{ background-position: 0 -1716px; width: 26px; height: 26px; } \n.msw-swa-250{ background-position: 0 -1768px; width: 26px; height: 26px; } \n.msw-swa-255{ background-position: 0 -1820px; width: 26px; height: 26px; } \n.msw-swa-260{ background-position: 0 -1872px; width: 26px; height: 26px; } \n.msw-swa-265{ background-position: 0 -1924px; width: 26px; height: 26px; } \n.msw-swa-270{ background-position: -52px 0; width: 26px; height: 26px; } \n.msw-swa-275{ background-position: -52px -52px; width: 26px; height: 26px; } \n.msw-swa-280{ background-position: -52px -104px; width: 26px; height: 26px; } \n.msw-swa-285{ background-position: -52px -156px; width: 26px; height: 26px; } \n.msw-swa-290{ background-position: -52px -208px; width: 26px; height: 26px; } \n.msw-swa-295{ background-position: -52px -260px; width: 26px; height: 26px; } \n.msw-swa-30{ background-position: -52px -312px; width: 26px; height: 26px; } \n.msw-swa-300{ background-position: -52px -364px; width: 26px; height: 26px; } \n.msw-swa-305{ background-position: -52px -416px; width: 26px; height: 26px; } \n.msw-swa-310{ background-position: -52px -468px; width: 26px; height: 26px; } \n.msw-swa-315{ background-position: -52px -520px; width: 26px; height: 26px; } \n.msw-swa-320{ background-position: -52px -572px; width: 26px; height: 26px; } \n.msw-swa-325{ background-position: -52px -624px; width: 26px; height: 26px; } \n.msw-swa-330{ background-position: -52px -676px; width: 26px; height: 26px; } \n.msw-swa-335{ background-position: -52px -728px; width: 26px; height: 26px; } \n.msw-swa-340{ background-position: -52px -780px; width: 26px; height: 26px; } \n.msw-swa-345{ background-position: -52px -832px; width: 26px; height: 26px; } \n.msw-swa-35{ background-position: -52px -884px; width: 26px; height: 26px; } \n.msw-swa-350{ background-position: -52px -936px; width: 26px; height: 26px; } \n.msw-swa-355{ background-position: -52px -988px; width: 26px; height: 26px; } \n.msw-swa-360{ background-position: -52px -1040px; width: 26px; height: 26px; } \n.msw-swa-40{ background-position: -52px -1092px; width: 26px; height: 26px; } \n.msw-swa-45{ background-position: -52px -1144px; width: 26px; height: 26px; } \n.msw-swa-5{ background-position: -52px -1196px; width: 26px; height: 26px; } \n.msw-swa-50{ background-position: -52px -1248px; width: 26px; height: 26px; } \n.msw-swa-55{ background-position: -52px -1300px; width: 26px; height: 26px; } \n.msw-swa-60{ background-position: -52px -1352px; width: 26px; height: 26px; } \n.msw-swa-65{ background-position: -52px -1404px; width: 26px; height: 26px; } \n.msw-swa-70{ background-position: -52px -1456px; width: 26px; height: 26px; } \n.msw-swa-75{ background-position: -52px -1508px; width: 26px; height: 26px; } \n.msw-swa-80{ background-position: -52px -1560px; width: 26px; height: 26px; } \n.msw-swa-85{ background-position: -52px -1612px; width: 26px; height: 26px; } \n.msw-swa-90{ background-position: -52px -1664px; width: 26px; height: 26px; } \n.msw-swa-95{ background-position: -52px -1716px; width: 26px; height: 26px; }\n\n.msw-ssa,\n.msw-swa /* Wind arrows */\n{\n display: inline-block;\n width: 26px;\n height: 26px;\n background: url("${t}/wa-sprite.png") no-repeat top left;\n}\n.msw-ssa-10{ background-position: 0 0; width: 26px; height: 26px; } \n.msw-ssa-100{ background-position: 0 -52px; width: 26px; height: 26px; } \n.msw-ssa-105{ background-position: 0 -104px; width: 26px; height: 26px; } \n.msw-ssa-110{ background-position: 0 -156px; width: 26px; height: 26px; } \n.msw-ssa-115{ background-position: 0 -208px; width: 26px; height: 26px; } \n.msw-ssa-120{ background-position: 0 -260px; width: 26px; height: 26px; } \n.msw-ssa-125{ background-position: 0 -312px; width: 26px; height: 26px; } \n.msw-ssa-130{ background-position: 0 -364px; width: 26px; height: 26px; } \n.msw-ssa-135{ background-position: 0 -416px; width: 26px; height: 26px; } \n.msw-ssa-140{ background-position: 0 -468px; width: 26px; height: 26px; } \n.msw-ssa-145{ background-position: 0 -520px; width: 26px; height: 26px; } \n.msw-ssa-15{ background-position: 0 -572px; width: 26px; height: 26px; } \n.msw-ssa-150{ background-position: 0 -624px; width: 26px; height: 26px; } \n.msw-ssa-155{ background-position: 0 -676px; width: 26px; height: 26px; } \n.msw-ssa-160{ background-position: 0 -728px; width: 26px; height: 26px; } \n.msw-ssa-165{ background-position: 0 -780px; width: 26px; height: 26px; } \n.msw-ssa-170{ background-position: 0 -832px; width: 26px; height: 26px; } \n.msw-ssa-175{ background-position: 0 -884px; width: 26px; height: 26px; } \n.msw-ssa-180{ background-position: 0 -936px; width: 26px; height: 26px; } \n.msw-ssa-185{ background-position: 0 -988px; width: 26px; height: 26px; } \n.msw-ssa-190{ background-position: 0 -1040px; width: 26px; height: 26px; } \n.msw-ssa-195{ background-position: 0 -1092px; width: 26px; height: 26px; } \n.msw-ssa-20{ background-position: 0 -1144px; width: 26px; height: 26px; } \n.msw-ssa-200{ background-position: 0 -1196px; width: 26px; height: 26px; } \n.msw-ssa-205{ background-position: 0 -1248px; width: 26px; height: 26px; } \n.msw-ssa-210{ background-position: 0 -1300px; width: 26px; height: 26px; } \n.msw-ssa-215{ background-position: 0 -1352px; width: 26px; height: 26px; } \n.msw-ssa-220{ background-position: 0 -1404px; width: 26px; height: 26px; } \n.msw-ssa-225{ background-position: 0 -1456px; width: 26px; height: 26px; } \n.msw-ssa-230{ background-position: 0 -1508px; width: 26px; height: 26px; } \n.msw-ssa-235{ background-position: 0 -1560px; width: 26px; height: 26px; } \n.msw-ssa-240{ background-position: 0 -1612px; width: 26px; height: 26px; } \n.msw-ssa-245{ background-position: 0 -1664px; width: 26px; height: 26px; } \n.msw-ssa-25{ background-position: 0 -1716px; width: 26px; height: 26px; } \n.msw-ssa-250{ background-position: 0 -1768px; width: 26px; height: 26px; } \n.msw-ssa-255{ background-position: 0 -1820px; width: 26px; height: 26px; } \n.msw-ssa-260{ background-position: 0 -1872px; width: 26px; height: 26px; } \n.msw-ssa-265{ background-position: 0 -1924px; width: 26px; height: 26px; } \n.msw-ssa-270{ background-position: -52px 0; width: 26px; height: 26px; } \n.msw-ssa-275{ background-position: -52px -52px; width: 26px; height: 26px; } \n.msw-ssa-280{ background-position: -52px -104px; width: 26px; height: 26px; } \n.msw-ssa-285{ background-position: -52px -156px; width: 26px; height: 26px; } \n.msw-ssa-290{ background-position: -52px -208px; width: 26px; height: 26px; } \n.msw-ssa-295{ background-position: -52px -260px; width: 26px; height: 26px; } \n.msw-ssa-30{ background-position: -52px -312px; width: 26px; height: 26px; } \n.msw-ssa-300{ background-position: -52px -364px; width: 26px; height: 26px; } \n.msw-ssa-305{ background-position: -52px -416px; width: 26px; height: 26px; } \n.msw-ssa-310{ background-position: -52px -468px; width: 26px; height: 26px; } \n.msw-ssa-315{ background-position: -52px -520px; width: 26px; height: 26px; } \n.msw-ssa-320{ background-position: -52px -572px; width: 26px; height: 26px; } \n.msw-ssa-325{ background-position: -52px -624px; width: 26px; height: 26px; } \n.msw-ssa-330{ background-position: -52px -676px; width: 26px; height: 26px; } \n.msw-ssa-335{ background-position: -52px -728px; width: 26px; height: 26px; } \n.msw-ssa-340{ background-position: -52px -780px; width: 26px; height: 26px; } \n.msw-ssa-345{ background-position: -52px -832px; width: 26px; height: 26px; } \n.msw-ssa-35{ background-position: -52px -884px; width: 26px; height: 26px; } \n.msw-ssa-350{ background-position: -52px -936px; width: 26px; height: 26px; } \n.msw-ssa-355{ background-position: -52px -988px; width: 26px; height: 26px; } \n.msw-ssa-40{ background-position: -52px -1040px; width: 26px; height: 26px; } \n.msw-ssa-45{ background-position: -52px -1092px; width: 26px; height: 26px; } \n.msw-ssa-5{ background-position: -52px -1144px; width: 26px; height: 26px; } \n.msw-ssa-50{ background-position: -52px -1196px; width: 26px; height: 26px; } \n.msw-ssa-55{ background-position: -52px -1248px; width: 26px; height: 26px; } \n.msw-ssa-60{ background-position: -52px -1300px; width: 26px; height: 26px; } \n.msw-ssa-65{ background-position: -52px -1352px; width: 26px; height: 26px; } \n.msw-ssa-70{ background-position: -52px -1404px; width: 26px; height: 26px; } \n.msw-ssa-75{ background-position: -52px -1456px; width: 26px; height: 26px; } \n.msw-ssa-80{ background-position: -52px -1508px; width: 26px; height: 26px; } \n.msw-ssa-85{ background-position: -52px -1560px; width: 26px; height: 26px; } \n.msw-ssa-90{ background-position: -52px -1612px; width: 26px; height: 26px; } \n.msw-ssa-95{ background-position: -52px -1664px; width: 26px; height: 26px; }\n\n.list-group-content {\n display: inline-block;\n vertical-align: middle;\n}\n\n.inline-block {\n display: inline-block;\n *display: inline;\n zoom: 1;\n}\n\n.svg {\n display: none\n}\n\n.svg-icon-container {\n display: inline-block;\n vertical-align: middle;\n margin-left: 5px\n}\n\n.svg {\n display: none!important\n}\n\n.svg-icon {\n display: inline-block;\n vertical-align: middle\n}\n\n\n\n.svg-wind-icon {\n width: 20px;\n height: 27px;\n background-size: auto 100%;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjguODc0cHgiIGhlaWdodD0iMTkuOTAxcHgiIHZpZXdCb3g9IjAgMCAyOC44NzQgMTkuOTAxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyOC44NzQgMTkuOTAxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNy42MTYgOS43NTVjMCAwIDAuMjA3LTIuMjI3IDAuNjQ1LTQuNjY3QzguNDY4IDMuOSA5IDAgOSAwSDYuNTkxSDQuMTQ4YzAgMCAwLjYgMy45IDAuOCA1LjEgQzUuMzYgNy41IDUuNiA5LjggNS42IDkuNzU1TDAgNy40MzlsNi41OTEgMTIuMzM0bDYuNTkxLTEyLjMzNEw3LjYxNiA5Ljc1NXoiLz48cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjMuMTg4IDkuNzU1YzAgMCAwLjIwNy0yLjIyNyAwLjY0NS00LjY2N0MyNC4wNCAzLjkgMjQuNiAwIDI0LjYgMGgtMi40NDNoLTIuNDQzIGMwIDAgMC42IDMuOSAwLjggNS4wODhjMC40MzggMi40IDAuNiA0LjcgMC42IDQuNjY3bC01LjU2Ny0yLjMxNmw2LjU5MSAxMi4zMzRsNi41OTEtMTIuMzM0TDIzLjE4OCA5Ljc1NXoiLz48L3N2Zz4=")\n}\n\n.svg-wind-icon.svg-icon-white {\n background-position: 100% 0\n}\n\n.svg-wind-icon.svg-icon-sm {\n width: 13px;\n height: 20px\n}\n\n.svg-wind-icon-dark {\n width: 27px;\n height: 27px;\n background-size: 100%;\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMCAzMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGcgaWQ9IkxheWVyXzIiPjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ii8+PC9nPjxnIGlkPSJMYXllcl8xIj48cGF0aCBmaWxsPSIjMUExQTFBIiBkPSJNMTYuNTU0LDE1LjA0MWMwLDAsMC4zMDktMy4zMjUsMC45NjMtNi45NjhjMC4zMDktMS43MTUsMS4xNTQtNy41OTcsMS4xNTQtNy41OTdoLTMuNjQ3aC0zLjY0NmMwLDAsMC44NDYsNS44ODIsMS4xNTQsNy41OTdjMC42NTQsMy42NDMsMC45NjMsNi45NjgsMC45NjMsNi45NjhsLTguMzEyLTMuNDU3TDE1LjAyMywzMGw5Ljg0Mi0xOC40MTZMMTYuNTU0LDE1LjA0MXoiLz48L2c+PC9zdmc+")\n}\n\n.svg-wind-icon-danger {\n width: 27px;\n height: 27px;\n background-position: top;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzBweCIgaGVpZ2h0PSIzMHB4IiB2aWV3Qm94PSIwIDAgMzAgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMwIDMwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6bm9uZTt9LnN0MXtmaWxsOiNFNzRDM0M7fTwvc3R5bGU+PGcgaWQ9IkxheWVyXzIiPjxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ii8+PC9nPjxnIGlkPSJMYXllcl8xXzFfIj48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYuNiwxNWMwLDAsMC4zLTMuMywxLTdjMC4zLTEuNywxLjItNy42LDEuMi03LjZIMTVoLTMuNmMwLDAsMC44LDUuOSwxLjIsNy42YzAuNywzLjYsMSw3LDEsN2wtOC4zLTMuNUwxNSwzMGw5LjgtMTguNEwxNi42LDE1eiIvPjwvZz48L3N2Zz4=)\n}\n\n.svg-wind-icon-gray {\n width: 27px;\n height: 27px;\n background-position: top;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNC41IDcuMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNC41IDcuMTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsOiM1NTU1NTU7fTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTQuNCwzSDNWMEgxLjZ2M0gwLjJDMCwzLDAsMy4yLDAsMy4zTDIuMSw3YzAuMSwwLjEsMC4zLDAuMSwwLjMsMGwyLjEtMy42QzQuNiwzLjIsNC41LDMsNC40LDN6Ii8+PC9zdmc+)\n}\n\n.svg-wind-icon-light {\n width: 30px;\n height: 30px;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDI4My41IDI4My41OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6I0ZGRkZGRjt9PC9zdHlsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTU1LjMsMTQyLjFjMCwwLDIuMi0yMy43LDYuOS00OS42YzIuMi0xMi4yLDguMi01NC4xLDguMi01NC4xaC0yNmgtMjZjMCwwLDYsNDEuOSw4LjIsNTQuMWM0LjcsMjUuOSw2LjksNDkuNiw2LjksNDkuNmwtNTkuMi0yNC42bDcwLjEsMTMxLjJsNzAuMS0xMzEuMkwxNTUuMywxNDIuMXoiLz48L3N2Zz4=)\n}\n\n// ----\n.svg-swell-icon {\n width: 21px;\n height: 21px\n}\n.svg-swell-icon {\n text-indent: -9999px\n}\n\n.svg-swell-icon,.svg .svg-wind-icon {\n background-repeat: no-repeat;\n background-position: 0 0;\n display: inline-block;\n text-align: center\n}\n\n.svg-swell-icon {\n width: 17px;\n height: 23px;\n background-size: auto 100%;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNDMuOTU4cHgiIGhlaWdodD0iMTkuOTAxcHgiIHZpZXdCb3g9IjAgMCA0My45NTggMTkuOTAxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA0My45NTggMTkuOTAxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0eWxlMHtmaWxsOgkjRkZGRkZGO30uc3R5bGUxe2ZpbGw6CSMzQ0JCRTg7fTwvc3R5bGU+PHBvbHlnb24gcG9pbnRzPSI2LjIsMTkuOSAxMi40LDAuNCA2LjIsNCAwLDAuNCIvPjxwb2x5Z29uIHBvaW50cz0iMjIsMTkuOSAyOC4yLDAuNCAyMiw0IDE1LjgsMC40IiBjbGFzcz0ic3R5bGUwIi8+PHBvbHlnb24gcG9pbnRzPSIzNy44LDE5LjkgNDQsMC40IDM3LjgsNCAzMS42LDAuNCIgY2xhc3M9InN0eWxlMSIvPjwvc3ZnPg==")\n}\n\n.svg-swell-icon.svg-icon-white {\n background-position: 60% 0\n}\n\n.svg-swell-icon-dark {\n width: 23px;\n height: 23px;\n background-size: 100%;\n background-position: 0 0;\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MHB4IiBoZWlnaHQ9IjUwcHgiIHZpZXdCb3g9IjAgMCA1MCA1MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNTAgNTAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnIGlkPSJMYXllcl8yIj48Y2lyY2xlIGZpbGwtb3BhY2l0eT0iMCIgY3g9IjI0Ljk5IiBjeT0iMjQuOTQ2IiByPSIyNC45NDYiLz48L2c+PGcgaWQ9IkxheWVyXzFfMV8iPjxwb2x5Z29uIGZpbGw9IiMxQTFBMUEiIHBvaW50cz0iMzkuOTYxLDUuMDA4IDI0Ljk2OSw0OS44OTMgMTAuMDM3LDUuMDA4IDI1LjAzOCwxMS4yNDIgIi8+PC9nPjwvc3ZnPg==")\n}\n`)(Xt))}`}render(){return this.invalidConfig?E`